CurryduckwithEC / CITS3403-agile-web-development

0 stars 0 forks source link

Database basic user table and a post table #6

Closed AyrtonMiller closed 6 months ago

AyrtonMiller commented 6 months ago

This adds a python file defining the rudimentary tables of our flask database.

huangyegithub commented 6 months ago

This looks good. I think it is a great start. I may have some ideas of what to add later. I'll let you know when I have those sorted out.

Bait1742 commented 6 months ago
  1. Added tablename attribute to specify the table names explicitly, like "tablename = 'user'"
  2. Specified foreign key relationship between User and JobPostings, like "user = db.relationship('User', backref='jobs')"