blob: 9a8bc54030b74237110731e2884ce4f81e9450e6 [file] [log] [blame]
# Copyright 2022 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
version: "2"
sql:
- schema: "../../internal/relui/migrations/"
queries: "../../internal/relui/queries"
engine: "postgresql"
gen:
go:
package: "db"
out: "../../internal/relui/db"
sql_package: "pgx/v4"
emit_all_enum_values: true
overrides:
- go_type: "database/sql.NullString"
db_type: "jsonb"
nullable: true
- go_type: "string"
db_type: "jsonb"
nullable: false
- column: "schedules.once"
go_type:
type: "time.Time"
- go_type: "github.com/google/uuid.UUID"
db_type: "uuid"
nullable: true