Skip to content

Instantly share code, notes, and snippets.

@Allwin12
Created November 4, 2019 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Allwin12/fc99fdeb91e7048074ed53cbe8b9a629 to your computer and use it in GitHub Desktop.
Save Allwin12/fc99fdeb91e7048074ed53cbe8b9a629 to your computer and use it in GitHub Desktop.
Flask SQLAlchemy model
class Book(db.model):
__tablename__='books'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String()),
author = db.Column(db.String()),
published = db.Column(db.String()),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment