Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add json_schema column to candidate config #113

Open
wants to merge 2 commits into
base: dynamic_form
Choose a base branch
from

Conversation

manuranga
Copy link
Contributor

Following table structure is expected

CREATE TABLE `CANDIDATE_CONFIG` (
  `ID` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `KEY_NAME` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `DESCRIPTION` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `JSON_SCHEMA` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

INSERT INTO `` (`ID`,`KEY_NAME`,`DESCRIPTION`,`JSON_SCHEMA`) VALUES ('1','FULL_NAME','Name Of Candidate (Full Name)','');
INSERT INTO `` (`ID`,`KEY_NAME`,`DESCRIPTION`,`JSON_SCHEMA`) VALUES ('2','PREFERRED_NAME','Preferred Name',NULL);
INSERT INTO `` (`ID`,`KEY_NAME`,`DESCRIPTION`,`JSON_SCHEMA`) VALUES ('3','NIC','National Identity Card (NIC)',NULL);
INSERT INTO `` (`ID`,`KEY_NAME`,`DESCRIPTION`,`JSON_SCHEMA`) VALUES ('4','DATE_OF_BIRTH','Date of Birth','{\"type\":\"string\",\"format\":\"date\"}');
INSERT INTO `` (`ID`,`KEY_NAME`,`DESCRIPTION`,`JSON_SCHEMA`) VALUES ('5','GENDER','Gender','{\"oneOf\":[{\"type\":\"string\",\"enum\":[\"MALE\"],\"title\":\"Male\"},{\"type\":\"string\",\"enum\":[\"FEMALE\"],\"title\":\"Female\"}],\"type\":\"string\"}');
INSERT INTO `` (`ID`,`KEY_NAME`,`DESCRIPTION`,`JSON_SCHEMA`) VALUES ('6','ADDRESS','Address',NULL);
INSERT INTO `` (`ID`,`KEY_NAME`,`DESCRIPTION`,`JSON_SCHEMA`) VALUES ('7','OCCUPATION','Occupation',NULL);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant