mirror of
https://github.com/penpot/penpot.git
synced 2025-01-26 08:29:42 -05:00
15 lines
360 B
MySQL
15 lines
360 B
MySQL
|
DROP TABLE session;
|
||
|
|
||
|
CREATE TABLE http_session (
|
||
|
id text PRIMARY KEY,
|
||
|
|
||
|
created_at timestamptz NOT NULL DEFAULT clock_timestamp(),
|
||
|
modified_at timestamptz NOT NULL DEFAULT clock_timestamp(),
|
||
|
|
||
|
profile_id uuid REFERENCES profile(id) ON DELETE CASCADE,
|
||
|
user_agent text NULL
|
||
|
);
|
||
|
|
||
|
CREATE INDEX http_session__profile_id__idx
|
||
|
ON http_session(profile_id);
|