going somewhere.

This commit is contained in:
didier amyot committed 2022-12-19 10:27:13 -05:00
1 parent 64e9be8b5a
commit 9ccaeaf410
5 files changed
+102 -37

No files matched your search

+2 -1
View File
@@ -65,5 +65,6 @@ CREATE TABLE IF NOT EXISTS cashed_cheques
FOREIGN KEY (underlying_security) REFERENCES securities (id),
FOREIGN KEY (drawer_user_id) REFERENCES users (id),
FOREIGN KEY (drawer_account_id) REFERENCES accounts (id)
FOREIGN KEY (drawer_account_id) REFERENCES accounts (id),
CONSTRAINT double_spending UNIQUE (drawer_user_id, cheque_number) -- no double spending
);