mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-18 13:09:08 +02:00
Successfully create and get signing squeak profile (#74)
This commit is contained in:
parent
89ddf0fbcb
commit
7d530b25f4
7 changed files with 166 additions and 0 deletions
10
init.sql
10
init.sql
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue