Skip to content

Commit be5fb5f

Browse files
committed
refactor(database): consolidate model definitions into a single models.py file
- Merged multiple model definitions (AFK, AccessType, Case, CaseType, Guild, GuildConfig, GuildPermission, Levels, Note, Reminder, Snippet, Starboard, StarboardMessage) into a unified models.py file for improved organization and maintainability. - Removed obsolete model files (content.py, guild.py, moderation.py, permissions.py, social.py, starboard.py) to streamline the codebase. - Updated import paths in __init__.py to reflect the new structure, enhancing clarity and consistency across the database models.
1 parent 4a7785d commit be5fb5f

File tree

8 files changed

+558
-255
lines changed

8 files changed

+558
-255
lines changed
Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,35 @@
11
from __future__ import annotations
22

3-
from . import content, guild, moderation, permissions, social, starboard
3+
from .models import (
4+
AFK,
5+
AccessType,
6+
Case,
7+
CaseType,
8+
Guild,
9+
GuildConfig,
10+
GuildPermission,
11+
Levels,
12+
Note,
13+
PermissionType,
14+
Reminder,
15+
Snippet,
16+
Starboard,
17+
StarboardMessage,
18+
)
419

520
__all__ = [
6-
"content",
7-
"guild",
8-
"moderation",
9-
"permissions",
10-
"social",
11-
"starboard",
21+
"AFK",
22+
"AccessType",
23+
"Case",
24+
"CaseType",
25+
"Guild",
26+
"GuildConfig",
27+
"GuildPermission",
28+
"Levels",
29+
"Note",
30+
"PermissionType",
31+
"Reminder",
32+
"Snippet",
33+
"Starboard",
34+
"StarboardMessage",
1235
]

src/tux/database/models/content.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/tux/database/models/guild.py

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)