mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 19:31:33 +00:00
11 lines
354 B
MySQL
11 lines
354 B
MySQL
|
CREATE TABLE image_upload (
|
||
|
id serial PRIMARY KEY,
|
||
|
local_user_id int REFERENCES local_user ON UPDATE CASCADE ON DELETE CASCADE NOT NULL,
|
||
|
pictrs_alias text NOT NULL UNIQUE,
|
||
|
pictrs_delete_token text NOT NULL,
|
||
|
published timestamptz DEFAULT now() NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE INDEX idx_image_upload_local_user_id ON image_upload (local_user_id);
|
||
|
|