~singpolyma/jmp-schemas

jmp-schemas/deploy/unused_invites.sql -rw-r--r-- 161 bytes
395bb797Stephen Paul Weber Tag for notify on top up an expired account a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
-- Deploy jmp:unused_invites to pg

BEGIN;

CREATE VIEW unused_invites AS
	SELECT creator_id, created_at, code
	FROM invites
	WHERE used_by_id IS NULL;

COMMIT;