whatamidoing

This commit is contained in:
asonix
2020-03-14 21:05:40 -05:00
commit b7369e2cc0
22 changed files with 2913 additions and 0 deletions
@@ -0,0 +1,3 @@
-- This file should undo anything in `up.sql`
DROP INDEX blocks_actor_id_index;
DROP TABLE blocks;
@@ -0,0 +1,11 @@
-- 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');