package insurancecompany

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	er "simrs-vx/internal/domain/main-entities/regency"
)

type InsuranceCompany struct {
	ecore.SmallMain             // adjust this according to the needs
	Code            string      `json:"code" gorm:"unique;size:20"`
	Name            string      `json:"name" gorm:"size:50"`
	Regency_Code    *string     `json:"regency_code" gorm:"size:4"`
	Regency         *er.Regency `json:"regency,omitempty" gorm:"foreignKey:Regency_Code;references:Code"`
	Address         string      `json:"address" gorm:"size:100"`
	PhoneNumber     string      `json:"phoneNumber" gorm:"size:20"`
}
