Ready · 10 Steps
Farmer Client (App / Web)
clientNode.js Express API Gateway
coreusers
tableauth_identities
tablefarms
tablefarm_crops
tablecrop_catalog
tabledisease_scans
tabledisease_catalog
tablemandi_locations
tablemandi_prices
tablenotifications
table Table Entity Core / ML Service Relational Link / FK
users
tablePurpose & Function
Primary user profile and account record with localized language preferences.
Primary Key:
id (UUID)Key Table Attributes
idPrimary Key (gen_random_uuid())
UUIDfull_nameFarmer's full name
VARCHAR(120)phone_numberUnique registered mobile number
VARCHAR(20)preferred_languageDefault 'hi', 'mr', 'te', 'en'...
VARCHAR(10)is_activeAccount status active
BOOLEANPerformance Indexes
idx_users_phone (UNIQUE)idx_users_email (UNIQUE)Note for Engineers
All queries to users should use parameterized queries via Prisma / pg driver with indexed UUID lookups.