ALTER TABLE `tblannouncements` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblclients` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblconsent_purposes` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblconsents` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcontact_permissions` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcontacts` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcontract_comments` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcontract_renewals` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcontracts` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcontracts_types` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcreditnote_refunds` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcreditnotes` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcredits` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcurrencies` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcustomer_admins` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcustomer_groups` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcustomers_groups` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcustomfields` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblcustomfieldsvalues` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbldepartments` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbldismissed_announcements` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblemailtemplates` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblestimates` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblevents` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblexpenses` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblexpenses_categories` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblfiles` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblform_question_box` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblform_question_box_description` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblform_questions` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblform_results` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblgdpr_requests` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblinvoicepaymentrecords` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblinvoices` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblitem_tax` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblitemable` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblitems` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblitems_groups` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblknowedge_base_article_feedback` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblknowledge_base` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblknowledge_base_groups` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbllead_activity_log` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbllead_integration_emails` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblleads` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblleads_email_integration` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblleads_sources` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblleads_status` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblmail_queue` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblmilestones` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblnewsfeed_comment_likes` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblnewsfeed_post_comments` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblnewsfeed_post_likes` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblnewsfeed_posts` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblnotes` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblnotifications` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbloptions` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblpayment_modes` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblpinned_projects` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblproject_activity` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblproject_files` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblproject_members` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblproject_notes` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblproject_settings` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblprojectdiscussioncomments` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblprojectdiscussions` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblprojects` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblproposal_comments` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblproposals` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblrelated_items` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblreminders` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblroles` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblsales_activity` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblscheduled_emails` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblservices` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblshared_customer_files` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblspam_filters` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblstaff` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblstaff_departments` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblstaff_permissions` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblsubscriptions` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltaggables` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltags` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltask_assigned` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltask_checklist_items` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltask_comments` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltask_followers` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltasks` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltasks_checklist_templates` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltaskstimers` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltaxes` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblticket_attachments` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblticket_replies` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltickets` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltickets_pipe_log` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltickets_predefined_replies` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltickets_priorities` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltickets_status` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltodos` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbltracked_mails` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbluser_auto_login` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbluser_meta` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblvault` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblviews_tracking` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblweb_to_lead` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;

ALTER TABLE `tblappointly_appointment_types` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblappointly_appointments` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblappointly_attendees` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblappointly_callbacks` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblappointly_callbacks_assignees` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblappointly_google` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;

ALTER TABLE `tblasset_location` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblasset_unit` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblassets` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblassets_acction_1` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblassets_acction_2` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tblassets_group` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;

ALTER TABLE `tblinventory_history` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;

ALTER TABLE `tblsessions` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;
ALTER TABLE `tbluser_api` ADD `tenant_id` BIGINT NOT NULL DEFAULT '1' FIRST;