Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic model declarations #52

Closed
16 tasks
Amertz08 opened this issue Feb 1, 2018 · 0 comments
Closed
16 tasks

Basic model declarations #52

Amertz08 opened this issue Feb 1, 2018 · 0 comments
Assignees
Labels

Comments

@Amertz08
Copy link
Owner

Amertz08 commented Feb 1, 2018

You will need to use Flask-SQLAlchemy. Create file models.py and bind to application in app factory

Account

  • Company Name - unique
  • Created date - datetime
  • Active - boolean

User

  • acct_id - Foreign key
  • created date - datetime
  • first name
  • last name
  • email
  • password
  • generate_hash method
  • verify_password method

Config modifications

  • DB_USER - set as "app" for now
  • DB_HOST - set as "db" for now
  • DB_PASS - set as "pass" for now
  • DB_NAME - set as "development", "testing", "production"
  • SQLALCHEMY_URI - Combines DB config settings

Depends on #51 & #53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants