mirror of
https://github.com/kevin-DL/football_info_api.git
synced 2026-01-22 14:35:29 +00:00
Initial commit
This commit is contained in:
32
ent/migrate/schema.go
Normal file
32
ent/migrate/schema.go
Normal file
@@ -0,0 +1,32 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package migrate
|
||||
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
var (
|
||||
// ProfilesColumns holds the columns for the "profiles" table.
|
||||
ProfilesColumns = []*schema.Column{
|
||||
{Name: "id", Type: field.TypeUUID},
|
||||
{Name: "display_name", Type: field.TypeString},
|
||||
{Name: "user_id", Type: field.TypeUUID, Unique: true},
|
||||
{Name: "created_at", Type: field.TypeTime},
|
||||
{Name: "updated_at", Type: field.TypeTime},
|
||||
}
|
||||
// ProfilesTable holds the schema information for the "profiles" table.
|
||||
ProfilesTable = &schema.Table{
|
||||
Name: "profiles",
|
||||
Columns: ProfilesColumns,
|
||||
PrimaryKey: []*schema.Column{ProfilesColumns[0]},
|
||||
}
|
||||
// Tables holds all the tables in the schema.
|
||||
Tables = []*schema.Table{
|
||||
ProfilesTable,
|
||||
}
|
||||
)
|
||||
|
||||
func init() {
|
||||
}
|
||||
Reference in New Issue
Block a user