mirror of
https://github.com/cole-maxwell1/todo-hetzner.git
synced 2026-10-27 19:02:49 -05:00
feat: add Hetzner-hosted todo application stack
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.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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'"`
|
||||
}
|
||||
Reference in New Issue
Block a user