zed/crates/collab/migrations/20210607190313_create_access_tokens.sql

8 lines
222 B
MySQL
Raw Normal View History

CREATE TABLE IF NOT EXISTS "access_tokens" (
"id" SERIAL PRIMARY KEY,
"user_id" INTEGER REFERENCES users (id),
"hash" VARCHAR(128)
);
CREATE INDEX "index_access_tokens_user_id" ON "access_tokens" ("user_id");