Persistent Vehicle Loadouts (#863)

* persisting vehicle loadouts in between sessions, saving to db and loading from db

* reusing refactored code for clob; initial loadout without empty entries; reverting method of stopping session child actors
This commit is contained in:
Fate-JH 2021-06-15 18:32:12 -04:00 committed by GitHub
parent e2a81d68c1
commit 7c64b23e1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 307 additions and 69 deletions

View file

@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS "vehicleloadout" (
"id" SERIAL PRIMARY KEY NOT NULL,
"avatar_id" INT NOT NULL REFERENCES avatar (id),
"loadout_number" INT NOT NULL,
"name" VARCHAR(36) NOT NULL,
"vehicle" SMALLINT NOT NULL,
"items" TEXT NOT NULL
);