oficina / base Public

Clone
git clone https://amadan.net/oficina/base

Plain git — no account needed to clone.

Download

Download this file

1-- A member's connection to Equipo: the device Base signed in on their
2-- behalf. sealed holds the device's private key, its secret and, once
3-- connected, the bearer, encrypted under a key derived from
4-- BASE_INSTANCE_KEY for this member alone. expires_at is when the sign-in
5-- code expires while pending, and when the bearer expires once connected.
6CREATE TABLE equipo_links (
7 member_id text NOT NULL PRIMARY KEY REFERENCES members (id) ON DELETE CASCADE,
8 origin text NOT NULL,
9 state text NOT NULL,
10 device_id text NOT NULL,
11 user_code text NOT NULL DEFAULT '',
12 verification_uri text NOT NULL DEFAULT '',
13 sealed blob NOT NULL,
14 expires_at datetime NOT NULL,
15 revision integer NOT NULL DEFAULT 0,
16 polled_at datetime,
17 updated_at datetime NOT NULL
18);
19