package base

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	ee "simrs-vx/internal/domain/main-entities/employee"
)

type Basic struct {
	ecore.SmallMain              // adjust this according to the needs
	Division_Code   *string      `json:"division_code" gorm:"size:10"`
	Code            string       `json:"code" gorm:"unique;size:10"`
	Name            string       `json:"name" gorm:"size:50"`
	HeadStatus      bool         `json:"headStatus"`
	Employee_Id     *uint        `json:"employee_id"`
	Employee        *ee.Employee `json:"employee,omitempty" gorm:"foreignKey:Employee_Id;references:Id"`
}

func (Basic) TableName() string {
	return "DivisionPosition"
}
