1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
use sea_orm::entity::prelude::*;
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
#[sea_orm(table_name = "burrow")]
pub struct Model {
#[sea_orm(primary_key)]
pub burrow_id: i64,
#[sea_orm(column_type = "Text")]
pub title: String,
#[sea_orm(column_type = "Text")]
pub description: String,
pub uid: i64,
pub burrow_state: i32,
pub post_num: i32,
pub create_time: DateTimeWithTimeZone,
pub update_time: DateTimeWithTimeZone,
pub credit: i32,
#[sea_orm(column_type = "Text")]
pub badge: String,
#[sea_orm(column_type = "Text")]
pub avatar: String,
pub permission: i32,
}
#[derive(Copy, Clone, Debug, EnumIter)]
pub enum Relation {}
impl RelationTrait for Relation {
fn def(&self) -> RelationDef {
panic!("No RelationDef")
}
}
impl ActiveModelBehavior for ActiveModel {}