from sqlalchemy import Column, Integer, String, Float

from app.database.base_class import Base


class Product(Base):
    id = Column(Integer, primary_key=True, index=True)
    name = Column(String, nullable=False)
    price = Column(Float, nullable=False)

[((128, 173), 'sqlalchemy.Column', 'Column', (['Integer'], {'primary_key': '(True)', 'index': '(True)'}), '(Integer, primary_key=True, index=True)\n', (134, 173), False, 'from sqlalchemy import Column, Integer, String, Float\n'), ((185, 215), 'sqlalchemy.Column', 'Column', (['String'], {'nullable': '(False)'}), '(String, nullable=False)\n', (191, 215), False, 'from sqlalchemy import Column, Integer, String, Float\n'), ((228, 257), 'sqlalchemy.Column', 'Column', (['Float'], {'nullable': '(False)'}), '(Float, nullable=False)\n', (234, 257), False, 'from sqlalchemy import Column, Integer, String, Float\n')]