CREATE TABLE messages_properties (
  message_id bigint NOT NULL,
  property_key character varying(255) NOT NULL,
  property_value text NOT NULL,
  CONSTRAINT message_key UNIQUE(message_id, property_key)
)
