Archived
1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
teleexit/db/User.py
2020-11-07 15:15:44 +01:00

15 lines
372 B
Python

from db import Base
from sqlalchemy import Column, Integer, String, Date
class User(Base):
__tablename__ = "user"
id = Column(Integer, primary_key=True)
first_name = Column(String)
last_name = Column(String)
birth_date = Column(Date)
birth_city = Column(String)
address = Column(String)
def __init__(self, id: int):
self.id = id