You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
392 B
16 lines
392 B
6 years ago
|
import flask_sqlalchemy
|
||
|
|
||
|
|
||
|
db = flask_sqlalchemy.SQLAlchemy(session_options=dict(autoflush=False))
|
||
|
|
||
|
|
||
|
class Member(db.Model):
|
||
|
__tablename__ = 'members'
|
||
|
|
||
|
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
|
||
|
nick = db.Column(db.String)
|
||
|
x = db.Column(db.Float)
|
||
|
y = db.Column(db.Float)
|
||
|
created_at = db.Column(db.DateTime)
|
||
|
updated_at = db.Column(db.DateTime)
|