2021-12-06 11:46:11 +03:00
|
|
|
package db
|
|
|
|
|
|
|
|
type Chat struct {
|
2022-11-09 00:45:08 +03:00
|
|
|
Id int64
|
|
|
|
Title string
|
|
|
|
TopicId int64 `bson:"topic_id"`
|
2021-12-06 11:46:11 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
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"`
|
2022-04-05 11:18:10 +03:00
|
|
|
JoinedMessage int `bson:"joined_message"`
|
2021-12-07 10:30:23 +03:00
|
|
|
}
|