tmpl-fastapi/app/sql/models.py

13 lines
248 B
Python
Raw Normal View History

2023-02-19 16:49:44 +03:00
from sqlalchemy import Column, String, Integer
from .db import Base
class User(Base):
__tablename__ = 'users'
id = Column(Integer, primary_key=True)
2023-02-20 11:09:43 +03:00
email = Column(String(32))
name = Column(String(32))
2023-02-19 16:49:44 +03:00
age = Column(Integer)