/
ami_foto.go
28 lines (24 loc) · 1.13 KB
/
ami_foto.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package model
import "github.com/golang-module/carbon/v2"
type AmiFoto struct {
IDFoto int `gorm:"primaryKey;column:id_foto" json:"-"`
IDAmi int `gorm:"column:id_ami" json:"id_ami"`
Foto string `gorm:"column:foto" json:"foto"`
Tgl carbon.Carbon `gorm:"column:tgl" json:"tgl"`
IDAuditor int `gorm:"column:id_auditor" json:"id_auditor"`
}
type AmiFotoJoin struct {
IDFoto int `gorm:"primaryKey;column:id_foto" json:"-"`
IDAmi int `gorm:"column:id_ami" json:"id_ami"`
IDFakultas int `gorm:"column:id_fakultas" json:"id_fakultas"`
Fakultas string `gorm:"column:fakultas" json:"fakultas"`
IDProdi int `gorm:"column:id_prodi_unit" json:"id_prodi_unit"`
Prodi string `gorm:"column:prodi_unit" json:"prodi_unit"`
Foto string `gorm:"column:foto" json:"foto"`
Tgl carbon.Carbon `gorm:"column:tgl" json:"tgl"`
IDAuditor int `gorm:"column:id_auditor" json:"id_auditor"`
Auditor string `gorm:"column:auditor" json:"auditor"`
}
func (m *AmiFoto) TableName() string {
return "ami_foto"
}