nidus-sync/db/bobgen.yaml
Eli Ribble f1fe8b4d2b
Add contacts, rework comms schema
This in a pretty huge change. At a high level we're adding the concept
of a 'contact' which is a person or organization that has zero or more
contact methods (email, phone). This ended up cascading a number of
changes, including critically to the publicreprt schema. In the end it
seemed safer to get to the point where I'm confident we aren't using any
of the old fields for storing reporter information (though I haven't
deleted the columns yet) so I removed the code for defining those
columns.

At this point I think it's not possible for me to regenerate the bob
schema due to the interdependencies between my various schemas, so the
migration is well-and-truly happening.
2026-05-15 16:58:28 +00:00

55 lines
1.1 KiB
YAML

aliases:
arcgis.user_:
up_plural: "ArcgisUsers"
up_singular: "ArcgisUser"
down_plural: "arcgisusers"
down_singular: "arcgisuser"
organization:
relationships:
publicreport.pool.pool_organization_id_fkey: "PublicreportPool"
fieldseeker.pool.pool_organization_id_fkey: "FieldseekerPool"
user_:
relationships:
fileupload.pool.pool_creator_id_fkey: "FileuploadPool"
up_plural: "Users"
up_singular: "User"
down_plural: "users"
down_singular: "user"
no_tests: true
psql:
schemas:
- "fieldseeker"
- "fileupload"
- "lob"
- "public"
- "publicreport"
- "tile"
shared_schema: "public"
queries:
- ./sql
uuid_pkg: google
plugins:
counts:
disabled: true
dbinfo:
destination: "dbinfo"
disabled: false
pkgname: "dbinfo"
enums:
destination: "enums"
disabled: false
pkgname: "enums"
factory:
disabled: true
pkgname: "factory"
destination: "factory"
joins:
disabled: true
loaders:
disabled: false
models:
destination: "models"
disabled: false
pkgname: "models"
where:
disabled: false