Compare commits
1 Commits
0363dc2bcd
...
c9b6ce8f60
| Author | SHA1 | Date | |
|---|---|---|---|
| c9b6ce8f60 |
@@ -41,7 +41,7 @@ CREATE UNIQUE INDEX profiles_twitch_userid ON profiles_twitch (userid);
|
|||||||
|
|
||||||
CREATE TABLE communities(
|
CREATE TABLE communities(
|
||||||
communityid INTEGER PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
|
communityid INTEGER PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
|
||||||
migrated INTEGER REFERENCES user_profiles (profileid) ON DELETE CASCADE ON UPDATE CASCADE,
|
migrated INTEGER REFERENCES communities (communityid) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||||
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||||
last_seen TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
last_seen TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||||
_timestamp TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
_timestamp TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
||||||
|
|||||||
Reference in New Issue
Block a user