forgex 0.10.2

CLI and runtime for the Forge full-stack framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
// `#[forge::model]` MUST come before `#[derive(...)]` so the derive sees the rewritten struct.
// After editing, run `forge migrate prepare` to refresh the .sqlx cache.

use forge::prelude::*;

#[forge::model]
#[derive(Debug, Clone, Serialize, Deserialize, sqlx::FromRow)]
pub struct {{Name}} {
    pub id: Uuid,
    pub created_at: DateTime<Utc>,
}