7 lines
348 B
MySQL
7 lines
348 B
MySQL
![]() |
-- Add up migration script here
|
||
|
CREATE TABLE IF NOT EXISTS "post_interaction"(
|
||
|
post_creation_time TIMESTAMPTZ NOT NULL REFERENCES "post"(creation_time),
|
||
|
interaction_id BIGSERIAL NOT NULL REFERENCES "interaction"(id),
|
||
|
interactor_id BIGSERIAL NOT NULL REFERENCES "user"(id),
|
||
|
interaction_time TIMESTAMPTZ PRIMARY KEY NOT NULL UNIQUE
|
||
|
);
|