-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: schema for RBAC valid registrations
- Loading branch information
1 parent
3258ac9
commit b708dd7
Showing
3 changed files
with
18 additions
and
23 deletions.
There are no files selected for viewing
20 changes: 0 additions & 20 deletions
20
catalyst-gateway/bin/src/db/index/schema/cql/cip509_registration.cql
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
catalyst-gateway/bin/src/db/index/schema/cql/rbac509_registration.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-- Index of RBAC 509 registrations. Valid. | ||
CREATE TABLE IF NOT EXISTS rbac509_registration ( | ||
-- Primary Key Data | ||
chain_root blob, -- 32 Bytes of Chain Root. | ||
transaction_id blob, -- 32 Bytes of Transaction Hash. | ||
purpose blob, -- 16 Bytes of UUIDv4 Purpose. | ||
slot_no varint, -- slot number when the key_was_registered/re-registered. | ||
txn smallint, -- Index of the TX which holds the registration data. | ||
|
||
-- Non-Key Data | ||
prv_txn_id blob, -- 32 Bytes from Previous Transaction Hash. | ||
|
||
PRIMARY KEY (chain_root, transaction_id, purpose, slot_no, txn) | ||
) | ||
WITH CLUSTERING ORDER BY (slot_no DESC, txn DESC); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters