gitdataai/libs/models/projects/project_history_name.rs
2026-04-15 09:08:09 +08:00

19 lines
518 B
Rust

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