Download this file
| 1 | -- A member's host token: what Equipo's Assistant presents when it calls |
| 2 | -- Base's operations for that member. One per member; minting another |
| 3 | -- replaces it. token_hash is the token's SHA-256 in hex, never the token. |
| 4 | -- registered_at is when Base last gave this token to Equipo, NULL until it |
| 5 | -- has. |
| 6 | CREATE TABLE host_tokens ( |
| 7 | member_id text PRIMARY KEY REFERENCES members (id) ON DELETE CASCADE, |
| 8 | token_hash text NOT NULL UNIQUE, |
| 9 | created_at datetime NOT NULL, |
| 10 | registered_at datetime |
| 11 | ); |
| 12 | |