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

16 lines
372 B
Python
Raw Normal View History

2020-11-07 15:15:44 +01:00
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