2022-05-17 22:16:45 +02:00
|
|
|
from ..dependencies import db
|
|
|
|
|
|
|
|
|
|
|
|
class Base(db.Model):
|
|
|
|
__abstract__ = True
|
|
|
|
|
|
|
|
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
|
|
|
|
|
|
|
|
|
|
|
|
class Person(db.Model):
|
|
|
|
__abstract__ = True
|
|
|
|
|
2022-05-19 18:11:41 +02:00
|
|
|
first_name = db.Column(db.String(255), index=True, nullable=False)
|
|
|
|
last_name = db.Column(db.String(255), index=True, nullable=False)
|
2022-05-17 22:16:45 +02:00
|
|
|
email = db.Column(db.String(120), unique=True)
|