barumongo

This commit is contained in:
2025-04-24 14:31:22 +07:00
parent 76abeaf8ee
commit b6764df2e0
10 changed files with 168 additions and 14 deletions
+27
View File
@@ -0,0 +1,27 @@
package satu_data
type Desakelurahan struct {
ID uint
NamaDesa string `gorm:"column:Desa_Kelurahan"`
Kecamatan Kecamatan `gorm:"foreignkey:Kecamatan_ID"`
Kecamatan_ID uint
}
type Kecamatan struct {
ID uint
NamaKecamatan string `gorm:"column:Kecamatan"`
KabupatenKota KabupatenKota `gorm:"foreignkey:Kabupaten_kota_id"`
Kabupaten_kota_ID uint
}
type KabupatenKota struct {
ID uint
NamaKabupaten string `gorm:"column:Kabupaten_Kota"`
Provinsi Provinsi `gorm:"foreignkey:Provinsi_id"`
Provinsi_id uint
}
type Provinsi struct {
ID uint
NamaProvinsi string `gorm:"column:Provinsi"`
}