package district

import (
	edb "simrs-vx/internal/domain/main-entities/district/base"
	er "simrs-vx/internal/domain/main-entities/regency"
	evb "simrs-vx/internal/domain/main-entities/village/base"
)

type District struct {
	edb.Basic
	Regency  *er.Regency  `json:"regency,omitempty" gorm:"foreignKey:Regency_Code;references:Code"`
	Villages []*evb.Basic `json:"villages,omitempty" gorm:"foreignKey:District_Code;references:Code"`
}
