14 lines
535 B
SQL
14 lines
535 B
SQL
-- The forum's link module: what a recognised link shows under a post. For
|
|||
|
|
-- now YouTube: title, channel and a thumbnail kept in our own storage, so a
|
||
|
|
-- page loads nothing from YouTube until someone plays the video.
|
||
|
|
CREATE TABLE forum.link_previews (
|
||
|
|
provider text NOT NULL,
|
||
|
|
key text NOT NULL,
|
||
|
|
title text NOT NULL,
|
||
|
|
author text,
|
||
|
|
-- The thumbnail's file in the object storage (NULL: none).
|
||
|
|
thumbnail text,
|
||
|
|
fetched_at timestamptz NOT NULL DEFAULT now(),
|
||
|
|
PRIMARY KEY (provider, key)
|
||
|
|
);
|