Files
upstream-mirror 4b3ad0b611
Some checks failed
Atlas CI Public / lint (push) Failing after 13s
Atlas CI Public / sync (push) Has been skipped
snapshot of https://github.com/ent/ent.git (master, 2026-09-15; blobs > 131072B omitted)
2026-09-15 22:12:36 +05:00

45 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.TypeInt, Increment: true},
{Name: "name", Type: field.TypeString},
}
// UsersTable holds the schema information for the "users" table.
UsersTable = &schema.Table{
Name: "users",
Columns: UsersColumns,
PrimaryKey: []*schema.Column{UsersColumns[0]},
}
// UserAuditLogsColumns holds the columns for the "user_audit_logs" table.
UserAuditLogsColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt, Increment: true},
{Name: "operation_type", Type: field.TypeString},
{Name: "operation_time", Type: field.TypeString},
{Name: "old_value", Type: field.TypeString, Nullable: true},
{Name: "new_value", Type: field.TypeString, Nullable: true},
}
// UserAuditLogsTable holds the schema information for the "user_audit_logs" table.
UserAuditLogsTable = &schema.Table{
Name: "user_audit_logs",
Columns: UserAuditLogsColumns,
PrimaryKey: []*schema.Column{UserAuditLogsColumns[0]},
}
// Tables holds all the tables in the schema.
Tables = []*schema.Table{
UsersTable,
UserAuditLogsTable,
}
)
func init() {
}