update sqlc gen
This commit is contained in:
parent
6524977c9f
commit
1ef01339cb
@ -30,6 +30,11 @@ type Answer struct {
|
||||
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"`
|
||||
}
|
||||
|
||||
type Privilege struct {
|
||||
|
@ -1043,8 +1043,13 @@ INSERT INTO answer(
|
||||
fingerprint,
|
||||
session,
|
||||
result,
|
||||
email
|
||||
) VALUES ($1,$2,$3,$4,$5,$6,$7)
|
||||
email,
|
||||
device_type,
|
||||
device,
|
||||
os,
|
||||
browser,
|
||||
ip
|
||||
) VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12)
|
||||
`
|
||||
|
||||
type InsertAnswersParams struct {
|
||||
@ -1055,6 +1060,11 @@ type InsertAnswersParams struct {
|
||||
Session sql.NullString `db:"session" json:"session"`
|
||||
Result sql.NullBool `db:"result" json:"result"`
|
||||
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"`
|
||||
}
|
||||
|
||||
func (q *Queries) InsertAnswers(ctx context.Context, arg InsertAnswersParams) error {
|
||||
@ -1066,6 +1076,11 @@ func (q *Queries) InsertAnswers(ctx context.Context, arg InsertAnswersParams) er
|
||||
arg.Session,
|
||||
arg.Result,
|
||||
arg.Email,
|
||||
arg.DeviceType,
|
||||
arg.Device,
|
||||
arg.Os,
|
||||
arg.Browser,
|
||||
arg.Ip,
|
||||
)
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user