models

package
v0.0.0-...-48b9d42 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	Id          int       `xorm:"not null pk autoincr INTEGER"`
	PhoneNumber string    `xorm:"not null default '' unique unique VARCHAR(32)"`
	Verified    bool      `xorm:"not null default false BOOL"`
	ChangedPwd  bool      `xorm:"not null default false BOOL"`
	Password    string    `xorm:"not null default '' VARCHAR(256)"`
	Created     time.Time `xorm:"not null default now() DATETIME"`
}

func (*Credential) TableName

func (m *Credential) TableName() string

type Inspector

type Inspector struct {
	Id       int       `xorm:"not null pk autoincr INTEGER"`
	Username string    `xorm:"not null default '' VARCHAR(256)"`
	Password string    `xorm:"not null default '' VARCHAR(256)"`
	Created  time.Time `xorm:"not null default now() DATETIME"`
}

func (*Inspector) TableName

func (m *Inspector) TableName() string

Jump to

Keyboard shortcuts

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