mirror of
https://github.com/cole-maxwell1/todo-hetzner.git
synced 2026-10-27 19:02:49 -05:00
Implement the server-rendered Go todo application with PostgreSQL persistence, Tailwind styling, health checks, and test coverage. Provision production and staging infrastructure with OpenTofu, including private networking, static IPs, Object Storage backups, and load balancing. Configure Rocky Linux hosts with Ansible, rootless Podman, PostgreSQL, WAL-G backup automation, staging restores, and generated inventory.
12 lines
331 B
Go
12 lines
331 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type Todo struct {
|
|
ID int64 `xorm:"pk autoincr 'id'"`
|
|
Title string `xorm:"varchar(200) notnull 'title'"`
|
|
Completed bool `xorm:"notnull default false 'completed'"`
|
|
CreatedAt time.Time `xorm:"created 'created_at'"`
|
|
UpdatedAt time.Time `xorm:"created updated 'updated_at'"`
|
|
}
|