import React from "react";

export const AppTables = {
    GEOTAG: 'DR_GEOTAG',
    DB_GEOTAG: 'DB_GEOTAG',
    HEADER_BACK_OF_STORE: 'DR_HEADER_BACKROOM',
    CHILD_BACK_OF_STORE: 'DR_CHILD_BACKROOM',
    SALES: 'DR_SALES',
    ORDER: 'DR_ORDER',
    INSERT_OPENINGHEADER_DATA: 'STOCKHEADER_DATA',
    STOCK_DATA: 'STOCK_DATA',
    STOCK2HDR_DATA: 'STOCK2HDR_DATA',
    STOCK2_DATA: 'STOCK2_DATA',
    STOCK2_MFD_DATA: 'STOCK2_MFD_DATA',

    STOCKPROMO_HDR_TOP: 'STOCKPROMO_HDR_TOP',
    STOCKPOMO_HDR_DATA: 'STOCKPOMO_HDR_DATA',
    STOCKPROMO_DATA: 'STOCKPROMO_DATA',

    STOCKWITHCAT_HDR_DATA: 'STOCKWITHCAT_HDR_DATA',
    STOCKWITHCAT_DATA: 'STOCKWITHCAT_DATA',
    STOCKWITHCAT_MFD_DATA: 'STOCKWITHCAT_MFD_DATA',

    SHARE_OF_SHELF_IMAGE: 'SHARE_OF_SHELF_HEADER',
    SHARE_OF_SHELF_FACING_DATA: 'SHARE_OF_SHELF_FACING',
    INSERT_SAMPLED_DATA: 'DR_TABLE_SAMPLING',
    CONTACT_CONVERSION: "DR_CONTACT_CONVERSION",
    INSERT_ERROR_TRACKING: "DR_ERROR_TRACKING",
    GROOMING_IMAGE_DATA: 'STORE_GROOMING_IMAGE_DATA',

    ADDITIONAL_VISIBILITY: "DR_ADVVISIBILITY",
    ADDITIONAL_VISIBILITY_STOCK: "DR_ADVVISIBILITY_STOCK",

    ADD_STORE_INFO: "DR_ADDSTOREINFO",
    HOME_LOCATION: "DR_HOMELOCATION",

    ADDVIS_IR_IMAGES: "ADDVIS_IR_IMAGES",
    ADDVIS_IRUPLOAD: "ADDVIS_IRUPLOAD",
    COMPVIS_IR_IMAGES: "COMPVIS_IR_IMAGES",
    COMPVIS_IRUPLOAD: "COMPVIS_IRUPLOAD",

    COMPETITION_VISIBILITY: 'DR_TABLECOMP_VISIBILITY',
    COMPETITION_PROMOTION: "DR_COMP_PROMOTION",
    COVERAGE_DATA: 'DR_COVERAGE',
    STORE_SEARCHJCP: 'StoreSearch_JourneyPlan',
    CHECKIN_DATA: 'EMPSTORE_CHECKIN',
    DISTRIBUTOR_CHECKIN: 'DISTRIBUTOR_CHECKIN',
    PROMOTION_HEADER_DATA: 'DR_TABLE_PROMOTION_HEADER',
    PROMOTION_DATA: 'DR_TABLE_PROMOTION',
    SIMPLE_PROMOHDR_DATA: 'SIMPLE_PROMOTION_HDR',
    SIMPLE_PROMOTION_DATA: 'SIMPLE_PROMOTION',
    PAID_VISIBILITY_HEADER_DATA: 'DR_PAIDVISIBILITY_HEADER',
    PAID_VISIBILITY_CHILD_DATA: 'DR_PAIDVISIBILITY',
    PAID_VIS_CHECKLIST: 'DR_CHECKLST',
    PERSONAL_DOCUMENT: 'PERSONAL_DOCUMENT',
    VISITOR_LOGIN: 'VISITOR_LOGIN',
    AUTOMATED_REIMBURSEMENT: 'DR_AUTOMATED_REIMBURSEMENT',
    CASHTILL_SURVEY: 'DR_CASHTILL',
    SURVEY: 'DR_SURVEY',

    WINDOW_HDR_DATA: 'WINDOW_HEARDER_DATA',
    WINDOW_CHILD_DATA: 'WINDOW_CHILD_DATA',
    WINDOW_STOCK_DATA: 'WINDOW_STOCK_DATA',
    WINDOW_IMAGES: 'WINDOW_IMAGES',
    WINDOW_IR_IMAGES: 'WINDOW_IR_IMAGES',
    WINDOW_IRUPLOAD: 'WINDOW_IRUPLOAD',

    POSM_HDR_DATA: 'POSM_HEARDER_DATA',
    POSM_CHILD_DATA: 'POSM_CHILD_DATA',
    FEEDBACK_DATA: 'FEEDBACK_DATA',
    STORE_IMAGES: 'STORE_IMAGES',

    ST_HDR_DATA: 'ST_HEARDER_DATA',
    ST_CHILD_DATA: 'ST_CHILD_DATA',
    ST_STOCK_DATA: 'ST_STOCK_DATA',
    ST_IMAGES: 'ST_IMAGES',

    PROMO_HDR_DATA: 'PROMO_HEARDER_DATA',
    PROMO_CHILD_DATA: 'PROMO_CHILD_DATA',
    PROMO_STOCK_DATA: 'PROMO_STOCK_DATA',
    PROMO_IMAGES: 'PROMO_IMAGES',
    PROMO_IR_IMAGES: 'PROMO_IR_IMAGES',
    PROMO_IRUPLOAD: 'PROMO_IRUPLOAD',

    PAIDVIS_HDR_DATA: 'PAIDVIS_HEARDER_DATA',

    WAREHOUSE_HDR_DATA: 'WAREHOUSE_HEARDER_DATA',
    WAREHOUSE_CHILD_DATA: 'WAREHOUSE_CHILD_DATA',
    WAREHOUSE_CAMPAIGN_CHILD_DATA: 'WAREHOUSE_CAMPAIGN_CHILD_DATA',
    WAREHOUSE_CAMPAIGN_HDR_DATA: 'WAREHOUSE_CAMPAIGN_HEADER_DATA',
    WAREHOUSE_CAMPAIGN_IMAGES: 'WAREHOUSE_CAMPAIGN_IMAGES',

    PAIDVIS_CHILD_DATA: 'PAIDVIS_CHILD_DATA',
    PAIDVIS_STOCK_DATA: 'PAIDVIS_STOCK_DATA',
    PAIDVIS_IMAGES: 'PAIDVIS_IMAGES',

    WAREHOUSE_IMAGES: 'WAREHOUSE_IMAGES',
    WARE_HOUSE_INWARD: 'WARE_HOUSE_INWARD ',



    PAIDVIS_IR_IMAGES: 'PAIDVIS_IR_IMAGES',
    PAIDVIS_IRUPLOAD: 'PAIDVIS_IRUPLOAD',

    SOS_CHILD_QUES_DATA: 'SOS_CHILD_QUES_DATA',

    // Program list
    PROGRAM_HDR_DATA: 'PROGRAM_HEARDER_DATA',
    PROGRAM_CHILD_DATA: 'PROGRAM_CHILD_DATA',
    PROGRAM_STOCK_DATA: 'PROGRAM_STOCK_DATA',
    PROGRAM_IMAGES: 'PROGRAM_IMAGES',
    PROGRAM_IR_IMAGES: 'PROGRAM_IR_IMAGES',
    PROGRAM_IRUPLOAD: 'PROGRAM_IRUPLOAD',

    SOS_HDR_DATA: 'SOS_HEADER_DATA',
    SOS_CHILD_DATA: 'SOS_CHILD_DATA',
    SOS_IMAGES: 'SOS_IMAGES',
    SOS_IR_IMAGES: 'SOS_IR_IMAGES',
    SOS_IRUPLOAD: 'SOS_IRUPLOAD',

    EYE_LEVEL_HDR_DATA: 'EYE_LEVEL_HEADER_DATA',
    EYE_LEVEL_CHILD_DATA: 'EYE_LEVEL_CHILD_DATA',
    EYE_LEVEL_IMAGES: 'EYE_LEVEL_IMAGES',

    CATEXE_HDR_DATA: 'CATEXE_HDR_DATA',
    CATEXE_CHILD_DATA: 'CATEXE_CHILD_DATA',
    CATEXE_STOCK_DATA: 'CATEXE_STOCK_DATA',
    CATEXE_IMAGES: 'CATEXE_IMAGES',

    STORE_CHECKLIST: 'STORE_CHECKLIST',
    BEAT_PLAN: 'BEAT_PLAN',
    STORE_PROFILE: 'STORE_PROFILE',

    DBPOSM_HDR_DATA: 'DBPOSM_HDR_DATA',

    DB_WINDOW_HDR_DATA: 'DB_WINDOW_HEARDER_DATA',
    ORDERSTATUS: 'ORDER_STATUS',
    DB_VISICOOLER: "DB_VISICOOLER",
    //arman
    QRCODE_SCANNER: 'QRCODE_SCANNER',
    QRCODE_SALE: 'QRCODE_SALE',
    STORE_PROFILE_KYC: 'STORE_PROFILE_KYC',
    KYC_INFO: 'KYC_INFO',
    STORE_KYC_INFO: 'STORE_KYC_INFO',

    VISITOR_FEEDBACK: 'VISITOR_FEEDBACK',
    VISITOR_LOGIN_FEEDBACK: 'VISITOR_LOGIN_FEEDBACK',

    SAMPLING_STOCK_DATA: 'SAMPLING_STOCK_DATA',
    SAMPLING_SALE_DATA: 'SAMPLING_SALE_DATA',
    SAMPLING_INVENTORY: 'DR_SAMPLING_INVENTORY',
    SAMPLING_CUST_TRACK: 'DR_SAMPLING_CUST_TRACK',
    SAMPLING_LIST: 'DR_SAMPLING_LIST',
    HEADER_POSSALE_DATA: 'HEADER_POSSALE_DATA',
    POSSALE_IMAGES: 'POSSALE_IMAGES',
    POSSALE_DATA: 'POSSALE_DATA',

    VISICO_HDR_DATA: 'VISICO_HEARDER_DATA',
    VISICO_CHILD_DATA: 'VISICO_CHILD_DATA',
    CONTRACT_FORM: 'CONTRACT_FORM',
    CONTRACT_FORM_DATA: 'CONTRACT_FORM_DATA',

    MISSED_CALL: 'MISSED_CALL',
    BREAKTIME: 'BREAKTIME',
    STORE_INFO: ' STORE_INFO',
    OFFLINE_ORDER:'OFFLINE_ORDER',
    RETURN_STOCK:"RETURN_STOCK",
    ORDER_SIMPLIFY:"ORDER_SIMPLIFY"
}

const Q_OFFLINE_ORDER = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.OFFLINE_ORDER}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY NVARCHAR,CATEGORY_ID INTEGER,REASON_ID INTEGER,REASON NVARCHAR,PRODUCT NVARCHAR,PRODUCT_ID INTEGER,MSL INTEGER,IS_PRESENT INTEGER,STOCK INTEGER,SYSTEM_PO TEXT,STORE_PO TEXT,PO_DATE TEXT,CONTACT_NAME TEXT,CONTACT_NO TEXT,ADDED_DATE TEXT,STOCKIST_ID TEXT,STOCKIST_NAME TEXT,IsUnsaved INTEGER DEFAULT 0)`,};
const Q_GEOTAG_TABLE = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.GEOTAG}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,LATITUDE NVARCHAR,LONGITUDE NVARCHAR,GEO_TAG NVARCHAR,STATUS NVARCHAR,FRONT_IMAGE NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_DB_GEOTAG_TABLE = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.DB_GEOTAG}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,LATITUDE NVARCHAR,LONGITUDE NVARCHAR,GEO_TAG NVARCHAR,STATUS NVARCHAR,FRONT_IMAGE NVARCHAR,ADDED_DATE TEXT)`,
};

const Q_BEAT_PLAN = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.BEAT_PLAN}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,ROUTE_ID INTEGER,ROUTE_NAME NVARCHAR,STATUS NVARCHAR,VISIT_DATE TEXT,ADDED_DATE TEXT)`,
};

const Q_HEADER_BACK_OF_STORE = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.HEADER_BACK_OF_STORE}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,MSL INTEGER,CATEGORY NVARCHAR,CATEGORY_ID INTEGER,ADDED_DATE TEXT)`,
};
const Q_CHILD_BACK_OF_STORE = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.CHILD_BACK_OF_STORE}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,COMMON_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY NVARCHAR,CATEGORY_ID INTEGER,PRODUCT NVARCHAR,PRODUCT_ID INTEGER,MSL INTEGER,ARTICLE_CODE NVARCHAR,STOCK INTEGER,ADDED_DATE TEXT)`,
};
const Q_SALES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SALES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY NVARCHAR,CATEGORY_ID INTEGER,PRODUCT NVARCHAR,PRODUCT_ID INTEGER,MSL INTEGER,STOCK INTEGER,ADDED_DATE TEXT,ARTICLE_CODE NVARCHAR)`,
};
// const Q_ORDER = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.ORDER}
// (KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY NVARCHAR,CATEGORY_ID INTEGER,REASON_ID INTEGER,REASON NVARCHAR,PRODUCT NVARCHAR,PRODUCT_ID INTEGER,MSL INTEGER,IS_PRESENT INTEGER,STOCK INTEGER,SYSTEM_PO TEXT,STORE_PO TEXT,PO_DATE TEXT,CONTACT_NAME TEXT,CONTACT_NO TEXT,ADDED_DATE TEXT)`,};

const Q_ORDER = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.ORDER}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY NVARCHAR,CATEGORY_ID INTEGER,REASON_ID INTEGER,REASON NVARCHAR,PRODUCT NVARCHAR,PRODUCT_ID INTEGER,MSL INTEGER,IS_PRESENT INTEGER,STOCK INTEGER,SYSTEM_PO TEXT,STORE_PO TEXT,PO_DATE TEXT,CONTACT_NAME TEXT,CONTACT_NO TEXT,ADDED_DATE TEXT,STOCKIST_ID TEXT,STOCKIST_NAME TEXT)`,
};

const Q_INSERT_OPENINGHEADER_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.INSERT_OPENINGHEADER_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY NVARCHAR,CATEGORY_ID INTEGER,MSL INTEGER,IMAGE NVARCHAR,IMAGEPATH NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_STOCK_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STOCK_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,COMMON_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY_ID INTEGER,CATEGORY NVARCHAR,BRAND_ID INTEGER,BRAND NVARCHAR,PRODUCT_ID INTEGER,PRODUCT NVARCHAR,MSL INTEGER,ARTICLE_CODE NVARCHAR,OPENING_STOCK INTEGER,MIDDAY_STOCK INTEGER,MIDDAY_EXPIRYSTOCK1 INTEGER,MIDDAY_EXPIRYSTOCK2 INTEGER,MIDDAY_EXPIRYSTOCK3 INTEGER,MIDDAY_EXPIRYSTOCK4 INTEGER,CLOSING_STOCK INTEGER,CLOSING_EXPIRYSTOCK1 INTEGER,CLOSING_EXPIRYSTOCK2 INTEGER,CLOSING_EXPIRYSTOCK3 INTEGER,CLOSING_EXPIRYSTOCK4 INTEGER,EXPIRY_ISOPEN NVARCHAR,EXPIRY_STK INTEGER, EXPIRYSTOCK1 INTEGER,EXPIRYSTOCK2 INTEGER,EXPIRYSTOCK3 INTEGER,EXPIRYSTOCK4 INTEGER,ISMDST_PRESENT INTEGER,ADDED_DATE TEXT,IsCompetitor INTEGER)`,
};

const Q_STOCK2HDR_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STOCK2HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SUB_CATEGORY_ID INTEGER,SUB_CATEGORY NVARCHAR,MSL INTEGER,IMAGE NVARCHAR,IMAGEPATH NVARCHAR,IS_UPDATED INTEGER,ADDED_DATE TEXT)`,
};

const Q_STOCK2_DATA = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.STOCK2_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,COMMON_ID INTEGER,STOCK_UID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SUB_CATEGORY_ID INTEGER,SUB_CATEGORY NVARCHAR,BRAND_ID INTEGER,BRAND NVARCHAR,PRODUCT_ID INTEGER,PRODUCT NVARCHAR,MSL INTEGER, ARTICLE_CODE NVARCHAR,STOCK INTEGER,PACKTYPE VARCHAR,MRP INTEGER,SELLING_PRICE INTEGER,REMARK NVARCHAR,BACKROOM_STOCK INTEGER,DAMAGED_STOCK INTEGER,LOST_STOCK INTEGER,EXPIRY_STOCK INTEGER,IS_SKU_STOCK_PRESENT INTEGER,NREXPIRY1_STOCK INTEGER,NREXPIRY2_STOCK INTEGER,NREXPIRY3_STOCK INTEGER,OUT_OF_STOCK INTEGER,LESS_THAN_MBQ INTEGER,PriceYesNo INTEGER,ADDED_DATE TEXT)`,};

const Q_STOCK2_MFD_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STOCK2_MFD_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,COMMON_ID INTEGER,STOCK_UID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SUB_CATEGORY_ID INTEGER,BRAND_ID INTEGER,PRODUCT_ID INTEGER,STOCK INTEGER,MFD NVARCHAR,LOT_NO NVARCHAR,DATE NVARCHAR,ADDED_DATE TEXT)`,
};

const Q_STOCKPROMO_HDR_TOP = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STOCKPROMO_HDR_TOP}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SUB_CATEGORY_ID INTEGER,SUB_CATEGORY NVARCHAR,MSL INTEGER,STOCK_AVL_STATUS NVARCHAR,PROMO_TYPE NVARCHAR,PROMO_RUNNING NVARCHAR,INTEGER,IS_UPDATED INTEGER,ADDED_DATE TEXT)`,
};

const Q_STOCKPOMO_HDR_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STOCKPOMO_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SUB_CATEGORY_ID INTEGER,SUB_CATEGORY NVARCHAR,MSL INTEGER,IMAGE NVARCHAR,IMAGE_JSON TEXT,IMAGEPATH NVARCHAR,IS_UPDATED INTEGER,ADDED_DATE TEXT)`,
};

const Q_STOCKPROMO_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STOCKPROMO_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,COMMON_ID INTEGER,STOCK_UID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SUB_CATEGORY_ID INTEGER,SUB_CATEGORY NVARCHAR,BRAND_ID INTEGER,BRAND NVARCHAR,PRODUCT_ID INTEGER,PRODUCT NVARCHAR,MSL INTEGER,STOCK_AVL_STATUS NVARCHAR,PROMO_TYPE NVARCHAR,PROMO_RUNNING NVARCHAR,IMAGE NVARCHAR,IMAGEPATH NVARCHAR,IMAGE_JSON TEXT,STOCK INTEGER,MRP INTEGER,SELLING_PRICE INTEGER,REMARK NVARCHAR,BACKROOM_STOCK INTEGER,DAMAGED_STOCK INTEGER,LOST_STOCK INTEGER,EXPIRY_STOCK INTEGER,IS_SKU_STOCK_PRESENT INTEGER,NREXPIRY1_STOCK INTEGER,NREXPIRY2_STOCK INTEGER,NREXPIRY3_STOCK INTEGER,OUT_OF_STOCK INTEGER,LESS_THAN_MBQ INTEGER,FROM_DATE TEXT,TO_DATE TEXT,ADDED_DATE TEXT)`,
};

const Q_STOCKWITHCAT_HDR_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STOCKWITHCAT_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY NVARCHAR,CATEGORY_ID INTEGER,MSL INTEGER,IMAGE NVARCHAR,IMAGEPATH NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_STOCKWITHCAT_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STOCKWITHCAT_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,COMMON_ID INTEGER,STOCK_UID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY_ID INTEGER,CATEGORY NVARCHAR,SUB_CATEGORY_ID INTEGER,SUB_CATEGORY NVARCHAR,BRAND_ID INTEGER,BRAND NVARCHAR,PRODUCT_ID INTEGER,PRODUCT NVARCHAR,MSL INTEGER,STOCK INTEGER,MRP INTEGER,SELLING_PRICE INTEGER,REMARK NVARCHAR,BACKROOM_STOCK INTEGER,DAMAGED_STOCK INTEGER,LOST_STOCK INTEGER,EXPIRY_STOCK INTEGER,IS_SKU_STOCK_PRESENT INTEGER,NREXPIRY1_STOCK INTEGER,NREXPIRY2_STOCK INTEGER,NREXPIRY3_STOCK INTEGER,ADDED_DATE TEXT)`,
};
const Q_STOCKWITHCAT_MFD_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STOCKWITHCAT_MFD_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,COMMON_ID INTEGER,STOCK_UID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY_ID INTEGER,BRAND_ID INTEGER,PRODUCT_ID INTEGER,STOCK INTEGER,MFD NVARCHAR,LOT_NO NVARCHAR,DATE NVARCHAR,ADDED_DATE TEXT)`,
};


const Q_SHARE_OF_SHELF_IMAGE = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SHARE_OF_SHELF_IMAGE}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY_ID INTEGER,CATEGORY NVARCHAR,IMAGE NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_SHARE_OF_SHELF_FACING_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SHARE_OF_SHELF_FACING_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,COMMON_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY NVARCHAR,CATEGORY_ID INTEGER,SUB_CATEGORY NVARCHAR,SUB_CATEGORY_ID INTEGER,SUB_CATEGORY_STOCK INTEGER,STOCK INTEGER,IMAGE1 NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_INSERT_SAMPLED_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.INSERT_SAMPLED_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PRESENT INTEGER,SAMPLE_ID INTEGER,SAMPLE NVARCHAR,MOBILE INTEGER,NAME NVARCHAR,FEEDBACK NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_CONTACT_CONVERSION = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.CONTACT_CONVERSION}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SAMPLING_DEFINITION_ID INTEGER,TOTAL_CONTACT INTEGER,CST_CONTACT INTEGER,TOTAL_SAMPLED INTEGER,ADDED_DATE TEXT,SCREEN_TYPE TEXT)`,
};

const Q_INSERT_ERROR_TRACKING = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.INSERT_ERROR_TRACKING}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PRESENT INTEGER,ISSUE_CATEGORY_ID INTEGER,ISSUE_CATEGORY NVARCHAR,ISSUE_TYPE_ID INTEGER,ISSUE_TYPE NVARCHAR,REMARK INTEGER,ADDED_DATE TEXT)`,
};
const Q_GROOMING_IMAGE_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.GROOMING_IMAGE_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,IMAGE NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_ADDITIONAL_VISIBILITY = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.ADDITIONAL_VISIBILITY}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PRESENT INTEGER,CATEGORY NVARCHAR,CATEGORY_ID INTEGER,SUB_CATEGORY NVARCHAR,SUB_CATEGORY_ID INTEGER,BRAND NVARCHAR,BRAND_ID INTEGER,DISPLAY NVARCHAR,DISPLAY_ID INTEGER,ASSERT_COUNT INTEGER,REMARK NVARCHAR,IMAGE NVARCHAR,IS_UPDATED INTEGER,FROM_DATE TEXT,TO_DATE TEXT,SHOWFROMDATE TEXT,ADDED_DATE TEXT)`,
};
const Q_ADDITIONAL_VISIBILITY_STOCK = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.ADDITIONAL_VISIBILITY_STOCK}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY_ID INTEGER,SUB_CATEGORY_ID INTEGER,BRAND_ID INTEGER,DISPLAY_ID INTEGER,PRODUCT_ID INTEGER,PRODUCT_NAME VARCHAR,STOCK_REQ INTEGER,STOCK INTEGER,IS_SELECT INTEGER)`,};


const Q_ADD_STORE_INFO = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.ADD_STORE_INFO}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT ,VISIT_DATE NVARCHAR, DISTRIBUTOR_NAME NVARCHAR, DISTRIBUTOR_ID INTEGER, STORE_NAME NVARCHAR, STORE_ADDRESS NVARCHAR,CITY_NAME NVARCHAR,CITY_ID INTEGER,STORETYPE_NAME NVARCHAR,STORETYPE_ID INTEGER ,IMAGE NVARCHAR,IMAGEPATH NVARCHAR,LAT NVARCHAR,LNG NVARCHAR, ADDED_DATE TEXT, STATUS NVARCHAR)`,
};

const Q_HOME_LOCATION = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.HOME_LOCATION}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT ,VISIT_DATE NVARCHAR,LATITUDE NVARCHAR,LONGITUDE NVARCHAR, ADDED_DATE TEXT, STATUS NVARCHAR)`,
};

const Q_ADDVIS_IR_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.ADDVIS_IR_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,IMAGE1 NVARCHAR,TEMP_SESSION_ID NVARCHAR,UN_SESSION_ID NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_ADDVIS_IRUPLOAD = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.ADDVIS_IRUPLOAD}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,TEMP_SESSION_ID NVARCHAR,UN_SESSION_ID NVARCHAR,UPLOAD_STATUS NVARCHAR,SYNC_STATUS NVARCHAR,SESSION_STORECODE NVARCHAR,SESSION_TASKNAME NVARCHAR,SESSION_CATNAME NVARCHAR,SESSION_PHOTOTYPE NVARCHAR,ADDED_DATE TEXT)`,
};

const Q_COMPVIS_IR_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.COMPVIS_IR_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,IMAGE1 NVARCHAR,TEMP_SESSION_ID NVARCHAR,UN_SESSION_ID NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_COMPVIS_IRUPLOAD = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.COMPVIS_IRUPLOAD}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,TEMP_SESSION_ID NVARCHAR,UN_SESSION_ID NVARCHAR,UPLOAD_STATUS NVARCHAR,SYNC_STATUS NVARCHAR,SESSION_STORECODE NVARCHAR,SESSION_TASKNAME NVARCHAR,SESSION_CATNAME NVARCHAR,SESSION_PHOTOTYPE NVARCHAR,ADDED_DATE TEXT)`,
};

const Q_MISSED_CALL = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.MISSED_CALL}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PRESENT INTEGER,UNIQUE_CODE INTEGER,IS_UPDATED INTEGER,ADDED_DATE TEXT)`,
};

const Q_COMPETITION_VISIBILITY = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.COMPETITION_VISIBILITY}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PRESENT INTEGER,COMPANY NVARCHAR,COMPANY_ID INTEGER,CATEGORY NVARCHAR,CATEGORY_ID INTEGER,SUB_CATEGORY NVARCHAR,SUB_CATEGORY_ID INTEGER,BRAND NVARCHAR,BRAND_ID INTEGER,DISPLAY NVARCHAR,DISPLAY_ID INTEGER,REMARK NVARCHAR,IMAGE NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_COMPETITION_PROMOTION = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.COMPETITION_PROMOTION}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PRESENT INTEGER,COMPANY NVARCHAR,COMPANY_ID INTEGER,CATEGORY NVARCHAR,CATEGORY_ID INTEGER,SUB_CATEGORY NVARCHAR,SUB_CATEGORY_ID INTEGER,BRAND NVARCHAR,BRAND_ID INTEGER,PROMO_TYPE NVARCHAR,PROMO_TYPE_ID INTEGER,PRODUCT NVARCHAR,PRODUCT_ID INTEGER,PROMO_DETAILS NVARCHAR,MRP INTEGER,SELLING_PRICE INTEGER,GRAMMAGE NVARCHAR,DISCOUNT_PERCENT NVARCHAR,IMAGE NVARCHAR,IMAGE2 NVARCHAR,IMAGE3 NVARCHAR,ADDED_DATE TEXT)`,
};

const Q_COVERAGE_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.COVERAGE_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,LATITUDE NVARCHAR,LONGITUDE NVARCHAR,IMAGE NVARCHAR,CHECKOUT_TIME NVARCHAR,CHECKOUT_IMAGE NVARCHAR,REASON_ID INTEGER,REASON NVARCHAR,REMARK NVARCHAR,STORE_FLAG NVARCHAR,MID INTEGER,JCP_TYPE NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_CHECKIN_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.CHECKIN_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,LATITUDE NVARCHAR,LONGITUDE NVARCHAR,CHECKIN_TIME NVARCHAR,CHECKIN_IMAGE NVARCHAR,CHECKOUT_TIME NVARCHAR,CHECKOUT_IMAGE NVARCHAR,REMARK NVARCHAR,JCP_TYPE NVARCHAR,ADDED_DATE TEXT)`,
};

const Q_DISTRIBUTOR_CHECKIN = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.DISTRIBUTOR_CHECKIN}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,DISTRIBUTOR_ID INTEGER,VISIT_DATE NVARCHAR,LATITUDE NVARCHAR,LONGITUDE NVARCHAR,CHECKIN_TIME NVARCHAR,CHECKIN_IMAGE NVARCHAR,CHECKOUT_TIME NVARCHAR,CHECKOUT_IMAGE NVARCHAR,REASON_ID INTEGER,REASON NVARCHAR,REMARK NVARCHAR,ADDED_DATE TEXT)`,
};


const Q_PROMOTION_HEADER_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PROMOTION_HEADER_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SUB_CATEGORY NVARCHAR,SUB_CATEGORY_ID INTEGER,ADDED_DATE TEXT)`,
};
const Q_PROMOTION_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PROMOTION_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,COMMON_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SUB_CATEGORY NVARCHAR,SUB_CATEGORY_ID INTEGER,PROMOTION NVARCHAR,PROMOTION_ID INTEGER,STOCK_AVL NVARCHAR,PROMOTALK_AVL NVARCHAR,POS_AVL NVARCHAR,IMAGE1 NVARCHAR,ADDED_DATE TEXT)`,
};


const Q_SIMPLE_PROMOHDR_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SIMPLE_PROMOHDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SUB_CATEGORY NVARCHAR,SUB_CATEGORY_ID INTEGER,ADDED_DATE TEXT)`,
};
const Q_SIMPLE_PROMOTION_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SIMPLE_PROMOTION_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,COMMON_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SUB_CATEGORY NVARCHAR,SUB_CATEGORY_ID INTEGER,PROMOTION NVARCHAR,PROMOTION_ID INTEGER,IS_PRESENT INTEGER,REASON_ID INTEGER,REASON NVARCHAR,IMAGE1 NVARCHAR,ADDED_DATE TEXT)`,
};


const Q_PAID_VISIBILITY_HEADER_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PAID_VISIBILITY_HEADER_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SUB_CATEGORY NVARCHAR,SUB_CATEGORY_ID INTEGER,ADDED_DATE TEXT)`,
};
const Q_PAID_VISIBILITY_CHILD_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PAID_VISIBILITY_CHILD_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,COMMON_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SUB_CATEGORY NVARCHAR,SUB_CATEGORY_ID INTEGER,VISIBILITY_PRESENT INTEGER,DISPLAY_ID INTEGER,DISPLAY NVARCHAR,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,REASON NVARCHAR,REASON_ID INTEGER,SHOW_RSN_REMARK INTEGER,REASON_REMARK NVARCHAR,IS_UPDATED INTEGER,ADDED_DATE TEXT)`,
};
const Q_PAID_VIS_CHECKLIST = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PAID_VIS_CHECKLIST}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,COMMON_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SUB_CATEGORY_ID INTEGER,DISPLAY_ID INTEGER,CHECKLIST NVARCHAR,CHECKLIST_ID INTEGER,REASON NVARCHAR,REASON_ID INTEGER,ADDED_DATE TEXT)`,
};
const Q_PERSONAL_DOCUMENT = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PERSONAL_DOCUMENT}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,VISIT_DATE NVARCHAR,USER_ID INTEGER,DOCUMENT_ID INTEGER,DOCUMENT NVARCHAR,IMAGE1_FLAG INTEGER,IMAGE2_FLAG INTEGER,ANS_LIST NVARCHAR,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,STATUS NVARCHAR,ANSWER NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_VISITOR_LOGIN = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.VISITOR_LOGIN}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,EMP_ID NVARCHAR,EMP_CODE NVARCHAR,NAME NVARCHAR,DESIGNATION NVARCHAR,UPLOADSTATUS NVARCHAR,VISIT_DATE NVARCHAR,IN_TIME NVARCHAR,OUT_TIME NVARCHAR,IN_TIME_IMAGE NVARCHAR,OUT_TIME_IMAGE NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_AUTOMATED_REIMBURSEMENT = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.AUTOMATED_REIMBURSEMENT}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,VISIT_DATE NVARCHAR,CITY NVARCHAR,CITY_ID INTEGER,STATUS NVARCHAR,PRICE INTEGER,AMOUNT INTEGER,BASE_CITY_ID INTEGER,FIXEDFARE_TWOWAY INTEGER,ROUTE_CODE NVARCHAR,TRAVEL_TYPE NVARCHAR,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_CASHTILL_SURVEY = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.CASHTILL_SURVEY}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY NVARCHAR,CATEGORY_ID INTEGER,QUESTION NVARCHAR,QUESTION_ID INTEGER,QUESTION_TYPE NVARCHAR,QUESTION_IMAGE_ALLOW INTEGER,QUESTION_IMAGE NVARCHAR,IMAGE_ALLOW1 INTEGER,IMAGE_ALLOW2 INTEGER,ANSWER NVARCHAR,ANSWER_ID INTEGER,STOCK INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_SURVEY = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SURVEY}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SURVEY_ID INTEGER,CATEGORY_ID INTEGER,SUB_CATEGORY_ID INTEGER,QUESTION NVARCHAR,QUESTION_ID INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,IMAGE_ALLOW1 INTEGER,IMAGE1 NVARCHAR,IMAGE_ALLOW2 INTEGER,IMAGE2 NVARCHAR,MULTI_OPTIONS_IDS NVARCHAR,IS_DISABLED INTEGER,MENU_ID INTEGER,ADDED_DATE TEXT,VerifyOTP INTEGER)`,
};


const Q_FEEDBACK = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.FEEDBACK_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CATEGORY_ID INTEGER,QUESTION_CODE NVARCHAR,QUESTION_ID INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,IMAGE_ALLOW1 INTEGER,IMAGE1 NVARCHAR,MULTI_OPTIONS_IDS NVARCHAR,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,
};
const Q_STORE_CHECKLIST = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STORE_CHECKLIST}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,LAST_MID INTEGER,STORE_CHECKLIST_ONCE NVARCHAR, CATEGORY_ID INTEGER,QUESTION NVARCHAR,QUESTION_ID INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,IMAGE_ALLOW1 INTEGER,IMAGE1 NVARCHAR,IMAGE_ALLOW2 INTEGER,IMAGE2 NVARCHAR,MULTI_OPTIONS_IDS NVARCHAR,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,
};

const Q_WINDOW_HDR = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.WINDOW_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,WINDOW_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,WINDOW_DEFINITION_ID INTEGER,WINDOW_ID INTEGER,WINDOW_NAME NVARCHAR,WINDOW_TABLE NVARCHAR,WINDOW_FIELD NVARCHAR,WINDOW_VALUE INTEGER,CHILD_NAME NVARCHAR,IS_PRESENT INTEGER,WINDOW_NA_IMAGE NVARCHAR,REASON_ID INTEGER,REASON NVARCHAR,MENU_ID INTEGER,ADDED_DATE TEXT)`,
};
const Q_WINDOW_CHILD = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.WINDOW_CHILD_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,WINDOW_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,WINDOW_DEFINITION_ID INTEGER,WINDOW_ID INTEGER,QUESTION_ID INTEGER,QUESTION_CODE INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,MULTI_OPTIONS_IDS NVARCHAR,IMAGE1 NVARCHAR,IMAGE_ALLOW1 INTEGER,MENU_ID INTEGER,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,
};
const Q_WINDOW_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.WINDOW_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,WINDOW_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,WINDOW_DEFINITION_ID INTEGER,WINDOW_ID INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,MENU_ID INTEGER,ADDED_DATE TEXT,ADD_IMAGES INTEGER)`,
};
const Q_WINDOW_STOCK = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.WINDOW_STOCK_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,WINDOW_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,WINDOW_DEFINITION_ID INTEGER,WINDOW_ID INTEGER,WINDOW_STOCK_DEFINITION_ID INTEGER,WINDOW_STOCK_TABLE NVARCHAR,WINDOW_STOCK_FIELD NVARCHAR,WINDOW_STOCK_VALUE INTEGER,WINDOW_STOCK_MBQ INTEGER,PRODUCT_NAME NVARCHAR,STOCK INTEGER,IS_WIND_PRESENT INTEGER,MENU_ID INTEGER,ADDED_DATE TEXT)`,
};
const Q_WINDOW_IR_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.WINDOW_IR_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,WINDOW_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,WINDOW_DEFINITION_ID INTEGER,WINDOW_ID INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,TEMP_SESSION_ID NVARCHAR,UN_SESSION_ID NVARCHAR,MENU_ID INTEGER,ADDED_DATE TEXT)`,
};
const Q_WINDOW_IRUPLOAD = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.WINDOW_IRUPLOAD}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,WINDOW_HEADER_ID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,WINDOW_DEFINITION_ID INTEGER,WINDOW_ID INTEGER,TEMP_SESSION_ID NVARCHAR,UN_SESSION_ID NVARCHAR,UPLOAD_STATUS NVARCHAR,SYNC_STATUS NVARCHAR,MENU_ID INTEGER,SESSION_STORECODE NVARCHAR,SESSION_TASKNAME NVARCHAR,SESSION_CATNAME NVARCHAR,SESSION_PHOTOTYPE NVARCHAR,ADDED_DATE TEXT)`,
};



const Q_ST_HDR = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.ST_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,ST_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,ST_DEFINITION_ID INTEGER,SHELFTALKER_ID INTEGER,ST_NAME NVARCHAR,ST_TABLE NVARCHAR,ST_FIELD NVARCHAR,ST_VALUE INTEGER,CHILD_NAME NVARCHAR,IS_PRESENT INTEGER,ST_NA_IMAGE NVARCHAR,REASON_ID INTEGER,REASON NVARCHAR,REMARK NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_ST_CHILD = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.ST_CHILD_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,ST_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,ST_DEFINITION_ID INTEGER,SHELFTALKER_ID INTEGER,QUESTION_ID INTEGER,QUESTION_CODE INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,MULTI_OPTIONS_IDS NVARCHAR,IMAGE1 NVARCHAR,IMAGE_ALLOW1 INTEGER,ADDED_DATE TEXT)`,
};
const Q_ST_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.ST_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,ST_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,ST_DEFINITION_ID INTEGER,SHELFTALKER_ID INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_ST_STOCK = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.ST_STOCK_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,ST_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,ST_DEFINITION_ID INTEGER,SHELFTALKER_ID INTEGER,ST_STOCK_DEFINITION_ID INTEGER,ST_STOCK_TABLE NVARCHAR,ST_STOCK_FIELD NVARCHAR,ST_STOCK_VALUE INTEGER,ST_STOCK_MBQ INTEGER,PRODUCT_NAME NVARCHAR,STOCK INTEGER,IS_PROMO_PRESENT INTEGER,ADDED_DATE TEXT)`,
};


const Q_PROMO_HDR_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PROMO_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PROMO_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PROMO_DEFINITION_ID INTEGER,PROMO_ID INTEGER,PROMO_NAME NVARCHAR,PROMO_TABLE NVARCHAR,PROMO_FIELD NVARCHAR,PROMO_VALUE INTEGER,CHILD_NAME NVARCHAR,IS_PRESENT INTEGER,PROMO_NA_IMAGE NVARCHAR,REASON_ID INTEGER,REASON NVARCHAR,REMARK NVARCHAR,SHOW_RSN_REMARK INTEGER,REASON_REMARK NVARCHAR,IS_UPDATED INTEGER,ADDED_DATE TEXT)`,
};
const Q_PROMO_CHILD_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PROMO_CHILD_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PROMO_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PROMO_DEFINITION_ID INTEGER,PROMO_ID INTEGER,QUESTION_ID INTEGER,QUESTION_CODE INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,MULTI_OPTIONS_IDS NVARCHAR,IMAGE1 NVARCHAR,IMAGE_ALLOW1 INTEGER,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,
};
const Q_PROMO_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PROMO_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PROMO_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PROMO_DEFINITION_ID INTEGER,PROMO_ID INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_PROMO_STOCK_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PROMO_STOCK_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PROMO_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PROMO_DEFINITION_ID INTEGER,PROMO_ID INTEGER,PROMO_STOCK_DEFINITION_ID INTEGER,PROMO_STOCK_TABLE NVARCHAR,PROMO_STOCK_FIELD NVARCHAR,PROMO_STOCK_VALUE INTEGER,PROMO_STOCK_MBQ INTEGER,PRODUCT_NAME NVARCHAR,STOCK INTEGER,IS_PROMO_PRESENT INTEGER,ADDED_DATE TEXT)`,
};

// const Q_PROMO_IR_IMAGES= {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.PROMO_IR_IMAGES }
// (KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PROMO_HEADER_ID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PROMO_DEFINITION_ID INTEGER,PROMO_HDR_VALUE INTEGER,PROMO_CHILD_VALUE INTEGER,IMAGE1 NVARCHAR,TYPE NVARCHAR,PROMO_ID INTEGER,TEMP_SESSION_ID NVARCHAR,UN_SESSION_ID NVARCHAR,MENU_ID INTEGER,ADDED_DATE TEXT)`,};
// const Q_PROMO_IRUPLOAD= {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.PROMO_IRUPLOAD }
// (KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PROMO_HEADER_ID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PROMO_DEFINITION_ID INTEGER,PROMO_HDR_VALUE INTEGER,PROMO_CHILD_VALUE INTEGER,PROMO_ID INTEGER,TEMP_SESSION_ID NVARCHAR,UN_SESSION_ID NVARCHAR,UPLOAD_STATUS NVARCHAR,SYNC_STATUS NVARCHAR,TYPE NVARCHAR,SESSION_STORECODE NVARCHAR,SESSION_TASKNAME NVARCHAR,SESSION_CATNAME NVARCHAR,SESSION_PHOTOTYPE NVARCHAR,MENU_ID INTEGER,ADDED_DATE TEXT)`,};

const Q_PROMO_IR_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PROMO_IR_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PROMO_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PROMO_DEFINITION_ID INTEGER,PROMO_ID INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,TEMP_SESSION_ID NVARCHAR,UN_SESSION_ID NVARCHAR,MENU_ID INTEGER,ADDED_DATE TEXT)`,
};
const Q_PROMO_IRUPLOAD = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PROMO_IRUPLOAD}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PROMO_HEADER_ID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PROMO_DEFINITION_ID INTEGER,PROMO_ID INTEGER,TEMP_SESSION_ID NVARCHAR,UN_SESSION_ID NVARCHAR,UPLOAD_STATUS NVARCHAR,SYNC_STATUS NVARCHAR,MENU_ID INTEGER,SESSION_STORECODE NVARCHAR,SESSION_TASKNAME NVARCHAR,SESSION_CATNAME NVARCHAR,SESSION_PHOTOTYPE NVARCHAR,ADDED_DATE TEXT)`,
};


const Q_PAIDVIS_HDR_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PAIDVIS_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PVIS_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PVIS_DEFINITION_ID INTEGER,PVIS_ID INTEGER,PVIS_NAME NVARCHAR,PVIS_TABLE NVARCHAR,PVIS_FIELD NVARCHAR,PVIS_VALUE INTEGER,CHILD_NAME NVARCHAR,IS_PRESENT INTEGER,PVIS_NA_IMAGE NVARCHAR,REASON_ID INTEGER,REASON NVARCHAR,REMARK NVARCHAR,SHOW_RSN_REMARK INTEGER,REASON_REMARK NVARCHAR ,IS_UPDATED INTEGER,IS_STORE_SPECIFIC TEXT,MENU_ID INTEGER,ADDED_DATE TEXT)`,
};


const Q_WAREHOUSE_HDR_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.WAREHOUSE_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,WAREHS_HEADER_ID INTEGER,STORE_ID INTEGER,MENU_ID INTEGER,TODAY_DEPLOY INTEGER,CAMPAIGN_ID INTEGER,VISIT_DATE NVARCHAR,ITEM_ID INTEGER,ITEM_NAME NVARCHAR,MAPPING_TYPE NVARCHAR,ITEM_CODE NVARCHAR,ITEM_CATEGORY_ID INTEGER,ITEM_CATEGORY NVARCHAR,PVIS_NA_IMAGE NVARCHAR,ITEM_QTY INTEGER,IS_PRESENT INTEGER,IS_UPDATED INTEGER,KPITYPE_ID INTEGER,KPITYPE NVARCHAR,REASON_ID INTEGER,REASON NVARCHAR,ADDED_DATE TEXT)`,
};

const Q_WAREHOUSE_CAMPAIGN_HEADER_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.WAREHOUSE_CAMPAIGN_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,WAREHS_HEADER_ID INTEGER,STORE_ID INTEGER,MENU_ID INTEGER,CAMPAIGN_ID INTEGER,VISIT_DATE NVARCHAR,ITEM_ID INTEGER,ITEM_NAME NVARCHAR,ITEM_CODE NVARCHAR,ITEM_CATEGORY_ID INTEGER,ITEM_CATEGORY NVARCHAR,ITEM_QTY INTEGER,IS_PRESENT INTEGER,IS_UPDATED INTEGER,KPITYPE_ID INTEGER,KPITYPE NVARCHAR,ADDED_DATE TEXT)`,
};

const Q_PAIDVIS_CHILD_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PAIDVIS_CHILD_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PVIS_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PVIS_DEFINITION_ID INTEGER,PVIS_ID INTEGER,QUESTION_ID INTEGER,QUESTION_CODE INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,MULTI_OPTIONS_IDS NVARCHAR,IMAGE1 NVARCHAR,IMAGE_ALLOW1 INTEGER,MENU_ID INTEGER,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,
};

const Q_WAREHOUSE_CHILD_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.WAREHOUSE_CHILD_DATA}
 (KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,WAREHS_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,ITEM_ID INTEGER,QUESTION_ID INTEGER,QUESTION_CODE INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,MULTI_OPTIONS_IDS NVARCHAR,IMAGE1 NVARCHAR,IMAGE_ALLOW1 INTEGER,MENU_ID INTEGER,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,
};

const Q_WAREHOUSE_CAMPAIGN_CHILD_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.WAREHOUSE_CAMPAIGN_CHILD_DATA}
 (KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,WAREHS_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,ITEM_ID INTEGER,QUESTION_ID INTEGER,QUESTION_CODE INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,MULTI_OPTIONS_IDS NVARCHAR,IMAGE1 NVARCHAR,IMAGE_ALLOW1 INTEGER,MENU_ID INTEGER,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,
};

const Q_PAIDVIS_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PAIDVIS_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PVIS_HEADER_ID INTEGER,STORE_ID INTEGER,ADD_IMAGES INTEGER,VISIT_DATE NVARCHAR,PVIS_DEFINITION_ID INTEGER,PVIS_ID INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,MENU_ID INTEGER,ADDED_DATE TEXT)`,
};


const Q_WARE_HOUSE_INWARD = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.WARE_HOUSE_INWARD}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,ITEMID INTEGER,ITEMNAME NVARCHAR,VISIT_DATE NVARCHAR,ITEM_CODE NVARCHAR,REMARK NVARCHAR,IN_WARD_QTY INTEGER,CONFIRM_QTY INTEGER, DAMAGE_QTY INTEGER,REASON NVARCHAR,REASON_ID INTEGER,CHALLAN_TYPE_ID INTEGER,MENU_ID INTEGER,ADDED_DATE TEXT)`,
};

const Q_WAREHOUSE_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.WAREHOUSE_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,WAREHS_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,ITEM_ID INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,IMAGE_LABEL NVARCHAR,MENU_ID INTEGER,ADDED_DATE TEXT)`,
};

const Q_WAREHOUSE_CAMPAIGN_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.WAREHOUSE_CAMPAIGN_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,WAREHS_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,ITEM_ID INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,IMAGE_LABEL NVARCHAR,MENU_ID INTEGER,ADDED_DATE TEXT)`,
};


const Q_PAIDVIS_STOCK_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PAIDVIS_STOCK_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PVIS_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PVIS_DEFINITION_ID INTEGER,PVIS_ID INTEGER,PVIS_STOCK_DEFINITION_ID INTEGER,PVIS_STOCK_TABLE NVARCHAR,PVIS_STOCK_FIELD NVARCHAR,PVIS_STOCK_VALUE INTEGER,PVIS_STOCK_MBQ INTEGER,PRODUCT_NAME NVARCHAR,STOCK INTEGER,IS_PVIS_PRESENT INTEGER,MENU_ID INTEGER,ADDED_DATE TEXT)`,
};
const Q_PAIDVIS_IR_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PAIDVIS_IR_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PVIS_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PVIS_DEFINITION_ID INTEGER,PVIS_ID INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,TEMP_SESSION_ID NVARCHAR,UN_SESSION_ID NVARCHAR,MENU_ID INTEGER,ADDED_DATE TEXT)`,
};
const Q_PAIDVIS_IRUPLOAD = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PAIDVIS_IRUPLOAD}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PVIS_HEADER_ID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PVIS_DEFINITION_ID INTEGER,PVIS_ID INTEGER,TEMP_SESSION_ID NVARCHAR,UN_SESSION_ID NVARCHAR,UPLOAD_STATUS NVARCHAR,SYNC_STATUS NVARCHAR,MENU_ID INTEGER,SESSION_STORECODE NVARCHAR,SESSION_TASKNAME NVARCHAR,SESSION_CATNAME NVARCHAR,SESSION_PHOTOTYPE NVARCHAR,ADDED_DATE TEXT)`,
};


// Program List 
const Q_PROGRAM_HDR_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PROGRAM_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PROG_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PROG_DEFINITION_ID INTEGER,PROG_ID INTEGER,PROG_NAME NVARCHAR,PROG_TABLE NVARCHAR,PROG_FIELD NVARCHAR,PROG_VALUE INTEGER,CHILD_NAME NVARCHAR,IS_PRESENT INTEGER,PROG_NA_IMAGE NVARCHAR,REASON_ID INTEGER,REASON NVARCHAR,REMARK NVARCHAR,SHOW_RSN_REMARK INTEGER,REASON_REMARK NVARCHAR ,IS_UPDATED INTEGER,IS_STORE_SPECIFIC TEXT,MENU_ID INTEGER,DISPLAY_AREA NVARCHAR,POS_DA_REASON_ID INTEGER,POS_DA_REASON NVARCHAR,NEG_DA_REASON_ID INTEGER,NEG_DA_REASON NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_PROGRAM_CHILD_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PROGRAM_CHILD_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PROG_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PROG_DEFINITION_ID INTEGER,PROG_ID INTEGER,QUESTION_ID INTEGER,QUESTION_CODE INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,MULTI_OPTIONS_IDS NVARCHAR,IMAGE1 NVARCHAR,IMAGE_ALLOW1 INTEGER,MENU_ID INTEGER,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,
};
const Q_PROGRAM_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PROGRAM_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PROG_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PROG_DEFINITION_ID INTEGER,PROG_ID INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,MENU_ID INTEGER,ADDED_DATE TEXT)`,
};
const Q_PROGRAM_STOCK_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.PROGRAM_STOCK_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PROG_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PROG_DEFINITION_ID INTEGER,PROG_ID INTEGER,PROG_STOCK_DEFINITION_ID INTEGER,PROG_STOCK_TABLE NVARCHAR,PROG_STOCK_FIELD NVARCHAR,PROG_STOCK_VALUE INTEGER,PROG_STOCK_MBQ INTEGER,PRODUCT_NAME NVARCHAR,STOCK INTEGER,IS_PROG_PRESENT INTEGER,MENU_ID INTEGER,ADDED_DATE TEXT)`,
};


const Q_POSM_HDR = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.POSM_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,POSM_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,POSM_DEFINITION_ID INTEGER,POSM_ID INTEGER,POSM_NAME NVARCHAR,POSM_TYPE_ID INTEGER,POSM_TYPE_NAME NVARCHAR,POSM_TABLE NVARCHAR,POSM_FIELD NVARCHAR,POSM_VALUE INTEGER,CHILD_NAME NVARCHAR,IS_PRESENT INTEGER,POSM_NA_IMAGE NVARCHAR,POSM_IMAGE1 NVARCHAR,POSM_IMAGE2 NVARCHAR,REASON_ID INTEGER,REASON NVARCHAR,SHOW_RSN_REMARK INTEGER,REASON_REMARK NVARCHAR,IS_UPDATED INTEGER,ADDED_DATE TEXT)`,
};
const Q_POSM_CHILD = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.POSM_CHILD_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,POSM_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,POSM_DEFINITION_ID INTEGER,POSM_ID INTEGER,QUESTION_ID INTEGER,QUESTION_CODE INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,MULTI_OPTIONS_IDS NVARCHAR,IMAGE1 NVARCHAR,IMAGE_ALLOW1 INTEGER,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,
};



const Q_STORE_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STORE_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,IMAGE_TYPE_ID INTEGER,IMAGE_TYPE NVARCHAR,IMAGE NVARCHAR,LAT NVARCHAR,LNG NVARCHAR,ADDED_DATE TEXT)`,
};



const Q_SOS_HDR_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SOS_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,SOS_HEADER_ID NVARCHAR,ADD_IMAGES INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SOS_DEFINITION_ID INTEGER,SOS_HDR_TABLE NVARCHAR,SOS_HDR_FIELD NVARCHAR,SOS_HDR_VALUE INTEGER,HEADER_NAME NVARCHAR,SOS_HDR_FACING INTEGER,ADDED_DATE TEXT)`,
};
const Q_SOS_CHILD_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SOS_CHILD_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,SOS_HEADER_ID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SOS_DEFINITION_ID INTEGER,SOS_HDR_VALUE INTEGER,SOS_CHILD_TABLE NVARCHAR,SOS_CHILD_FIELD NVARCHAR,SOS_CHILD_VALUE INTEGER,CHILD_NAME NVARCHAR,TOTAL_FACING INTEGER,SELF_FACING INTEGER,ADDED_DATE TEXT)`,
};

const Q_SOS_CHILD_QUES_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SOS_CHILD_QUES_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,SOS_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SOS_DEFINITION_ID INTEGER,SOS_CHILD_VALUE INTEGER, SOS_HDR_VALUE INTEGER,QUESTION_ID INTEGER,QUESTION_CODE INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,MULTI_OPTIONS_IDS NVARCHAR,IMAGE1 NVARCHAR,IMAGE_ALLOW1 INTEGER,MENU_ID INTEGER,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,
};


const Q_SOS_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SOS_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,SOS_HEADER_ID NVARCHAR,ADD_IMAGES INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SOS_DEFINITION_ID INTEGER,SOS_HDR_VALUE INTEGER,SOS_CHILD_VALUE INTEGER,IMAGE1 NVARCHAR,TYPE NVARCHAR,ADDED_DATE TEXT,img1Required INTEGER)`,
};
const Q_SOS_IR_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SOS_IR_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,SOS_HEADER_ID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SOS_DEFINITION_ID INTEGER,SOS_HDR_VALUE INTEGER,SOS_CHILD_VALUE INTEGER,IMAGE1 NVARCHAR,TYPE NVARCHAR,TEMP_SESSION_ID NVARCHAR,UN_SESSION_ID NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_SOS_IRUPLOAD = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SOS_IRUPLOAD}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,SOS_HEADER_ID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SOS_DEFINITION_ID INTEGER,SOS_HDR_VALUE INTEGER,SOS_CHILD_VALUE INTEGER,TEMP_SESSION_ID NVARCHAR,UN_SESSION_ID NVARCHAR,UPLOAD_STATUS NVARCHAR,SYNC_STATUS NVARCHAR,TYPE NVARCHAR,SESSION_STORECODE NVARCHAR,SESSION_TASKNAME NVARCHAR,SESSION_CATNAME NVARCHAR,SESSION_PHOTOTYPE NVARCHAR,ADDED_DATE TEXT)`,
};



const Q_EYE_LEVEL_HDR_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.EYE_LEVEL_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,SOS_HEADER_ID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SOS_DEFINITION_ID INTEGER,SOS_HDR_TABLE NVARCHAR,SOS_HDR_FIELD NVARCHAR,SOS_HDR_VALUE INTEGER,HEADER_NAME NVARCHAR,EYE_LEVEL_HDR_FACING INTEGER,NONEYE_LEVEL_HDR_FACING INTEGER,ADDED_DATE TEXT)`,
};
const Q_EYE_LEVEL_CHILD_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.EYE_LEVEL_CHILD_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,SOS_HEADER_ID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SOS_DEFINITION_ID INTEGER,SOS_HDR_VALUE INTEGER,SOS_CHILD_TABLE NVARCHAR,SOS_CHILD_FIELD NVARCHAR,SOS_CHILD_VALUE INTEGER,CHILD_NAME NVARCHAR,TOTAL_EYE_FACING INTEGER,TOTAL_NONEYE_FACING INTEGER,SELF_NONEYE_FACING INTEGER,SELF_EYE_FACING INTEGER,ADDED_DATE TEXT)`,
};
const Q_EYE_LEVEL_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.EYE_LEVEL_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,SOS_HEADER_ID NVARCHAR,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SOS_DEFINITION_ID INTEGER,SOS_HDR_VALUE INTEGER,SOS_CHILD_VALUE INTEGER,IMAGE1 NVARCHAR,TYPE NVARCHAR,ADDED_DATE TEXT)`,
};

const Q_CATEXE_HDR_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.CATEXE_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,CAT_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CAT_DEFINITION_ID INTEGER,CAT_ID INTEGER,CAT_NAME NVARCHAR,IS_PRESENT INTEGER,CATE_NA_IMAGE NVARCHAR,REASON_ID INTEGER,REASON NVARCHAR,REMARK NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_CATEXE_CHILD_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.CATEXE_CHILD_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,CAT_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CAT_DEFINITION_ID INTEGER,CAT_ID INTEGER,QUESTION_ID INTEGER,QUESTION_CODE INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,MULTI_OPTIONS_IDS NVARCHAR,IMAGE1 NVARCHAR,IMAGE_ALLOW1 INTEGER,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,
};
const Q_CATEXE_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.CATEXE_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,CAT_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CAT_DEFINITION_ID INTEGER,CAT_ID INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_CATEXE_STOCK_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.CATEXE_STOCK_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,CAT_HEADER_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,CAT_DEFINITION_ID INTEGER,CAT_ID INTEGER,CAT_STOCK_DEFINITION_ID INTEGER,CAT_STOCK_TABLE NVARCHAR,CAT_STOCK_FIELD NVARCHAR,CAT_STOCK_VALUE INTEGER,CAT_STOCK_MBQ INTEGER,PRODUCT_NAME NVARCHAR,STOCK INTEGER,IS_CAT_PRESENT INTEGER,ADDED_DATE TEXT)`,
};
const Q_STORE_PROFILE = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STORE_PROFILE}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,STORE_NAME NVARCHAR,ADDRESS NVARCHAR,GSTNO INTEGER,CONTACT_PERSON TEXT,PHONE INTEGER,MOBILE INTEGER,LOCATION NVARCHAR,PINCODE INTEGER, EMAIL NVARCHAR,VISIT_DATE NVARCHAR,ADDED_DATE TEXT )`,
};

const Q_DB_WINDOW_HDR = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.DB_WINDOW_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,WINDOW_HEADER_ID INTEGER,DISTRIBUTOR_ID INTEGER,VISIT_DATE NVARCHAR,WINDOW_DEFINITION_ID INTEGER,WINDOW_ID INTEGER,WINDOW_NAME NVARCHAR,WINDOW_TABLE NVARCHAR,WINDOW_FIELD NVARCHAR,WINDOW_VALUE INTEGER,CHILD_NAME NVARCHAR,IS_PRESENT INTEGER,WINDOW_IMAGE NVARCHAR,STOCK_QTY INTEGER,ADDED_DATE TEXT)`,
};

const Q_DB_VISICOOLER = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.DB_VISICOOLER}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,DISTRIBUTOR_ID INTEGER,VISIT_DATE NVARCHAR,QRCODE NVARCHAR,ASSETCODE NVARCHAR ,IMAGE NVARCHAR,ADDED_DATE TEXT)`,
};

const Q_DBPOSM_HDR = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.DBPOSM_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,POSM_HEADER_ID INTEGER,DISTRIBUTOR_ID INTEGER,VISIT_DATE NVARCHAR,POSM_DEFINITION_ID INTEGER,POSM_ID INTEGER,POSM_NAME NVARCHAR,POSM_TYPE_ID INTEGER,POSM_TYPE_NAME NVARCHAR,POSM_TABLE NVARCHAR,POSM_FIELD NVARCHAR,POSM_VALUE INTEGER,CHILD_NAME NVARCHAR,IS_PRESENT INTEGER,POSM_IMAGE NVARCHAR,STOCK_QTY INTEGER,ADDED_DATE TEXT)`,
};


// SAMPLING_CUST_TRACK
const Q_SAMPLING_INVENTORY = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SAMPLING_INVENTORY}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SAMPLING_DEFINITION_ID INTEGER,CATEGORY_ID INTEGER,QUESTION NVARCHAR,QUESTION_ID INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,IMAGE_ALLOW1 INTEGER,IMAGE1 NVARCHAR,IMAGE_ALLOW2 INTEGER,IMAGE2 NVARCHAR,MULTI_OPTIONS_IDS NVARCHAR,IS_DISABLED INTEGER,MENU_ID INTEGER,ADDED_DATE TEXT)`,
};
const Q_SAMPLING_CUST_TRACK = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SAMPLING_CUST_TRACK}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SAMPLING_DEFINITION_ID INTEGER,CATEGORY_ID INTEGER,QUESTION NVARCHAR,QUESTION_ID INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,IMAGE_ALLOW1 INTEGER,IMAGE1 NVARCHAR,IMAGE_ALLOW2 INTEGER,IMAGE2 NVARCHAR,MULTI_OPTIONS_IDS NVARCHAR,IS_DISABLED INTEGER,MENU_ID INTEGER,CUSTID NVARCHAR,IDX_DLT INTEGER,ADDED_DATE TEXT)`,
};
const Q_SAMPLING_STOCK_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SAMPLING_STOCK_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR, SAMPLING_STOCK_DEFINITION_ID INTEGER, SAMPLING_DEFINITION_ID INTEGER, SAMPLING_STOCK_TABLE NVARCHAR, SAMPLING_STOCK_FIELD NVARCHAR, SAMPLING_STOCK_VALUE INTEGER, SAMPLING_STOCK_MBQ INTEGER, PRODUCT_NAME NVARCHAR, STOCK INTEGER, ADDED_DATE TEXT)`,
};
const Q_SAMPLING_SALE_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SAMPLING_SALE_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR, SAMPLING_STOCK_DEFINITION_ID INTEGER, SAMPLING_DEFINITION_ID INTEGER, SAMPLING_STOCK_TABLE NVARCHAR, SAMPLING_STOCK_FIELD NVARCHAR, SAMPLING_STOCK_VALUE INTEGER, SAMPLING_STOCK_MBQ INTEGER, PRODUCT_NAME NVARCHAR, SALE INTEGER, ADDED_DATE TEXT)`,
};
const Q_SAMPLING_LIST = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.SAMPLING_LIST}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SAMPLING_PRESENT NVARCHAR, KIOSKSETUP NVARCHAR,SAMPLING_DEFINITION_ID INTEGER,START_IMAGE1 NVARCHAR,START_IMAGE2 NVARCHAR,END_IMAGE1 NVARCHAR,END_IMAGE2 NVARCHAR,START_IMG_TIME NVARCHAR,END_IMG_TIME NVARCHAR,START_LUNCH NVARCHAR,END_LUNCH NVARCHAR, ISFILLED NVARCHAR,ADDED_DATE TEXT,REASONID INTEGER,REASON NVARCHAR)`,
};


const Q_ORDER_STATUS = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.ORDERSTATUS}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,ORDER_ID INTEGER,ORDER_QTY INTEGER,PRODUCTNAME NVARCHAR,IMAGES NVARCHAR,PRODUCT_ID INTEGER,ISPRESENT INTEGER,ADDED_DATE TEXT,INVOICE_TYPE NVARCHAR,MID INTEGER)`,};

const Q_VISITOR_FEEDBACK = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.VISITOR_FEEDBACK}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,VISIT_DATE NVARCHAR,NAME NVARCHAR,DESIGNATION NVARCHAR,IMAGE NVARCHAR,UPLOADSTATUS VARCHAR,CATEGORY_ID INTEGER,QUESTION NVARCHAR,QUESTION_ID INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,IMAGE_ALLOW1 INTEGER,IMAGE1 NVARCHAR,IMAGE_ALLOW2 INTEGER,IMAGE2 NVARCHAR,MULTI_OPTIONS_IDS NVARCHAR,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,
};

const Q_VISITOR_LOGIN_FEEDBACK = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.VISITOR_LOGIN_FEEDBACK}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,VISIT_DATE NVARCHAR,EMP_CODE NVARCHAR,NAME NVARCHAR,DESIGNATION NVARCHAR,IMAGE NVARCHAR,UPLOADSTATUS VARCHAR,CATEGORY_ID INTEGER,QUESTION NVARCHAR,QUESTION_ID INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,IMAGE_ALLOW1 INTEGER,IMAGE1 NVARCHAR,IMAGE_ALLOW2 INTEGER,IMAGE2 NVARCHAR,MULTI_OPTIONS_IDS NVARCHAR,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,
};

const Q_VISICO_HDR_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.VISICO_HDR_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,VISICO_HEADER_ID INTEGER,MENU_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,TARGETID INTEGER,TARGETTYPEID INTEGER,TARGETTYPENAME NVARCHAR,CHILD_NAME NVARCHAR,IS_PRESENT INTEGER,IS_UPDATED INTEGER,ADDED_DATE TEXT)`,
};
const Q_VISICO_CHILD_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.VISICO_CHILD_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,VISICO_HEADER_ID INTEGER,STORE_ID INTEGER,MENU_ID INTEGER,VISIT_DATE NVARCHAR,TARGETTYPEID INTEGER,TQQUESTIONID INTEGER,TQQUESTIONID_CODE INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,MULTI_OPTIONS_IDS NVARCHAR,IMAGE1 NVARCHAR,IMAGE_ALLOW1 INTEGER,IMAGE2 NVARCHAR,IMAGE_ALLOW2 INTEGER, TQA_QUESTION_DISABLE INTEGER,ADDED_DATE TEXT)`,
};
///arman
const Q_QRCODE_SCANNER = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.QRCODE_SCANNER}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,QRCODE_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,UNIQUE_QRCODE NVARCHAR,PRODUCT_NAME NVARCHAR,PRODUCT_ID INTEGER,ADDED_DATE TEXT)`,
};

const Q_QRCODE_SALE = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.QRCODE_SALE}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,QRCODE_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,UNIQUE_QRCODE NVARCHAR,PRODUCT_NAME NVARCHAR,PRODUCT_ID INTEGER,ADDED_DATE TEXT)`,
};

const Q_KYC_INFO = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.KYC_INFO}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,KYC_DATA TEXT)`,
};

const Q_STORE_KYC_INFO = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STORE_KYC_INFO}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,KYC_DATA TEXT)`,
};

const Q_STORE_PROFILE_KYC = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STORE_PROFILE_KYC}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,STORE_NAME NVARCHAR,ADDRESS NVARCHAR,GSTNO INTEGER,IMAGE NVARCHAR,CONTACT_PERSON TEXT,PHONE INTEGER,MOBILE INTEGER,LOCATION NVARCHAR,PINCODE INTEGER, EMAIL NVARCHAR,VISIT_DATE NVARCHAR,ADDED_DATE TEXT )`,
};

//WINDOW_ID is ChildId and WINDOW_NAME as ChildName
const Q_POSSALE_HDR_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.HEADER_POSSALE_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,MONTH NVARCHAR,YEAR INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,TOTAL_POS_VALUE NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_POSSALE_IMAGES = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.POSSALE_IMAGES}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,POSDEFINITIONID INTEGER,IMAGE1 NVARCHAR,ADDED_DATE TEXT)`,
};
const Q_POSSALE_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.POSSALE_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,WINDOW_ID INTEGER,WINDOW_NAME NVARCHAR,POSDEFINITIONID INTEGER,POS_VALUE INTEGER,POS_VOLUME INTEGER,ISPRESENT NVARCHAR,REASONID INTEGER,REASON NVARCHAR, ADDED_DATE TEXT)`,
};

const Q_CONTRACT_FORM = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.CONTRACT_FORM}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PROGRAM_DEFINITION_ID INTEGER,PROGRAM_ID INTEGER,IS_CONTRACT_SIGNED INTEGER,REASON_ID INTEGER,REASON INTEGER,ADDED_DATE TEXT)`,
};
const Q_CONTRACT_FORM_DATA = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.CONTRACT_FORM_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PROGRAM_DEFINITION_ID INTEGER,PROGRAM_ID INTEGER,CATEGORY_ID INTEGER,QUESTION NVARCHAR,QUESTION_ID INTEGER,QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,IMAGE_ALLOW1 INTEGER,IMAGE1 NVARCHAR,IMAGE_ALLOW2 INTEGER,IMAGE2 NVARCHAR,MULTI_OPTIONS_IDS NVARCHAR,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,
};

const Q_BREAKTIME = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.BREAKTIME}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER, UNIQUEBREAKID NVARCHAR,VISIT_DATE NVARCHAR,BREAKNAME NVARCHAR,BREAKID INTEGER,STARTTIME NVARCHAR,ENDTIME VARCHAR,MAXNUMBER INTEGER,MINNUMBER INTEGER,ADDED_DATE TEXT)`,
};

const Q_STORE_INFO = {
    SqlText: `CREATE TABLE IF NOT EXISTS ${AppTables.STORE_INFO}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,DISTRIBUTOR_ID INTEGER, STORE_NAME NVARCHAR, STORE_ADDRESS NVARCHAR, STORECITY_ID INTEGER ,STORETYPE_ID INTEGER, LATITUDE REAL , LONGITUDE REAL , STORE_FRONT_IMAGE TEXT)`,
};
const Q_RETURN_STOCK = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.RETURN_STOCK}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PRESENT INTEGER,JSON_DATA NVARCHAR,IS_UPDATED INTEGER,ADDED_DATE TEXT)`,};

const Q_ORDER_SIMPLIFY = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.ORDER_SIMPLIFY}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PRESENT INTEGER,REASON_ID INTEGER,REASON NVARCHAR,JSON_DATA NVARCHAR,IS_UPDATED INTEGER,ADDED_DATE TEXT)`,};



const Table_Structure = [Q_ORDER_SIMPLIFY,Q_RETURN_STOCK,Q_HEADER_BACK_OF_STORE,Q_OFFLINE_ORDER, Q_CHILD_BACK_OF_STORE, Q_SALES, Q_INSERT_OPENINGHEADER_DATA, Q_STOCK_DATA, Q_SHARE_OF_SHELF_IMAGE, Q_SHARE_OF_SHELF_FACING_DATA, Q_GEOTAG_TABLE,
    Q_INSERT_SAMPLED_DATA, Q_CONTACT_CONVERSION, Q_INSERT_ERROR_TRACKING, Q_GROOMING_IMAGE_DATA, Q_ADDITIONAL_VISIBILITY,Q_ADDITIONAL_VISIBILITY_STOCK, Q_COMPETITION_VISIBILITY, Q_COMPETITION_PROMOTION, Q_COVERAGE_DATA, Q_CHECKIN_DATA,
    Q_PROMOTION_HEADER_DATA, Q_PROMOTION_DATA, Q_PAID_VISIBILITY_HEADER_DATA, Q_PAID_VISIBILITY_CHILD_DATA, Q_PAID_VIS_CHECKLIST, Q_PERSONAL_DOCUMENT, Q_VISITOR_LOGIN, Q_AUTOMATED_REIMBURSEMENT, Q_WARE_HOUSE_INWARD, Q_SOS_CHILD_QUES_DATA,
    Q_CASHTILL_SURVEY, Q_SURVEY, Q_WINDOW_HDR, Q_WINDOW_CHILD, Q_WINDOW_IMAGES, Q_WINDOW_STOCK, Q_STOCK2HDR_DATA, Q_STOCK2_DATA, Q_STOCK2_MFD_DATA, Q_STOCKPROMO_HDR_TOP, Q_STOCKPOMO_HDR_DATA, Q_STOCKPROMO_DATA, Q_POSM_HDR, Q_POSM_CHILD, Q_FEEDBACK, Q_SIMPLE_PROMOHDR_DATA, Q_SIMPLE_PROMOTION_DATA, Q_STORE_IMAGES,
    Q_ST_HDR, Q_ST_CHILD, Q_ST_IMAGES, Q_ST_STOCK, Q_STOCKWITHCAT_HDR_DATA, Q_STOCKWITHCAT_DATA, Q_STOCKWITHCAT_MFD_DATA, Q_PROMO_HDR_DATA, Q_PROMO_CHILD_DATA, Q_PROMO_IMAGES, Q_PROMO_STOCK_DATA, Q_PROMO_IR_IMAGES, Q_PROMO_IRUPLOAD, Q_PAIDVIS_HDR_DATA, Q_WAREHOUSE_HDR_DATA, Q_WAREHOUSE_CAMPAIGN_HEADER_DATA, Q_PAIDVIS_CHILD_DATA, Q_WAREHOUSE_CHILD_DATA, Q_PAIDVIS_IMAGES, Q_WAREHOUSE_IMAGES, Q_WAREHOUSE_CAMPAIGN_IMAGES, Q_PAIDVIS_STOCK_DATA, Q_SOS_HDR_DATA, Q_SOS_IMAGES, Q_SOS_CHILD_DATA,
    Q_CATEXE_HDR_DATA, Q_CATEXE_CHILD_DATA, Q_CATEXE_IMAGES, Q_CATEXE_STOCK_DATA, Q_ORDER, Q_STORE_CHECKLIST, Q_BEAT_PLAN, Q_DISTRIBUTOR_CHECKIN, Q_STORE_PROFILE, Q_DBPOSM_HDR, Q_DB_WINDOW_HDR, Q_DB_VISICOOLER, Q_DB_GEOTAG_TABLE, Q_ORDER_STATUS, Q_VISITOR_FEEDBACK, Q_SAMPLING_INVENTORY, Q_SAMPLING_SALE_DATA, Q_SAMPLING_STOCK_DATA, Q_SAMPLING_LIST, Q_SAMPLING_CUST_TRACK, Q_WAREHOUSE_CAMPAIGN_CHILD_DATA,
    Q_POSSALE_HDR_DATA, Q_POSSALE_IMAGES, Q_POSSALE_DATA, Q_SOS_IR_IMAGES, Q_SOS_IRUPLOAD, Q_PAIDVIS_IR_IMAGES, Q_PAIDVIS_IRUPLOAD, Q_ADDVIS_IR_IMAGES, Q_ADDVIS_IRUPLOAD, Q_COMPVIS_IR_IMAGES, Q_COMPVIS_IRUPLOAD, Q_WINDOW_IR_IMAGES, Q_WINDOW_IRUPLOAD, Q_PROGRAM_HDR_DATA, Q_PROGRAM_CHILD_DATA, Q_PROGRAM_IMAGES, Q_PROGRAM_STOCK_DATA, Q_VISICO_HDR_DATA, Q_VISICO_CHILD_DATA, Q_CONTRACT_FORM, Q_CONTRACT_FORM_DATA,
    Q_MISSED_CALL, Q_EYE_LEVEL_HDR_DATA, Q_EYE_LEVEL_CHILD_DATA, Q_EYE_LEVEL_IMAGES, Q_BREAKTIME, Q_VISITOR_LOGIN_FEEDBACK, Q_STORE_INFO, Q_ADD_STORE_INFO, Q_HOME_LOCATION, Q_QRCODE_SCANNER, Q_QRCODE_SALE, Q_KYC_INFO, Q_STORE_KYC_INFO, Q_STORE_PROFILE_KYC
];

export { Table_Structure }