More shuffling, store actors in db
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE nodes;
|
||||
@@ -0,0 +1,12 @@
|
||||
-- Your SQL goes here
|
||||
CREATE TABLE nodes (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
listener_id UUID NOT NULL REFERENCES listeners(id) ON DELETE CASCADE,
|
||||
nodeinfo JSONB,
|
||||
instance JSONB,
|
||||
contact JSONB,
|
||||
created_at TIMESTAMP NOT NULL,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT NOW()
|
||||
);
|
||||
|
||||
SELECT diesel_manage_updated_at('nodes');
|
||||
Reference in New Issue
Block a user