Files
simrsx-be/internal/domain/main-entities/person-relative/entity.go
T
2025-09-18 14:38:18 +07:00

24 lines
1.2 KiB
Go

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"`
}