add: some user api and all api desc

This commit is contained in:
wwweww
2026-02-27 19:17:01 +08:00
parent a0c720eb2f
commit 5930fb0dde
156 changed files with 9457 additions and 1086 deletions
@@ -0,0 +1,37 @@
// 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() {
}