refactor: Clean up whitespace in User and Farmer models; remove unused soilType and soilPH fields from Farm model

This commit is contained in:
Abdul Kholik Sobary 2025-07-07 16:15:47 +07:00
parent f8f7f782ee
commit aaf60a0a2a
1 changed files with 8 additions and 10 deletions

View File

@ -279,12 +279,12 @@ model User {
updatedAt DateTime @updatedAt updatedAt DateTime @updatedAt
// Relations // Relations
farmer Farmer? farmer Farmer?
buyer Buyer? buyer Buyer?
administrator Administrator? administrator Administrator?
notifications NotificationRecipient[] notifications NotificationRecipient[]
createdFarmers Farmer[] @relation("FarmerCreatedBy") createdFarmers Farmer[] @relation("FarmerCreatedBy")
updatedFarmers Farmer[] @relation("FarmerUpdatedBy") updatedFarmers Farmer[] @relation("FarmerUpdatedBy")
@@map("users") @@map("users")
} }
@ -356,8 +356,8 @@ model Farmer {
joinedAt DateTime @default(now()) joinedAt DateTime @default(now())
createdAt DateTime @default(now()) createdAt DateTime @default(now())
updatedAt DateTime @updatedAt updatedAt DateTime @updatedAt
createdBy String? // User ID who created this farmer record createdBy String? // User ID who created this farmer record
updatedBy String? // User ID who last updated this farmer record updatedBy String? // User ID who last updated this farmer record
// Relations // Relations
user User @relation(fields: [userId], references: [id], onDelete: Cascade) user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@ -738,8 +738,6 @@ model Farm {
elevation Float? // meters above sea level elevation Float? // meters above sea level
// Farm characteristics // Farm characteristics
soilType String?
soilPH Float?
waterSource WaterSource? waterSource WaterSource?
irrigationType IrrigationType? irrigationType IrrigationType?
slope SlopeType? slope SlopeType?