entity

package
v0.0.0-...-9e73b81 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Id              int          `db:"id"`
	Location        string       `db:"location"`
	Port            uint         `db:"port"`
	UserId          int          `db:"user_id"`
	EncryptedSecret string       `db:"encrypted_secret"`
	IpAddress       string       `db:"ip_address"`
	ServerId        int          `db:"server_id"`
	IsActive        bool         `db:"is_active"`
	LastActivate    sql.NullTime `db:"last_activate"`
}

type ConnectionPortCount

type ConnectionPortCount struct {
	Port  uint `db:"port"`
	Count int  `db:"count"`
}

type Server

type Server struct {
	Id        int    `db:"id"`
	IpAddress string `db:"ip_address"`
	Location  string `db:"location"`
}

type Term

type Term struct {
	Id          int        `db:"id"`
	OrderNumber int        `db:"order_number"`
	Text        string     `db:"text"`
	CreatedAt   *time.Time `db:"created_at"`
	UpdatedAt   *time.Time `db:"updated_at"`
}

type User

type User struct {
	Id             int    `db:"id"`
	UserId         int64  `db:"user_id"`
	Username       string `db:"username"`
	FirstName      string `db:"first_name"`
	LastName       string `db:"last_name"`
	ChatId         int64  `db:"chat_id"`
	ChatType       string `db:"chat_type"`
	IsConfirmTerms bool   `db:"is_terms_confirmed"`
}

Jump to

Keyboard shortcuts

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