package province

import erb "simrs-vx/internal/domain/main-entities/regency/base"

type Province struct {
	Id        int16       `json:"id" gorm:"primaryKey"`
	Code      string      `json:"code" gorm:"unique;size:2"`
	Name      string      `json:"name" gorm:"size:50"`
	Regencies []erb.Basic `json:"regencies,omitempty" gorm:"foreignKey:Province_Code;references:Code"`
}
