1
0
Fork 0
forked from goffee/todoapp
todoapp/models/todo.go

17 lines
221 B
Go
Raw Permalink Normal View History

2024-09-15 14:36:50 -04:00
package models
import "gorm.io/gorm"
type Todo struct {
gorm.Model
Title string
Body string
IsDone bool
// add your field here...
}
// Override the table name
func (Todo) TableName() string {
return "todos"
}