mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
0778f3e738
* feat: Add v1 schema types This adds compatibility for sharing data with Coder v1. Since the tables are the same, all CRUD operations should function as expected. * Add license table
23 lines
598 B
YAML
23 lines
598 B
YAML
# sqlc is used to generate types from sql schema language.
|
|
# It was chosen to ensure type-safety when interacting with
|
|
# the database.
|
|
version: "1"
|
|
packages:
|
|
- name: "database"
|
|
path: "."
|
|
queries: "./query.sql"
|
|
schema: "./dump.sql"
|
|
engine: "postgresql"
|
|
emit_interface: true
|
|
emit_json_tags: true
|
|
emit_db_tags: true
|
|
# We replace the generated db file with our own
|
|
# to add support for transactions. This file is
|
|
# deleted after generation.
|
|
output_db_file_name: db_tmp.go
|
|
overrides:
|
|
- db_type: citext
|
|
go_type: string
|
|
rename:
|
|
userstatus: UserStatus
|