From 2b02470957e8ce9bdd2109b1cfa6a3e1d0d652e7 Mon Sep 17 00:00:00 2001 From: abhishekbhakat Date: Thu, 18 Dec 2025 20:34:39 +0530 Subject: [PATCH] feat: add height, blood type, and birthdate fields to User model and remove `Eq` derive. --- backend/src/models/user/user.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/backend/src/models/user/user.rs b/backend/src/models/user/user.rs index 85c0a38..1f2b3cc 100644 --- a/backend/src/models/user/user.rs +++ b/backend/src/models/user/user.rs @@ -3,7 +3,7 @@ use sea_orm::entity::prelude::*; use serde::{Deserialize, Serialize}; -#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel, Serialize, Deserialize)] +#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)] #[sea_orm(table_name = "users")] pub struct Model { #[sea_orm(primary_key)] @@ -21,6 +21,16 @@ pub struct Model { /// Foreign key to roles table pub role_id: i32, + // Profile fields + /// Height in centimeters + pub height_cm: Option, + + /// Blood type (A+, B-, O+, etc.) + pub blood_type: Option, + + /// Date of birth + pub birthdate: Option, + pub created_at: DateTime, pub updated_at: DateTime, }