update sqlc gen
This commit is contained in:
parent
24e1055d0c
commit
d9bb9204af
@ -162,10 +162,10 @@ type Field struct {
|
||||
type Gigachataudience struct {
|
||||
ID int64 `db:"id" json:"id"`
|
||||
Quizid int64 `db:"quizid" json:"quizid"`
|
||||
Sex bool `db:"sex" json:"sex"`
|
||||
Age string `db:"age" json:"age"`
|
||||
Deleted bool `db:"deleted" json:"deleted"`
|
||||
Createdat sql.NullTime `db:"createdat" json:"createdat"`
|
||||
Sex int32 `db:"sex" json:"sex"`
|
||||
}
|
||||
|
||||
type Leadtarget struct {
|
||||
|
@ -1179,7 +1179,7 @@ INSERT INTO gigachatAudience (QuizID, Sex, Age) VALUES ($1, $2, $3) RETURNING ID
|
||||
|
||||
type CreateQuizAudienceParams struct {
|
||||
Quizid int64 `db:"quizid" json:"quizid"`
|
||||
Sex bool `db:"sex" json:"sex"`
|
||||
Sex int32 `db:"sex" json:"sex"`
|
||||
Age string `db:"age" json:"age"`
|
||||
}
|
||||
|
||||
@ -3179,7 +3179,7 @@ func (q *Queries) GetQuestionsAICount(ctx context.Context, arg GetQuestionsAICou
|
||||
}
|
||||
|
||||
const getQuizAudience = `-- name: GetQuizAudience :many
|
||||
SELECT id, quizid, sex, age, deleted, createdat FROM gigachatAudience WHERE QuizID = $1 AND Deleted = FALSE
|
||||
SELECT id, quizid, age, deleted, createdat, sex FROM gigachatAudience WHERE QuizID = $1 AND Deleted = FALSE
|
||||
`
|
||||
|
||||
func (q *Queries) GetQuizAudience(ctx context.Context, quizid int64) ([]Gigachataudience, error) {
|
||||
@ -3194,10 +3194,10 @@ func (q *Queries) GetQuizAudience(ctx context.Context, quizid int64) ([]Gigachat
|
||||
if err := rows.Scan(
|
||||
&i.ID,
|
||||
&i.Quizid,
|
||||
&i.Sex,
|
||||
&i.Age,
|
||||
&i.Deleted,
|
||||
&i.Createdat,
|
||||
&i.Sex,
|
||||
); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user