gitdataai/libs/models/projects/project_watch.rs
2026-04-14 19:02:01 +08:00

21 lines
577 B
Rust

use crate::{DateTimeUtc, ProjectId, UserId};
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "project_watch")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i64,
pub project: ProjectId,
pub user: UserId,
pub notifications_enabled: bool,
pub created_at: DateTimeUtc,
pub updated_at: DateTimeUtc,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}