add seeder
This commit is contained in:
No files matched your search
@@ -0,0 +1,22 @@
|
||||
package m_login
|
||||
|
||||
type MLogin struct {
|
||||
NIP string `gorm:"column:nip;primaryKey"`
|
||||
Password string `gorm:"column:pwd"`
|
||||
SesReg string `gorm:"column:ses_reg"`
|
||||
KdPerawat uint `gorm:"column:kdperawat"`
|
||||
KdDokter uint `gorm:"column:kddokter"`
|
||||
NamaPegawai string `gorm:"column:nama_pegawai"`
|
||||
Roles int `gorm:"column:roles"`
|
||||
KdUnit uint `gorm:"column:kdunit"`
|
||||
Departemen string `gorm:"column:departemen"`
|
||||
StDokterRajalEksekutif *uint16 `gorm:"column:st_dokter_rajal_eksekutif"`
|
||||
StDokterRajalReguler *uint16 `gorm:"column:st_dokter_rajal_reguler"`
|
||||
StDokterRajalEmergency *uint16 `gorm:"column:st_dokter_rajal_emergency"`
|
||||
NIPB *string `gorm:"column:nipb"`
|
||||
Aktif uint16 `gorm:"column:aktif"`
|
||||
}
|
||||
|
||||
func (MLogin) TableName() string {
|
||||
return "m_login"
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user