-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsqlc.yaml
More file actions
117 lines (105 loc) · 3.24 KB
/
sqlc.yaml
File metadata and controls
117 lines (105 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: "2"
sql:
- engine: "postgresql"
queries: "api/dbv1/queries"
schema: "sql/01_schema.sql"
gen:
go:
emit_json_tags: true
json_tags_case_style: snake
package: "dbv1"
out: "api/dbv1"
sql_package: "pgx/v5"
rename:
user: UserRow
track: TrackRow
playlist: PlaylistRow
overrides:
- db_type: "pg_catalog.timestamp"
engine: "postgresql"
nullable: true
go_type:
import: "time"
type: "Time"
pointer: true
- db_type: "pg_catalog.timestamp"
engine: "postgresql"
nullable: false
go_type:
import: "time"
type: "Time"
- db_type: "jsonb"
go_type:
import: "encoding/json"
type: "RawMessage"
- column: "users.playlist_library"
go_type:
import: "encoding/json"
type: "RawMessage"
- column: "users.user_id"
go_type:
import: "api.audius.co/trashid"
type: "HashId"
- column: "users.profile_type"
go_type:
type: "string"
pointer: true
- column: "developer_apps.user_id"
go_type:
import: "api.audius.co/trashid"
type: "HashId"
- column: "grants.user_id"
go_type:
import: "api.audius.co/trashid"
type: "HashId"
- column: "tracks.copyright_line"
go_type:
import: "encoding/json"
type: "RawMessage"
- column: "tracks.ddex_release_ids"
go_type:
import: "encoding/json"
type: "RawMessage"
- column: "tracks.artists"
go_type:
import: "encoding/json"
type: "RawMessage"
- column: "tracks.indirect_resource_contributors"
go_type:
import: "encoding/json"
type: "RawMessage"
- column: "tracks.resource_contributors"
go_type:
import: "encoding/json"
type: "RawMessage"
- column: "tracks.producer_copyright_line"
go_type:
import: "encoding/json"
type: "RawMessage"
- column: "tracks.field_visibility"
go_type:
import: "encoding/json"
type: "RawMessage"
- column: "tracks.rights_controller"
go_type:
import: "encoding/json"
type: "RawMessage"
- column: "tracks.stream_conditions"
go_type:
type: "AccessGate"
pointer: true
- column: "tracks.download_conditions"
go_type:
type: "AccessGate"
pointer: true
- column: "events.event_data"
go_type:
type: "EventData"
pointer: true
- column: "playlists.stream_conditions"
go_type:
type: "AccessGate"
pointer: true
- column: "playlists.playlist_contents"
go_type:
type: "PlaylistContents"