-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE IF NOT EXISTS "lichat-channels"( | ||
"id" INT GENERATED ALWAYS AS IDENTITY, | ||
"name" VARCHAR(32) NOT NULL, | ||
"registrant" INT NOT NULL, | ||
"lifetime" INT NOT NULL, | ||
"expiry" INT NOT NULL, | ||
PRIMARY KEY("id"), | ||
UNIQUE("name") | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE IF NOT EXISTS "lichat-connections"( | ||
"id" INT GENERATED ALWAYS AS IDENTITY, | ||
"ip" VARCHAR(39) NOT NULL, | ||
"ssl" BOOLEAN NOT NULL, | ||
"user" INT NOT NULL, | ||
"last-update" BIGINT NOT NULL, | ||
"started-on" BIGINT NOT NULL, | ||
PRIMARY KEY("id"), | ||
CONSTRAINT "user" FOREIGN KEY("user") REFERENCES "lichat-users"("id") ON DELETE CASCADE | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE TABLE IF NOT EXISTS "lichat-users"( | ||
"id" INT GENERATED ALWAYS AS IDENTITY, | ||
"name" VARCHAR(32), | ||
"registered" BOOLEAN NOT NULL, | ||
PRIMARY KEY("id"), | ||
UNIQUE("name") | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters