Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Создание структуры БД на основе гильдии "Protego Totalum" #6

Open
5 tasks
SmithyVL opened this issue Jul 5, 2024 · 1 comment
Assignees
Labels
⚡️ type: feature Разработка новых функций

Comments

@SmithyVL
Copy link
Member

SmithyVL commented Jul 5, 2024

Описание функциональности
Для хранения данных гильдии нужно множество таблиц разной связанности.

@SmithyVL SmithyVL added the ⚡️ type: feature Разработка новых функций label Jul 5, 2024
@SmithyVL SmithyVL added this to the 3 квартал 2024 milestone Jul 5, 2024
@SmithyVL SmithyVL self-assigned this Jul 5, 2024
@SmithyVL
Copy link
Member Author

SmithyVL commented Jul 5, 2024

Таблицы:

  • Students (все игроки):
    . id (идентификатор из дискорда уже уникален);
    . age;
    . timezone;
    . game;
    . facultyId;
    . nickName;
    . name;
    . country;
    . city;
    . birthday.
  • Roles (урезанная информация о ролях, синхронизированная из discord):
    . id (идентификатор из дискорда уже уникален);
    . name;
  • StudentsRoles (многие-ко-многим для ролей студентов):
    . studentId;
    . roleId.
  • Faculty (информация о факультетах):
    . id (уникальный идентификатор факультета);
    . name (название факультета на английском языке, маппится на enum);
    . scoreMultiplier (применяется к общему количеству баллов факультета в конце сезона).
  • GuildInfo (гильдийная информация):
    . studentId;
    . seasonId;
    . scores.
  • GuildScoreHistory (история начисления/отнимания баллов):
    . studentId;
    . amount;
    . reason;
    . seasonId;
    . executorId.
  • GuildSeasons (информация о гильдийных сезонах):
    . seasonNumber;
    . startDate;
    . endDate.
  • GuildScoreMultiplier (история множителей баллов):
    . facultyId;
    . seasonId;
    . multiplier.
  • GuildLeavers (кто ушел или исключили):
    . studentId;
    . leaveDate;
    . leaveReason;
    . isAzkaban.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡️ type: feature Разработка новых функций
Projects
Status: 🪄 Задачи
Development

No branches or pull requests

1 participant