38 lines
1.2 KiB
Go
38 lines
1.2 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package migrate
|
|
|
|
import (
|
|
"entgo.io/ent/dialect/sql/schema"
|
|
"entgo.io/ent/schema/field"
|
|
)
|
|
|
|
var (
|
|
// UserVerificationsColumns holds the columns for the "user_verifications" table.
|
|
UserVerificationsColumns = []*schema.Column{
|
|
{Name: "id", Type: field.TypeInt64, Increment: true},
|
|
{Name: "user_id", Type: field.TypeInt64, Unique: true},
|
|
{Name: "role", Type: field.TypeString, Unique: true},
|
|
{Name: "status", Type: field.TypeString, Default: "pending"},
|
|
{Name: "materials", Type: field.TypeJSON},
|
|
{Name: "reject_reason", Type: field.TypeString, Default: ""},
|
|
{Name: "reviewed_by", Type: field.TypeInt64},
|
|
{Name: "reviewed_at", Type: field.TypeTime},
|
|
{Name: "created_at", Type: field.TypeTime},
|
|
{Name: "updated_at", Type: field.TypeTime},
|
|
}
|
|
// UserVerificationsTable holds the schema information for the "user_verifications" table.
|
|
UserVerificationsTable = &schema.Table{
|
|
Name: "user_verifications",
|
|
Columns: UserVerificationsColumns,
|
|
PrimaryKey: []*schema.Column{UserVerificationsColumns[0]},
|
|
}
|
|
// Tables holds all the tables in the schema.
|
|
Tables = []*schema.Table{
|
|
UserVerificationsTable,
|
|
}
|
|
)
|
|
|
|
func init() {
|
|
}
|