Skip to content

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

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

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

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

concorde_nostr_auth.admitted

ColumnTypeNullableDefault
event_idtextno
admitted_attimestamp with time zonenoclock_timestamp()

Primary key: event_id

Indexes

NameColumnsMethodUnique
nostr_auth_admitted_at_idxadmitted_atbtreeno

concorde_nostr_auth.grants

ColumnTypeNullableDefault
pubkeytextno
user_iduuidno
granted_attimestamp with time zonenoclock_timestamp()

Primary key: pubkey

Indexes

NameColumnsMethodUnique
nostr_auth_grants_user_idxuser_idbtreeno

Foreign keys

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