wp_erp_user_leaves

Static

Stores erp user leaves data created by this plugin.

Column Definitions

ColumnTypeNullable
🔑idbigint(20) unsignedNO
user_idint(11)YES
request_idint(11)YES
titlevarchar(255)YES
datedateYES
created_atdatetimeYES
updated_atdatetimeYES
holiday_idint(11)YES
titlevarchar(255)YES
datedateYES
created_atdatetimeYES
updated_atdatetimeYES
titlevarchar(200)NO
starttimestampNO
endtimestampNO
descriptiontextNO
range_statusvarchar(5)NO
created_atdatetimeNO
updated_atdatetimeNO
employee_idint(11)YES
company_namevarchar(100)YES
job_titlevarchar(100)YES
fromdateYES
todateYES
descriptiontextYES
created_atdatetimeYES
updated_atdatetimeYES
employee_idint(11) unsignedYES
schoolvarchar(100)YES
degreevarchar(100)YES
fieldvarchar(100)YES
resultvarchar(50)YES
result_typeenum('grade', 'percentage')YES
finishedint(4) unsignedYES
notestextYES
interesttextYES
created_atdatetimeYES
updated_atdatetimeYES
employee_idint(11)YES
namevarchar(100)YES
relationvarchar(100)YES
dobdateYES
created_atdatetimeYES
updated_atdatetimeYES
employee_idint(11) unsignedYES
reporting_toint(11) unsignedYES
job_knowledgevarchar(100)YES
work_qualityvarchar(100)YES
attendancevarchar(100)YES
communicationvarchar(100)YES
dependablityvarchar(100)YES
reviewerint(11) unsignedYES
commentstextYES
completion_datedatetimeYES
goal_descriptiontextYES
employee_assessmenttextYES
supervisorint(11) unsignedYES
supervisor_assessmenttextYES
typetextYES
performance_datedatetimeYES
user_idbigint(20) unsignedNO
post_idbigint(11)NO
statusvarchar(30)NO
email_statusvarchar(30)NO
user_idbigint(20) unsignedYES
first_namevarchar(60)YES
last_namevarchar(60)YES
companyvarchar(60)YES
emailvarchar(100)YES
phonevarchar(20)YES
mobilevarchar(20)YES
othervarchar(50)YES
websitevarchar(100)YES
faxvarchar(20)YES
notestextYES
street_1varchar(255)YES
street_2varchar(255)YES
cityvarchar(80)YES
statevarchar(50)YES
postal_codevarchar(10)YES
countryvarchar(20)YES
currencyvarchar(5)YES
life_stageVARCHAR(100)YES
contact_ownerbigint(20)YES
hashVARCHAR(40)YES
created_byBIGINT(20)YES
createddatetimeYES
erp_people_idbigint(20)YES
meta_keyvarchar(255)YES
meta_valuelongtextYES
namevarchar(20)YES
people_idbigint(20) unsignedYES
people_types_idint(11) unsignedYES
deleted_atdatetimeYES
componentvarchar(50)NO
sub_componentvarchar(50)NO
data_idbigint(20)YES
old_valuelongtextYES
new_valuelongtextYES
messagelongtextYES
changetypevarchar(10)YES
created_bybigint(20) unsignedYES
created_atdatetimeYES
updated_atdatetimeYES
customer_idbigint(20)YES
company_idbigint(50)YES
user_idint(11)YES
typevarchar(255)YES
messagelongtextYES
email_subjecttextYES
log_typevarchar(255)YES
start_datedatetimeYES
end_datedatetimeYES
created_byint(11)YES
extralongtextYES
sent_notificationtinyint(4)YES
done_atdatetimeYES
created_atdatetimeYES
updated_atdatetimeYES
activity_idint(11)YES
user_idint(11)YES
namevarchar(255)YES
descriptiontextYES
privateTINYINT(1)YES
created_atdatetimeYES
updated_atdatetimeYES
user_idint(11)YES
group_idint(11)YES
statusvarchar(25)YES
subscribe_atdatetimeYES
unsubscribe_atdatetimeYES
hashVARCHAR(40)YES
user_idint(11)YES
typeVARCHAR(255)YES
globaltinyint(4)YES
search_nametextYES
search_valtextYES
created_atdatetimeYES
updated_atdatetimeYES
nametextYES
subjecttextYES
templatelongtextYES
typevarchar(255)YES
currencyvarchar(50)YES
editabletinyintYES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
bill_noint(11)YES
trn_noint(11)YES
trn_datedateYES
particularsvarchar(255)YES
debitdecimal(20,2)YES
creditdecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
trn_noint(11)YES
ledger_idint(11)YES
particularsvarchar(255)YES
amountdecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
voucher_noint(11)YES
vendor_idint(11)YES
vendor_namevarchar(255)YES
addressvarchar(255)YES
trn_datedateYES
due_datedateYES
refvarchar(255)YES
amountdecimal(20,2)YES
particularsvarchar(255)YES
statusint(11)YES
attachmentsvarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
namevarchar(255)YES
slugvarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
namevarchar(255)YES
signvarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
invoice_noint(11)YES
trn_noint(11)YES
trn_datedateYES
particularsvarchar(255)YES
debitdecimal(20,2)YES
creditdecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
trn_noint(11)YES
product_idint(11)YES
qtydecimal(10,2)YES
unit_pricedecimal(20,2)YES
discountdecimal(20,2)YES
shippingdecimal(20,2)YES
taxdecimal(20,2)YES
tax_cat_idint(11)YES
item_totaldecimal(20,2)YES
ecommerce_typevarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
voucher_noint(11)YES
customer_idint(11)YES
customer_namevarchar(255)YES
trn_datedateYES
amountdecimal(20,2)YES
transaction_chargedecimal(20,2)YES
refvarchar(255)YES
particularsvarchar(255)YES
attachmentsvarchar(255)YES
statusint(11)YES
trn_byvarchar(255)YES
trn_by_ledger_idint(11)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
voucher_noint(11)YES
invoice_noint(11)YES
amountdecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
voucher_noint(11)YES
customer_idint(11)YES
customer_namevarchar(255)YES
trn_datedateYES
due_datedateYES
billing_addressvarchar(255)YES
amountdecimal(20,2)YES
discountdecimal(20,2)YES
discount_typevarchar(255)YES
shippingdecimal(20,2)YES
shipping_taxdecimal(20,2)YES
taxdecimal(20,2)YES
tax_zone_idint(11)YES
estimatebooleanYES
attachmentsvarchar(255)YES
statusint(11)YES
particularsvarchar(255)YES
additional_notesTEXTYES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
trn_noint(11)YES
ledger_idint(11)YES
particularsvarchar(255)YES
debitdecimal(20,2)YES
creditdecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
trn_datedateYES
refvarchar(255)YES
voucher_noint(11)YES
voucher_amountdecimal(20,2)YES
particularsvarchar(255)YES
attachmentsvarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
namevarchar(255)YES
slugvarchar(255)YES
chart_idint(11)YES
parent_idint(11)YES
systemtinyint(1)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
ledger_idint(11)YES
trn_noint(11)YES
particularsvarchar(255)YES
debitdecimal(20,2)YES
creditdecimal(20,2)YES
trn_datedateYES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
ledger_idint(11)YES
short_codevarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
chart_idint(11)YES
category_idint(11)YES
namevarchar(255)YES
slugvarchar(255)YES
codeint(11)YES
unusedtinyint(1)YES
systemtinyint(1)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
ledger_idint(11)YES
namevarchar(255)YES
balancedecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
voucher_noint(11)YES
trn_datedateYES
amountdecimal(20,2)YES
ac_fromint(11)YES
ac_toint(11)YES
particularsvarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
financial_year_idint(11)YES
chart_idint(11)YES
ledger_idint(11)YES
typevarchar(50)YES
debitdecimal(20,2)YES
creditdecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
nameVARCHAR(255)YES
start_datedateYES
end_datedateYES
descriptionvarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
voucher_noint(11)YES
vendor_idint(11)YES
vendor_namevarchar(255)YES
trn_datedateYES
amountdecimal(20,2)YES
trn_byvarchar(255)YES
trn_by_ledger_idint(11)YES
particularsvarchar(255)YES
refvarchar(255)YES
attachmentsvarchar(255)YES
statusint(11)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
voucher_noint(11)YES
bill_noint(11)YES
amountdecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
voucher_noint(11)YES
vendor_idint(11)YES
vendor_namevarchar(255)YES
trn_datedateYES
amountdecimal(20,2)YES
trn_byvarchar(255)YES
transaction_chargedecimal(20,2)YES
refvarchar(255)YES
trn_by_ledger_idint(11)YES
particularsvarchar(255)YES
attachmentsvarchar(255)YES
statusint(11)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
voucher_noint(11)YES
purchase_noint(11)YES
amountdecimal(20,2)YES
tax_cat_idint(11)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
people_idvarchar(255)YES
trn_noint(11)YES
trn_datedateYES
trn_byvarchar(255)YES
voucher_typevarchar(255)YES
particularsvarchar(255)YES
debitdecimal(20,2)YES
creditdecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
people_idvarchar(255)YES
voucher_noint(11)YES
amountdecimal(20,2)YES
trn_datedateYES
trn_byvarchar(255)YES
particularsvarchar(255)YES
voucher_typevarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
people_idvarchar(255)YES
voucher_noint(11)YES
trn_datedateYES
particularsvarchar(255)YES
debitdecimal(20,2)YES
creditdecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
namevarchar(255)YES
parentint(11)NO
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
namevarchar(255)YES
slugvarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
namevarchar(255)YES
product_type_idint(11)YES
category_idint(11)YES
tax_cat_idint(11)YES
vendorint(11)YES
cost_pricedecimal(20,2)YES
sale_pricedecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
product_idint(11)YES
trn_noint(11)YES
stock_inint(11)YES
stock_outint(11)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
voucher_noint(11)YES
vendor_idint(11)YES
vendor_namevarchar(255)YES
billing_addressvarchar(255)YES
trn_datedateYES
due_datedateYES
amountdecimal(20,2)YES
taxdecimal(20,2)YES
tax_zone_idintegerYES
refvarchar(255)YES
statusint(11)YES
purchase_orderbooleanYES
attachmentsvarchar(255)YES
particularsvarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
purchase_noint(11)YES
trn_noint(11)YES
trn_datedateYES
particularsvarchar(255)YES
debitdecimal(20,2)YES
creditdecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
trn_noint(11)YES
product_idint(11)YES
qtydecimal(10,2)YES
pricedecimal(20,2)YES
amountdecimal(20,2)YES
taxdecimal(20,2)YES
tax_cat_idint(11)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
invoice_details_idint(20)NO
agency_idint(20)YES
tax_ratedecimal(20,2)NO
created_atdatetimeYES
created_byint(20)YES
updated_atdatetimeYES
updated_byint(20)YES
namevarchar(100)YES
descriptionvarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
tax_rate_namevarchar(255)YES
tax_numbervarchar(100)YES
defaultbooleanYES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
tax_idint(11)YES
component_namevarchar(255)YES
tax_cat_idint(11)YES
agency_idint(11)YES
tax_ratedecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
namevarchar(255)YES
ecommerce_typevarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
voucher_noint(11)YES
trn_datedateYES
particularsvarchar(255)YES
amountdecimal(20,2)YES
voucher_typevarchar(255)YES
trn_byint(11)YES
agency_idint(11)YES
ledger_idint(11)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
agency_idint(11)YES
trn_noint(11)YES
trn_datedateYES
particularsvarchar(255)YES
debitdecimal(20, 2)YES
creditdecimal(20, 2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
invoice_details_idint(11)YES
agency_idint(11)YES
tax_ratedecimal(20,2)YES
tax_amountdecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
type_namevarchar(255)YES
slugvarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
system_idbigintNO
sync_idbigintYES
sync_slugvarchar(100)YES
sync_typevarchar(100)YES
sync_sourcevarchar(100)YES
namevarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
voucher_noint(11)YES
people_idint(11)YES
people_namevarchar(255)YES
addressvarchar(255)YES
trn_datedateYES
amountdecimal(20,2)YES
refvarchar(255)YES
particularsvarchar(255)YES
statusint(11)YES
trn_byint(11)YES
transaction_chargedecimal(20,2)YES
trn_by_ledger_idint(11)YES
attachmentsvarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
trn_noint(11)YES
ledger_idint(11)YES
particularsvarchar(255)YES
amountdecimal(20,2)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES
trn_noint(11)YES
voucher_typevarchar(255)YES
amountdecimal(20,2)YES
bankvarchar(255)YES
namevarchar(255)YES
pay_tovarchar(255)YES
created_atdateYES
created_byvarchar(50)YES
updated_atdateYES
updated_byvarchar(50)YES

CREATE TABLE Statement

CREATE TABLE `wp_erp_user_leaves` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, `request_id` int(11) DEFAULT NULL, `title` varchar(255) DEFAULT NULL, `date` date DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_holidays_indv` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `holiday_id` int(11) DEFAULT NULL, `title` varchar(255) DEFAULT NULL, `date` date DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_hr_holiday` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(200) NOT NULL, `start` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `end` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `description` text NOT NULL, `range_status` varchar(5) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_hr_work_exp` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(11) DEFAULT NULL, `company_name` varchar(100) DEFAULT NULL, `job_title` varchar(100) DEFAULT NULL, `from` date DEFAULT NULL, `to` date DEFAULT NULL, `description` text, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `employee_id` (`employee_id`) ) $charset_collate;", "CREATE TABLE `wp_erp_hr_education` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(11) unsigned DEFAULT NULL, `school` varchar(100) DEFAULT NULL, `degree` varchar(100) DEFAULT NULL, `field` varchar(100) DEFAULT NULL, `result` varchar(50) DEFAULT NULL, `result_type` enum('grade', 'percentage') DEFAULT NULL, `finished` int(4) unsigned DEFAULT NULL, `notes` text, `interest` text, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `employee_id` (`employee_id`) ) $charset_collate;", "CREATE TABLE `wp_erp_hr_dependents` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(11) DEFAULT NULL, `name` varchar(100) DEFAULT NULL, `relation` varchar(100) DEFAULT NULL, `dob` date DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `employee_id` (`employee_id`) ) $charset_collate;", "CREATE TABLE `wp_erp_hr_employee_performance` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(11) unsigned DEFAULT NULL, `reporting_to` int(11) unsigned DEFAULT NULL, `job_knowledge` varchar(100) DEFAULT NULL, `work_quality` varchar(100) DEFAULT NULL, `attendance` varchar(100) DEFAULT NULL, `communication` varchar(100) DEFAULT NULL, `dependablity` varchar(100) DEFAULT NULL, `reviewer` int(11) unsigned DEFAULT NULL, `comments` text, `completion_date` datetime DEFAULT NULL, `goal_description` text, `employee_assessment` text, `supervisor` int(11) unsigned DEFAULT NULL, `supervisor_assessment` text, `type` text, `performance_date` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `employee_id` (`employee_id`) ) $charset_collate;", "CREATE TABLE `wp_erp_hr_announcement` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `user_id` bigint(20) unsigned NOT NULL, `post_id` bigint(11) NOT NULL, `status` varchar(30) NOT NULL, `email_status` varchar(30) NOT NULL, PRIMARY KEY (id), KEY `user_id` (`user_id`), KEY `post_id` (`post_id`), KEY `status` (`status`) ) $charset_collate;", "CREATE TABLE `wp_erp_peoples` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `user_id` bigint(20) unsigned DEFAULT '0', `first_name` varchar(60) DEFAULT NULL, `last_name` varchar(60) DEFAULT NULL, `company` varchar(60) DEFAULT NULL, `email` varchar(100) DEFAULT NULL, `phone` varchar(20) DEFAULT NULL, `mobile` varchar(20) DEFAULT NULL, `other` varchar(50) DEFAULT NULL, `website` varchar(100) DEFAULT NULL, `fax` varchar(20) DEFAULT NULL, `notes` text, `street_1` varchar(255) DEFAULT NULL, `street_2` varchar(255) DEFAULT NULL, `city` varchar(80) DEFAULT NULL, `state` varchar(50) DEFAULT NULL, `postal_code` varchar(10) DEFAULT NULL, `country` varchar(20) DEFAULT NULL, `currency` varchar(5) DEFAULT NULL, `life_stage` VARCHAR(100) DEFAULT NULL, `contact_owner` bigint(20) DEFAULT NULL, `hash` VARCHAR(40) DEFAULT NULL, `created_by` BIGINT(20) DEFAULT NULL, `created` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `first_name` (`first_name`), KEY `last_name` (`last_name`), KEY `email` (`email`) ) $charset_collate;", "CREATE TABLE `wp_erp_peoplemeta` ( `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `erp_people_id` bigint(20) DEFAULT NULL, `meta_key` varchar(255) DEFAULT NULL, `meta_value` longtext, PRIMARY KEY (`meta_id`), KEY `erp_people_id` (`erp_people_id`), KEY `meta_key` (`meta_key`(191)) ) $charset_collate;", "CREATE TABLE `wp_erp_people_types` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(20) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) $charset_collate;", "CREATE TABLE `wp_erp_people_type_relations` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `people_id` bigint(20) unsigned DEFAULT NULL, `people_types_id` int(11) unsigned DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `people_id` (`people_id`), KEY `people_types_id` (`people_types_id`) ) $charset_collate;", "CREATE TABLE `wp_erp_audit_log` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `component` varchar(50) NOT NULL DEFAULT '', `sub_component` varchar(50) NOT NULL DEFAULT '', `data_id` bigint(20) DEFAULT NULL, `old_value` longtext, `new_value` longtext, `message` longtext, `changetype` varchar(10) DEFAULT NULL, `created_by` bigint(20) unsigned DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `component` (`component`), KEY `sub_component` (`sub_component`), KEY `changetype` (`changetype`), KEY `created_by` (`created_by`) ) $charset_collate;", "CREATE TABLE `wp_erp_crm_customer_companies` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `customer_id` bigint(20) DEFAULT NULL, `company_id` bigint(50) DEFAULT NULL, PRIMARY KEY (`id`), KEY `customer_id` (`customer_id`), KEY `company_id` (`company_id`) ) $charset_collate;", "CREATE TABLE wp_erp_crm_customer_activities ( id int(11) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, `type` varchar(255) DEFAULT NULL, `message` longtext, email_subject text, log_type varchar(255) DEFAULT NULL, `start_date` datetime DEFAULT NULL, end_date datetime DEFAULT NULL, created_by int(11) DEFAULT NULL, extra longtext, sent_notification tinyint(4) DEFAULT '0', done_at datetime DEFAULT NULL, created_at datetime DEFAULT NULL, updated_at datetime DEFAULT NULL, PRIMARY KEY (id), KEY `user_id` (`user_id`), KEY `type` (`type`), KEY log_type (log_type), KEY created_by (created_by) ) $charset_collate;", "CREATE TABLE `wp_erp_crm_activities_task` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `activity_id` int(11) DEFAULT NULL, `user_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `activity_id` (`activity_id`), KEY `user_id` (`user_id`) ) $charset_collate;", "CREATE TABLE `wp_erp_crm_contact_group` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `description` text, `private` TINYINT(1) DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_crm_contact_subscriber` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, `group_id` int(11) DEFAULT NULL, `status` varchar(25) DEFAULT NULL, `subscribe_at` datetime DEFAULT NULL, `unsubscribe_at` datetime DEFAULT NULL, `hash` VARCHAR(40) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `user_group` (`user_id`,`group_id`), KEY `status` (`status`), KEY `hash` (`hash`) ) $charset_collate;", "CREATE TABLE `wp_erp_crm_save_search` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, `type` VARCHAR(255) DEFAULT NULL, `global` tinyint(4) DEFAULT '0', `search_name` text, `search_val` text, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_crm_save_email_replies` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` text, `subject` text, `template` longtext, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_voucher_no` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(255) DEFAULT NULL, `currency` varchar(50) DEFAULT NULL, `editable` tinyint DEFAULT 0, `created_at` date DEFAULT NULL, `created_by` varchar(50) DEFAULT NULL, `updated_at` date DEFAULT NULL, `updated_by` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_bill_account_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `bill_no` int(11) DEFAULT NULL, `trn_no` int(11) DEFAULT NULL, `trn_date` date DEFAULT NULL, `particulars` varchar(255) DEFAULT NULL, `debit` decimal(20,2) DEFAULT 0, `credit` decimal(20,2) DEFAULT 0, `created_at` date DEFAULT NULL, `created_by` varchar(50) DEFAULT NULL, `updated_at` date DEFAULT NULL, `updated_by` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_bill_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `trn_no` int(11) DEFAULT NULL, `ledger_id` int(11) DEFAULT NULL, `particulars` varchar(255) DEFAULT NULL, `amount` decimal(20,2) DEFAULT 0, `created_at` date DEFAULT NULL, `created_by` varchar(50) DEFAULT NULL, `updated_at` date DEFAULT NULL, `updated_by` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_bills` ( `id` int(11) NOT NULL AUTO_INCREMENT, `voucher_no` int(11) DEFAULT NULL, `vendor_id` int(11) DEFAULT NULL, `vendor_name` varchar(255) DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `trn_date` date DEFAULT NULL, `due_date` date DEFAULT NULL, `ref` varchar(255) DEFAULT NULL, `amount` decimal(20,2) DEFAULT 0, `particulars` varchar(255) DEFAULT NULL, `status` int(11) DEFAULT NULL, `attachments` varchar(255) DEFAULT NULL, `created_at` date DEFAULT NULL, `created_by` varchar(50) DEFAULT NULL, `updated_at` date DEFAULT NULL, `updated_by` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_chart_of_accounts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `slug` varchar(255) DEFAULT NULL, `created_at` date DEFAULT NULL, `created_by` varchar(50) DEFAULT NULL, `updated_at` date DEFAULT NULL, `updated_by` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_currency_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `sign` varchar(255) DEFAULT NULL, `created_at` date DEFAULT NULL, `created_by` varchar(50) DEFAULT NULL, `updated_at` date DEFAULT NULL, `updated_by` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_invoice_account_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `invoice_no` int(11) DEFAULT NULL, `trn_no` int(11) DEFAULT NULL, `trn_date` date DEFAULT NULL, `particulars` varchar(255) DEFAULT NULL, `debit` decimal(20,2) DEFAULT 0, `credit` decimal(20,2) DEFAULT 0, `created_at` date DEFAULT NULL, `created_by` varchar(50) DEFAULT NULL, `updated_at` date DEFAULT NULL, `updated_by` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE wp_erp_acct_invoice_details ( id int(11) NOT NULL AUTO_INCREMENT, trn_no int(11) DEFAULT NULL, product_id int(11) DEFAULT NULL, qty decimal(10,2) DEFAULT NULL, unit_price decimal(20,2) DEFAULT 0, discount decimal(20,2) DEFAULT 0, shipping decimal(20,2) DEFAULT 0, tax decimal(20,2) DEFAULT 0, tax_cat_id int(11) DEFAULT NULL, item_total decimal(20,2) DEFAULT 0, ecommerce_type varchar(255) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_invoice_receipts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `voucher_no` int(11) DEFAULT NULL, `customer_id` int(11) DEFAULT NULL, `customer_name` varchar(255) DEFAULT NULL, `trn_date` date DEFAULT NULL, `amount` decimal(20,2) DEFAULT 0, `transaction_charge` decimal(20,2) DEFAULT 0, `ref` varchar(255) DEFAULT NULL, `particulars` varchar(255) DEFAULT NULL, `attachments` varchar(255) DEFAULT NULL, `status` int(11) DEFAULT NULL, `trn_by` varchar(255) DEFAULT NULL, `trn_by_ledger_id` int(11) DEFAULT NULL, `created_at` date DEFAULT NULL, `created_by` varchar(50) DEFAULT NULL, `updated_at` date DEFAULT NULL, `updated_by` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_invoice_receipts_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, `voucher_no` int(11) DEFAULT NULL, `invoice_no` int(11) DEFAULT NULL, `amount` decimal(20,2) DEFAULT 0, `created_at` date DEFAULT NULL, `created_by` varchar(50) DEFAULT NULL, `updated_at` date DEFAULT NULL, `updated_by` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_invoices` ( `id` int(11) NOT NULL AUTO_INCREMENT, `voucher_no` int(11) DEFAULT NULL, `customer_id` int(11) DEFAULT NULL, `customer_name` varchar(255) DEFAULT NULL, `trn_date` date DEFAULT NULL, `due_date` date DEFAULT NULL, `billing_address` varchar(255) DEFAULT NULL, `amount` decimal(20,2) DEFAULT 0, `discount` decimal(20,2) DEFAULT 0, `discount_type` varchar(255) DEFAULT NULL, `shipping` decimal(20,2) DEFAULT 0, `shipping_tax` decimal(20,2) DEFAULT 0, `tax` decimal(20,2) DEFAULT 0, `tax_zone_id` int(11) DEFAULT NULL, `estimate` boolean DEFAULT NULL, `attachments` varchar(255) DEFAULT NULL, `status` int(11) DEFAULT NULL, `particulars` varchar(255) DEFAULT NULL, `additional_notes` TEXT NULL DEFAULT NULL, `created_at` date DEFAULT NULL, `created_by` varchar(50) DEFAULT NULL, `updated_at` date DEFAULT NULL, `updated_by` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_journal_details` ( id int(11) NOT NULL AUTO_INCREMENT, trn_no int(11) DEFAULT NULL, ledger_id int(11) DEFAULT NULL, particulars varchar(255) DEFAULT NULL, debit decimal(20,2) DEFAULT 0, credit decimal(20,2) DEFAULT 0, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_journals` ( id int(11) NOT NULL AUTO_INCREMENT, trn_date date DEFAULT NULL, ref varchar(255) DEFAULT NULL, voucher_no int(11) DEFAULT NULL, voucher_amount decimal(20,2) DEFAULT 0, particulars varchar(255) DEFAULT NULL, attachments varchar(255) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_ledger_categories` ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(255) DEFAULT NULL, slug varchar(255) DEFAULT NULL, chart_id int(11) DEFAULT NULL, parent_id int(11) DEFAULT NULL, `system` tinyint(1) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_ledger_details` ( id int(11) NOT NULL AUTO_INCREMENT, ledger_id int(11) DEFAULT NULL, trn_no int(11) DEFAULT NULL, particulars varchar(255) DEFAULT NULL, debit decimal(20,2) DEFAULT 0, credit decimal(20,2) DEFAULT 0, trn_date date DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_ledger_settings` ( id int(11) NOT NULL AUTO_INCREMENT, ledger_id int(11) DEFAULT NULL, short_code varchar(255) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_ledgers` ( id int(11) NOT NULL AUTO_INCREMENT, chart_id int(11) DEFAULT NULL, category_id int(11) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, slug varchar(255) DEFAULT NULL, code int(11) DEFAULT NULL, unused tinyint(1) DEFAULT NULL, `system` tinyint(1) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_cash_at_banks` ( id int(11) NOT NULL AUTO_INCREMENT, ledger_id int(11) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, balance decimal(20,2) DEFAULT 0, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_transfer_voucher` ( id int(11) NOT NULL AUTO_INCREMENT, voucher_no int(11) DEFAULT NULL, trn_date date DEFAULT NULL, amount decimal(20,2) DEFAULT NULL, ac_from int(11) DEFAULT NULL, ac_to int(11) DEFAULT NULL, particulars varchar(255) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_opening_balances` ( id int(11) NOT NULL AUTO_INCREMENT, financial_year_id int(11) DEFAULT NULL, chart_id int(11) DEFAULT NULL, ledger_id int(11) DEFAULT NULL, `type` varchar(50) DEFAULT NULL, debit decimal(20,2) DEFAULT 0, credit decimal(20,2) DEFAULT 0, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_financial_years` ( id int(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(255) DEFAULT NULL, `start_date` date DEFAULT NULL, end_date date DEFAULT NULL, `description` varchar(255) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_pay_bill` ( id int(11) NOT NULL AUTO_INCREMENT, voucher_no int(11) DEFAULT NULL, vendor_id int(11) DEFAULT NULL, vendor_name varchar(255) DEFAULT NULL, trn_date date DEFAULT NULL, amount decimal(20,2) DEFAULT 0, trn_by varchar(255) DEFAULT NULL, trn_by_ledger_id int(11) DEFAULT NULL, particulars varchar(255) DEFAULT NULL, ref varchar(255) DEFAULT NULL, attachments varchar(255) DEFAULT NULL, `status` int(11) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_pay_bill_details` ( id int(11) NOT NULL AUTO_INCREMENT, voucher_no int(11) DEFAULT NULL, bill_no int(11) DEFAULT NULL, amount decimal(20,2) DEFAULT 0, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_pay_purchase` ( id int(11) NOT NULL AUTO_INCREMENT, voucher_no int(11) DEFAULT NULL, vendor_id int(11) DEFAULT NULL, vendor_name varchar(255) DEFAULT NULL, trn_date date DEFAULT NULL, amount decimal(20,2) DEFAULT 0, trn_by varchar(255) DEFAULT NULL, transaction_charge decimal(20,2) DEFAULT 0, ref varchar(255) DEFAULT NULL, trn_by_ledger_id int(11) DEFAULT NULL, particulars varchar(255) DEFAULT NULL, attachments varchar(255) DEFAULT NULL, `status` int(11) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE wp_erp_acct_pay_purchase_details ( id int(11) NOT NULL AUTO_INCREMENT, voucher_no int(11) DEFAULT NULL, purchase_no int(11) DEFAULT NULL, amount decimal(20,2) DEFAULT 0, tax_cat_id int(11) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_people_account_details` ( id int(11) NOT NULL AUTO_INCREMENT, people_id varchar(255) DEFAULT NULL, trn_no int(11) DEFAULT NULL, trn_date date DEFAULT NULL, trn_by varchar(255) DEFAULT NULL, voucher_type varchar(255) DEFAULT NULL, particulars varchar(255) DEFAULT NULL, debit decimal(20,2) DEFAULT 0, credit decimal(20,2) DEFAULT 0, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_people_trn` ( id int(11) NOT NULL AUTO_INCREMENT, people_id varchar(255) DEFAULT NULL, voucher_no int(11) DEFAULT NULL, amount decimal(20,2) DEFAULT 0, trn_date date DEFAULT NULL, trn_by varchar(255) DEFAULT NULL, particulars varchar(255) DEFAULT NULL, voucher_type varchar(255) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_people_trn_details` ( id int(11) NOT NULL AUTO_INCREMENT, people_id varchar(255) DEFAULT NULL, voucher_no int(11) DEFAULT NULL, trn_date date DEFAULT NULL, particulars varchar(255) DEFAULT NULL, debit decimal(20,2) DEFAULT 0, credit decimal(20,2) DEFAULT 0, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_product_categories` ( id int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, parent int(11) NOT NULL DEFAULT 0, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_product_types` ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(255) DEFAULT NULL, slug varchar(255) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_products` ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(255) DEFAULT NULL, product_type_id int(11) DEFAULT NULL, category_id int(11) DEFAULT NULL, tax_cat_id int(11) DEFAULT NULL, vendor int(11) DEFAULT NULL, cost_price decimal(20,2) DEFAULT 0, sale_price decimal(20,2) DEFAULT 0, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_product_details` ( id int(11) NOT NULL AUTO_INCREMENT, product_id int(11) DEFAULT NULL, trn_no int(11) DEFAULT NULL, stock_in int(11) DEFAULT NULL, stock_out int(11) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_purchase` ( id int(11) NOT NULL AUTO_INCREMENT, voucher_no int(11) DEFAULT NULL, vendor_id int(11) DEFAULT NULL, vendor_name varchar(255) DEFAULT NULL, billing_address varchar(255) DEFAULT NULL, trn_date date DEFAULT NULL, due_date date DEFAULT NULL, amount decimal(20,2) DEFAULT 0, tax decimal(20,2) DEFAULT NULL , tax_zone_id integer DEFAULT NULL, ref varchar(255) DEFAULT NULL, `status` int(11) DEFAULT NULL, purchase_order boolean DEFAULT NULL, attachments varchar(255) DEFAULT NULL, particulars varchar(255) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_purchase_account_details` ( id int(11) NOT NULL AUTO_INCREMENT, purchase_no int(11) DEFAULT NULL, trn_no int(11) DEFAULT NULL, trn_date date DEFAULT NULL, particulars varchar(255) DEFAULT NULL, debit decimal(20,2) DEFAULT 0, credit decimal(20,2) DEFAULT 0, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE wp_erp_acct_purchase_details ( id int(11) NOT NULL AUTO_INCREMENT, trn_no int(11) DEFAULT NULL, product_id int(11) DEFAULT NULL, qty decimal(10,2) DEFAULT NULL, price decimal(20,2) DEFAULT 0, amount decimal(20,2) DEFAULT 0, tax decimal(20,2) DEFAULT NULL, tax_cat_id int(11) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE wp_erp_acct_purchase_details_tax ( id int(20) UNSIGNED NOT NULL AUTO_INCREMENT, invoice_details_id int(20) NOT NULL, agency_id int(20) DEFAULT NULL, tax_rate decimal(20,2) NOT NULL, created_at datetime DEFAULT NULL, created_by int(20) DEFAULT NULL, updated_at datetime DEFAULT NULL, updated_by int(20) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_tax_categories` ( id int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_taxes` ( id int(11) NOT NULL AUTO_INCREMENT, tax_rate_name varchar(255) DEFAULT NULL, tax_number varchar(100) DEFAULT NULL, `default` boolean DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_tax_cat_agency` ( id int(11) NOT NULL AUTO_INCREMENT, tax_id int(11) DEFAULT NULL, component_name varchar(255) DEFAULT NULL, tax_cat_id int(11) DEFAULT NULL, agency_id int(11) DEFAULT NULL, tax_rate decimal(20,2) DEFAULT 0, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_tax_agencies` ( id int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, ecommerce_type varchar(255) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_tax_pay` ( id int(11) NOT NULL AUTO_INCREMENT, voucher_no int(11) DEFAULT NULL, trn_date date DEFAULT NULL, particulars varchar(255) DEFAULT NULL, amount decimal(20,2) DEFAULT 0, voucher_type varchar(255) DEFAULT NULL, trn_by int(11) DEFAULT NULL, agency_id int(11) DEFAULT NULL, ledger_id int(11) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_tax_agency_details` ( id int(11) NOT NULL AUTO_INCREMENT, agency_id int(11) DEFAULT NULL, trn_no int(11) DEFAULT NULL, trn_date date DEFAULT NULL, particulars varchar(255) DEFAULT NULL, debit decimal(20, 2) DEFAULT 0, credit decimal(20, 2) DEFAULT 0, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_invoice_details_tax` ( id int(11) NOT NULL AUTO_INCREMENT, invoice_details_id int(11) DEFAULT NULL, agency_id int(11) DEFAULT NULL, tax_rate decimal(20,2) DEFAULT 0, tax_amount decimal(20,2) DEFAULT 0, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_trn_status_types` ( id int(11) NOT NULL AUTO_INCREMENT, type_name varchar(255) DEFAULT NULL, slug varchar(255) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE wp_erp_acct_synced_taxes ( id int NOT NULL AUTO_INCREMENT, system_id bigint NOT NULL, sync_id bigint DEFAULT NULL, sync_slug varchar(100) DEFAULT NULL, sync_type varchar(100) DEFAULT NULL, sync_source varchar(100) DEFAULT NULL, PRIMARY KEY (id), KEY system_id (system_id), KEY sync_id (sync_id), KEY sync_slug (sync_slug), KEY sync_type (sync_type), KEY sync_source (sync_source) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_payment_methods` ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(255) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_expenses` ( id int(11) NOT NULL AUTO_INCREMENT, voucher_no int(11) DEFAULT NULL, people_id int(11) DEFAULT NULL, people_name varchar(255) DEFAULT NULL, address varchar(255) DEFAULT NULL, trn_date date DEFAULT NULL, amount decimal(20,2) DEFAULT 0, ref varchar(255) DEFAULT NULL, check_no varchar(255) DEFAULT NULL, particulars varchar(255) DEFAULT NULL, status int(11) DEFAULT NULL, trn_by int(11) DEFAULT NULL, transaction_charge decimal(20,2) DEFAULT 0, trn_by_ledger_id int(11) DEFAULT NULL, attachments varchar(255) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_expense_details` ( id int(11) NOT NULL AUTO_INCREMENT, trn_no int(11) DEFAULT NULL, ledger_id int(11) DEFAULT NULL, particulars varchar(255) DEFAULT NULL, amount decimal(20,2) DEFAULT 0, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", "CREATE TABLE `wp_erp_acct_expense_checks` ( id int(11) NOT NULL AUTO_INCREMENT, trn_no int(11) DEFAULT NULL, check_no varchar(255) DEFAULT NULL, voucher_type varchar(255) DEFAULT NULL, amount decimal(20,2) DEFAULT 0, bank varchar(255) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, pay_to varchar(255) DEFAULT NULL, created_at date DEFAULT NULL, created_by varchar(50) DEFAULT NULL, updated_at date DEFAULT NULL, updated_by varchar(50) DEFAULT NULL, PRIMARY KEY (id) ) $charset_collate;", ]; require_once ABSPATH . 'wp-admin/includes/upgrade.php'; foreach ( $table_schema as $table ) { $erp_table_created = dbDelta( $table );

Safe to delete?

If you have uninstalled ERP: Complete HR, Recruitment, Accounting & CRM Suite with WooCommerce CRM Support, this table is generally safe to remove. However, always back up your database first.

Note: Some plugins share tables or are dependencies of other plugins. Verify nothing else depends on this table before dropping it.

How to remove this table

DROP TABLE IF EXISTS `wp_erp_user_leaves`;

Run this query using phpMyAdmin, Adminer, or your MySQL client. Back up first.

Other tables from ERP: Complete HR, Recruitment, Accounting & CRM Suite with WooCommerce CRM Support