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

22 lines
596 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_member_join_answers")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i64,
pub project: ProjectId,
pub user: UserId,
pub request_id: i64,
pub question: String,
pub answer: String,
pub created_at: DateTimeUtc,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}