htmgo/examples/todo-list/ent/migrate/schema.go
2024-09-22 21:33:22 -05:00

33 lines
915 B
Go

// Code generated by ent, DO NOT EDIT.
package migrate
import (
"entgo.io/ent/dialect/sql/schema"
"entgo.io/ent/schema/field"
)
var (
// TasksColumns holds the columns for the "tasks" table.
TasksColumns = []*schema.Column{
{Name: "id", Type: field.TypeUUID},
{Name: "name", Type: field.TypeString, Default: "unknown"},
{Name: "created_at", Type: field.TypeTime, Default: "CURRENT_TIMESTAMP"},
{Name: "updated_at", Type: field.TypeTime, Default: "CURRENT_TIMESTAMP"},
{Name: "completed_at", Type: field.TypeTime, Nullable: true},
{Name: "tags", Type: field.TypeJSON, Nullable: true},
}
// TasksTable holds the schema information for the "tasks" table.
TasksTable = &schema.Table{
Name: "tasks",
Columns: TasksColumns,
PrimaryKey: []*schema.Column{TasksColumns[0]},
}
// Tables holds all the tables in the schema.
Tables = []*schema.Table{
TasksTable,
}
)
func init() {
}