domain

package
v0.0.0-...-32fa971 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvalidToken

type InvalidToken struct {
	Id       int        `dd:"pk;auto;type:int(11)"`
	Token    string     `dd:"type:varchar(120);extra:comment 'revoked token';unique"`
	ExpireAt *time.Time `dd:"type:datetime;extra:comment 'expire time'"`
	CreateAt *time.Time `dd:"type:datetime;default:CURRENT_TIMESTAMP"`
	UpdateAt *time.Time `dd:"type:datetime;default:CURRENT_TIMESTAMP;extra:on update CURRENT_TIMESTAMP"`
	DeleteAt *time.Time `dd:"type:datetime"`
}

type User

type User struct {
	Id       int        `dd:"pk;auto;type:int(11)"`
	Username string     `dd:"type:varchar(45);extra:comment 'username';unique"`
	Password string     `dd:"type:varchar(60);extra:comment 'password'"`
	Name     string     `dd:"type:varchar(45);extra:comment 'real name'"`
	Phone    string     `dd:"type:varchar(45);extra:comment 'phone number'"`
	Dept     string     `dd:"type:varchar(45);extra:comment 'department'"`
	Avatar   string     `dd:"type:varchar(255);extra:comment 'user avatar'"`
	CreateAt *time.Time `dd:"type:datetime;default:CURRENT_TIMESTAMP"`
	UpdateAt *time.Time `dd:"type:datetime;default:CURRENT_TIMESTAMP;extra:on update CURRENT_TIMESTAMP"`
	DeleteAt *time.Time `dd:"type:datetime"`
}

Jump to

Keyboard shortcuts

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