aidanprk / cup

create a wireframe of the cup system in our class
1 stars 0 forks source link

SQL Database #4

Open aidanprk opened 7 years ago

aidanprk commented 7 years ago

We need a way to store user data in tables. I suggests looking into sqlite3 which is integrated into python. Table(s) should hold:

Students

Class

2 man-hours

aidanprk commented 7 years ago

Don't use sqlite3, flask has more temporary database functions

TheCoub commented 7 years ago

I will take this task. Reminder to self: Local Storage

JCharante commented 7 years ago

@aidanprk What temporary database functions? Could you be referring to sqlalchemy-flask which is a flask integrated database solution? In that case I'd actually go with vanilla sqlalchemy to keep your stack flexable.

In the case that you do end up going with sqlalchemy, it's fairly easy to get started. You can read this guide and how I personally like to breakup my files is

Even if you don't follow my preferred style, I'd still recommend adding version names to your tables, as it makes migrating to newer tables much easier.