Files
juwan-backend/app/users/rpc/internal/models/migrate/schema.go
T
2026-02-27 05:42:13 +08:00

43 lines
1.3 KiB
Go

// Code generated by ent, DO NOT EDIT.
package migrate
import (
"entgo.io/ent/dialect/sql/schema"
"entgo.io/ent/schema/field"
)
var (
// UsersColumns holds the columns for the "users" table.
UsersColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt64, Increment: true},
{Name: "username", Type: field.TypeString, Unique: true},
{Name: "password_hash", Type: field.TypeString},
{Name: "email", Type: field.TypeString, Unique: true},
{Name: "phone", Type: field.TypeString, Unique: true},
{Name: "nickname", Type: field.TypeString},
{Name: "avatar", Type: field.TypeString},
{Name: "bio", Type: field.TypeString},
{Name: "current_role", Type: field.TypeString},
{Name: "verified_roles", Type: field.TypeJSON},
{Name: "verification_status", Type: field.TypeJSON},
{Name: "is_admin", Type: field.TypeBool, Default: false},
{Name: "created_at", Type: field.TypeTime},
{Name: "updated_at", Type: field.TypeTime},
{Name: "deleted_at", Type: field.TypeTime},
}
// UsersTable holds the schema information for the "users" table.
UsersTable = &schema.Table{
Name: "users",
Columns: UsersColumns,
PrimaryKey: []*schema.Column{UsersColumns[0]},
}
// Tables holds all the tables in the schema.
Tables = []*schema.Table{
UsersTable,
}
)
func init() {
}