feat: Tái cấu trúc bot sang kiến trúc cog, thêm hỗ trợ đa máy chủ, giới thiệu tính năng đăng ký bóng đá, giao diện web và quản lý cấu hình.

This commit is contained in:
2026-01-16 17:26:42 +07:00
parent 8c38357c28
commit b24365927a
39 changed files with 3864 additions and 997 deletions
+15
View File
@@ -0,0 +1,15 @@
from sqlalchemy import Column, String, BigInteger, Boolean
from infra.db.base import Base, TimestampMixin
class Guild(Base, TimestampMixin):
__tablename__ = "guilds"
id = Column(BigInteger, primary_key=True) # Discord Guild ID
name = Column(String(255), nullable=True)
is_active = Column(Boolean, default=True)
def __str__(self):
return f"Guild ID: {self.id}, Name: {self.name}"
def __repr__(self):
return self.__str__()