feat: allow to read a configuration file

This commit is contained in:
Alexander Navarro 2025-01-27 16:20:35 -03:00
parent 6ac6c2c178
commit fe5ae0de75
6 changed files with 86 additions and 62 deletions

View file

@ -19,6 +19,56 @@ type = "Integer"
not_null = true
reference = { table = "categories", identity = "id", label = "Category Id" }
[public.entries]
display_name = "Entries"
[[public.entries.columns]]
name = "id"
type = "Integer"
default = "nextval('entries_id_seq'::regclass)"
not_null = true
[[public.entries.columns]]
name = "date"
type = "Date"
default = "CURRENT_TIMESTAMP"
not_null = true
[[public.entries.columns]]
name = "source_id"
type = "Integer"
not_null = true
reference = { table = "sources", identity = "id", label = "Source Id" }
[[public.entries.columns]]
name = "uid"
not_null = true
type = { Varchar = {} }
[[public.entries.columns]]
name = "text"
type = "Text"
not_null = false
[public.categories]
display_name = "Categories"
[[public.categories.columns]]
name = "id"
type = "Integer"
default = "nextval('category_id_seq'::regclass)"
not_null = true
[[public.categories.columns]]
name = "name"
not_null = true
type = { Varchar = { length = 20 } }
[[public.categories.columns]]
name = "uid"
not_null = false
type = { Varchar = { length = 8 } }
[public.sources]
display_name = "Sources"
@ -58,53 +108,3 @@ type = { TimestampWithTimeZone = { precision = 6 } }
name = "deleted_at"
not_null = false
type = { TimestampWithTimeZone = { precision = 6 } }
[public.categories]
display_name = "Categories"
[[public.categories.columns]]
name = "id"
type = "Integer"
default = "nextval('category_id_seq'::regclass)"
not_null = true
[[public.categories.columns]]
name = "name"
not_null = true
type = { Varchar = { length = 20 } }
[[public.categories.columns]]
name = "uid"
not_null = false
type = { Varchar = { length = 8 } }
[public.entries]
display_name = "Entries"
[[public.entries.columns]]
name = "id"
type = "Integer"
default = "nextval('entries_id_seq'::regclass)"
not_null = true
[[public.entries.columns]]
name = "date"
type = "Date"
default = "CURRENT_TIMESTAMP"
not_null = true
[[public.entries.columns]]
name = "source_id"
type = "Integer"
not_null = true
reference = { table = "sources", identity = "id", label = "Source Id" }
[[public.entries.columns]]
name = "uid"
not_null = true
type = { Varchar = {} }
[[public.entries.columns]]
name = "text"
type = "Text"
not_null = false