package com.ctrip.hermes.portal.service.storage.model;

public final class DeadLetterTableModel extends TableModel{
	public DeadLetterTableModel(){
		MetaModel id = new MetaModel("id", "BIGINT(11)", "NOT NULL AUTO_INCREMENT");
		MetaModel producer_ip = new MetaModel("producer_ip", "VARCHAR(15)", "NOT NULL DEFAULT ''");
		MetaModel producer_id = new MetaModel("producer_id", "INT(11)", "NOT NULL");
		MetaModel ref_key = new MetaModel("ref_key", "VARCHAR(100)", "NULL DEFAULT NULL");
		MetaModel attributes = new MetaModel("attributes", "BLOB", "NULL");
		MetaModel creation_date = new MetaModel("creation_date", "DATETIME", "NOT NULL");
		MetaModel payload = new MetaModel("payload", "MEDIUMBLOB", "NOT NULL");
		MetaModel dead_date = new MetaModel("dead_date", "DATETIME", "NOT NULL");
		MetaModel group_id = new MetaModel("group_id", "INT(11)", "NULL DEFAULT NULL");
		MetaModel priority = new MetaModel("priority", "TINYINT(4)", "NOT NULL");
		MetaModel origin_id = new MetaModel("origin_id", "BIGINT(20)", "NOT NULL");

		setMetaModels(id, producer_ip, producer_id, ref_key, attributes, creation_date, payload,
				  dead_date, group_id, priority, origin_id);
		setPrimaryKey(id);
		setIndexKey("key", ref_key.columnName);
		setTableName("dead_letter");
	}
}

@@ -540,32 +540,120 @@
 BLOB%22, %22NULL%22);%0A
+%09%09MetaModel codec_type = new MetaModel(%22codec_type%22, %22VARCHAR(20)%22, %22NULL DEFAULT ''%22);%0A
 %09%09MetaModel crea
@@ -1173,16 +1173,28 @@
 ributes,
+ codec_type,
  creatio

add codec_type in dead_letter table