mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-28 15:40:28 +01:00
20 lines
385 B
MySQL
20 lines
385 B
MySQL
|
CREATE TABLE locks (
|
||
|
id SERIAL NOT NULL,
|
||
|
owner VARCHAR(100),
|
||
|
timeout INTEGER,
|
||
|
created INTEGER,
|
||
|
token VARCHAR(100),
|
||
|
scope SMALLINT,
|
||
|
depth SMALLINT,
|
||
|
uri TEXT
|
||
|
);
|
||
|
|
||
|
ALTER TABLE ONLY locks
|
||
|
ADD CONSTRAINT locks_pkey PRIMARY KEY (id);
|
||
|
|
||
|
CREATE INDEX locks_token_ix
|
||
|
ON locks USING btree (token);
|
||
|
|
||
|
CREATE INDEX locks_uri_ix
|
||
|
ON locks USING btree (uri);
|