Files
coder/coderd/database/sqlc.yaml
T

49 lines
1.3 KiB
YAML
Raw Normal View History

2022-01-05 09:20:56 -06:00
# 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"
queries: "./queries"
2022-01-05 09:20:56 -06:00
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
2022-06-24 10:25:01 -05:00
2022-10-10 15:37:06 -05:00
overrides:
- column: "users.rbac_roles"
go_type: "github.com/lib/pq.StringArray"
2022-10-19 02:00:45 -05:00
- column: "templates.user_acl"
go_type:
type: "TemplateACL"
- column: "templates.group_acl"
go_type:
type: "TemplateACL"
2022-10-10 15:37:06 -05:00
2022-01-12 12:04:11 -06:00
rename:
api_key: APIKey
api_key_scope: APIKeyScope
api_key_scope_all: APIKeyScopeAll
api_key_scope_application_connect: APIKeyScopeApplicationConnect
avatar_url: AvatarURL
login_type_oidc: LoginTypeOIDC
2022-04-23 17:58:57 -05:00
oauth_access_token: OAuthAccessToken
oauth_expiry: OAuthExpiry
oauth_id_token: OAuthIDToken
oauth_refresh_token: OAuthRefreshToken
2022-01-24 11:07:42 -06:00
parameter_type_system_hcl: ParameterTypeSystemHCL
2022-01-12 12:04:11 -06:00
userstatus: UserStatus
2022-04-05 19:18:26 -05:00
gitsshkey: GitSSHKey
rbac_roles: RBACRoles
2022-06-22 12:32:21 -05:00
ip_address: IPAddress
2022-08-31 20:09:44 -05:00
ip_addresses: IPAddresses
2022-09-12 18:24:20 -05:00
ids: IDs
2022-08-22 15:02:50 -07:00
jwt: JWT
2022-10-19 02:00:45 -05:00
user_acl: UserACL
group_acl: GroupACL