CalvinLiu123 9282bee836 commit
2025-09-17 13:55:53 +07:00

19 lines
516 B
Go

package db
import (
"time"
)
type Groups struct{
GroupId int `json:"group_id"`
GroupName string `json:"group_name"`
}
type Tasks struct{
TaskID int `json:"task_id"`
TaskName string `json:"task_name"` // Maps to "task" column in SQL
TaskDescription string `json:"task_desc"` // Maps to "task_desc" column in SQL (changed from *int to string)
GroupID int `json:"group_id"`
IsDone bool `json:"is_done"` // Maps to "isdone" column in SQL
CreatedAt time.Time `json:"created_at"`
}