rag/ent/migrate/schema.go

40 lines
990 B
Go
Raw Normal View History

2024-07-14 15:58:32 +00:00
// Code generated by ent, DO NOT EDIT.
package migrate
import (
"entgo.io/ent/dialect/sql/schema"
"entgo.io/ent/schema/field"
)
var (
// LibrariesColumns holds the columns for the "libraries" table.
LibrariesColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt, Increment: true},
{Name: "name", Type: field.TypeString},
{Name: "user_id", Type: field.TypeUint64},
{Name: "created_at", Type: field.TypeTime},
{Name: "updated_at", Type: field.TypeTime},
}
// LibrariesTable holds the schema information for the "libraries" table.
LibrariesTable = &schema.Table{
Name: "libraries",
Columns: LibrariesColumns,
PrimaryKey: []*schema.Column{LibrariesColumns[0]},
Indexes: []*schema.Index{
{
Name: "library_name_user_id",
Unique: false,
Columns: []*schema.Column{LibrariesColumns[1], LibrariesColumns[2]},
},
},
}
// Tables holds all the tables in the schema.
Tables = []*schema.Table{
LibrariesTable,
}
)
func init() {
}