use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, DeriveEntityModel)] #[sea_orm(table_name = "log")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, pub json: Json, pub created_at: DateTimeWithTimeZone, } #[derive(Copy, Clone, Debug, EnumIter)] pub enum Relation {} impl RelationTrait for Relation { fn def(&self) -> RelationDef { unreachable!() } } impl ActiveModelBehavior for ActiveModel {}