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");
	}
}

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 codec_type = new MetaModel("codec_type", "VARCHAR(20)", "NULL DEFAULT ''");
		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, codec_type, creation_date, payload,
				  dead_date, group_id, priority, origin_id);
		setPrimaryKey(id);
		setIndexKey("key", ref_key.columnName);
		setTableName("dead_letter");
	}
}

add codec_type in dead_letter table