Fixbug structure
This commit is contained in:
@ -7,7 +7,11 @@ app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///book.sqlite'
|
||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
||||
db = SQLAlchemy(app)
|
||||
|
||||
class Contacts(db.Model):
|
||||
class Contact(db.Model):
|
||||
|
||||
|
||||
__tablename__ = 'contacts'
|
||||
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
name = db.Column(db.String(80), nullable=False)
|
||||
surname = db.Column(db.String(100), nullable=True)
|
||||
|
Reference in New Issue
Block a user