13 lines
387 B
Python
13 lines
387 B
Python
# models/user.py
|
|
from sqlalchemy import Column, String, ForeignKey
|
|
from sqlalchemy.orm import declared_attr
|
|
from .base import Model
|
|
|
|
class User(Model):
|
|
__abstract__ = True
|
|
|
|
last_name = Column(String)
|
|
first_name = Column(String)
|
|
patronymic = Column(String)
|
|
email = Column(String, unique=True, index=True, nullable=True)
|
|
password = Column(String, nullable=True) |