KickerBot/db/structs.go

21 lines
535 B
Go
Raw Normal View History

package db
type Chat struct {
2022-11-09 00:45:08 +03:00
Id int64
Title string
TopicId int64 `bson:"topic_id"`
}
type User struct {
2022-01-28 01:00:40 +03:00
Id int64
ChatId int64 `bson:"chat_id"`
Username string `bson:"username"`
FirstName string `bson:"first_name"`
LastName string `bson:"last_name"`
CorrectAnswer int8 `bson:"correct_answer"`
CaptchaMessage int `bson:"captcha_message"`
IsBanned bool `bson:"is_banned"`
2022-02-02 00:37:58 +03:00
DateJoined int64 `bson:"date_joined"`
JoinedMessage int `bson:"joined_message"`
}