Files
TREK/server/src/db/kysely/MailIngestAddresses.table.ts
T
Maurice baa906fb6b feat(mail-ingest): tables for forwarded booking mails and their bookings
Five tables carry the mail import: forwarding addresses (token hash plus the
encrypted token), a person's switches, the readers' cursor and lease, every
mail as it arrived, and each booking read from it with its checks and fate.
Repositories read the trips a booking may go to by column, so the import
weighs a booking without reaching into five other domains.
2026-11-13 17:42:43 +01:00

15 lines
510 B
TypeScript

// Generated by scripts/generate-db-types.ts from the migrated schema. Do not edit by hand:
// change the migration, then run `npm run gen:db-types`.
import type { InsertOptional } from './columns';
export interface MailIngestAddressesTable {
id: InsertOptional<number>;
token_hash: string;
token_enc: string;
user_id: number;
trip_id: InsertOptional<number | null>;
created_at: InsertOptional<string>;
revoked_at: InsertOptional<string | null>;
last_used_at: InsertOptional<string | null>;
}