2024-09-19 23:13:04 +00:00
|
|
|
// 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},
|
2024-09-29 06:36:39 +00:00
|
|
|
{Name: "ip_address", Type: field.TypeString, Nullable: true, Default: ""},
|
2024-09-19 23:13:04 +00:00
|
|
|
}
|
|
|
|
|
// 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() {
|
|
|
|
|
}
|