going somewhere.
This commit is contained in:
1 parent
64e9be8b5a
commit
9ccaeaf410
5 files changed
+102
-37
No files matched your search
@@ -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
|
||||
);
|
||||
Reference in new issue
Block a user