barumongo
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user