12 lines
343 B
Rust
12 lines
343 B
Rust
//! The db module contains all Diesel-related logic. This is to prevent the various Diesel imports
|
|
//! from poluting other modules' namespaces.
|
|
|
|
pub mod posts;
|
|
pub mod sections;
|
|
|
|
pub use posts::{NewPost, PatchPost, Post};
|
|
pub use sections::{NewSection, PatchSection, Section};
|
|
|
|
pub const MAX_POSTS: u32 = 64;
|
|
pub const MAX_SECTIONS: u32 = 64;
|