Files
llink/go/migrations/000008_network_invitations.up.sql
T
Arjun Patel bf0147d542 refactor: reference human id instead of email (#73)
* refactor: update api and client to reference humanIds

* fix: prevent deletion of network member

This may cause various side effects if there is data in other services
which reference this member
2026-03-24 19:48:02 -07:00

7 lines
221 B
SQL

CREATE TABLE network_invitations (
network_id TEXT NOT NULL REFERENCES networks(id) ON DELETE CASCADE,
email VARCHAR(255) NOT NULL,
created_at TIMESTAMPTZ DEFAULT NOW(),
PRIMARY KEY (network_id, email)
);