Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupMigrations ¶
func SetupMigrations(ctx context.Context) (*migrate.Migrations, error)
Types ¶
type Account ¶
type Account struct { bun.BaseModel `bun:"table:accounts,alias:acts"` ID string `bun:",unique,pk"` Username string `bun:"username,notnull"` Password []byte `bun:"password,notnull"` CreatedAt time.Time `bun:"created_at,notnull"` UpdatedAt time.Time `bun:"updated_at,notnull"` }
func NewAccount ¶
func (*Account) BeforeAppendModel ¶
func (*Account) GetCreatedAt ¶
func (*Account) GetUsername ¶
Click to show internal directories.
Click to hide internal directories.