--
-- The results of mixing and decrypting, per node
--

CREATE TABLE "MIXDEC_NODE_OUTPUT" (
  "TENANT_ID" VARCHAR2(100 CHAR) NOT NULL,
  "ELECTION_EVENT_ID" VARCHAR2(100 CHAR) NOT NULL,
  "BALLOT_BOX_ID" VARCHAR2(100 CHAR) NOT NULL,
  "VOTE_SET_INDEX" INT NOT NULL,
  "NODE_NAME" VARCHAR2(100 CHAR) NOT NULL,
  "PAYLOAD" CLOB,

  PRIMARY KEY (
    "TENANT_ID",
    "ELECTION_EVENT_ID",
    "BALLOT_BOX_ID",
    "NODE_NAME",
    "VOTE_SET_INDEX"
  )
);
