package constants

type TableStatus string

const (
	TableStatusAvailable   TableStatus = "available"
	TableStatusOccupied    TableStatus = "occupied"
	TableStatusReserved    TableStatus = "reserved"
	TableStatusCleaning    TableStatus = "cleaning"
	TableStatusMaintenance TableStatus = "maintenance"
)

func GetAllTableStatuses() []TableStatus {
	return []TableStatus{
		TableStatusAvailable,
		TableStatusOccupied,
		TableStatusReserved,
		TableStatusCleaning,
		TableStatusMaintenance,
	}
}

func IsValidTableStatus(status TableStatus) bool {
	for _, validStatus := range GetAllTableStatuses() {
		if status == validStatus {
			return true
		}
	}
	return false
}
