mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
21 lines
496 B
SQL
21 lines
496 B
SQL
CREATE TABLE IF NOT EXISTS "sessions" (
|
|
"id" VARCHAR NOT NULL PRIMARY KEY,
|
|
"expires" TIMESTAMP WITH TIME ZONE NULL,
|
|
"session" TEXT NOT NULL
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS "users" (
|
|
"id" SERIAL PRIMARY KEY,
|
|
"github_login" VARCHAR,
|
|
"admin" BOOLEAN
|
|
);
|
|
|
|
CREATE UNIQUE INDEX "index_users_github_login" ON "users" ("github_login");
|
|
|
|
CREATE TABLE IF NOT EXISTS "signups" (
|
|
"id" SERIAL PRIMARY KEY,
|
|
"github_login" VARCHAR,
|
|
"email_address" VARCHAR,
|
|
"about" TEXT
|
|
);
|