models

package
v0.0.0-...-ebfe39f Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 1 Imported by: 11

Documentation

Overview

Package models contain entities that are essential for the app.

Package models contain entities that are essential for the app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnterMode

type EnterMode bool

Mode shows whether the application is in development mode or production mode.

type Media

type Media uint
const (
	Book Media
	Movie
)

type Mode

type Mode uint

Mode shows whether the application is in development mode or production mode.

const (
	Development Mode
	Production
)

type User

type User struct {
	ID         int64     `bson:"id"`
	TelegramID int64     `bson:"telegram_id,omitempty"`
	Username   string    `bson:"username"`
	FirstName  string    `bson:"firstname,omitempty"`
	LastName   string    `bson:"lastname"`
	JoinedAt   time.Time `bson:"joined_at,omitempty"`
}

User represents user table structure in a database.

Jump to

Keyboard shortcuts

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