Skip to content

Instantly share code, notes, and snippets.

@arvind-subramanian
Created June 17, 2018 18:30
Show Gist options
  • Save arvind-subramanian/03b63f90a4d904893c95ae3a19f4089c to your computer and use it in GitHub Desktop.
Save arvind-subramanian/03b63f90a4d904893c95ae3a19f4089c to your computer and use it in GitHub Desktop.
CREATE TABLE resource (
id serial PRIMARY key,
resource_content VARCHAR NOT NULL,
resource_pattern VARCHAR NOT NULL,
resource_link VARCHAR NOT NULL,
resource_hash VARCHAR NOT NULL,
pattern_hash VARCHAR NOT NULL,
transaction_hash VARCHAR,
event_type VARCHAR,
ipfs_hash VARCHAR,
last_modified TIMESTAMP,
user_address serial REFERENCES Userinfo(userid),
resource_summary VARCHAR
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment