main
use sea_orm::entity::prelude::*;
use time::OffsetDateTime;
use uuid::Uuid;
#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "issue_label")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
#[sea_orm(indexed)]
pub board_id: Uuid,
pub name: String,
pub exclusive: bool,
pub exclusive_order: i32,
pub description: Option<String>,
pub color: String,
pub is_archived: bool,
pub created_at: OffsetDateTime,
pub updated_at: Option<OffsetDateTime>,
#[sea_orm(belongs_to, from = "board_id", to = "id")]
pub board: BelongsTo<super::issues::Entity>,
}
impl ActiveModelBehavior for ActiveModel {}