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',
    INSERT_OPENINGHEADER_DATA:'STOCKHEADER_DATA',
    STOCK_DATA:'STOCK_DATA',
    STOCK2HDR_DATA:'STOCK2HDR_DATA',
    STOCK2_DATA:'STOCK2_DATA',
    STOCK2_MFD_DATA:'STOCK2_MFD_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",
    COMPETITION_VISIBILITY:'DR_TABLECOMP_VISIBILITY',
    COMPETITION_PROMOTION:"DR_COMP_PROMOTION",
    GATE_MEETING:"DR_GATE_MEETING",
    GATE_MEETING_DISCUSSION:'DR_GATE_MEETING_DISCUSSION',
    COVERAGE_DATA:'DR_COVERAGE',
    CHECKIN_DATA:'EMPSTORE_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',
    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',

    PAIDVIS_HDR_DATA:'PAIDVIS_HEARDER_DATA',
    PAIDVIS_CHILD_DATA:'PAIDVIS_CHILD_DATA',
    PAIDVIS_STOCK_DATA:'PAIDVIS_STOCK_DATA',
    PAIDVIS_IMAGES:'PAIDVIS_IMAGES',

    
    DBPOSM_HDR_DATA:'DBPOSM_HDR_DATA',
    DB_WINDOW_HDR_DATA:'DB_WINDOW_HEARDER_DATA',
    DISTRIBUTOR_CHECKIN:'DISTRIBUTOR_CHECKIN',

    VISAUDIT_HDR_DATA:'VISAUDIT_HEARDER_DATA',
    VISAUDIT_CHILD_DATA:'VISAUDIT_CHILD_DATA',
    VISAUDIT_STOCK_DATA:'VISAUDIT_STOCK_DATA',
    VISAUDIT_IMAGES:'VISAUDIT_IMAGES',

    SOS_HDR_DATA:'SOS_HEADER_DATA',
    SOS_CHILD_DATA:'SOS_CHILD_DATA',
    SOS_IMAGES:'SOS_IMAGES',
    ATTENDANCE:'ATTENDANCE',
    RESUME_DATA:'RESUME_DATA',
    ATTENDANCE_DATA:'ATTENDANCE_DATA',
    DB_VISICOOLER:"DB_VISICOOLER",

    // DR_RESUMEDATA:'DR_RESUMEDATA'
    IMAGE_AUDIT_HDR_DATA:'IMAGE_AUDIT_HDR_DATA',
    IMAGE_AUDIT_QUESTION:'IMAGE_AUDIT_QUESTION',

    // posSale
    HEADER_POSSALE_DATA:'HEADER_POSSALE_DATA',
    POSSALE_IMAGES:'POSSALE_IMAGES',
    POSSALE_DATA:'POSSALE_DATA',


}

const Q_ATTENDANCE = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.ATTENDANCE}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,EMP_ID INTEGER,ATTENDANCE_DATE TEXT,STATUS TEXT,STATUS_Id INTEGER,ENTRY_ALLOW INTEGER,REMARK TEXT,REASON_ID INTEGER, REASON TEXT,IMAGE1 TEXT ,ADDED_DATE TEXT)`,};

const Q_GEOTAG_TABLE = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.GEOTAG}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,EMP_ID INTEGER,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,EMP_ID INTEGER,STORE_ID INTEGER,LATITUDE NVARCHAR,LONGITUDE NVARCHAR,GEO_TAG NVARCHAR,STATUS NVARCHAR,FRONT_IMAGE NVARCHAR,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,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)`,};
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,OPENING_STOCK INTEGER,MIDDAY_STOCK INTEGER,CLOSING_STOCK INTEGER,EXPIRY_ISOPEN NVARCHAR,EXPIRY_STK INTEGER,ADDED_DATE TEXT)`,};

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,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,STOCK INTEGER,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,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_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_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)`,};

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_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,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,TOTAL_CONTACT INTEGER,CST_CONTACT INTEGER,ADDED_DATE 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,REMARK NVARCHAR,IMAGE NVARCHAR,ADDED_DATE TEXT)`,};
const Q_COMPETITION_VISIBILITY = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.COMPETITION_VISIBILITY}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,EMP_ID INTEGER,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,EMP_ID INTEGER,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,IMAGE NVARCHAR,ADDED_DATE TEXT)`,};
const Q_GATE_MEETING = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.GATE_MEETING}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,USER_ID NVARCHAR,UNIQUE_ID NVARCHAR,VISIT_DATE NVARCHAR,TIME NVARCHAR,EMP_ID NVARCHAR,MERCHANDISER_NAME NVARCHAR,SUP_ID NVARCHAR,SUP_NAME NVARCHARIMAGE,IMAGE NVARCHAR,UPLOADSTATUS NVARCHAR,ADDED_DATE TEXT)`,};

const Q_GATE_MEETING_DISCUSSION = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.GATE_MEETING_DISCUSSION}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,VISIT_DATE NVARCHAR,USER_ID NVARCHAR,GATEMEETING_ID NVARCHAR,DISCUSSION_POINTS NVARCHAR,ADDED_DATE TEXT)`,};

const Q_ATTENDANCEDATA = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.ATTENDANCE_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,VISIT_DATE NVARCHAR,USER_ID NVARCHAR,EMP_ID INTEGER,REASON_ID INTEGER,REASON NVARCHAR,UPLOADSTATUS NVARCHAR,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_COVERAGE_DATA = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.COVERAGE_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,EMP_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,STORE_OBJ NVARCHAR,STATUS 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,EMP_ID INTEGER,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_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,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,EMP_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,SURVEY_ID INTEGER,MENUID 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,ADDED_DATE TEXT)`,};
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_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,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,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,ADDED_DATE TEXT)`,};
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,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,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,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_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,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,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,VISIT_DATE NVARCHAR,PVIS_DEFINITION_ID INTEGER,PVIS_ID INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,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,ADDED_DATE TEXT)`,};

const Q_VISAUDIT_HDR_DATA = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.VISAUDIT_HDR_DATA }
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PVIS_HEADER_ID INTEGER,VId 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,ADDED_DATE TEXT)`,};
const Q_VISAUDIT_CHILD_DATA= {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.VISAUDIT_CHILD_DATA }
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PVIS_HEADER_ID INTEGER,VId 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,ADDED_DATE TEXT)`,};
const Q_VISAUDIT_IMAGES= {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.VISAUDIT_IMAGES }
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PVIS_HEADER_ID INTEGER,VId INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,PVIS_DEFINITION_ID INTEGER,PVIS_ID INTEGER,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,ADDED_DATE TEXT)`,};
const Q_VISAUDIT_STOCK_DATA= {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.VISAUDIT_STOCK_DATA }
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,PVIS_HEADER_ID INTEGER,VId 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,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,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,ADDED_DATE TEXT)`,};

const Q_STORE_IMAGES= {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.STORE_IMAGES }
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,EMP_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,IMAGE_TYPE_ID INTEGER,IMAGE_TYPE NVARCHAR,IMAGE NVARCHAR,REMARK 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,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_IMAGES= {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.SOS_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_HR = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.RESUME_DATA}
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,UID TEXT,EMP_ID INTEGER,NAME TEXT,MOBILE_NO INTEGER,LOCALITY TEXT,POSITION TEXT,PROJECT TEXT,AGENCY TEXT,EXPERIENCE TEXT,EDUCATION TEXT,STORE TEXT,RESUME_FILE NVARCHAR,TYPE TEXT,IMAGE1 NVARCHAR,IMAGE2 NVARCHAR,ADDED_DATE TEXT,STATUS NVARCHAR)`,};


const Q_Image_Audit_HDR_DATA  = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.IMAGE_AUDIT_HDR_DATA }

(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,STORE_ID INTEGER,VISIT_DATE NVARCHAR,IMAGE_HEADER_ID NVARCHAR , MID Integer, MenuId Integer, Menu Text, KPIImageId Integer, QuestionImageId Integer, DefId Integer, DefName Text, ImageName Text, Image1 Text, Image2 Text, BaseUrl Text , pictureokay Integer , pictureokay2 Integer,STATUS NVARCHAR)`,};

const Q_Image_Audit  = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.IMAGE_AUDIT_QUESTION }

(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,EMP_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,MID INTEGER,MENUID INTEGER,QUESTION NVARCHAR,QUESTION_ID INTEGER,
QUESTION_TYPE NVARCHAR,ANSWER NVARCHAR,ANSWER_ID INTEGER,MULTI_OPTIONS_IDS NVARCHAR,IS_DISABLED INTEGER,ADDED_DATE TEXT)`,};


// posSale
const Q_POSSALE_HDR_DATA = {SqlText:`CREATE TABLE IF NOT EXISTS ${AppTables.HEADER_POSSALE_DATA }
(KEY_ID INTEGER PRIMARY KEY AUTOINCREMENT,EMP_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,MONTH NVARCHAR,YEAR INTEGER,CYCLEPERIOD NVARCHAR,CYCLEPERIODID 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,EMP_ID INTEGER,STORE_ID INTEGER,VISIT_DATE NVARCHAR,WINDOW_ID INTEGER,WINDOW_NAME NVARCHAR,SALE NVARCHAR,POSDEFINITIONID INTEGER,POS_VALUE INTEGER,POS_VOLUME INTEGER,ISPRESENT NVARCHAR,REASONID INTEGER,REASON NVARCHAR, ADDED_DATE TEXT)`,};



const Table_Structure=[Q_ATTENDANCE,Q_HEADER_BACK_OF_STORE,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_DB_GEOTAG_TABLE,
    Q_INSERT_SAMPLED_DATA,Q_CONTACT_CONVERSION,Q_INSERT_ERROR_TRACKING,Q_GROOMING_IMAGE_DATA,Q_ADDITIONAL_VISIBILITY,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_GATE_MEETING,Q_GATE_MEETING_DISCUSSION,Q_ATTENDANCEDATA,
    Q_CASHTILL_SURVEY,Q_SURVEY,Q_WINDOW_HDR,Q_WINDOW_CHILD,Q_DB_VISICOOLER,Q_WINDOW_IMAGES,Q_WINDOW_STOCK,Q_STOCK2HDR_DATA,Q_STOCK2_DATA,Q_STOCK2_MFD_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_PAIDVIS_HDR_DATA,Q_PAIDVIS_CHILD_DATA,Q_PAIDVIS_IMAGES,Q_PAIDVIS_STOCK_DATA,Q_SOS_HDR_DATA,Q_SOS_IMAGES,Q_SOS_CHILD_DATA,Q_VISAUDIT_HDR_DATA,Q_VISAUDIT_CHILD_DATA,Q_VISAUDIT_IMAGES,Q_VISAUDIT_STOCK_DATA,
    Q_HR,Q_DBPOSM_HDR,Q_DB_WINDOW_HDR,Q_DISTRIBUTOR_CHECKIN,Q_Image_Audit_HDR_DATA,Q_Image_Audit,Q_POSSALE_HDR_DATA,Q_POSSALE_IMAGES,Q_POSSALE_DATA
];

export {Table_Structure}