21 lines
559 B
Rust
21 lines
559 B
Rust
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.10.7
|
|
|
|
use sea_orm::entity::prelude::*;
|
|
|
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
|
#[sea_orm(table_name = "post")]
|
|
pub struct Model {
|
|
#[sea_orm(primary_key, auto_increment = false)]
|
|
pub id: String,
|
|
pub draft: i8,
|
|
pub slug: String,
|
|
pub title: String,
|
|
pub summary: Option<String>,
|
|
pub published: DateTime,
|
|
pub updated: Option<DateTime>,
|
|
}
|
|
|
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
|
pub enum Relation {}
|
|
|
|
impl ActiveModelBehavior for ActiveModel {}
|