mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-10 07:30:29 +00:00
Enemies (No Friends) (#1008)
* database, transfer objects and storage objects for lists of good friends, and of friends that you want to ignore * friends and ignored players get added to lists, to the database, load in appropriate states, and update at basic appropriate times * ignoring players and being ignored by players cuases loss of communication avenues, especially tells, and visibility * modified the [friend list, ignored player list] x avatar query for better performance as the sizes of the results increases using joins and using targeted column selection * obligatory fixes to tests that come with every update
This commit is contained in:
parent
8747320307
commit
190a897dd5
23 changed files with 686 additions and 153 deletions
|
|
@ -0,0 +1,11 @@
|
|||
CREATE TABLE IF NOT EXISTS "friend" (
|
||||
"id" SERIAL PRIMARY KEY NOT NULL,
|
||||
"avatar_id" INT NOT NULL REFERENCES avatar (id),
|
||||
"char_id" INT NOT NULL REFERENCES avatar (id)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "ignored" (
|
||||
"id" SERIAL PRIMARY KEY NOT NULL,
|
||||
"avatar_id" INT NOT NULL REFERENCES avatar (id),
|
||||
"char_id" INT NOT NULL REFERENCES avatar (id)
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue