diff options
author | Rob Austein <sra@hactrn.net> | 2014-02-01 00:11:21 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-02-01 00:11:21 +0000 |
commit | c08aa24ba903a7b161133eb7766f4f404a2356da (patch) | |
tree | 01509a4da89c928d86bb44f86c514f0946c27303 /rpkid/rpkid.sql | |
parent | 69ec1209923661e186b441d173420b37b3374cea (diff) |
Checkpoint: Add ee_cert table to rpkid.sql. Corresponding Python
class not written yet.
svn path=/branches/tk671/; revision=5659
Diffstat (limited to 'rpkid/rpkid.sql')
-rw-r--r-- | rpkid/rpkid.sql | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rpkid/rpkid.sql b/rpkid/rpkid.sql index 39603124..5090e844 100644 --- a/rpkid/rpkid.sql +++ b/rpkid/rpkid.sql @@ -230,6 +230,20 @@ CREATE TABLE ghostbuster ( FOREIGN KEY (ca_detail_id) REFERENCES ca_detail (ca_detail_id) ON DELETE CASCADE ) ENGINE=InnoDB; +CREATE TABLE ee_cert ( + ee_cert_id SERIAL NOT NULL, + ski BINARY(20) NOT NULL, + cert LONGBLOB NOT NULL, + published DATETIME, + self_id BIGINT UNSIGNED NOT NULL, + ca_detail_id BIGINT UNSIGNED NOT NULL, + PRIMARY KEY (ee_cert_id), + CONSTRAINT ee_cert_self_id + FOREIGN KEY (self_id) REFERENCES self (self_id) ON DELETE CASCADE, + CONSTRAINT ee_cert_ca_detail_id + FOREIGN KEY (ca_detail_id) REFERENCES ca_detail (ca_detail_id) ON DELETE CASCADE +) ENGINE=InnoDB; + -- Local Variables: -- indent-tabs-mode: nil -- End: |