Files
qitongxue-api/internal/model/entity/entity_event_seats.go
2026-09-29 10:57:01 +08:00

19 lines
789 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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"`
}