use sea_orm::entity::prelude::*; use time::OffsetDateTime; use uuid::Uuid; #[sea_orm::model] #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "issues")] pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: Uuid, #[sea_orm(indexed)] pub space_id: Uuid, pub name: String, /// Key prefix for issue numbers inside this board (`CAD-12`). pub prefix: Option, pub icon: Option, pub color: Option, pub description: Option, #[sea_orm(default_value = 0)] pub position: i64, pub created_at: OffsetDateTime, pub updated_at: Option, } impl ActiveModelBehavior for ActiveModel {}