Download this file
| 1 | CREATE TABLE person_devices ( |
| 2 | id text PRIMARY KEY, |
| 3 | request_hash text, |
| 4 | input_hash text, |
| 5 | public_key text, |
| 6 | label text, |
| 7 | secret_hash text, |
| 8 | code_hash text, |
| 9 | challenge text, |
| 10 | instance_id text, |
| 11 | person text, |
| 12 | session_epoch integer, |
| 13 | revision integer, |
| 14 | created_at datetime, |
| 15 | expires_at datetime, |
| 16 | approved_at datetime, |
| 17 | exchanged_at datetime, |
| 18 | revoked_at datetime, |
| 19 | last_poll datetime, |
| 20 | token_hash text, |
| 21 | token_expires_at datetime, |
| 22 | nonce_hash text, |
| 23 | begin_cipher text, |
| 24 | result_cipher text, |
| 25 | result_expires_at datetime |
| 26 | ); |
| 27 | CREATE UNIQUE INDEX person_device_request ON person_devices(request_hash); |
| 28 | CREATE INDEX person_device_token ON person_devices(token_hash); |
| 29 | CREATE TABLE person_device_rates (key text PRIMARY KEY, started_at datetime, count integer); |
| 30 | ALTER TABLE connections ADD COLUMN label text; |
| 31 | ALTER TABLE connections ADD COLUMN revoked_at datetime; |
| 32 | |
| 33 | CREATE TABLE project_rules (project_id integer PRIMARY KEY, text text, revision integer); |
| 34 | |