[add] settings (pw & time offset), [fix] PWA issues, [fix] misc styling issues

This commit is contained in:
2023-09-27 18:58:47 -04:00
parent 25ab36e4b5
commit 5a8bdacf4f
16 changed files with 528 additions and 99 deletions

View File

@@ -9,7 +9,7 @@ sql:
out: "database"
emit_json_tags: true
overrides:
# Type pointers needed for JSON
# Documents
- column: "documents.md5"
go_type:
type: "string"
@@ -63,6 +63,7 @@ sql:
type: "string"
pointer: true
# Metadata
- column: "metadata.title"
go_type:
type: "string"
@@ -92,6 +93,33 @@ sql:
type: "string"
pointer: true
# Devices
- column: "devices.id"
go_type:
type: "string"
- column: "devices.user_id"
go_type:
type: "string"
- column: "devices.device_name"
go_type:
type: "string"
- column: "devices.sync"
go_type:
type: "bool"
- column: "devices.created_at"
go_type:
type: "string"
# Devices
- column: "users.pass"
go_type:
type: "string"
pointer: true
- column: "users.time_offset"
go_type:
type: "string"
pointer: true
# Do not generate JSON
- column: "documents.synced"
go_struct_tag: 'json:"-"'