fix(dimentorin): resolve mentor profile id to user id before booking session

This commit is contained in:
asepharyana
2026-08-04 18:34:13 +07:00
parent 67d3f2fced
commit 7d1078f52a
24 changed files with 437 additions and 1 deletions
@@ -0,0 +1,37 @@
use chrono::{DateTime, Utc};
use sea_orm::entity::prelude::*;
use uuid::Uuid;
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
#[sea_orm(table_name = "app_articles")]
pub struct Model {
#[sea_orm(primary_key, default = "gen_random_uuid()", auto_increment = false)]
pub id: Uuid,
pub title: String,
pub slug: String,
pub category: String,
pub excerpt: String,
pub content: String,
#[sea_orm(nullable)]
pub cover_url: Option<String>,
#[sea_orm(nullable)]
pub author_name: Option<String>,
pub is_published: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}
@@ -1,3 +1,4 @@
pub mod articles;
pub mod audit_log;
pub mod enum_impls;
pub mod enums;