8c6250f0/todo/todo_gen.go
2025-02-20 16:51:41 +01:00

32 lines
638 B
Go

package todo
// AUTO GENERATED
// DO NOT EDIT
import (
"fmt"
"time"
)
type Todo struct {
Id int `db:"id"`
Name string `db:"name"`
Completed bool `db:"completed"`
Duedate time `db:"duedate"`
UserId int `db:"user_id"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
func (s *Todo) String() string {
return fmt.Sprint("Todo{ ",
"Id: ", s.Id, ", ",
"Name: ", s.Name, ", ",
"Completed: ", s.Completed, ", ",
"Duedate: ", s.Duedate, ", ",
"UserId: ", s.UserId, ", ",
"CreatedAt: ", s.CreatedAt, ", ",
"UpdatedAt: ", s.UpdatedAt, ", ",
"}")
}