19 lines
443 B
Rust
19 lines
443 B
Rust
|
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.14
|
||
|
|
||
|
use sea_orm::entity::prelude::*;
|
||
|
|
||
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
||
|
#[sea_orm(table_name = "page")]
|
||
|
pub struct Model {
|
||
|
#[sea_orm(primary_key)]
|
||
|
pub id: i32,
|
||
|
pub external_id: i64,
|
||
|
pub title: String,
|
||
|
pub text: String,
|
||
|
}
|
||
|
|
||
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||
|
pub enum Relation {}
|
||
|
|
||
|
impl ActiveModelBehavior for ActiveModel {}
|