nickjj / docker-flask-example

A production ready example Flask app that's using Docker and Docker Compose.
MIT License
618 stars 102 forks source link

models usage #18

Closed nhjiejan closed 9 months ago

nhjiejan commented 9 months ago

Hi,

How can i define models, create tables and interact with the data with this setup? slightly confused as you've added a seeds.py but no template models

nickjj commented 9 months ago

Hi,

You can use whatever model structure you'd like using SQLAlchemy.

It wouldn't make sense in this case but let's say you had models associated with the up blueprint, you could drop a models.py file in that directory and do whatever you need to do.