<commit_before>-- -----------------------------------------------------
-- Table IDN_CONFIG_TYPE
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS IDN_CONFIG_TYPE (
  ID          VARCHAR(255)  NOT NULL,
  NAME        VARCHAR(255)  NOT NULL,
  DESCRIPTION VARCHAR(1023) NULL,
  PRIMARY KEY (ID),
  CONSTRAINT TYPE_NAME_CONSTRAINT UNIQUE (NAME)
);

-- -----------------------------------------------------
-- Table IDN_CONFIG_RESOURCE
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS IDN_CONFIG_RESOURCE (
  ID            VARCHAR(255) NOT NULL,
  TENANT_ID     INT          NOT NULL,
  NAME          VARCHAR(255) NOT NULL,
  CREATED_TIME  TIMESTAMP    NOT NULL,
  LAST_MODIFIED TIMESTAMP    NOT NULL,
  HAS_FILE      BOOLEAN(1)   NOT NULL,
  HAS_ATTRIBUTE BOOLEAN(1)   NOT NULL,
  TYPE_ID       VARCHAR(255) NOT NULL,
  UNIQUE (NAME, ID, TYPE_ID),
  PRIMARY KEY (ID)
);<commit_msg>Fix unique constraint<commit_after>-- -----------------------------------------------------
-- Table IDN_CONFIG_TYPE
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS IDN_CONFIG_TYPE (
  ID          VARCHAR(255)  NOT NULL,
  NAME        VARCHAR(255)  NOT NULL,
  DESCRIPTION VARCHAR(1023) NULL,
  PRIMARY KEY (ID),
  CONSTRAINT TYPE_NAME_CONSTRAINT UNIQUE (NAME)
);

-- -----------------------------------------------------
-- Table IDN_CONFIG_RESOURCE
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS IDN_CONFIG_RESOURCE (
  ID            VARCHAR(255) NOT NULL,
  TENANT_ID     INT          NOT NULL,
  NAME          VARCHAR(255) NOT NULL,
  CREATED_TIME  TIMESTAMP    NOT NULL,
  LAST_MODIFIED TIMESTAMP    NOT NULL,
  HAS_FILE      BOOLEAN(1)   NOT NULL,
  HAS_ATTRIBUTE BOOLEAN(1)   NOT NULL,
  TYPE_ID       VARCHAR(255) NOT NULL,
  UNIQUE (NAME, TENANT_ID, TYPE_ID),
  PRIMARY KEY (ID)
);
{'fraction_non_alphanumeric': 0.2846677132391418, 'fraction_numerical': 0.02197802197802198, 'mean_word_length': 1.3008423586040914, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5223247', 'n_tokens_mistral': 597, 'n_tokens_neox': 548, 'n_words': 150}