update sqlc gen

This commit is contained in:
Pavel 2024-06-05 22:07:15 +03:00
parent 41ba9e34e3
commit cb1e8abc79
3 changed files with 41 additions and 43 deletions

@ -1,2 +1,2 @@
ALTER TABLE rules
ADD COLUMN TagsToAdd JSONB DEFAULT '{}';
ADD COLUMN TagsToAdd JSONB NOT NULL DEFAULT '{}';

@ -10,7 +10,6 @@ import (
"time"
"github.com/google/uuid"
"github.com/sqlc-dev/pqtype"
)
type Account struct {
@ -140,7 +139,7 @@ type Rule struct {
Fieldsrule json.RawMessage `db:"fieldsrule" json:"fieldsrule"`
Deleted bool `db:"deleted" json:"deleted"`
Createdat sql.NullTime `db:"createdat" json:"createdat"`
Tagstoadd pqtype.NullRawMessage `db:"tagstoadd" json:"tagstoadd"`
Tagstoadd json.RawMessage `db:"tagstoadd" json:"tagstoadd"`
}
type Step struct {

@ -13,7 +13,6 @@ import (
"github.com/google/uuid"
"github.com/lib/pq"
"github.com/sqlc-dev/pqtype"
)
const accountPagination = `-- name: AccountPagination :many
@ -127,7 +126,7 @@ type ChangeQuizSettingsParams struct {
Pipelineid int32 `db:"pipelineid" json:"pipelineid"`
Stepid int32 `db:"stepid" json:"stepid"`
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"`
Quizid int32 `db:"quizid" json:"quizid"`
}
@ -2840,7 +2839,7 @@ type GettingAmoUsersTrueResultsRow struct {
Accesstoken string `db:"accesstoken" json:"accesstoken"`
Accountid int32 `db:"accountid" json:"accountid"`
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"`
Stepid int32 `db:"stepid" json:"stepid"`
Pipelineid int32 `db:"pipelineid" json:"pipelineid"`
@ -3377,7 +3376,7 @@ type SetQuizSettingsParams struct {
Pipelineid int32 `db:"pipelineid" json:"pipelineid"`
Stepid int32 `db:"stepid" json:"stepid"`
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"`
}