   `entity_id` int(11) unsigned NOT NULL,
   `ordinal` int(11) DEFAULT NULL,
   `language` varchar(10) COLLATE utf8_estonian_ci DEFAULT NULL,
+  `value_display` varchar(500) COLLATE utf8_estonian_ci DEFAULT NULL,
   `value_formula` varchar(500) COLLATE utf8_estonian_ci DEFAULT NULL,
   `value_string` varchar(500) COLLATE utf8_estonian_ci DEFAULT NULL,
   `value_text` text COLLATE utf8_estonian_ci,

  KEY `value_entity` (`value_entity`),
  KEY `property_definition_keyname` (`property_definition_keyname`),
  KEY `deleted` (`deleted`),
  KEY `p_fk_def` (`definition_id`),
  CONSTRAINT `p_fk_def` FOREIGN KEY (`definition_id`) REFERENCES `entity` (`id`),
  CONSTRAINT `p_fk_e` FOREIGN KEY (`entity_id`) REFERENCES `entity` (`id`),
  CONSTRAINT `p_fk_pd` FOREIGN KEY (`property_definition_keyname`) REFERENCES `property_definition` (`keyname`) ON UPDATE CASCADE,
  CONSTRAINT `p_fk_v_counter` FOREIGN KEY (`value_counter`) REFERENCES `counter` (`id`),

  `deleted_by` varchar(100) COLLATE utf8_estonian_ci DEFAULT NULL,
  `old_id` varchar(200) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `entity_definition_keyname` (`entity_definition_keyname`),
  KEY `sort` (`sort`),
  KEY `deleted` (`deleted`),
  KEY `public` (`public`),
  KEY `sharing` (`sharing`),
  CONSTRAINT `e_fk_ed` FOREIGN KEY (`entity_definition_keyname`) REFERENCES `entity_definition` (`keyname`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_estonian_ci;

