Skip to content

@shutter-network/concorde/nostr-channel/schema

The tables this component creates, and the PostgreSQL schema concorde_nostr_channel it creates them in. A configuration listing @shutter-network/concorde/nostr-channel/schema creates all of them.

Generated from the snapshot drizzle-kit takes of src/nostr-channel/schema/index.ts, which is the snapshot an Operator's own generation reads. Never edited by hand.

Foreign keys leave this schema. outbox.user_id and pubkeys.user_id point into concorde_users, which @shutter-network/concorde/users/schema creates. A configuration that lists @shutter-network/concorde/nostr-channel/schema without it generates a constraint onto a table nobody creates.

concorde_nostr_channel.outbox

ColumnTypeNullableDefault
event_idtextno
user_iduuidno
message_iduuidno
wraptextno
reasontextyes
queued_attimestamp with time zonenoclock_timestamp()
failed_attimestamp with time zoneyes

Primary key: event_id

Foreign keys

ColumnsReferencesOn deleteOn update
user_idconcorde_users.users (id)no actionno action

concorde_nostr_channel.pubkeys

ColumnTypeNullableDefault
user_iduuidno
pubkeytextno
recorded_attimestamp with time zonenoclock_timestamp()

Primary key: user_id

Unique constraints

NameColumnsNulls not distinct
pubkeys_pubkey_uniquepubkeyno

Foreign keys

ColumnsReferencesOn deleteOn update
user_idconcorde_users.users (id)no actionno action

concorde_nostr_channel.received

ColumnTypeNullableDefault
event_idtextno
received_attimestamp with time zonenoclock_timestamp()

Primary key: event_id