Created
November 4, 2019 14:58
-
-
Save Allwin12/fc99fdeb91e7048074ed53cbe8b9a629 to your computer and use it in GitHub Desktop.
Flask SQLAlchemy model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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