mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-26 11:31:07 +00:00
11 lines
288 B
MySQL
11 lines
288 B
MySQL
|
-- Your SQL goes here
|
||
|
CREATE TABLE media (
|
||
|
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||
|
media_id UUID UNIQUE NOT NULL,
|
||
|
url TEXT UNIQUE NOT NULL,
|
||
|
created_at TIMESTAMP NOT NULL,
|
||
|
updated_at TIMESTAMP NOT NULL DEFAULT NOW()
|
||
|
);
|
||
|
|
||
|
SELECT diesel_manage_updated_at('media');
|