Files
qitongxue-api/internal/model/entity/entity_event_seats.go

19 lines
789 B
Go
Raw Normal View History

2026-09-29 10:57:01 +08:00
package entity
import "github.com/gogf/gf/v2/os/gtime"
// EventSeats 座位(默认编号 1..capacity,顺时针自桌正上方(12 点)起)。
//
// IsManual 标记该座位号是否被人工改过(决定「自动排座」fill 是否保留);
// EmployeeId 为 NULL 表示空位。去重键 (EventId, TableId, SeatNo)。
type EventSeats struct {
Id int64 `json:"id"`
EventId int64 `json:"event_id"` // 冗余,便于按活动查座
TableId int64 `json:"table_id"`
SeatNo int `json:"seat_no"`
IsManual int `json:"is_manual"` // 1 已手工指定编号 / 0 默认
EmployeeId *int64 `json:"employee_id"` // NULL=空位
CreatedAt *gtime.Time `json:"created_at"`
UpdatedAt *gtime.Time `json:"updated_at"`
}