dataobject

package
v0.0.0-...-e41513e Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserPasswordsDO

type UserPasswordsDO struct {
	Id          int64  `db:"id"`
	UserId      int32  `db:"user_id"`
	ServerSalt  string `db:"server_salt"`
	Hash        string `db:"hash"`
	Salt        string `db:"salt"`
	Hint        string `db:"hint"`
	Email       string `db:"email"`
	HasRecovery int8   `db:"has_recovery"`
	Code        string `db:"code"`
	CodeExpired int32  `db:"code_expired"`
	Attempts    int32  `db:"attempts"`
	State       int8   `db:"state"`
	CreatedAt   string `db:"created_at"`
	UpdatedAt   string `db:"updated_at"`
}

type UserPresencesDO

type UserPresencesDO struct {
	Id                int32  `db:"id"`
	UserId            int32  `db:"user_id"`
	LastSeenAt        int64  `db:"last_seen_at"`
	LastSeenAuthKeyId int64  `db:"last_seen_auth_key_id"`
	LastSeenIp        string `db:"last_seen_ip"`
	Version           int64  `db:"version"`
	CreatedAt         string `db:"created_at"`
	UpdatedAt         string `db:"updated_at"`
}

type UserPrivacysDO

type UserPrivacysDO struct {
	Id        int32  `db:"id"`
	UserId    int32  `db:"user_id"`
	KeyType   int8   `db:"key_type"`
	Rules     string `db:"rules"`
	CreatedAt string `db:"created_at"`
	UpdatedAt string `db:"updated_at"`
}

type UsersDO

type UsersDO struct {
	Id             int32  `db:"id"`
	AccessHash     int64  `db:"access_hash"`
	FirstName      string `db:"first_name"`
	LastName       string `db:"last_name"`
	Username       string `db:"username"`
	Phone          string `db:"phone"`
	CountryCode    string `db:"country_code"`
	Bio            string `db:"bio"`
	About          string `db:"about"`
	State          int32  `db:"state"`
	IsBot          int8   `db:"is_bot"`
	Banned         int64  `db:"banned"`
	BannedReason   string `db:"banned_reason"`
	AccountDaysTtl int32  `db:"account_days_ttl"`
	Photos         string `db:"photos"`
	Deleted        int8   `db:"deleted"`
	DeletedReason  string `db:"deleted_reason"`
	CreatedAt      string `db:"created_at"`
	UpdatedAt      string `db:"updated_at"`
	BannedAt       string `db:"banned_at"`
	DeletedAt      string `db:"deleted_at"`
}

Jump to

Keyboard shortcuts

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