19 lines
506 B
Go
19 lines
506 B
Go
package base
|
|
|
|
import (
|
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
|
)
|
|
|
|
type Basic struct {
|
|
ecore.SmallMain // adjust this according to the needs
|
|
Unit_Id *uint16 `json:"unit_id" gorm:"not null"`
|
|
Code string `json:"code" gorm:"unique;size:10;not null"`
|
|
Name string `json:"name" gorm:"size:30;not null"`
|
|
HeadStatus bool `json:"headStatus"`
|
|
Employee_Id *uint `json:"employee_id"`
|
|
}
|
|
|
|
func (Basic) TableName() string {
|
|
return "UnitPosition"
|
|
}
|