diff --git a/dal/sqlcgen/models.go b/dal/sqlcgen/models.go index ada2cfc..2a6da31 100644 --- a/dal/sqlcgen/models.go +++ b/dal/sqlcgen/models.go @@ -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 { diff --git a/dal/sqlcgen/queries.sql.go b/dal/sqlcgen/queries.sql.go index 20443b8..3a98c1e 100644 --- a/dal/sqlcgen/queries.sql.go +++ b/dal/sqlcgen/queries.sql.go @@ -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 }