<?php
class CampaignHistoryTable extends Table
{
	const C_TABLE                       = "CAMPAIGN_HISTORY";
	const C_ID                          = "CAMPAIGN_ID";
	const C_CUSTOMER_ID                 = "CAMPAIGN_HISTORY_CUSTOMER_ID";
	const C_CONTACT_ID                  = "CAMPAIGN_HISTORY_CONTACT_ID";
	const C_DELIVERY_DATE               = "CAMPAIGN_HISTORY_DELIVERY_DATE";
	const C_DELIVERY_TIME               = "CAMPAIGN_HISTORY_DELIVERY_TIME";
	const C_RESPONSE_TIME               = "CAMPAIGN_HISTORY_RESPONSE_TIME";
	const C_GIFT_MASTER_ID              = "CAMPAIGN_HISTORY_GIFT_MASTER_ID";
	const C_CHOSEN_ITEM_ID              = "CAMPAIGN_HISTORY_CHOSEN_ITEM_ID";
	const C_REMARKS 		            = "CAMPAIGN_HISTORY_REMARKS";
	const C_GIFT_AMOUNT                 = "CAMPAIGN_HISTORY_GIFT_AMOUNT";
}

class CampaignHistoryTableDetail extends TableDetail
{
	const C_ID                          = "int||NO|(0)";
	const C_CUSTOMER_ID                 = "int||NO|(0)";
	const C_CONTACT_ID                 	= "int||NO|(0)";
	const C_DELIVERY_DATE               = "date||NO|''";
	const C_DELIVERY_TIME               = "nvarchar|255|NO|''";
	const C_RESPONSE_TIME               = "datetime||NO|getdate()";
	const C_GIFT_MASTER_ID              = "int||NO|(0)";
	const C_CHOSEN_ITEM_ID              = "int||NO|(0)";
	const C_REMARKS              		= "ntext||NO|''";
	const C_GIFT_AMOUNT                 = "int||NO|(0)";
}

class CampaignHistoryTableDescription extends TableDescription
{
	const C_ID                          = "ID";
	const C_CUSTOMER_ID                 = "Customer ID";
	const C_CONTACT_ID                 	= "Contact ID";
	const C_DELIVERY_DATE               = "Delivery Date";
	const C_DELIVERY_TIME               = "Delivery Time";
	const C_RESPONSE_TIME               = "Response Time";
	const C_GIFT_MASTER_ID              = "Gift ID";
	const C_CHOSEN_ITEM_ID              = "Chosen Item";
	const C_REMARKS              		= "Remarks";
	const C_GIFT_AMOUNT                 = "Gift Amount";
}
