a06673b
use sea_orm::entity::prelude::*;
use time::OffsetDateTime;
#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "paper_folders")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: Uuid,
#[sea_orm(unique_key = "user_name")]
pub user_id: Uuid,
#[sea_orm(unique_key = "user_name")]
pub name: String,
pub description: Option<String>,
pub created_at: OffsetDateTime,
#[sea_orm(belongs_to, from = "user_id", to = "uid")]
pub user: BelongsTo<super::super::user::users::Entity>,
}
impl ActiveModelBehavior for ActiveModel {}