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