-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yml
More file actions
41 lines (41 loc) · 1.43 KB
/
Copy pathsqlc.yml
File metadata and controls
41 lines (41 loc) · 1.43 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
version: "2"
sql:
- engine: "sqlite"
queries:
- "./server/data/sql/queries"
schema:
- "./server/data/sql/migrations"
gen:
go:
package: db
out: "./server/infra/db"
emit_json_tags: true
emit_empty_slices: true
json_tags_case_style: camel
overrides:
- column: "shops.id"
go_type: "github.com/google/uuid.UUID"
- column: "shop_images.id"
go_type: "github.com/google/uuid.UUID"
- column: "shop_images.shop_id"
go_type: "github.com/google/uuid.UUID"
- column: "tags.id"
go_type: "github.com/google/uuid.UUID"
- column: "tags.category"
go_type: "database/sql.NullString"
- column: "shops_tags.id"
go_type: "github.com/google/uuid.UUID"
- column: "shops_tags.shop_id"
go_type: "github.com/google/uuid.UUID"
- column: "users.id"
go_type: "github.com/google/uuid.UUID"
- column: "eaten_shops.id"
go_type: "github.com/google/uuid.UUID"
- column: "eaten_shops.shop_id"
go_type: "github.com/google/uuid.UUID"
- column: "sessions.id"
go_type: "github.com/google/uuid.UUID"
- column: "sessions.user_id"
go_type: "github.com/google/uuid.UUID"
- column: "sessions.user_agent"
go_type: "database/sql.NullString"