adição do metodo DELETE, correções adicionais
This commit is contained in:
Binary file not shown.
@@ -1,12 +1,11 @@
|
||||
from sqlalchemy import Column, String, Boolean
|
||||
from sqlalchemy import Column, String, Boolean, Integer
|
||||
from sqlalchemy.dialects.postgresql import JSONB
|
||||
from app.db.database import Base
|
||||
import uuid
|
||||
|
||||
class Game(Base):
|
||||
__tablename__ = "games"
|
||||
|
||||
id = Column(String, primary_key=True, default=lambda: f"gv-{uuid.uuid4().hex[:8]}")
|
||||
id = Column(Integer, primary_key=True, autoincrement=True)
|
||||
title = Column(String, index=True, nullable=False)
|
||||
slug = Column(String, unique=True, index=True, nullable=False)
|
||||
description = Column(String)
|
||||
|
||||
Reference in New Issue
Block a user