migrations

package
v0.0.0-...-bf86ce8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 4 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL