initial netcafe implementation

This commit is contained in:
wish
2022-08-13 16:25:32 +10:00
parent 0bf19c8ac8
commit 18989e9435
7 changed files with 226 additions and 87 deletions

21
patch-schema/netcafe.sql Normal file
View File

@@ -0,0 +1,21 @@
BEGIN;
ALTER TABLE IF EXISTS public.characters
ADD COLUMN cafe_time integer DEFAULT 0;
CREATE TABLE IF NOT EXISTS public.cafebonus
(
id integer NOT NULL PRIMARY KEY,
line integer NOT NULL,
itemclass integer NOT NULL,
itemid integer NOT NULL,
tradequantity integer NOT NULL
);
CREATE TABLE IF NOT EXISTS public.cafe_accepted
(
cafe_id integer NOT NULL,
character_id integer NOT NULL
);
END;