Repository navigation
Expand file tree
/
Copy pathsqlc.yaml
More file actions
67 lines (67 loc) · 2.11 KB
/
Copy pathsqlc.yaml
File metadata and controls
67 lines (67 loc) · 2.11 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
version: "2"
sql:
- engine: "mysql"
queries: "./server/sql"
schema: "./db/schema.sql"
gen:
go:
package: "queries"
out: "./server/internal/queries"
initialisms: ["id", "url", "dc", "ac", "hp", "xp", "cr"]
overrides:
- column: "inventory.character_id"
go_type: &ulid
import: "github.com/oklog/ulid/v2"
package: "ulid"
type: "ULID"
- column: "attacks.character_id"
go_type: *ulid
- column: "spells.character_id"
go_type: *ulid
- column: "spell_slots.character_id"
go_type: *ulid
- column: "journals.character_id"
go_type: *ulid
- column: "shares.resource_id"
go_type: *ulid
- column: "inventory.weight"
go_type: "float64"
- column: "*.asset_id"
nullable: true
go_type: &nullable_ulid
import: "github.com/oklog/ulid/v2"
package: "ulid"
type: "ULID"
pointer: true
- column: "*.character_id"
nullable: true
go_type: *nullable_ulid
- column: "*.room_id"
nullable: true
go_type: *nullable_ulid
- column: "assets.journal_id"
go_type: *nullable_ulid
- column: "users.avatar_asset_id"
go_type: *nullable_ulid
- column: "rooms.scene_id"
go_type: *nullable_ulid
- column: "scenes.preview_id"
go_type: *nullable_ulid
- column: "assets.tile_gen"
go_type: *nullable_ulid
- column: "assets.tile_lease"
go_type: *nullable_ulid
- column: "*.id"
go_type: *ulid
- column: "*.user_id"
go_type: *ulid
- column: "*.owner_id"
go_type: *ulid
- column: "*.asset_id"
go_type: *ulid
- column: "*.character_id"
go_type: *ulid
- column: "*.room_id"
go_type: *ulid
- column: "*.monster_id"
go_type: *ulid