diff --git a/src/module/topic_allocation/entity/topic_allocation.go b/src/module/topic_allocation/entity/topic_allocation.go index b75c27abd698456efbbf753d0225d57cba23d8f1..e979c6ad6364509823472a57258db30515abbf9f 100644 --- a/src/module/topic_allocation/entity/topic_allocation.go +++ b/src/module/topic_allocation/entity/topic_allocation.go @@ -9,6 +9,10 @@ type Topik struct { Pengguna Pengguna `gorm:"foreignKey:PengajuID"` } +func (Topik) TableName() string { + return "topik" +} + type Pengguna struct { ID string `gorm:"type:uuid;primaryKey" json:"id"` Nama string `json:"nama"` @@ -16,6 +20,10 @@ type Pengguna struct { Roles string `json:"roles"` } +func (Pengguna) TableName() string { + return "pengguna" +} + type GetAllReturnType struct { DaftarTopikData []Topik `json:"data"` MaxPage int `json:"maxPage"`