fix: some api bug

This commit is contained in:
wwweww
2026-03-31 22:12:06 +08:00
parent c5ff4f0216
commit e7970ac25f
219 changed files with 16195 additions and 2126 deletions
@@ -12,14 +12,14 @@ var (
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: "role", Type: field.TypeString},
{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},
{Name: "reject_reason", Type: field.TypeString, Nullable: true},
{Name: "reviewed_by", Type: field.TypeInt64, Nullable: true},
{Name: "reviewed_at", Type: field.TypeTime, Nullable: true},
{Name: "created_at", Type: field.TypeTime, Nullable: true},
{Name: "updated_at", Type: field.TypeTime, Nullable: true},
}
// UserVerificationsTable holds the schema information for the "user_verifications" table.
UserVerificationsTable = &schema.Table{