39 lines
1.6 KiB
Go
39 lines
1.6 KiB
Go
package m_pegawai
|
|
|
|
import "time"
|
|
|
|
type MPegawai struct {
|
|
NoPeg uint `gorm:"column:no_peg;primaryKey"`
|
|
NamaPeg string `gorm:"column:nama_peg"`
|
|
NIPB string `gorm:"column:nipb"`
|
|
Gol string `gorm:"column:gol"`
|
|
SatuanKerja string `gorm:"column:satuan_kerja"`
|
|
Ruang string `gorm:"column:ruang"`
|
|
Pendidikan string `gorm:"column:pendidikan"`
|
|
Tenaga string `gorm:"column:tenaga"`
|
|
Tenaga1 string `gorm:"column:tenaga1"`
|
|
Tenaga2 string `gorm:"column:tenaga2"`
|
|
TMTMasuk *time.Time `gorm:"column:tmt_masuk"`
|
|
TempatLahir string `gorm:"column:tmp_lahir"`
|
|
TanggalLahir *time.Time `gorm:"column:tgl_lahir"`
|
|
Alamat string `gorm:"column:alamat"`
|
|
Telepon string `gorm:"column:telepon"`
|
|
HP string `gorm:"column:hp"`
|
|
Karpeg string `gorm:"column:karpeg"`
|
|
Kelamin string `gorm:"column:kelamin"`
|
|
Agama string `gorm:"column:agama"`
|
|
StatusTubel uint16 `gorm:"column:status_tubel"` // smallint → bool
|
|
NIK string `gorm:"column:nik"`
|
|
Seksi string `gorm:"column:seksi"`
|
|
TMTAwalSIP *time.Time `gorm:"column:tmt_awal_sip"`
|
|
TMTAkhirSIPStr *time.Time `gorm:"column:tmt_akhir_sip_str"`
|
|
NoSIP string `gorm:"column:no_sip"`
|
|
NoSTR string `gorm:"column:no_str"`
|
|
LoginID string `gorm:"column:login_id"`
|
|
CodeKasir string `gorm:"column:code_kasir"`
|
|
}
|
|
|
|
func (MPegawai) TableName() string {
|
|
return "m_pegawai"
|
|
}
|