mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 21:13:02 +00:00
b751156cd7
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
8 lines
313 B
SQL
8 lines
313 B
SQL
ALTER TABLE users
|
|
ADD invite_code VARCHAR(64),
|
|
ADD invite_count INTEGER NOT NULL DEFAULT 0,
|
|
ADD inviter_id INTEGER REFERENCES users (id),
|
|
ADD connected_once BOOLEAN NOT NULL DEFAULT false,
|
|
ADD created_at TIMESTAMP NOT NULL DEFAULT NOW();
|
|
|
|
CREATE UNIQUE INDEX "index_invite_code_users" ON "users" ("invite_code");
|