canaryTokenIdidentifierrequiredWhat identifies the token: the value itself
Becomes the column canary_token_id of canary_token.
Written at commons/data/models/contract/mod.ts:147
A made-up value planted in a dataset or an environment that no honest process has a use for, so that its appearance elsewhere shows a leak
Model contract. Written in commons/data/models/contract/mod.ts:147. Identified by canaryTokenId.
canaryTokenIdidentifierrequiredWhat identifies the token: the value itself
Becomes the column canary_token_id of canary_token.
Written at commons/data/models/contract/mod.ts:147
plantedAtinstantrequiredWhen
Becomes the column planted_at of canary_token.
Written at commons/data/models/contract/mod.ts:147
plantedIntextrequiredWhere it was planted
Becomes the column planted_in of canary_token.
Written at commons/data/models/contract/mod.ts:147
purposetextrequiredWhat its appearance would mean
Becomes the column purpose of canary_token.
Written at commons/data/models/contract/mod.ts:147
Projects to the table canary_token with the primary key canary_token_id.
| Column | Type | Null | Role | From |
|---|---|---|---|---|
canary_token_id | text | false | attribute | canaryToken.canaryTokenId |
planted_at | timestamp | false | attribute | canaryToken.plantedAt |
planted_in | text | false | attribute | canaryToken.plantedIn |
purpose | text | false | attribute | canaryToken.purpose |
CREATE TABLE IF NOT EXISTS "canary_token" (
"canary_token_id" VARCHAR NOT NULL PRIMARY KEY,
"planted_in" VARCHAR NOT NULL,
"planted_at" TIMESTAMPTZ NOT NULL,
"purpose" VARCHAR NOT NULL
);CREATE TABLE IF NOT EXISTS "canary_token" (
"canary_token_id" TEXT NOT NULL PRIMARY KEY,
"planted_in" TEXT NOT NULL,
"planted_at" TIMESTAMPTZ NOT NULL,
"purpose" TEXT NOT NULL
);CREATE TABLE IF NOT EXISTS "canary_token" (
"canary_token_id" TEXT NOT NULL PRIMARY KEY,
"planted_in" TEXT NOT NULL,
"planted_at" TEXT NOT NULL,
"purpose" TEXT NOT NULL
);Read and written from TypeScript with the types the model gives: import { canaryToken } from "@intellectual-frontiers/data/sql/typed/models". Generated in commons/data/sql/typed/models/contract.auto.ts: do not edit.
import { from } from "@intellectual-frontiers/data/sql/typed";
import { canaryToken } from "@intellectual-frontiers/data/sql/typed/models";
const rows = await from(canaryToken).select((s) => ({ canaryTokenId: s.canaryToken.canaryTokenId, plantedIn: s.canaryToken.plantedIn })).run(runner);