package personrelative

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	ev "simrs-vx/internal/domain/main-entities/village"
	erp "simrs-vx/internal/domain/references/person"
)

type PersonRelative struct {
	ecore.Main                             // adjust this according to the needs
	Person_Id         uint                 `json:"person_id"`
	Relationship_Code erp.RelationshipCode `json:"relationship_code" gorm:"not null;size:100"`
	Name              *string              `json:"name" gorm:"size:100"`
	Address           *string              `json:"address" gorm:"size:100"`
	Village_Code      *string              `json:"village_code" gorm:"size:10"`
	Village           *ev.Village          `json:"village,omitempty" gorm:"foreignKey:Village_Code;references:Code"`
	Gender_Code       *erp.GenderCode      `json:"gender_code" gorm:"size:10"`
	PhoneNumber       *string              `json:"phoneNumber" gorm:"size:30"`
	Education_Code    *erp.EducationCode   `json:"education_code" gorm:"size:10"`
	Occupation_Code   *erp.OcupationCode   `json:"occupation_code" gorm:"size:10"`
	Occupation_Name   *string              `json:"occupation_name" gorm:"size:50"`
	Responsible       bool                 `json:"responsible"`
}
