-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(schema.prisma): switch database provider from sqlite to postgres…
…ql for better scalability and performance chore(schema.prisma): comment out old postgresql datasource configuration for future reference refactor(schema.prisma): update database schema to better represent Discord data - Replace 'roles' model with 'Users' and 'Roles' models to separate user and role data - Add 'UserRoles' model to represent many-to-many relationship between users and roles - Replace 'notes' model with 'Infractions' and 'Snippets' models to separate infraction and snippet data - Remove 'moderators', 'settings', 'logs', 'guilds', and 'messages' models as they are not needed in the new schema - Add 'InfractionType' enum to represent different types of infractions - Update comments to better explain the purpose of each model and field These changes were made to better align the database schema with the data provided by Discord and to simplify the data model. feat: add new models for logs, user_roles, notes, snippets, guilds, infractions to extend database schema WHY: To support new features such as logging, user roles, moderator notes, text snippets, guilds, and user infractions.
- Loading branch information
Showing
1 changed file
with
235 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters