2025-09-10 17:18:18 +07:00

21 lines
666 B
Go

package db
import (
"time"
)
// Region represents a geographical region (e.g., "West Campus", "Downtown")
type Groups struct {
GroupID int `json:"regionId" db:"region_id"`
GroupName string `json:"name" db:"name"`
}
// Building represents a building within a region
type Tasks struct {
TaskID int `json:"buildingId" db:"building_id"`
TaskName string `json:"name" db:"name"`
TaskDescription int `json:"floorCount,omitempty" db:"floor_count"`
GroupID int `json:"regionId" db:"region_id"`
IsDone bool `json:"isDone" db:"is_done"`
CreatedAt time.Time `json:"createdAt" db:"created_at"`
}