Closed micah-prime closed 1 month ago
These are being pushed to the dev
branch, so PRs can be made there
Noting that we should also add some indexes on the foreign key columns. One example on how to do this:
name = Column(String, index=True)
Other definition to consider is to require the presence of an attribute/column via NOT NULL
name = Column(String, nullable=False)
https://docs.sqlalchemy.org/en/20/core/metadata.html#sqlalchemy.schema.Column.params.nullable
Saving a reference on why we don't need to set limits on varchar
https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_varchar.28n.29_by_default
Let's create all the new table definitions as outlined in the re-organization diagram
Tables to create are
Each table can have it's own file (like @jomey 's reorg)
Tables to update are:
Also linking to a discussion around observers
137