2024-02-19 16:33:15 +00:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
// versions:
|
2025-05-14 10:13:40 +00:00
|
|
|
// sqlc v1.29.0
|
2024-02-19 16:33:15 +00:00
|
|
|
|
|
|
|
package sqlcgen
|
|
|
|
|
|
|
|
import (
|
|
|
|
"database/sql"
|
2024-04-17 17:18:52 +00:00
|
|
|
"encoding/json"
|
|
|
|
"time"
|
2024-02-19 16:33:15 +00:00
|
|
|
|
|
|
|
"github.com/google/uuid"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Account struct {
|
2024-07-14 07:39:02 +00:00
|
|
|
ID uuid.UUID `db:"id" json:"id"`
|
|
|
|
UserID string `db:"user_id" json:"user_id"`
|
|
|
|
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
2024-02-19 16:33:15 +00:00
|
|
|
}
|
|
|
|
|
2024-06-12 13:30:10 +00:00
|
|
|
type Accountsamo struct {
|
2024-06-12 13:37:25 +00:00
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Accountid string `db:"accountid" json:"accountid"`
|
|
|
|
Amoid int32 `db:"amoid" json:"amoid"`
|
|
|
|
Name string `db:"name" json:"name"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Createdat time.Time `db:"createdat" json:"createdat"`
|
|
|
|
Subdomain string `db:"subdomain" json:"subdomain"`
|
|
|
|
Country string `db:"country" json:"country"`
|
|
|
|
Driveurl string `db:"driveurl" json:"driveurl"`
|
2024-06-12 13:30:10 +00:00
|
|
|
}
|
|
|
|
|
2024-06-19 17:44:42 +00:00
|
|
|
type Amocontact struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Accountid int32 `db:"accountid" json:"accountid"`
|
|
|
|
Amoid int32 `db:"amoid" json:"amoid"`
|
|
|
|
Field string `db:"field" json:"field"`
|
|
|
|
}
|
|
|
|
|
2024-05-04 10:33:50 +00:00
|
|
|
type Amocrmstatus struct {
|
2024-05-04 10:40:24 +00:00
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Accountid int32 `db:"accountid" json:"accountid"`
|
|
|
|
Dealid int32 `db:"dealid" json:"dealid"`
|
|
|
|
Answerid int64 `db:"answerid" json:"answerid"`
|
|
|
|
Status string `db:"status" json:"status"`
|
|
|
|
Createdat sql.NullTime `db:"createdat" json:"createdat"`
|
2024-05-04 10:33:50 +00:00
|
|
|
}
|
|
|
|
|
2024-02-19 16:33:15 +00:00
|
|
|
type Answer struct {
|
2024-05-17 17:53:00 +00:00
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Content sql.NullString `db:"content" json:"content"`
|
|
|
|
QuizID int64 `db:"quiz_id" json:"quiz_id"`
|
|
|
|
QuestionID int64 `db:"question_id" json:"question_id"`
|
|
|
|
Fingerprint sql.NullString `db:"fingerprint" json:"fingerprint"`
|
|
|
|
Session sql.NullString `db:"session" json:"session"`
|
|
|
|
CreatedAt sql.NullTime `db:"created_at" json:"created_at"`
|
|
|
|
Result sql.NullBool `db:"result" json:"result"`
|
|
|
|
New sql.NullBool `db:"new" json:"new"`
|
|
|
|
Deleted sql.NullBool `db:"deleted" json:"deleted"`
|
|
|
|
Email string `db:"email" json:"email"`
|
|
|
|
DeviceType string `db:"device_type" json:"device_type"`
|
|
|
|
Device string `db:"device" json:"device"`
|
|
|
|
Os string `db:"os" json:"os"`
|
|
|
|
Browser string `db:"browser" json:"browser"`
|
|
|
|
Ip string `db:"ip" json:"ip"`
|
|
|
|
Start bool `db:"start" json:"start"`
|
|
|
|
Utm json.RawMessage `db:"utm" json:"utm"`
|
2024-09-18 16:22:34 +00:00
|
|
|
Version int32 `db:"version" json:"version"`
|
2024-02-19 16:33:15 +00:00
|
|
|
}
|
|
|
|
|
2025-05-13 13:40:18 +00:00
|
|
|
type Bitrixaccount struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Accountid string `db:"accountid" json:"accountid"`
|
|
|
|
Bitrixid string `db:"bitrixid" json:"bitrixid"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Createdat time.Time `db:"createdat" json:"createdat"`
|
|
|
|
Subdomain string `db:"subdomain" json:"subdomain"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Bitrixaccountuser struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Accountid string `db:"accountid" json:"accountid"`
|
|
|
|
Bitrixiduserid string `db:"bitrixiduserid" json:"bitrixiduserid"`
|
|
|
|
Name string `db:"name" json:"name"`
|
|
|
|
Lastname string `db:"lastname" json:"lastname"`
|
|
|
|
Secondname string `db:"secondname" json:"secondname"`
|
|
|
|
Title string `db:"title" json:"title"`
|
|
|
|
Email string `db:"email" json:"email"`
|
|
|
|
Ufdepartment []int32 `db:"ufdepartment" json:"ufdepartment"`
|
|
|
|
Workposition string `db:"workposition" json:"workposition"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Createdat time.Time `db:"createdat" json:"createdat"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Bitrixcontact struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Accountid string `db:"accountid" json:"accountid"`
|
|
|
|
Bitrixid int32 `db:"bitrixid" json:"bitrixid"`
|
|
|
|
Field string `db:"field" json:"field"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Bitrixcrmstatus struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Accountid string `db:"accountid" json:"accountid"`
|
|
|
|
Dealid int32 `db:"dealid" json:"dealid"`
|
|
|
|
Answerid int64 `db:"answerid" json:"answerid"`
|
|
|
|
Status string `db:"status" json:"status"`
|
|
|
|
Createdat time.Time `db:"createdat" json:"createdat"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Bitrixfield struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Bitrixid string `db:"bitrixid" json:"bitrixid"`
|
|
|
|
Accountid string `db:"accountid" json:"accountid"`
|
|
|
|
Entityid interface{} `db:"entityid" json:"entityid"`
|
|
|
|
Fieldname string `db:"fieldname" json:"fieldname"`
|
|
|
|
Editfromlabel string `db:"editfromlabel" json:"editfromlabel"`
|
|
|
|
Fieldtype interface{} `db:"fieldtype" json:"fieldtype"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Createdat time.Time `db:"createdat" json:"createdat"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Bitrixrule struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Accountid string `db:"accountid" json:"accountid"`
|
|
|
|
Quizid int32 `db:"quizid" json:"quizid"`
|
|
|
|
Performerid string `db:"performerid" json:"performerid"`
|
|
|
|
Pipelineid int32 `db:"pipelineid" json:"pipelineid"`
|
|
|
|
Typeid string `db:"typeid" json:"typeid"`
|
|
|
|
Stageid string `db:"stageid" json:"stageid"`
|
|
|
|
Sourceid string `db:"sourceid" json:"sourceid"`
|
|
|
|
Statusid string `db:"statusid" json:"statusid"`
|
|
|
|
Fieldsrule json.RawMessage `db:"fieldsrule" json:"fieldsrule"`
|
|
|
|
Tagstoadd json.RawMessage `db:"tagstoadd" json:"tagstoadd"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Createdat time.Time `db:"createdat" json:"createdat"`
|
|
|
|
Leadflag bool `db:"leadflag" json:"leadflag"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Bitrixtoken struct {
|
|
|
|
Accountid string `db:"accountid" json:"accountid"`
|
|
|
|
Refreshtoken string `db:"refreshtoken" json:"refreshtoken"`
|
|
|
|
Accesstoken string `db:"accesstoken" json:"accesstoken"`
|
|
|
|
Authcode string `db:"authcode" json:"authcode"`
|
|
|
|
Expiration time.Time `db:"expiration" json:"expiration"`
|
|
|
|
Createdat time.Time `db:"createdat" json:"createdat"`
|
|
|
|
}
|
|
|
|
|
2024-04-17 17:18:52 +00:00
|
|
|
type Field struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Amoid int32 `db:"amoid" json:"amoid"`
|
|
|
|
Code string `db:"code" json:"code"`
|
|
|
|
Accountid int32 `db:"accountid" json:"accountid"`
|
|
|
|
Name string `db:"name" json:"name"`
|
|
|
|
Entity interface{} `db:"entity" json:"entity"`
|
2024-04-28 13:06:06 +00:00
|
|
|
Type interface{} `db:"type" json:"type"`
|
2024-04-18 10:16:03 +00:00
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
2024-04-17 17:18:52 +00:00
|
|
|
Createdat sql.NullTime `db:"createdat" json:"createdat"`
|
|
|
|
}
|
|
|
|
|
2025-05-10 08:55:26 +00:00
|
|
|
type Gigachataudience struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Quizid int64 `db:"quizid" json:"quizid"`
|
|
|
|
Age string `db:"age" json:"age"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Createdat sql.NullTime `db:"createdat" json:"createdat"`
|
2025-06-06 13:58:20 +00:00
|
|
|
Sex int32 `db:"sex" json:"sex"`
|
2024-04-17 17:18:52 +00:00
|
|
|
}
|
2025-05-14 09:29:38 +00:00
|
|
|
|
2024-06-10 16:04:45 +00:00
|
|
|
type Leadtarget struct {
|
2024-07-11 13:26:52 +00:00
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Accountid string `db:"accountid" json:"accountid"`
|
|
|
|
Type interface{} `db:"type" json:"type"`
|
|
|
|
Quizid int32 `db:"quizid" json:"quizid"`
|
|
|
|
Target string `db:"target" json:"target"`
|
|
|
|
Invitelink string `db:"invitelink" json:"invitelink"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Createdat time.Time `db:"createdat" json:"createdat"`
|
2024-06-10 16:04:45 +00:00
|
|
|
}
|
|
|
|
|
2024-04-17 17:18:52 +00:00
|
|
|
type Pipeline struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Amoid int32 `db:"amoid" json:"amoid"`
|
|
|
|
Accountid int32 `db:"accountid" json:"accountid"`
|
|
|
|
Name string `db:"name" json:"name"`
|
2024-04-18 10:16:03 +00:00
|
|
|
Isarchive bool `db:"isarchive" json:"isarchive"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
2024-04-17 17:18:52 +00:00
|
|
|
Createdat sql.NullTime `db:"createdat" json:"createdat"`
|
|
|
|
}
|
|
|
|
|
2025-05-13 13:40:18 +00:00
|
|
|
type Pipelinebitrix struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Bitrixid int32 `db:"bitrixid" json:"bitrixid"`
|
|
|
|
Accountid string `db:"accountid" json:"accountid"`
|
|
|
|
Name string `db:"name" json:"name"`
|
|
|
|
Entitytypeid int32 `db:"entitytypeid" json:"entitytypeid"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Createdat time.Time `db:"createdat" json:"createdat"`
|
|
|
|
}
|
|
|
|
|
2024-02-19 16:33:15 +00:00
|
|
|
type Privilege struct {
|
2024-07-14 07:39:02 +00:00
|
|
|
ID int32 `db:"id" json:"id"`
|
|
|
|
Privilegeid string `db:"privilegeid" json:"privilegeid"`
|
|
|
|
AccountID uuid.UUID `db:"account_id" json:"account_id"`
|
|
|
|
PrivilegeName string `db:"privilege_name" json:"privilege_name"`
|
|
|
|
Amount int32 `db:"amount" json:"amount"`
|
|
|
|
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
2024-02-19 16:33:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Question struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
QuizID int64 `db:"quiz_id" json:"quiz_id"`
|
|
|
|
Title string `db:"title" json:"title"`
|
|
|
|
Description sql.NullString `db:"description" json:"description"`
|
|
|
|
Questiontype interface{} `db:"questiontype" json:"questiontype"`
|
|
|
|
Required sql.NullBool `db:"required" json:"required"`
|
|
|
|
Deleted sql.NullBool `db:"deleted" json:"deleted"`
|
|
|
|
Page sql.NullInt16 `db:"page" json:"page"`
|
|
|
|
Content sql.NullString `db:"content" json:"content"`
|
|
|
|
Version sql.NullInt16 `db:"version" json:"version"`
|
|
|
|
ParentIds []int32 `db:"parent_ids" json:"parent_ids"`
|
|
|
|
CreatedAt sql.NullTime `db:"created_at" json:"created_at"`
|
|
|
|
UpdatedAt sql.NullTime `db:"updated_at" json:"updated_at"`
|
2025-04-04 14:49:14 +00:00
|
|
|
Session string `db:"session" json:"session"`
|
2025-05-14 10:01:28 +00:00
|
|
|
Auditory int64 `db:"auditory" json:"auditory"`
|
2024-02-19 16:33:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Quiz struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Qid uuid.NullUUID `db:"qid" json:"qid"`
|
|
|
|
Accountid string `db:"accountid" json:"accountid"`
|
|
|
|
Deleted sql.NullBool `db:"deleted" json:"deleted"`
|
|
|
|
Archived sql.NullBool `db:"archived" json:"archived"`
|
|
|
|
Fingerprinting sql.NullBool `db:"fingerprinting" json:"fingerprinting"`
|
|
|
|
Repeatable sql.NullBool `db:"repeatable" json:"repeatable"`
|
|
|
|
NotePrevented sql.NullBool `db:"note_prevented" json:"note_prevented"`
|
|
|
|
MailNotifications sql.NullBool `db:"mail_notifications" json:"mail_notifications"`
|
|
|
|
UniqueAnswers sql.NullBool `db:"unique_answers" json:"unique_answers"`
|
|
|
|
Super sql.NullBool `db:"super" json:"super"`
|
|
|
|
GroupID sql.NullInt64 `db:"group_id" json:"group_id"`
|
|
|
|
Name sql.NullString `db:"name" json:"name"`
|
|
|
|
Description sql.NullString `db:"description" json:"description"`
|
|
|
|
Config sql.NullString `db:"config" json:"config"`
|
|
|
|
Status interface{} `db:"status" json:"status"`
|
|
|
|
LimitAnswers sql.NullInt32 `db:"limit_answers" json:"limit_answers"`
|
|
|
|
DueTo sql.NullInt32 `db:"due_to" json:"due_to"`
|
|
|
|
TimeOfPassing sql.NullInt32 `db:"time_of_passing" json:"time_of_passing"`
|
|
|
|
Pausable sql.NullBool `db:"pausable" json:"pausable"`
|
|
|
|
Version sql.NullInt16 `db:"version" json:"version"`
|
|
|
|
VersionComment sql.NullString `db:"version_comment" json:"version_comment"`
|
|
|
|
ParentIds []int32 `db:"parent_ids" json:"parent_ids"`
|
|
|
|
CreatedAt sql.NullTime `db:"created_at" json:"created_at"`
|
|
|
|
UpdatedAt sql.NullTime `db:"updated_at" json:"updated_at"`
|
|
|
|
QuestionsCount sql.NullInt32 `db:"questions_count" json:"questions_count"`
|
|
|
|
AnswersCount sql.NullInt32 `db:"answers_count" json:"answers_count"`
|
|
|
|
AverageTimePassing sql.NullInt32 `db:"average_time_passing" json:"average_time_passing"`
|
|
|
|
SessionsCount sql.NullInt32 `db:"sessions_count" json:"sessions_count"`
|
2025-06-10 09:42:26 +00:00
|
|
|
Gigachat bool `db:"gigachat" json:"gigachat"`
|
2024-02-19 16:33:15 +00:00
|
|
|
}
|
2024-04-17 17:18:52 +00:00
|
|
|
|
2025-06-23 10:51:11 +00:00
|
|
|
type QuizPrivilegeUsage struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
QuizID int64 `db:"quiz_id" json:"quiz_id"`
|
|
|
|
PrivilegeID int64 `db:"privilege_id" json:"privilege_id"`
|
|
|
|
PrivilegeIDStr string `db:"privilege_id_str" json:"privilege_id_str"`
|
|
|
|
UsedCount int32 `db:"used_count" json:"used_count"`
|
|
|
|
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
|
|
|
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
|
|
|
|
}
|
|
|
|
|
2025-06-23 08:07:31 +00:00
|
|
|
type QuizUtm struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Quizid int64 `db:"quizid" json:"quizid"`
|
|
|
|
Utm string `db:"utm" json:"utm"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
|
|
|
}
|
|
|
|
|
2025-05-14 09:29:38 +00:00
|
|
|
type RespondentState struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
TelegramID int32 `db:"telegram_id" json:"telegram_id"`
|
|
|
|
Quizid int32 `db:"quizid" json:"quizid"`
|
|
|
|
State int64 `db:"state" json:"state"`
|
|
|
|
Lang string `db:"lang" json:"lang"`
|
|
|
|
Contact string `db:"contact" json:"contact"`
|
|
|
|
Finish bool `db:"finish" json:"finish"`
|
|
|
|
Session sql.NullString `db:"session" json:"session"`
|
|
|
|
}
|
|
|
|
|
2024-04-22 10:43:09 +00:00
|
|
|
type Rule struct {
|
2024-06-05 19:07:15 +00:00
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Accountid int32 `db:"accountid" json:"accountid"`
|
|
|
|
Quizid int32 `db:"quizid" json:"quizid"`
|
|
|
|
Performerid int32 `db:"performerid" json:"performerid"`
|
|
|
|
Pipelineid int32 `db:"pipelineid" json:"pipelineid"`
|
|
|
|
Stepid int32 `db:"stepid" json:"stepid"`
|
|
|
|
Fieldsrule json.RawMessage `db:"fieldsrule" json:"fieldsrule"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Createdat sql.NullTime `db:"createdat" json:"createdat"`
|
|
|
|
Tagstoadd json.RawMessage `db:"tagstoadd" json:"tagstoadd"`
|
2024-04-22 10:43:09 +00:00
|
|
|
}
|
|
|
|
|
2024-04-17 17:18:52 +00:00
|
|
|
type Step struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Amoid int32 `db:"amoid" json:"amoid"`
|
|
|
|
Pipelineid int32 `db:"pipelineid" json:"pipelineid"`
|
|
|
|
Accountid int32 `db:"accountid" json:"accountid"`
|
|
|
|
Name string `db:"name" json:"name"`
|
|
|
|
Color string `db:"color" json:"color"`
|
2024-04-18 10:16:03 +00:00
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
2024-04-17 17:18:52 +00:00
|
|
|
Createdat sql.NullTime `db:"createdat" json:"createdat"`
|
|
|
|
}
|
|
|
|
|
2025-05-13 13:40:18 +00:00
|
|
|
type Stepbitrix struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Accountid string `db:"accountid" json:"accountid"`
|
|
|
|
Bitrixid string `db:"bitrixid" json:"bitrixid"`
|
|
|
|
Entityid string `db:"entityid" json:"entityid"`
|
|
|
|
Statusid string `db:"statusid" json:"statusid"`
|
|
|
|
Name string `db:"name" json:"name"`
|
|
|
|
Nameinit string `db:"nameinit" json:"nameinit"`
|
|
|
|
Color string `db:"color" json:"color"`
|
|
|
|
Pipelineid int32 `db:"pipelineid" json:"pipelineid"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Createdat time.Time `db:"createdat" json:"createdat"`
|
|
|
|
}
|
|
|
|
|
2024-04-17 17:18:52 +00:00
|
|
|
type Tag struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Amoid int32 `db:"amoid" json:"amoid"`
|
|
|
|
Accountid int32 `db:"accountid" json:"accountid"`
|
|
|
|
Entity interface{} `db:"entity" json:"entity"`
|
|
|
|
Name string `db:"name" json:"name"`
|
|
|
|
Color string `db:"color" json:"color"`
|
2024-04-18 10:16:03 +00:00
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
2024-04-17 17:18:52 +00:00
|
|
|
Createdat sql.NullTime `db:"createdat" json:"createdat"`
|
|
|
|
}
|
|
|
|
|
2025-05-14 09:29:38 +00:00
|
|
|
type TelegramIntegration struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Accountid string `db:"accountid" json:"accountid"`
|
|
|
|
Quizid int32 `db:"quizid" json:"quizid"`
|
|
|
|
BotToken string `db:"bot_token" json:"bot_token"`
|
|
|
|
BotName string `db:"bot_name" json:"bot_name"`
|
|
|
|
Repeatable sql.NullBool `db:"repeatable" json:"repeatable"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Status interface{} `db:"status" json:"status"`
|
|
|
|
InstanceID int32 `db:"instance_id" json:"instance_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TelegramIntegrationInstance struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Checkout int64 `db:"checkout" json:"checkout"`
|
|
|
|
Limited int32 `db:"limited" json:"limited"`
|
|
|
|
Amount int32 `db:"amount" json:"amount"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TelegramUserQuizResult struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
BotID int64 `db:"bot_id" json:"bot_id"`
|
|
|
|
QuizID int64 `db:"quiz_id" json:"quiz_id"`
|
|
|
|
CurrentField sql.NullString `db:"current_field" json:"current_field"`
|
|
|
|
UserAnswer sql.NullString `db:"user_answer" json:"user_answer"`
|
|
|
|
State interface{} `db:"state" json:"state"`
|
|
|
|
Session string `db:"session" json:"session"`
|
|
|
|
QuestionID int64 `db:"question_id" json:"question_id"`
|
|
|
|
Iter int32 `db:"iter" json:"iter"`
|
|
|
|
}
|
|
|
|
|
2024-06-27 19:17:33 +00:00
|
|
|
type Tgaccount struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Apiid int32 `db:"apiid" json:"apiid"`
|
|
|
|
Apihash string `db:"apihash" json:"apihash"`
|
|
|
|
Phonenumber string `db:"phonenumber" json:"phonenumber"`
|
2024-06-27 19:43:00 +00:00
|
|
|
Password string `db:"password" json:"password"`
|
2024-06-27 19:17:33 +00:00
|
|
|
Status interface{} `db:"status" json:"status"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Createdat time.Time `db:"createdat" json:"createdat"`
|
|
|
|
}
|
|
|
|
|
2024-04-17 17:18:52 +00:00
|
|
|
type Token struct {
|
|
|
|
Accountid string `db:"accountid" json:"accountid"`
|
|
|
|
Refreshtoken string `db:"refreshtoken" json:"refreshtoken"`
|
|
|
|
Accesstoken string `db:"accesstoken" json:"accesstoken"`
|
|
|
|
Authcode string `db:"authcode" json:"authcode"`
|
|
|
|
Expiration time.Time `db:"expiration" json:"expiration"`
|
|
|
|
Createdat sql.NullTime `db:"createdat" json:"createdat"`
|
|
|
|
}
|
|
|
|
|
2024-06-12 13:30:10 +00:00
|
|
|
type Usersamo struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Amoid int32 `db:"amoid" json:"amoid"`
|
|
|
|
Amouserid int32 `db:"amouserid" json:"amouserid"`
|
|
|
|
Name string `db:"name" json:"name"`
|
|
|
|
Email string `db:"email" json:"email"`
|
|
|
|
Role int32 `db:"role" json:"role"`
|
|
|
|
Group int32 `db:"Group" json:"Group"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Createdat time.Time `db:"createdat" json:"createdat"`
|
2024-04-17 17:18:52 +00:00
|
|
|
}
|