mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 18:48:37 -05:00
10 lines
298 B
MySQL
10 lines
298 B
MySQL
|
CREATE TABLE presence (
|
||
|
file_id uuid NOT NULL REFERENCES file(id) ON DELETE CASCADE,
|
||
|
profile_id uuid NOT NULL REFERENCES profile(id) ON DELETE CASCADE,
|
||
|
session_id uuid NOT NULL,
|
||
|
|
||
|
updated_at timestamptz NOT NULL DEFAULT clock_timestamp(),
|
||
|
|
||
|
PRIMARY KEY (file_id, session_id, profile_id)
|
||
|
);
|