update sqlc gen

This commit is contained in:
Pavel 2024-06-10 19:06:11 +03:00
parent 3a299020fd
commit 9e84512bd6
2 changed files with 9 additions and 9 deletions

@ -7,5 +7,5 @@ CREATE TABLE IF NOT EXISTS leadtarget(
QuizID integer NOT NULL DEFAULT 0,
Target text NOT NULL,
Deleted boolean NOT NULL DEFAULT false,
CreatedAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP
CreatedAt TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
)

@ -68,7 +68,7 @@ type Leadtarget struct {
Quizid int32 `db:"quizid" json:"quizid"`
Target string `db:"target" json:"target"`
Deleted bool `db:"deleted" json:"deleted"`
Createdat sql.NullTime `db:"createdat" json:"createdat"`
Createdat time.Time `db:"createdat" json:"createdat"`
}
type Pipeline struct {