Open-source multiplayer game server compatible with the RuneScape client
https://www.openrs2.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
530 B
25 lines
530 B
2 years ago
|
-- @formatter:off
|
||
|
CREATE TYPE key_source AS ENUM (
|
||
|
'api',
|
||
|
'disk',
|
||
|
'openosrs',
|
||
|
'polar',
|
||
|
'runelite'
|
||
|
);
|
||
|
|
||
|
CREATE TABLE key_sources (
|
||
|
key_id BIGINT NOT NULL REFERENCES keys (id),
|
||
|
source key_source NOT NULL,
|
||
|
first_seen TIMESTAMPTZ NOT NULL,
|
||
|
last_seen TIMESTAMPTZ NOT NULL,
|
||
|
PRIMARY KEY (key_id, source)
|
||
|
);
|
||
|
|
||
|
CREATE TABLE key_queue (
|
||
|
key xtea_key NOT NULL,
|
||
|
source key_source NOT NULL,
|
||
|
first_seen TIMESTAMPTZ NOT NULL,
|
||
|
last_seen TIMESTAMPTZ NOT NULL,
|
||
|
PRIMARY KEY (key, source)
|
||
|
);
|