update sqlc gen
This commit is contained in:
parent
41ba9e34e3
commit
cb1e8abc79
@ -1,2 +1,2 @@
|
|||||||
ALTER TABLE rules
|
ALTER TABLE rules
|
||||||
ADD COLUMN TagsToAdd JSONB DEFAULT '{}';
|
ADD COLUMN TagsToAdd JSONB NOT NULL DEFAULT '{}';
|
||||||
|
@ -10,7 +10,6 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/sqlc-dev/pqtype"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Account struct {
|
type Account struct {
|
||||||
@ -140,7 +139,7 @@ type Rule struct {
|
|||||||
Fieldsrule json.RawMessage `db:"fieldsrule" json:"fieldsrule"`
|
Fieldsrule json.RawMessage `db:"fieldsrule" json:"fieldsrule"`
|
||||||
Deleted bool `db:"deleted" json:"deleted"`
|
Deleted bool `db:"deleted" json:"deleted"`
|
||||||
Createdat sql.NullTime `db:"createdat" json:"createdat"`
|
Createdat sql.NullTime `db:"createdat" json:"createdat"`
|
||||||
Tagstoadd pqtype.NullRawMessage `db:"tagstoadd" json:"tagstoadd"`
|
Tagstoadd json.RawMessage `db:"tagstoadd" json:"tagstoadd"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Step struct {
|
type Step struct {
|
||||||
|
@ -13,7 +13,6 @@ import (
|
|||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/lib/pq"
|
"github.com/lib/pq"
|
||||||
"github.com/sqlc-dev/pqtype"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const accountPagination = `-- name: AccountPagination :many
|
const accountPagination = `-- name: AccountPagination :many
|
||||||
@ -127,7 +126,7 @@ type ChangeQuizSettingsParams struct {
|
|||||||
Pipelineid int32 `db:"pipelineid" json:"pipelineid"`
|
Pipelineid int32 `db:"pipelineid" json:"pipelineid"`
|
||||||
Stepid int32 `db:"stepid" json:"stepid"`
|
Stepid int32 `db:"stepid" json:"stepid"`
|
||||||
Fieldsrule json.RawMessage `db:"fieldsrule" json:"fieldsrule"`
|
Fieldsrule json.RawMessage `db:"fieldsrule" json:"fieldsrule"`
|
||||||
Tagstoadd pqtype.NullRawMessage `db:"tagstoadd" json:"tagstoadd"`
|
Tagstoadd json.RawMessage `db:"tagstoadd" json:"tagstoadd"`
|
||||||
Accountid string `db:"accountid" json:"accountid"`
|
Accountid string `db:"accountid" json:"accountid"`
|
||||||
Quizid int32 `db:"quizid" json:"quizid"`
|
Quizid int32 `db:"quizid" json:"quizid"`
|
||||||
}
|
}
|
||||||
@ -2840,7 +2839,7 @@ type GettingAmoUsersTrueResultsRow struct {
|
|||||||
Accesstoken string `db:"accesstoken" json:"accesstoken"`
|
Accesstoken string `db:"accesstoken" json:"accesstoken"`
|
||||||
Accountid int32 `db:"accountid" json:"accountid"`
|
Accountid int32 `db:"accountid" json:"accountid"`
|
||||||
Fieldsrule json.RawMessage `db:"fieldsrule" json:"fieldsrule"`
|
Fieldsrule json.RawMessage `db:"fieldsrule" json:"fieldsrule"`
|
||||||
Tagstoadd pqtype.NullRawMessage `db:"tagstoadd" json:"tagstoadd"`
|
Tagstoadd json.RawMessage `db:"tagstoadd" json:"tagstoadd"`
|
||||||
Performerid int32 `db:"performerid" json:"performerid"`
|
Performerid int32 `db:"performerid" json:"performerid"`
|
||||||
Stepid int32 `db:"stepid" json:"stepid"`
|
Stepid int32 `db:"stepid" json:"stepid"`
|
||||||
Pipelineid int32 `db:"pipelineid" json:"pipelineid"`
|
Pipelineid int32 `db:"pipelineid" json:"pipelineid"`
|
||||||
@ -3377,7 +3376,7 @@ type SetQuizSettingsParams struct {
|
|||||||
Pipelineid int32 `db:"pipelineid" json:"pipelineid"`
|
Pipelineid int32 `db:"pipelineid" json:"pipelineid"`
|
||||||
Stepid int32 `db:"stepid" json:"stepid"`
|
Stepid int32 `db:"stepid" json:"stepid"`
|
||||||
Fieldsrule json.RawMessage `db:"fieldsrule" json:"fieldsrule"`
|
Fieldsrule json.RawMessage `db:"fieldsrule" json:"fieldsrule"`
|
||||||
Tagstoadd pqtype.NullRawMessage `db:"tagstoadd" json:"tagstoadd"`
|
Tagstoadd json.RawMessage `db:"tagstoadd" json:"tagstoadd"`
|
||||||
Accountid string `db:"accountid" json:"accountid"`
|
Accountid string `db:"accountid" json:"accountid"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user