gitdataai/libs/models/system/label.rs
2026-04-15 09:08:09 +08:00

20 lines
511 B
Rust

use crate::ProjectId;
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "label")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i64,
#[sea_orm(column_name = "project_uuid")]
pub project: ProjectId,
pub name: String,
pub color: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}