e50e272
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,
pub dir_id: Uuid,
pub name: String,
/// Key prefix for issue numbers inside this board (`CAD-12`).
pub prefix: Option<String>,
pub icon: Option<String>,
pub description: Option<String>,
pub created_at: OffsetDateTime,
pub updated_at: Option<OffsetDateTime>,
#[sea_orm(belongs_to, from = "dir_id", to = "id")]
pub dir: BelongsTo<super::super::dir::dirs::Entity>,
}
impl ActiveModelBehavior for ActiveModel {}