feat: add height, blood type, and birthdate fields to User model and remove Eq derive.

This commit is contained in:
2025-12-18 20:34:39 +05:30
parent f9f6871ee5
commit 2b02470957

View File

@@ -3,7 +3,7 @@
use sea_orm::entity::prelude::*; use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel, Serialize, Deserialize)] #[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "users")] #[sea_orm(table_name = "users")]
pub struct Model { pub struct Model {
#[sea_orm(primary_key)] #[sea_orm(primary_key)]
@@ -21,6 +21,16 @@ pub struct Model {
/// Foreign key to roles table /// Foreign key to roles table
pub role_id: i32, pub role_id: i32,
// Profile fields
/// Height in centimeters
pub height_cm: Option<f32>,
/// Blood type (A+, B-, O+, etc.)
pub blood_type: Option<String>,
/// Date of birth
pub birthdate: Option<Date>,
pub created_at: DateTime, pub created_at: DateTime,
pub updated_at: DateTime, pub updated_at: DateTime,
} }