Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Migrations = migrate.NewMigrations()
Functions ¶
This section is empty.
Types ¶
type AdminUser ¶
type AdminUser struct { ID int64 `bun:",pk,autoincrement"` Name string `bun:",nullzero,notnull"` Email string `bun:",nullzero,notnull,unique"` Password string `bun:",nullzero,notnull"` Roles string `bun:"type:text,nullzero,notnull"` CreatedAt time.Time `bun:"type:timestamp,nullzero,notnull,default:current_timestamp"` UpdatedAt time.Time `bun:"type:timestamp,nullzero,notnull,default:current_timestamp"` }
type User ¶
type User struct { ID int64 `bun:",pk,autoincrement"` Name string `bun:",nullzero,notnull"` Email string `bun:",nullzero,notnull,unique"` Password string `bun:",nullzero,notnull"` CreatedAt time.Time `bun:"type:timestamp,nullzero,notnull,default:current_timestamp"` UpdatedAt time.Time `bun:"type:timestamp,nullzero,notnull,default:current_timestamp"` }
Click to show internal directories.
Click to hide internal directories.