ASD-at-GMF / disinfo-laundromat

MIT License
14 stars 6 forks source link

Add orm classes #58

Closed abargar closed 6 months ago

abargar commented 6 months ago

Adds ORM classes! Also separates out our config so we can swap in development vs. prod environment databases.

Tested:

We use different schemas at the moment for the user class vs the others. I'd like to update the User class to match this one if that's cool.

Current environment variables:

DEVELOPMENT_DATABASE_URL = "sqlite:///database.db"
PRODUCTION_DATABASE_URL  = "sqlite:///database.db"
SQLLITE_DB_PATH = './database.db'