Newer
Older
<index name="activityproductrel_activityid_idx">
<col>activityid</col>
</index>
<index name="activityproductrel_productid_idx">
<col>productid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_activityproductrel" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_activityproductrel FOREIGN KEY (activityid) REFERENCES vtiger_activity(activityid) ON DELETE CASCADE</constraint>
<constraint>ADD CONSTRAINT fk_2_vtiger_activityproductrel FOREIGN KEY (productid) REFERENCES vtiger_products(productid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
<data>
</data>
</table>
<table name="vtiger_relatedlists">
<field name="relation_id" type="I" size="19">
<key />
</field>
<field name="tabid" type="I" size="10" />
<field name="related_tabid" type="I" size="10" />
<field name="name" type="C" size="100" />
<field name="sequence" type="I" size="10" />
<field name="label" type="C" size="100" />
<field name="presence" type="I" size="10">
<notnull />
<default value="0" />
</field>
<field name="actions" type="C" size="50">
<notnull />
<default value="" />
</field>
<field name="relationfieldid" type="I" size="19" />
<field name="source" type="C" size="25" />
<field name="relationtype" type="C" size="10" />
<index name="relatedlists_relation_id_idx">
<col>relation_id</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_rss">
<field name="rssid" type="I" size="19">
<key />
</field>
<field name="rssurl" type="C" size="200">
<notnull />
<default value="" />
</field>
<field name="rsstitle" type="C" size="200" />
<field name="rsstype" type="I" size="10">
<default value="0" />
</field>
<field name="starred" type="I" size="1">
<default value="0" />
</field>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_vendorcf">
<field name="vendorid" type="I" size="19">
<key />
<default value="0" />
</field>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_vendorcf" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_vendorcf FOREIGN KEY (vendorid) REFERENCES vtiger_vendor(vendorid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
<data>
</data>
</table>
<table name="vtiger_pricebook">
<field name="pricebookid" type="I" size="19">
<key />
<notnull />
<default value="0" />
</field>
<field name="pricebook_no" type="C" size="100">
<notnull />
<unique />
</field>
<field name="bookname" type="C" size="100" />
<field name="active" type="I" size="1" />
<field name="currency_id" type="I" size="19">
<notnull />
<default value="1" />
</field>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_pricebook" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_pricebook FOREIGN KEY (pricebookid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_pricebookcf">
<field name="pricebookid" type="I" size="19">
<key />
<default value="0" />
</field>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_pricebookcf" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_pricebookcf FOREIGN KEY (pricebookid) REFERENCES vtiger_pricebook(pricebookid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
<data>
</data>
</table>
<table name="vtiger_pricebookproductrel">
<field name="pricebookid" type="I" size="19">
<key />
</field>
<field name="productid" type="I" size="19">
<key />
</field>
<field name="listprice" type="N" size="25.3" />
<field name="usedcurrency" type="I" size="11">
<notnull />
<default value="1" />
</field>
<index name="pricebookproductrel_pricebookid_idx">
<col>pricebookid</col>
</index>
<index name="pricebookproductrel_productid_idx">
<col>productid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_pricebookproductrel" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_pricebookproductrel FOREIGN KEY (pricebookid) REFERENCES vtiger_pricebook(pricebookid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
<data>
</data>
</table>
<table name="vtiger_mail_accounts">
<field name="account_id" type="I" size="11">
<key />
</field>
<field name="user_id" type="I" size="11">
<notnull />
</field>
<field name="display_name" type="C" size="50" />
<field name="mail_id" type="C" size="50" />
<field name="account_name" type="C" size="50" />
<field name="mail_protocol" type="C" size="20" />
<field name="mail_username" type="C" size="50">
<notnull />
</field>
<field name="mail_password" type="C" size="250">
<notnull />
</field>
<field name="mail_servername" type="C" size="50" />
<field name="box_refresh" type="I" size="10" />
<field name="mails_per_page" type="I" size="10" />
<field name="ssltype" type="C" size="50" />
<field name="sslmeth" type="C" size="50" />
<field name="int_mailer" type="I" size="1">
<default value="0" />
</field>
<field name="status" type="C" size="10" />
<field name="set_default" type="I" size="2" />
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
</table>
<table name="vtiger_quotes">
<field name="quoteid" type="I" size="19">
<key />
<notnull />
<default value="0" />
</field>
<field name="subject" type="C" size="100" />
<field name="potentialid" type="I" size="19">
</field>
<field name="quotestage" type="C" size="200" />
<field name="validtill" type="D" />
<field name="contactid" type="I" size="19">
</field>
<field name="quote_no" type="C" size="100" />
<field name="subtotal" type="N" size="25.3" />
<field name="carrier" type="C" size='200' />
<field name="shipping" type="C" size="100" />
<field name="inventorymanager" type="I" size="19" />
<field name="type" type="C" size="100" />
<field name="adjustment" type="N" size="25.3" />
<field name="total" type="N" size="25.3" />
<field name="taxtype" type="C" size="25" />
<field name="discount_percent" type="N" size="25.3" />
<field name="discount_amount" type="N" size="25.3" />
<field name="s_h_amount" type="N" size="25.3" />
<field name="accountid" type="I" size="19" />
<field name="terms_conditions" type="X" />
<field name="currency_id" type="I" size='19' >
<notnull />
<default value="1" />
</field>
<field name="conversion_rate" type="N" size='10.3' >
<notnull />
<default value="1.000" />
</field>
<field name="compound_taxes_info" type="X" />
<index name="quote_quotestage_idx">
<col>quotestage</col>
</index>
<index name="quotes_potentialid_idx">
<col>potentialid</col>
</index>
<index name="quotes_contactid_idx">
<col>contactid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_quotes" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_quotes FOREIGN KEY (contactid) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE</constraint>
<constraint>ADD CONSTRAINT fk_2_vtiger_quotes FOREIGN KEY (quoteid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE</constraint>
<constraint>ADD CONSTRAINT fk_3_vtiger_quotes FOREIGN KEY (potentialid) REFERENCES vtiger_potential(potentialid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_quotesbillads">
<field name="quotebilladdressid" type="I" size="19">
<key />
<default value="0" />
</field>
<field name="bill_city" type="C" size="30" />
<field name="bill_code" type="C" size="30" />
<field name="bill_country" type="C" size="30" />
<field name="bill_state" type="C" size="30" />
<field name="bill_street" type="C" size="250" />
<field name="bill_pobox" type="C" size="30" />
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_quotesbillads" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_quotesbillads FOREIGN KEY (quotebilladdressid) REFERENCES vtiger_quotes(quoteid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_quotesshipads">
<field name="quoteshipaddressid" type="I" size="19">
<key />
<default value="0" />
</field>
<field name="ship_city" type="C" size="30" />
<field name="ship_code" type="C" size="30" />
<field name="ship_country" type="C" size="30" />
<field name="ship_state" type="C" size="30" />
<field name="ship_street" type="C" size="250" />
<field name="ship_pobox" type="C" size="30" />
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_quotesshipads" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_quotesshipads FOREIGN KEY (quoteshipaddressid) REFERENCES vtiger_quotes(quoteid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_quotescf">
<field name="quoteid" type="I" size="19">
<key />
<default value="0" />
</field>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_quotescf" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_quotescf FOREIGN KEY (quoteid) REFERENCES vtiger_quotes(quoteid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
<data>
</data>
</table>
<table name="vtiger_purchaseorder">
<field name="purchaseorderid" type="I" size="19">
<key />
<notnull />
<default value="0" />
</field>
<field name="subject" type="C" size="100" />
<field name="quoteid" type="I" size="19">
</field>
<field name="vendorid" type="I" size="19">
</field>
<field name="requisition_no" type="C" size="100" />
<field name="purchaseorder_no" type="C" size="100" />
<field name="tracking_no" type="C" size="100" />
<field name="contactid" type="I" size="19">
</field>
<field name="duedate" type="D" />
<field name="carrier" type="C" size='200' />
<field name="type" type="C" size="100" />
<field name="adjustment" type="N" size="25.3" />
<field name="salescommission" type="N" size="25.3" />
<field name="exciseduty" type="N" size="25.3" />
<field name="total" type="N" size="25.3" />
<field name="subtotal" type="N" size="25.3" />
<field name="taxtype" type="C" size="25" />
<field name="discount_percent" type="N" size="25.3" />
<field name="discount_amount" type="N" size="25.3" />
<field name="s_h_amount" type="N" size="25.3" />
<field name="terms_conditions" type="X" />
<field name="postatus" type="C" size="200" />
<field name="currency_id" type="I" size='19' >
<notnull />
<default value="1" />
</field>
<field name="conversion_rate" type="N" size='10.3' >
<notnull />
<default value="1.000" />
</field>
<field name="compound_taxes_info" type="X" />
<index name="purchaseorder_vendorid_idx">
<col>vendorid</col>
</index>
<index name="purchaseorder_quoteid_idx">
<col>quoteid</col>
</index>
<index name="purchaseorder_contactid_idx">
<col>contactid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_purchaseorder" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_purchaseorder FOREIGN KEY (contactid) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE</constraint>
<constraint>ADD CONSTRAINT fk_2_vtiger_purchaseorder FOREIGN KEY (purchaseorderid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE</constraint>
<constraint>ADD CONSTRAINT fk_3_vtiger_purchaseorder FOREIGN KEY (quoteid) REFERENCES vtiger_quotes(quoteid) ON DELETE CASCADE</constraint>
<constraint>ADD CONSTRAINT fk_4_vtiger_purchaseorder FOREIGN KEY (vendorid) REFERENCES vtiger_vendor(vendorid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_pobillads">
<field name="pobilladdressid" type="I" size="19">
<key />
<default value="0" />
</field>
<field name="bill_city" type="C" size="30" />
<field name="bill_code" type="C" size="30" />
<field name="bill_country" type="C" size="30" />
<field name="bill_state" type="C" size="30" />
<field name="bill_street" type="C" size="250" />
<field name="bill_pobox" type="C" size="30" />
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_pobillads" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_pobillads FOREIGN KEY (pobilladdressid) REFERENCES vtiger_purchaseorder(purchaseorderid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_poshipads">
<field name="poshipaddressid" type="I" size="19">
<key />
<default value="0" />
</field>
<field name="ship_city" type="C" size="30" />
<field name="ship_code" type="C" size="30" />
<field name="ship_country" type="C" size="30" />
<field name="ship_state" type="C" size="30" />
<field name="ship_street" type="C" size="250" />
<field name="ship_pobox" type="C" size="30" />
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_poshipads" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_poshipads FOREIGN KEY (poshipaddressid) REFERENCES vtiger_purchaseorder(purchaseorderid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_purchaseordercf">
<field name="purchaseorderid" type="I" size="19">
<key />
<default value="0" />
</field>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_purchaseordercf" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_purchaseordercf FOREIGN KEY (purchaseorderid) REFERENCES vtiger_purchaseorder(purchaseorderid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
<data>
</data>
</table>
<table name="vtiger_invoice">
<field name="invoiceid" type="I" size="19">
<key />
<notnull />
<default value="0" />
</field>
<field name="subject" type="C" size="100" />
<field name="salesorderid" type="I" size="19">
</field>
<field name="customerno" type="C" size="100" />
<field name="contactid" type="I" size="19" />
<field name="notes" type="C" size="100" />
<field name="invoicedate" type="D" />
<field name="duedate" type="D" />
<field name="invoiceterms" type="C" size="100" />
<field name="type" type="C" size="100" />
<field name="adjustment" type="N" size="25.3" />
<field name="salescommission" type="N" size="25.3" />
<field name="exciseduty" type="N" size="25.3" />
<field name="subtotal" type="N" size="25.3" />
<field name="total" type="N" size="25.3" />
<field name="taxtype" type="C" size="25" />
<field name="discount_percent" type="N" size="25.3" />
<field name="discount_amount" type="N" size="25.3" />
<field name="s_h_amount" type="N" size="25.3" />
<field name="shipping" type="C" size="100" />
<field name="accountid" type="I" size="19" />
<field name="terms_conditions" type="X" />
<field name="purchaseorder" type="C" size='200' />
<field name="invoicestatus" type="C" size='200' />
<field name="invoice_no" type="C" size='100' >
<default value="NULL" />
<unique />
</field>
<field name="currency_id" type="I" size='19' >
<notnull />
<default value="1" />
</field>
<field name="conversion_rate" type="N" size='10.3' >
<notnull />
<default value="1.000" />
</field>
<field name="compound_taxes_info" type="X" />
<index name="invoice_purchaseorderid_idx">
<col>invoiceid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_invoice" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_invoice FOREIGN KEY (invoiceid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE</constraint>
<constraint>ADD CONSTRAINT fk_2_vtiger_invoice FOREIGN KEY (salesorderid) REFERENCES vtiger_salesorder(salesorderid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_invoicebillads">
<field name="invoicebilladdressid" type="I" size="19">
<key />
<default value="0" />
</field>
<field name="bill_city" type="C" size="30" />
<field name="bill_code" type="C" size="30" />
<field name="bill_country" type="C" size="30" />
<field name="bill_state" type="C" size="30" />
<field name="bill_street" type="C" size="250" />
<field name="bill_pobox" type="C" size="30" />
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_invoicebillads" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_invoicebillads FOREIGN KEY (invoicebilladdressid) REFERENCES vtiger_invoice(invoiceid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_invoiceshipads">
<field name="invoiceshipaddressid" type="I" size="19">
<key />
<default value="0" />
</field>
<field name="ship_city" type="C" size="30" />
<field name="ship_code" type="C" size="30" />
<field name="ship_country" type="C" size="30" />
<field name="ship_state" type="C" size="30" />
<field name="ship_street" type="C" size="250" />
<field name="ship_pobox" type="C" size="30" />
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_invoiceshipads" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_invoiceshipads FOREIGN KEY (invoiceshipaddressid) REFERENCES vtiger_invoice(invoiceid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_invoicecf">
<field name="invoiceid" type="I" size="19">
<key />
<default value="0" />
</field>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_invoicecf" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_invoicecf FOREIGN KEY (invoiceid) REFERENCES vtiger_invoice(invoiceid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_activity_reminder">
<field name="activity_id" type="I" size="11">
<key />
<notnull />
</field>
<field name="reminder_time" type="I" size="11">
<notnull />
</field>
<field name="reminder_sent" type="I" size="2">
<notnull />
</field>
<field name="recurringid" type="I" size="19">
<key />
<notnull />
</field>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
</table>
<table name="vtiger_customview">
<field name="cvid" type="I" size="19">
<key />
</field>
<field name="viewname" type="C" size="100">
<notnull />
</field>
<field name="setdefault" type="I" size="1">
<default value="0" />
</field>
<field name="setmetrics" type="I" size="1">
<default value="0" />
</field>
<field name="entitytype" type="C" size="25">
<notnull />
</field>
<field name="status" type="I" size="1">
<default value="1" />
</field>
<field name="userid" type="I" size="19">
<default value="1" />
</field>
<index name="customview_entitytype_idx">
<col>entitytype</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_customview" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_customview FOREIGN KEY (entitytype) REFERENCES vtiger_tab (name) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
<data>
</data>
</table>
<table name="vtiger_cvcolumnlist">
<field name="cvid" type="I" size="19">
<key />
<notnull />
</field>
<field name="columnindex" type="I" size="11">
<key />
<notnull />
</field>
<field name="columnname" type="C" size="250">
<default value="" />
</field>
<index name="cvcolumnlist_columnindex_idx">
<col>columnindex</col>
</index>
<index name="cvcolumnlist_cvid_idx">
<col>cvid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_cvcolumnlist" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_cvcolumnlist FOREIGN KEY (cvid) REFERENCES vtiger_customview (cvid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
<data>
</data>
</table>
<table name="vtiger_cvstdfilter">
<field name="cvid" type="I" size="19">
<key />
</field>
<field name="columnname" type="C" size="250">
<default value="" />
</field>
<field name="stdfilter" type="C" size="250">
<default value="" />
</field>
<field name="startdate" type="D">
<default value="NULL" />
</field>
<field name="enddate" type="D">
<default value="NULL" />
</field>
<index name="cvstdfilter_cvid_idx">
<col>cvid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_cvstdfilter" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_cvstdfilter FOREIGN KEY (cvid) REFERENCES vtiger_customview (cvid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
<data>
</data>
</table>
<table name="vtiger_cvadvfilter">
<field name="cvid" type="I" size="19">
<key />
</field>
<field name="columnindex" type="I" size="11">
<key />
<notnull />
</field>
<field name="columnname" type="C" size="250">
<default value="" />
</field>
<field name="comparator" type="C" size="10">
<default value="" />
</field>
<field name="value" type="C" size="200">
<default value="" />
</field>
<field name="groupid" type="I">
<default value="1" />
</field>
<field name="column_condition" type="C" size="255">
<default value="and" />
</field>
<index name="cvadvfilter_cvid_idx">
<col>cvid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_cvadvfilter" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_cvadvfilter FOREIGN KEY (cvid) REFERENCES vtiger_customview (cvid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
<data>
</data>
</table>
<table name="vtiger_customaction">
<field name="cvid" type="I" size="19">
<notnull />
</field>
<field name="subject" type="C" size="250">
<notnull />
</field>
<field name="module" type="C" size="50">
<notnull />
</field>
<field name="content" type="X">
<default value="" />
</field>
<index name="customaction_cvid_idx">
<col>cvid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_customaction" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_customaction FOREIGN KEY (cvid) REFERENCES vtiger_customview (cvid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_selectquery">
<field name="queryid" type="I" size="19">
<key />
</field>
<field name="startindex" type="I" size="19">
<default value="0" />
</field>
<field name="numofobjects" type="I" size="19">
<default value="0" />
</field>
<index name="selectquery_queryid_idx">
<col>queryid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_selectcolumn">
<field name="queryid" type="I" size="19">
<key />
</field>
<field name="columnindex" type="I" size="11">
<key />
<notnull />
<default value="0" />
</field>
<field name="columnname" type="C" size="250">
<default value="" />
</field>
<index name="selectcolumn_queryid_idx">
<col>queryid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_selectcolumn" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_selectcolumn FOREIGN KEY (queryid) REFERENCES vtiger_selectquery (queryid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
<data>
</data>
</table>
<table name="vtiger_relcriteria">
<field name="queryid" type="I" size="19">
<key />
</field>
<field name="columnindex" type="I" size="11">
<key />
<notnull />
</field>
<field name="columnname" type="C" size="250">
<default value="" />
</field>
<field name="comparator" type="C" size="10">
<default value="" />
</field>
<field name="value" type="C" size="200">
<default value="" />
</field>
<field name="groupid" type="I" size="11">
<default value="1" />
</field>
<field name="column_condition" type="C" size="256">
<default value="and" />
</field>
<index name="relcriteria_queryid_idx">
<col>queryid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_relcriteria" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_relcriteria FOREIGN KEY (queryid) REFERENCES vtiger_selectquery (queryid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_reportfolder">
<field name="folderid" type="I" size="19">
<key />
<autoincrement />
</field>
<field name="foldername" type="C" size="100">
<notnull />
<default value="" />
</field>
<field name="description" type="C" size="250">
<default value="" />
</field>
<field name="state" type="C" size="50">
<default value="SAVED" />
</field>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
</table>
<table name="vtiger_report">
<field name="reportid" type="I" size="19">
<key />
</field>
<field name="folderid" type="I" size="19">
<notnull />
</field>
<field name="reportname" type="C" size="100">
<default value="" />
</field>
<field name="description" type="C" size="250">
<default value="" />
</field>
<field name="reporttype" type="C" size="50">
<default value="" />
</field>
<field name="queryid" type="I" size="19">
<notnull />
<default value="0" />
</field>
<field name="state" type="C" size="50">
<default value="SAVED" />
</field>
<field name="customizable" type="I" size="1">
<default value="1" />
</field>
<field name="category" type="I" size="11">
<default value="1" />
</field>
<field name="owner" type="I" size="11">
<default value="1" />
</field>
<field name="sharingtype" type="C" size="200">
<default value="Private" />
</field>
<index name="report_queryid_idx">
<col>queryid</col>
</index>
<index name="report_folderid_idx">
<col>folderid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_report" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_report FOREIGN KEY (folderid) REFERENCES vtiger_reportfolder (folderid) ON DELETE CASCADE</constraint>
<constraint>ADD CONSTRAINT fk_2_vtiger_report FOREIGN KEY (queryid) REFERENCES vtiger_selectquery (queryid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_reportmodules">
<field name="reportmodulesid" type="I" size="19">
<key />
</field>
<field name="primarymodule" type="C" size="50">
<notnull />
<default value="" />
</field>
<field name="secondarymodules" type="C" size="250">
<default value="" />
</field>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_reportmodules" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_reportmodules FOREIGN KEY (reportmodulesid) REFERENCES vtiger_report (reportid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_reportsortcol">
<field name="sortcolid" type="I" size="19">
<key />
</field>
<field name="reportid" type="I" size="19">
<key />
</field>
<field name="columnname" type="C" size="250">
<default value="" />
</field>
<field name="sortorder" type="C" size="250">
<default value="Asc" />
</field>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_reportsortcol" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_reportsortcol FOREIGN KEY (reportid) REFERENCES vtiger_report (reportid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
<data>
</data>
</table>
<table name="vtiger_reportdatefilter">
<field name="datefilterid" type="I" size="19">
<key />
</field>
<field name="datecolumnname" type="C" size="250">
<default value="" />
</field>
<field name="datefilter" type="C" size="250">
<default value="" />
</field>
<field name="startdate" type="D">
<default value="NULL" />
</field>
<field name="enddate" type="D">
<default value="NULL" />
</field>
<index name="reportdatefilter_datefilterid_idx">
<col>datefilterid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_reportdatefilter" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_reportdatefilter FOREIGN KEY (datefilterid) REFERENCES vtiger_report (reportid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<data>
</data>
</table>
<table name="vtiger_reportsummary">
<field name="reportsummaryid" type="I" size="19">
<key />
</field>
<field name="summarytype" type="I" size="19">
<key />
</field>
<field name="columnname" type="C" size="250">
<key />
<default value="" />
</field>
<index name="reportsummary_reportsummaryid_idx">
<col>reportsummaryid</col>
</index>
<opt platform="mysql">Engine=InnoDB DEFAULT CHARSET utf8</opt>
</table>
<table name="vtiger_reportsummary" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_reportsummary FOREIGN KEY (reportsummaryid) REFERENCES vtiger_report (reportid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<table name="vtiger_reporttype">
<field name="reportid" type="I" size="10">
<key />
</field>
<field name="data" type="X" />
</table>
<table name="vtiger_reporttype" alter="true">
<constraint>ADD CONSTRAINT fk_1_vtiger_reporttype FOREIGN KEY (reportid) REFERENCES vtiger_report (reportid) ON DELETE CASCADE</constraint>
<opt>Engine=InnoDB DEFAULT CHARSET utf8</opt>
<table name="vtiger_usageunit">
<field name="usageunitid" type="I" size="19">
<key />
<autoincrement />
</field>
<field name="usageunit" type="C" size="200">
<notnull />
</field>
<field name="presence" type="I" size="1">
<notnull />
<default value="1" />
</field>
<field name="picklist_valueid" type="I" size="19">
<notnull />
<default value="0" />
</field>
<field name="sortorderid" type="I" size="11"></field>
<index name="usageunit_usageunit_idx">