Download this file
| 1 | CREATE TABLE connections ( |
| 2 | id text PRIMARY KEY, |
| 3 | runner_id text, |
| 4 | person text, |
| 5 | local_id text, |
| 6 | revision integer, |
| 7 | last_seen datetime, |
| 8 | reports_json text, |
| 9 | security_hash text |
| 10 | ); |
| 11 | CREATE UNIQUE INDEX connection_local ON connections(runner_id, local_id); |
| 12 | CREATE INDEX connection_person ON connections(person); |
| 13 | CREATE TABLE connection_choices ( |
| 14 | person text, |
| 15 | project_id integer, |
| 16 | revision integer, |
| 17 | connection_ids_json text, |
| 18 | pinned_id text, |
| 19 | PRIMARY KEY(person, project_id) |
| 20 | ); |
| 21 | CREATE TABLE isolation_acknowledgements ( |
| 22 | id text PRIMARY KEY, |
| 23 | connection_id text, |
| 24 | owner text, |
| 25 | provider text, |
| 26 | provider_version text, |
| 27 | paseo_version text, |
| 28 | isolation_config_hash text, |
| 29 | acknowledged_at datetime, |
| 30 | connection_revision integer, |
| 31 | owner_revision integer, |
| 32 | revoked_at datetime |
| 33 | ); |
| 34 | CREATE INDEX connection_ack ON isolation_acknowledgements(connection_id); |
| 35 | CREATE TABLE connection_invalidations ( |
| 36 | id integer PRIMARY KEY AUTOINCREMENT, |
| 37 | connection_id text, |
| 38 | revision integer, |
| 39 | reason text, |
| 40 | at datetime |
| 41 | ); |
| 42 | CREATE INDEX connection_invalidation ON connection_invalidations(connection_id); |
| 43 | |