fix: rename DistribusiUmur.kelompok to rentangUmur to match UI/API
- Update Prisma schema: kelompok -> rentangUmur - Update seed data JSON: kelompok -> rentangUmur - Update seeder file: use rentangUmur field - This fixes the empty data issue in distribusi-umur admin page Note: Run 'bunx prisma db push' to apply schema migration Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -2335,14 +2335,14 @@ model DistribusiAgama {
|
||||
|
||||
// ========================================= DISTRIBUSI UMUR ========================================= //
|
||||
model DistribusiUmur {
|
||||
id String @id @default(cuid())
|
||||
kelompok String // Kelompok umur (e.g., "0-14", "15-24", "25-54", "55-64", "65+")
|
||||
jumlah Int // Jumlah penduduk
|
||||
tahun Int // Tahun data
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
deletedAt DateTime?
|
||||
isActive Boolean @default(true)
|
||||
id String @id @default(cuid())
|
||||
rentangUmur String // Rentang umur (e.g., "0-14", "15-24", "25-54", "55-64", "65+")
|
||||
jumlah Int // Jumlah penduduk
|
||||
tahun Int // Tahun data
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
deletedAt DateTime?
|
||||
isActive Boolean @default(true)
|
||||
|
||||
@@index([tahun])
|
||||
@@index([isActive])
|
||||
|
||||
Reference in New Issue
Block a user