tmpl-fastapi/app/sql/models.py

13 lines
240 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)
email = Column(String)
name = Column(String)
age = Column(Integer)