12 lines
408 B
Python
12 lines
408 B
Python
from sqlalchemy import Column, Integer, String, DateTime
|
|
from app.db.database import Base
|
|
|
|
class Product(Base):
|
|
__tablename__ = "products"
|
|
|
|
id = Column(Integer, primary_key=True)
|
|
name = Column(String)
|
|
tcgplayer_id = Column(String)
|
|
created_at = Column(DateTime(timezone=True))
|
|
updated_at = Column(DateTime(timezone=True))
|
|
deleted_at = Column(DateTime(timezone=True), nullable=True) |