-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Database rework #356
Labels
Comments
EDM115
changed the title
Redo the database, have less collections (hopefully reduces requests), allow for a local deployment and a local .json entry
Database rework
Nov 12, 2024
After more thoughts into this, here's the quick rundown of what's needed :
The new DB scheme still have to be made
|
Potential DB Scheme :erDiagram
User {
int id
bool is_banned
str upload_mode
str lang
int uploaded_count
}
Upload_Modes {
str type
}
Languages {
str locale
}
Thumb {
int id
int uid
str file_id
str temp_id
}
Password {
int id
int uid
str pass
}
Task {
int id
int uid
int user_task_nb
bool started
float start_time
str type
bool cancelled
int message_id
}
Task_Types {
str type
}
System {
int id
float boot_time
float old_boot_time
bool maintenance
}
Vip {
int id
int uid
date start
date end
str mean
str proof
str frequency
bool early
bool donator
date first_start
int nb_payments
bool gap
bool giftes
str referral
str referee
bool lifetime
}
Payment_Means {
str mean
}
Payment_Frequencies {
str freq
}
%% Relationships %%
User ||--o{ Upload_Modes : "upload_mode"
User ||--o{ Languages : "lang"
User ||--o{ Thumb : "1 : n"
User ||--o{ Password : "1 : 1"
User ||--o{ Task : "1 : n"
User ||--o{ Vip : "1 : 1"
Task ||--o{ Task_Types : "type"
Vip ||--o{ Payment_Means : "mean"
Vip ||--o{ Payment_Frequencies : "frequency"
Thumb ||--o| User : "uid"
Password ||--o| User : "uid"
Task ||--o| User : "uid"
Vip ||--o| User : "uid"
DB Scheme as i wrote it
The |
we should also remove an user from the db when we get |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Redo the database, have less collections (hopefully reduces requests), allow for a local deployment + SQLite
Current state of the database :
The text was updated successfully, but these errors were encountered: