models

package
v0.0.0-...-1be15b7 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 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 AddTrackingDialog

type AddTrackingDialog struct {
	ID                 int64     `db:"id" json:"id"`
	UserID             int64     `db:"user_id" json:"userId"`
	Step               int64     `db:"step" json:"step"`
	FutureTrackingName string    `db:"future_tracking_name" json:"futureTrackingName"`
	Created            time.Time `db:"created" json:"created"`
	Modified           time.Time `db:"modified" json:"modified"`
}

AddTrackingDialog is a model for monitoring the process of a tracking addition

type Tracking

type Tracking struct {
	ID       int64     `db:"id" json:"id"`
	UserID   int64     `db:"user_id" json:"userId"`
	Name     string    `db:"name" json:"name"`
	Value    string    `db:"value" json:"value"`
	Status   string    `db:"status" json:"status"`
	Weight   string    `db:"weight" json:"weight"`
	Created  time.Time `db:"created" json:"created"`
	Modified time.Time `db:"modified" json:"modified"`
}

Tracking is a model of tracking added by a user

type UsaAddress

type UsaAddress struct {
	ID          int64     `db:"id" json:"id" diff:"-"`
	Street      string    `db:"street" json:"street" diff:"street"`
	City        string    `db:"city" json:"city" diff:"city"`
	State       string    `db:"state" json:"state" diff:"state"`
	Zip         string    `db:"zip" json:"zip" diff:"zip"`
	PhoneNumber string    `db:"phone" json:"phone" diff:"phone"`
	Created     time.Time `db:"created" json:"created" diff:"-"`
	Modified    time.Time `db:"modified" json:"modified" diff:"-"`
}

UsaAddress is a model of ELS usa address

type User

type User struct {
	ID       int64     `db:"id" json:"id"`
	ChatID   int64     `db:"chat_id" json:"chatId"`
	Language string    `db:"language" json:"language"`
	Created  time.Time `db:"created" json:"created"`
	Modified time.Time `db:"modified" json:"modified"`
}

User is a user model

Jump to

Keyboard shortcuts

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