-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsqlc.yml
52 lines (52 loc) · 2.87 KB
/
sqlc.yml
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
version: "2"
sql:
- engine: "sqlite"
queries: "internal/repo/queries"
schema: "internal/sqlite/schema.sql"
gen:
go:
package: "repo"
out: "internal/repo"
overrides:
- db_type: "DATETIME"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/types.Time"
- db_type: "JSON"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/types.JSON"
- column: "dahua_devices.location"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/types.Location"
- column: "settings.default_location"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/types.Location"
- column: "dahua_files.flags"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/types.StringSlice"
- column: "dahua_files.events"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/types.StringSlice"
- column: "dahua_worker_events.type"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/models.DahuaWorkerType"
- column: "dahua_worker_events.state"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/models.DahuaWorkerState"
- column: "dahua_devices.feature"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/models.DahuaFeature"
- column: "dahua_files.storage"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/models.Storage"
- column: "dahua_files.source"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/models.DahuaFileSource"
- column: "dahua_storage_destinations.storage"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/models.Storage"
- column: "dahua_storage_destinations.storage"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/models.Storage"
- column: "dahua_devices.url"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/types.URL"
- column: "dahua_file_cursors.scan_type"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/models.DahuaScanType"
- column: "dahua_email_messages.`to`"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/types.StringSlice"
- column: "dahua_permissions.level"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/models.DahuaPermissionLevel"
- column: "users.disabled_at"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/types.NullTime"
- column: "groups.disabled_at"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/types.NullTime"
- column: "dahua_devices.disabled_at"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/types.NullTime"
- column: "events.actor"
go_type: "github.com/ItsNotGoodName/ipcmanview/internal/core.ActorType"