Successfully create and get signing squeak profile (#74)

This commit is contained in:
Jonathan Zernik 2020-07-17 16:42:22 -07:00 committed by GitHub
parent 89ddf0fbcb
commit 7d530b25f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 166 additions and 0 deletions

View file

@ -20,3 +20,13 @@ CREATE TABLE IF NOT EXISTS squeak (
CREATE INDEX IF NOT EXISTS idx_squeak_address
ON squeak(address);
CREATE TABLE IF NOT EXISTS profile (
profile_id SERIAL PRIMARY KEY,
created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
profile_name VARCHAR(64) NOT NULL,
private_key bytea,
address VARCHAR(35) UNIQUE NOT NULL, -- Maximum length of a bitcoin address is 35.
sharing BOOLEAN NOT NULL,
following BOOLEAN NOT NULL
);