2024-02-19 16:33:15 +00:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
// versions:
|
2024-05-20 14:55:24 +00:00
|
|
|
// sqlc v1.25.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 {
|
|
|
|
ID uuid.UUID `db:"id" json:"id"`
|
|
|
|
UserID sql.NullString `db:"user_id" json:"user_id"`
|
|
|
|
Email sql.NullString `db:"email" json:"email"`
|
|
|
|
CreatedAt sql.NullTime `db:"created_at" json:"created_at"`
|
|
|
|
Deleted sql.NullBool `db:"deleted" json:"deleted"`
|
|
|
|
}
|
|
|
|
|
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 {
|
|
|
|
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"`
|
2024-03-13 16:21:37 +00:00
|
|
|
Email string `db:"email" json:"email"`
|
2024-03-14 13:32:20 +00:00
|
|
|
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"`
|
2024-03-15 11:32:26 +00:00
|
|
|
Start bool `db:"start" json:"start"`
|
2024-02-19 16:33:15 +00:00
|
|
|
}
|
|
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
2024-02-19 16:33:15 +00:00
|
|
|
type Privilege struct {
|
|
|
|
ID int32 `db:"id" json:"id"`
|
|
|
|
Privilegeid sql.NullString `db:"privilegeid" json:"privilegeid"`
|
|
|
|
AccountID uuid.NullUUID `db:"account_id" json:"account_id"`
|
|
|
|
PrivilegeName sql.NullString `db:"privilege_name" json:"privilege_name"`
|
|
|
|
Amount sql.NullInt32 `db:"amount" json:"amount"`
|
|
|
|
CreatedAt sql.NullTime `db:"created_at" json:"created_at"`
|
|
|
|
}
|
|
|
|
|
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
|
|
|
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"`
|
|
|
|
}
|
2024-04-17 17:18:52 +00:00
|
|
|
|
2024-04-22 10:43:09 +00:00
|
|
|
type Rule struct {
|
|
|
|
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"`
|
|
|
|
Utms []int32 `db:"utms" json:"utms"`
|
|
|
|
Fieldsrule json.RawMessage `db:"fieldsrule" json:"fieldsrule"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Createdat sql.NullTime `db:"createdat" json:"createdat"`
|
|
|
|
}
|
|
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type User struct {
|
2024-04-20 09:01: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"`
|
|
|
|
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 sql.NullTime `db:"createdat" json:"createdat"`
|
|
|
|
Subdomain string `db:"subdomain" json:"subdomain"`
|
|
|
|
Amouserid int32 `db:"amouserid" json:"amouserid"`
|
|
|
|
Country string `db:"country" json:"country"`
|
2024-04-17 17:18:52 +00:00
|
|
|
}
|
2024-04-22 10:43:09 +00:00
|
|
|
|
|
|
|
type Utm struct {
|
|
|
|
ID int64 `db:"id" json:"id"`
|
|
|
|
Amofieldid int32 `db:"amofieldid" json:"amofieldid"`
|
|
|
|
Quizid int32 `db:"quizid" json:"quizid"`
|
|
|
|
Accountid int32 `db:"accountid" json:"accountid"`
|
|
|
|
Name string `db:"name" json:"name"`
|
|
|
|
Deleted bool `db:"deleted" json:"deleted"`
|
|
|
|
Createdat sql.NullTime `db:"createdat" json:"createdat"`
|
|
|
|
}
|