Created
October 26, 2021 01:04
-
-
Save beargiles/b228f90fa523ccc0d3903711a0e83cf3 to your computer and use it in GitHub Desktop.
PostgreSQL user-defined RECORD type
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
-- | |
-- Create user-defined record type for symmetric keys | |
-- | |
CREATE TYPE skey AS ( | |
key_id int4, | |
key bytea, | |
type text | |
); | |
-- | |
-- Create user-defined record type for symmetric key ciphertext | |
-- | |
CREATE TYPE sciphertext AS ( | |
data bytea, | |
key skey, | |
iv bytea | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment