This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Code Instructions | |
// 1. Table names Should be TitleCased and Singular | |
// 2. Tables should have map to table with snake_case and pluraliszed | |
// 3. Most tables should have id, createdAt, updatedAt, deletedAt (unless special reasoning) | |
// 4. All variables should be camelCase with maps to the database in snake_case | |
// 5. Except when array mapped items that should not have relationships upstream: ie Reactions => Posts | |
// | |
datasource db { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
postgres: | |
container_name: postgres | |
ports: | |
- "5432:5432" | |
image: postgres:latest | |
restart: always | |
volumes: | |
- postgres:/var/lib/postgresql/data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |