package personinsurance

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	ei "simrs-vx/internal/domain/main-entities/insurance-company"
)

type PersonInsurance struct {
	ecore.Main
	Person_Id           *uint                `json:"person_id" gorm:"uniqueIndex:idx_person_insurance"`
	InsuranceCompany_Id *uint                `json:"insurance_id"`
	InsuranceCompany    *ei.InsuranceCompany `json:"insurance,omitempty" gorm:"foreignKey:InsuranceCompany_Id;references:Id"`
	Ref_Number          *string              `json:"ref_number" gorm:"unique;size:20"`
	DefaultStatus       *bool                `json:"default_status" gorm:"uniqueIndex:idx_person_insurance"`
}
