Skip to content

@shutter-network/concorde/messenger/schema

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

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

Foreign keys leave this schema. messages.user_id points into concorde_users, which @shutter-network/concorde/users/schema creates. A configuration that lists @shutter-network/concorde/messenger/schema without it generates a constraint onto a table nobody creates.

concorde_messenger.messages

ColumnTypeNullableDefault
iduuidnogen_random_uuid()
user_iduuidno
directiontextno
seqintegerno
texttextno
created_attimestamp with time zonenoclock_timestamp()

Primary key: id

Unique constraints

NameColumnsNulls not distinct
messages_user_id_seq_uniqueuser_id, seqno

Check constraints

NameCondition
messages_direction_known"concorde_messenger"."messages"."direction" in ('inbound', 'outbound')

Foreign keys

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