model

package
v0.0.0-...-e384ca1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat struct {
	Id              string   `json:"id" db:"id"`
	Name            string   `json:"name" db:"name"`
	Users           []string `json:"users" db:"users"`
	CreatedAt       int64    `json:"created_at" db:"created_at"`
	LastMessageTime int64    `json:"last_message_time" db:"last_message_time"`
}

type Message

type Message struct {
	Id        string `json:"id" db:"id"`
	ChatId    string `json:"chat_id" db:"chat_id"`
	AuthorId  string `json:"author_id" db:"author_id"`
	Text      string `json:"text" db:"text"`
	CreatedAt int64  `json:"created_at" db:"created_at"`
}

type User

type User struct {
	Id        string `json:"id" db:"id"`
	Username  string `json:"username" db:"username"`
	CreatedAt int64  `json:"created_at" db:"created_at"`
}

Jump to

Keyboard shortcuts

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