mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-25 19:11:08 +00:00
12 lines
303 B
MySQL
12 lines
303 B
MySQL
|
-- Your SQL goes here
|
||
|
CREATE TABLE blocks (
|
||
|
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||
|
actor_id TEXT UNIQUE NOT NULL,
|
||
|
created_at TIMESTAMP NOT NULL,
|
||
|
updated_at TIMESTAMP NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE INDEX blocks_actor_id_index ON blocks(actor_id);
|
||
|
|
||
|
SELECT diesel_manage_updated_at('blocks');
|