// ================================================================================= // This file is auto-generated by the GoFrame CLI tool. You may modify it as needed. // ================================================================================= package table import ( "context" "github.com/gogf/gf/v2/database/gdb" ) // AuthRefreshSession defines the fields of table "auth_refresh_session" with their properties. // This map is used internally by GoFrame ORM to understand table structure. var AuthRefreshSession = map[string]*gdb.TableField{ "id": { Index: 0, Name: "id", Type: "bigint unsigned", Null: false, Key: "PRI", Default: nil, Extra: "auto_increment", Comment: "", }, "subject_id": { Index: 1, Name: "subject_id", Type: "bigint unsigned", Null: false, Key: "MUL", Default: nil, Extra: "", Comment: "????????? ID", }, "scope": { Index: 2, Name: "scope", Type: "varchar(16)", Null: false, Key: "", Default: nil, Extra: "", Comment: "user/admin", }, "terminal": { Index: 3, Name: "terminal", Type: "varchar(16)", Null: false, Key: "", Default: "", Extra: "", Comment: "mini/h5/app", }, "jti": { Index: 4, Name: "jti", Type: "char(43)", Null: false, Key: "UNI", Default: nil, Extra: "", Comment: "JWT ??????", }, "expired_at": { Index: 5, Name: "expired_at", Type: "datetime", Null: false, Key: "MUL", Default: nil, Extra: "", Comment: "", }, "revoked_at": { Index: 6, Name: "revoked_at", Type: "datetime", Null: true, Key: "", Default: nil, Extra: "", Comment: "", }, "created_at": { Index: 7, Name: "created_at", Type: "datetime", Null: false, Key: "", Default: nil, Extra: "", Comment: "", }, "updated_at": { Index: 8, Name: "updated_at", Type: "datetime", Null: false, Key: "", Default: nil, Extra: "", Comment: "", }, "deleted_at": { Index: 9, Name: "deleted_at", Type: "datetime", Null: true, Key: "MUL", Default: nil, Extra: "", Comment: "", }, } // SetAuthRefreshSessionTableFields registers the table fields definition to the database instance. // db: database instance that implements gdb.DB interface. // schema: optional schema/namespace name, especially for databases that support schemas. func SetAuthRefreshSessionTableFields(ctx context.Context, db gdb.DB, schema ...string) error { return db.GetCore().SetTableFields(ctx, "auth_refresh_session", AuthRefreshSession, schema...) }