Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
db schema changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ubhaller committed Jun 2, 2021
1 parent 89b8ba1 commit 9b4803e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ CREATE TABLE t_country_specific_certificate_authority
certificate_raw text NOT NULL,
imported_at timestamp with time zone NOT NULL DEFAULT now(),
origin character varying(10) NOT NULL,
common_name character varying(255) NOT NULL,
issuer_name character varying(255) NOT NULL,
principal_name character varying(255) NOT NULL,
subject_principal_name character varying(255) NOT NULL,
CONSTRAINT PK_t_country_specific_certificate_authority PRIMARY KEY ( pk_csca_id ),
CONSTRAINT csca_unique_key_id UNIQUE ( key_id )
);
Expand All @@ -28,12 +26,12 @@ CREATE TABLE t_document_signer_certificate
origin character varying(10) NOT NULL,
use character varying(10) NOT NULL,
alg character varying(10) NOT NULL,
n character varying(1000) NOT NULL,
e character varying(255) NOT NULL,
subject_public_key_info character varying(1500) NOT NULL,
crv character varying(10) NOT NULL,
x character varying(255) NOT NULL,
y character varying(255) NOT NULL,
n character varying(1000),
e character varying(255),
subject_public_key_info character varying(1500),
crv character varying(10),
x character varying(255),
y character varying(255),
CONSTRAINT PK_t_document_signer_certificate PRIMARY KEY ( pk_dsc_id ),
CONSTRAINT dsc_unique_key_id UNIQUE ( key_id ),
CONSTRAINT FK_45 FOREIGN KEY ( fk_csca_id ) REFERENCES t_country_specific_certificate_authority ( pk_csca_id )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ CREATE TABLE t_country_specific_certificate_authority
certificate_raw text NOT NULL,
imported_at timestamp with time zone NOT NULL DEFAULT now(),
origin character varying(10) NOT NULL,
common_name character varying(255) NOT NULL,
issuer_name character varying(255) NOT NULL,
principal_name character varying(255) NOT NULL,
subject_principal_name character varying(255) NOT NULL,
CONSTRAINT PK_t_country_specific_certificate_authority PRIMARY KEY ( pk_csca_id ),
CONSTRAINT csca_unique_key_id UNIQUE ( key_id )
);
Expand All @@ -28,12 +26,12 @@ CREATE TABLE t_document_signer_certificate
origin character varying(10) NOT NULL,
use character varying(10) NOT NULL,
alg character varying(10) NOT NULL,
n character varying(1000) NOT NULL,
e character varying(255) NOT NULL,
subject_public_key_info character varying(1500) NOT NULL,
crv character varying(10) NOT NULL,
x character varying(255) NOT NULL,
y character varying(255) NOT NULL,
n character varying(1000),
e character varying(255),
subject_public_key_info character varying(1500),
crv character varying(10),
x character varying(255),
y character varying(255),
CONSTRAINT PK_t_document_signer_certificate PRIMARY KEY ( pk_dsc_id ),
CONSTRAINT dsc_unique_key_id UNIQUE ( key_id ),
CONSTRAINT FK_45 FOREIGN KEY ( fk_csca_id ) REFERENCES t_country_specific_certificate_authority ( pk_csca_id )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ public class DbCsca {
private String certificateRaw;
private LocalDateTime importedAt;
private String origin;
private String commonName;
private String issuerName;
private String principalName;
private String subjectPrincipalName;

public Long getId() {
return id;
Expand Down Expand Up @@ -62,27 +60,11 @@ public void setOrigin(String origin) {
this.origin = origin;
}

public String getCommonName() {
return commonName;
public String getSubjectPrincipalName() {
return subjectPrincipalName;
}

public void setCommonName(String commonName) {
this.commonName = commonName;
}

public String getIssuerName() {
return issuerName;
}

public void setIssuerName(String issuerName) {
this.issuerName = issuerName;
}

public String getPrincipalName() {
return principalName;
}

public void setPrincipalName(String principalName) {
this.principalName = principalName;
public void setSubjectPrincipalName(String subjectPrincipalName) {
this.subjectPrincipalName = subjectPrincipalName;
}
}

0 comments on commit 9b4803e

Please sign in to comment.