13 lines
240 B
Python
13 lines
240 B
Python
|
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)
|