12 lines
246 B
Python
12 lines
246 B
Python
from sqlalchemy import Column, String, Integer
|
|
|
|
from . import Base
|
|
|
|
|
|
class User(Base):
|
|
__tablename__ = 'users'
|
|
|
|
id = Column(Integer, primary_key=True)
|
|
email = Column(String(32))
|
|
name = Column(String(32))
|
|
age = Column(Integer)
|