Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions DESIGN-PRINCIPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,15 @@ The following columns should be present in all tables unless there is a compelli
- one-to-many: unique constraint on the `one` column
- many-to-many: single unique constraint encompassing *both* columns

## Flag Tables

Flag tables are tables that are used to indicate the presence of an attribute on a row in another table. Typically, a flag table is used where that attribute is not shared by all URLs in that table (for example, whether a URL is a Root URL).

Flag tables should have the following characteristics:
- Named with a `flag_` prefix to denote that they are flag tables.
- Contain a foreign key that also exists as the primary key -- a separate "id" key is not required.
- Contain a `created_at` datetime column.

# SQLAlchemy

-
Expand Down