-- Table structure for table `policy_sections`
--

CREATE TABLE `policy_sections` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `policy_id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(255) NOT NULL,
  `content` longtext DEFAULT NULL,
  `image` varchar(255) DEFAULT NULL,
  `section_type` enum('content','notice','highlight','accordion','legal_update') NOT NULL DEFAULT 'content',
  `sort_order` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `policy_sections`
--

INSERT INTO `policy_sections` (`id`, `policy_id`, `title`, `content`, `image`, `section_type`, `sort_order`, `status`, `created_at`, `updated_at`) VALUES
(693, 2, 'Scope and Applicability', '<p>This Privacy Policy applies to all personal data processed by Gletra in connection with our marketplace, messaging infrastructure, calling features, wallet services, and home services vertical. It covers buyers, guest checkout users, registered sellers, service providers, affiliates, and visitors who interact with our public pages or customer support channels.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Platform Touchpoints Covered</h4><ul class=\"mb-3\"><li>Product discovery, cart, checkout, and order tracking on the Gletra marketplace</li><li>Seller Panel operations including inventory management, payout requests, and performance analytics</li><li>Gletra Chat conversations between buyers, sellers, and service providers</li><li>Voice and video calls initiated through order threads or service booking workflows</li><li>Gletra Wallet top-ups, payments, refunds, cashback credits, and withdrawal requests</li><li>Home service bookings for electricians, plumbers, carpenters, cleaners, and appliance repair technicians</li><li>KYC document submission and identity verification workflows</li></ul><p>This policy does not govern third-party websites linked from Gletra, payment gateway privacy practices beyond data we receive from them, or offline interactions that occur entirely outside our platform unless explicitly integrated with a Gletra transaction.</p>', 'policies/sections/privacy-policy-scope-and-applicability-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:51:52', '2026-06-19 06:51:52'),
(694, 2, 'Categories of Information We Collect', '<h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Information You Provide Directly</h4><p>When you register, complete KYC, list products, or book services, we collect identifiers and contact details including your full name, email address, mobile number, delivery addresses, billing information, government-issued identification, GST registration numbers for business sellers, bank account details for payouts, professional certifications for service providers, and photographs submitted for profile or listing purposes.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Transaction and Communication Data</h4><p>We retain order histories, invoice records, return and refund requests, service booking details, chat message content, call metadata such as duration and participant identifiers, customer support tickets, dispute filings, and review submissions. Wallet transaction ledgers, including top-up sources and withdrawal destinations, are maintained for regulatory and reconciliation purposes.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Data Category</th><th>Examples</th><th>Primary Purpose</th></tr></thead><tbody><tr><td>Account Data</td><td>Name, email, phone, password hash</td><td>Authentication and account management</td></tr><tr><td>Commerce Data</td><td>Orders, payments, shipping labels</td><td>Transaction fulfilment and dispute resolution</td></tr><tr><td>KYC Data</td><td>Aadhaar, PAN, business registration</td><td>Regulatory compliance and fraud prevention</td></tr><tr><td>Communication Data</td><td>Chat messages, call logs, attachments</td><td>Service delivery and safety monitoring</td></tr><tr><td>Device Data</td><td>IP address, browser, app version</td><td>Security, analytics, and personalisation</td></tr></tbody></table></div>', 'policies/sections/privacy-policy-categories-of-information-we-collect-section-800x400.svg', 'content', 2, 1, '2026-06-19 06:51:52', '2026-06-19 06:51:52'),
(695, 2, 'How We Use Your Information', '<p>Gletra uses personal data to operate, secure, and improve the platform. Processing activities include order and booking fulfilment, payment authorisation through PCI-DSS compliant partners, seller settlement via the Seller Panel, service provider dispatch and route optimisation, wallet balance management, personalised product recommendations, fraud and abuse detection, and compliance with tax and anti-money laundering obligations.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Legitimate Business Purposes</h4><ol class=\"mb-3\"><li>Matching buyers with verified sellers and qualified home service professionals in their service area</li><li>Enabling real-time chat and optional voice or video calls for pre-sale inquiries and post-booking coordination</li><li>Calculating commissions, processing refunds to original payment methods or Gletra Wallet, and generating tax invoices</li><li>Conducting identity verification and ongoing monitoring for high-risk accounts or unusual wallet activity</li><li>Sending transactional notifications about order status, service appointments, KYC outcomes, and security alerts</li><li>Training machine learning models for search relevance and fraud scoring using anonymised or aggregated datasets where permitted</li></ol><p>We do not use your personal data for unrelated third-party advertising without explicit consent. Marketing communications are sent only where permitted by law and can be opted out through account settings or unsubscribe links.</p>', 'policies/sections/privacy-policy-how-we-use-your-information-section-800x400.svg', 'highlight', 3, 1, '2026-06-19 06:51:52', '2026-06-19 06:51:52'),
(696, 2, 'Information Sharing and Disclosure', '<p>Gletra shares personal information only as necessary to deliver our services, comply with legal obligations, or protect the rights and safety of our users. We do not sell personal data to data brokers or unrelated advertisers.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Recipients of Personal Data</h4><ul class=\"mb-3\"><li><strong>Marketplace Sellers:</strong> Name, delivery address, phone number, and order details required to fulfil your purchase</li><li><strong>Service Providers:</strong> Booking address, contact number, service description, and access instructions for in-home appointments</li><li><strong>Payment Processors:</strong> Tokenised payment credentials and transaction amounts for authorisation and settlement</li><li><strong>Logistics Partners:</strong> Shipping labels, recipient contact details, and proof-of-delivery requirements</li><li><strong>Verification Partners:</strong> KYC document images and biometric match results for identity confirmation</li><li><strong>Law Enforcement:</strong> Information disclosed when required by valid court orders, subpoenas, or regulatory directives</li></ul><p>All third-party processors are bound by contractual data protection obligations and may use your information solely for the purposes we specify. Cross-border transfers, where applicable, are protected by standard contractual clauses and encryption in transit.</p>', 'policies/sections/privacy-policy-information-sharing-and-disclosure-section-800x400.svg', 'content', 4, 1, '2026-06-19 06:51:52', '2026-06-19 06:51:52'),
(697, 2, 'Chat, Voice, and Video Communication Privacy', '<p>Gletra Chat is the primary communication channel between buyers, sellers, and service providers. Messages are stored on Gletra servers to support order history, dispute resolution, and safety investigations. While we implement encryption in transit and access controls, messages should not be treated as end-to-end encrypted unless explicitly indicated by a platform feature badge.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Call and Video Session Data</h4><p>When you initiate a voice or video call through Gletra, we log session metadata including start and end times, participant user IDs, associated order or booking reference, and network quality indicators. Call audio and video streams are not recorded by default. Users who attempt to record calls without the consent of all participants violate our Call and Video Call Usage Policy and may face account suspension.</p><ul class=\"mb-3\"><li>Report harassment or threats during calls using the in-call safety button or post-call feedback form</li><li>Do not share OTPs, full payment card numbers, or KYC document images during calls or chat</li><li>Gletra may review reported message content or call-related complaints under strict access controls</li></ul>', 'policies/sections/privacy-policy-chat-voice-and-video-communication-privacy-section-800x400.svg', 'notice', 5, 1, '2026-06-19 06:51:52', '2026-06-19 06:51:52'),
(698, 2, 'Wallet and Financial Data Handling', '<p>Gletra Wallet stores prepaid balances, promotional credits, and refund proceeds. Financial data associated with wallet operations is processed under enhanced security controls and retained in accordance with RBI prepaid payment instrument guidelines and our AML Policy.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Wallet-Related Data Practices</h4><ol class=\"mb-3\"><li>Top-up transactions are linked to your verified payment method; we store transaction references, not full card numbers</li><li>Withdrawal requests require completed KYC and validated bank account details matched to your registered identity</li><li>Wallet ledger entries are retained for a minimum of seven years for audit and regulatory purposes</li><li>Suspicious wallet activity triggers automated holds and manual review by our compliance team</li></ol><p>Seller payout data processed through the Seller Panel includes settlement amounts, commission deductions, TDS certificates where applicable, and bank transfer confirmations. Sellers can export payout statements from the Seller Panel dashboard.</p>', 'policies/sections/privacy-policy-wallet-and-financial-data-handling-section-800x400.svg', 'accordion', 6, 1, '2026-06-19 06:51:52', '2026-06-19 06:51:52'),
(699, 2, 'Data Retention and Deletion', '<p>We retain personal data for as long as your account remains active and as necessary to fulfil the purposes described in this policy. Retention periods vary by data category and legal requirements.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Data Type</th><th>Retention Period</th><th>Deletion Trigger</th></tr></thead><tbody><tr><td>Active account profile</td><td>Duration of account plus 90 days</td><td>Account deletion request</td></tr><tr><td>Order and invoice records</td><td>7 years from transaction date</td><td>Legal retention expiry</td></tr><tr><td>Chat messages</td><td>3 years from last activity</td><td>Automatic archival or user request</td></tr><tr><td>KYC documents</td><td>7 years after account closure</td><td>Regulatory retention expiry</td></tr><tr><td>Marketing preferences</td><td>Until opt-out plus 30 days</td><td>Unsubscribe or account deletion</td></tr></tbody></table></div><p>You may request deletion of your account and associated personal data by contacting privacy@gletra.com or using the Account Settings privacy controls. Certain records must be retained for legal, tax, or dispute resolution purposes even after account deletion.</p>', 'policies/sections/privacy-policy-data-retention-and-deletion-section-800x400.svg', 'content', 7, 1, '2026-06-19 06:51:52', '2026-06-19 06:51:52'),
(700, 2, 'Your Privacy Rights and Choices', '<p>Depending on your jurisdiction, you may have rights to access, correct, delete, restrict, or port your personal data, and to object to certain processing activities. Indian users may exercise rights under the Digital Personal Data Protection Act, 2023. European Economic Area and United Kingdom users may exercise GDPR rights as described in our GDPR Compliance page.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">How to Exercise Your Rights</h4><ol class=\"mb-3\"><li>Submit a request via privacy@gletra.com with your registered email and account verification</li><li>Use in-app privacy controls under Account Settings to download a data export or update contact details</li><li>Opt out of non-essential marketing emails through unsubscribe links or notification preferences</li><li>Manage cookie preferences through our Cookie Preferences panel or browser settings</li></ol><p>We respond to verified privacy requests within 30 days. Complex requests may require an additional 30-day extension, of which you will be notified in writing.</p>', 'policies/sections/privacy-policy-your-privacy-rights-and-choices-section-800x400.svg', 'highlight', 8, 1, '2026-06-19 06:51:52', '2026-06-19 06:51:52'),
(701, 2, 'Children\'s Privacy', '<p>Gletra is not intended for individuals under 18 years of age. We do not knowingly collect personal data from minors. If we become aware that a user under 18 has created an account or submitted KYC documents, we will promptly disable the account and delete associated personal data unless retention is required by law. Parents or guardians who believe a minor has provided information to Gletra should contact privacy@gletra.com immediately.</p>', 'policies/sections/privacy-policy-childrens-privacy-section-800x400.svg', 'notice', 9, 1, '2026-06-19 06:51:52', '2026-06-19 06:51:52'),
(702, 2, 'Policy Updates and Contact Information', '<p>We may revise this Privacy Policy to reflect changes in our services, legal requirements, or industry best practices. The \"Last Updated\" date at the top of this page indicates the most recent revision. Continued use of Gletra after the effective date of an updated policy constitutes acceptance of the revised terms.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Contact Our Privacy Team</h4><ul class=\"mb-3\"><li><strong>General privacy inquiries:</strong> privacy@gletra.com</li><li><strong>Data Protection Officer (GDPR):</strong> dpo@gletra.com</li><li><strong>Grievance Officer (IT Rules 2021):</strong> grievance@gletra.com</li><li><strong>Postal correspondence:</strong> Gletra Technologies Pvt. Ltd., Privacy Office, Bengaluru, Karnataka, India</li></ul>', 'policies/sections/privacy-policy-policy-updates-and-contact-information-section-800x400.svg', 'legal_update', 10, 1, '2026-06-19 06:51:52', '2026-06-19 06:51:52'),
(703, 3, 'Definitions and Interpretation', '<p>In these Terms, unless the context requires otherwise, the following definitions apply throughout this document and all incorporated policies.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Term</th><th>Definition</th></tr></thead><tbody><tr><td>Platform</td><td>The Gletra website, mobile applications, Seller Panel, APIs, and all related services</td></tr><tr><td>User</td><td>Any person who accesses or uses the Platform, including buyers, sellers, and service providers</td></tr><tr><td>Seller</td><td>A registered vendor who lists and sells physical products through the marketplace</td></tr><tr><td>Service Provider</td><td>An independent professional offering home services through Gletra Home Services</td></tr><tr><td>Gletra Wallet</td><td>The stored-value account enabling prepaid payments, refunds, and rewards on the Platform</td></tr><tr><td>Order</td><td>A confirmed purchase of one or more products from a Seller through the Platform</td></tr><tr><td>Booking</td><td>A confirmed appointment for a home service with an assigned Service Provider</td></tr></tbody></table></div><p>Headings are for convenience only and do not affect interpretation. References to \"including\" mean \"including without limitation.\" These Terms are governed by the laws of India, and courts in Bengaluru, Karnataka shall have exclusive jurisdiction subject to mandatory consumer protection remedies.</p>', 'policies/sections/terms-and-conditions-definitions-and-interpretation-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:51:53', '2026-06-19 06:51:53'),
(704, 3, 'Platform Services and Role of Gletra', '<p>Gletra provides a technology platform that enables users to discover products, compare seller offerings, communicate via chat and calls, complete secure checkout, track shipments, book home services, and manage wallet balances. Gletra charges marketplace fees and commissions as disclosed in the Seller Panel and service provider fee schedules.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Services Provided by Gletra</h4><ul class=\"mb-3\"><li>Multi-vendor product marketplace with search, filtering, and recommendation features</li><li>Seller Panel for inventory management, order processing, analytics, and payout requests</li><li>Gletra Home Services for booking electricians, plumbers, carpenters, cleaners, and appliance repair</li><li>Gletra Chat and integrated voice/video calling for transaction-related communication</li><li>Gletra Wallet for prepaid balances, instant refunds, and promotional credits</li><li>Customer protection, dispute resolution, and fraud prevention programmes</li></ul><p>Gletra does not guarantee the quality, safety, legality, or availability of any product or service listed by third parties. We conduct reasonable verification of sellers and service providers but do not warrant their performance beyond the protections described in our Customer Protection Policy.</p>', 'policies/sections/terms-and-conditions-platform-services-and-role-of-gletra-section-800x400.svg', 'content', 2, 1, '2026-06-19 06:51:53', '2026-06-19 06:51:53'),
(705, 3, 'Account Registration and Security', '<p>To access certain features, you must create a Gletra account with accurate, current, and complete information. You are responsible for maintaining the confidentiality of your login credentials and for all activities conducted under your account.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Account Requirements</h4><ol class=\"mb-3\"><li>Provide a valid email address and mobile number capable of receiving OTP verification</li><li>Maintain one personal account unless authorised for a registered business entity with separate Seller Panel access</li><li>Complete KYC verification when required for seller registration, service provider onboarding, or wallet withdrawals exceeding platform thresholds</li><li>Promptly update account information when your contact details, address, or business registration changes</li><li>Notify Gletra immediately at support@gletra.com if you suspect unauthorised account access</li></ol><p>Gletra reserves the right to suspend or terminate accounts that provide false information, engage in fraudulent activity, or violate these Terms or any incorporated platform policy.</p>', 'policies/sections/terms-and-conditions-account-registration-and-security-section-800x400.svg', 'highlight', 3, 1, '2026-06-19 06:51:53', '2026-06-19 06:51:53'),
(706, 3, 'Orders, Bookings, and Contract Formation', '<p>A product order is confirmed when you complete checkout and receive an order confirmation notification. The contract of sale is between you and the seller; Gletra acts as a limited payment collection agent for the seller. A service booking is confirmed when you select a time slot, provide service details, and receive booking confirmation. The service contract is between you and the assigned service provider.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Pricing and Availability</h4><p>Product prices, shipping charges, and service estimates are displayed before confirmation. Sellers and service providers are responsible for accurate pricing. Gletra may cancel orders or bookings where pricing errors are manifest, inventory is unavailable, or the seller or provider fails verification standards. Payment is processed through Gletra\'s secure payment infrastructure; off-platform payment requests from sellers or providers are prohibited.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Transaction Type</th><th>Contract Parties</th><th>Gletra Role</th></tr></thead><tbody><tr><td>Product purchase</td><td>Buyer and Seller</td><td>Marketplace intermediary and payment facilitator</td></tr><tr><td>Home service booking</td><td>Customer and Service Provider</td><td>Booking platform and payment escrow agent</td></tr><tr><td>Wallet top-up</td><td>User and Gletra</td><td>Stored-value account operator</td></tr></tbody></table></div>', 'policies/sections/terms-and-conditions-orders-bookings-and-contract-formation-section-800x400.svg', 'content', 4, 1, '2026-06-19 06:51:53', '2026-06-19 06:51:53'),
(707, 3, 'Seller and Service Provider Obligations', '<p>Users who register as sellers or service providers accept additional obligations under the Seller Policy, Vendor Agreement, Service Provider Policy, and Home Service Terms. By listing products or offering services, you represent that you have legal authority to sell or perform the listed offerings and that all listings comply with applicable laws and our Prohibited Items Policy.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Key Seller and Provider Responsibilities</h4><ul class=\"mb-3\"><li>Maintain accurate inventory, pricing, and service availability in the Seller Panel or provider dashboard</li><li>Ship orders within stated handling times and arrive for service appointments within the confirmed window</li><li>Respond to buyer and customer inquiries via Gletra Chat within 24 hours during business days</li><li>Accept returns and honour warranties in accordance with platform policies and consumer protection law</li><li>Complete KYC and maintain valid business registrations, GST numbers, and professional certifications</li></ul>', 'policies/sections/terms-and-conditions-seller-and-service-provider-obligations-section-800x400.svg', 'accordion', 5, 1, '2026-06-19 06:51:53', '2026-06-19 06:51:53'),
(708, 3, 'Prohibited Conduct', '<p>All users must comply with our User Conduct Policy and Community Guidelines. The following activities are strictly prohibited on Gletra and may result in immediate account termination, forfeiture of wallet balances where permitted by law, and referral to law enforcement.</p><ul class=\"mb-3\"><li>Creating multiple accounts to manipulate reviews, evade suspensions, or abuse promotional offers</li><li>Soliciting off-platform payments to avoid marketplace commissions or escrow protections</li><li>Listing counterfeit goods, stolen property, or items on our Prohibited Items list</li><li>Harassing, threatening, or discriminating against other users via chat, calls, or reviews</li><li>Submitting fraudulent KYC documents or impersonating another person or business entity</li><li>Scraping platform data, reverse engineering our applications, or deploying unauthorised bots</li><li>Recording voice or video calls without the consent of all participants</li></ul>', 'policies/sections/terms-and-conditions-prohibited-conduct-section-800x400.svg', 'notice', 6, 1, '2026-06-19 06:51:53', '2026-06-19 06:51:53'),
(709, 3, 'Intellectual Property', '<p>All Gletra trademarks, logos, software, user interface designs, and proprietary algorithms are owned by Gletra Technologies Pvt. Ltd. No licence is granted except as necessary to use the Platform in accordance with these Terms. Users retain ownership of content they upload but grant Gletra a worldwide, royalty-free, sublicensable licence to display, distribute, and promote such content on the Platform for the purpose of operating our services.</p><p>If you believe your intellectual property has been infringed on Gletra, submit a notice to copyright@gletra.com with identification of the copyrighted work, the infringing listing URL, your contact information, and a statement of good faith belief. We respond to valid notices within five business days.</p>', 'policies/sections/terms-and-conditions-intellectual-property-section-800x400.svg', 'content', 7, 1, '2026-06-19 06:51:53', '2026-06-19 06:51:53'),
(710, 3, 'Disclaimers and Limitation of Liability', '<p>THE PLATFORM IS PROVIDED \"AS IS\" AND \"AS AVAILABLE\" WITHOUT WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. GLETRA DOES NOT WARRANT UNINTERRUPTED ACCESS, ERROR-FREE OPERATION, OR THAT DEFECTS WILL BE CORRECTED.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Limitation of Liability</h4><p>To the maximum extent permitted by applicable law, Gletra and its directors, officers, employees, and agents shall not be liable for any indirect, incidental, special, consequential, or punitive damages arising from your use of the Platform, including loss of profits, data, or goodwill. Gletra\'s aggregate liability for any claim arising from these Terms shall not exceed the greater of INR 5,000 or the total fees paid by you to Gletra in the twelve months preceding the claim. Nothing in these Terms limits liability for death or personal injury caused by negligence, fraud, or any liability that cannot be excluded under applicable consumer protection law.</p>', 'policies/sections/terms-and-conditions-disclaimers-and-limitation-of-liability-section-800x400.svg', 'legal_update', 8, 1, '2026-06-19 06:51:53', '2026-06-19 06:51:53'),
(711, 3, 'Dispute Resolution and Governing Law', '<p>Disputes between buyers and sellers or between customers and service providers should first be filed through the Gletra Dispute Center. Gletra provides mediation services as described in our Dispute Resolution Policy. If mediation fails, disputes shall be resolved through binding arbitration in Bengaluru under the Arbitration and Conciliation Act, 1996, except where prohibited by mandatory consumer protection statutes that grant access to consumer forums.</p><p>These Terms are governed by the laws of India. You agree to submit to the exclusive jurisdiction of courts in Bengaluru, Karnataka for matters not subject to arbitration, without prejudice to your statutory rights as a consumer under the Consumer Protection Act, 2019.</p>', 'policies/sections/terms-and-conditions-dispute-resolution-and-governing-law-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:51:53', '2026-06-19 06:51:53'),
(712, 3, 'Termination and Survival', '<p>You may close your account at any time through Account Settings or by contacting support@gletra.com. Gletra may suspend or terminate your account immediately for material breach of these Terms, fraudulent activity, or legal requirements. Upon termination, your right to access the Platform ceases, pending orders and bookings will be handled per applicable policies, and wallet balances will be processed subject to KYC verification and hold periods.</p><p>Provisions that by their nature should survive termination—including payment obligations, intellectual property licences granted to Gletra, disclaimers, limitation of liability, dispute resolution, and governing law—shall survive account closure.</p>', 'policies/sections/terms-and-conditions-termination-and-survival-section-800x400.svg', 'highlight', 10, 1, '2026-06-19 06:51:53', '2026-06-19 06:51:53'),
(713, 4, 'Eligible Refund Scenarios', '<p>Gletra approves refunds when a transaction fails to meet the standards described below or when required by applicable consumer protection law. Each request is evaluated individually based on submitted evidence.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Product Order Refunds</h4><ul class=\"mb-3\"><li>Product not delivered within the estimated delivery window and confirmed lost by the logistics partner</li><li>Item received is significantly not as described, counterfeit, or materially different from the listing</li><li>Product arrived damaged, defective, or missing essential components or accessories</li><li>Wrong item shipped by the seller and return initiated within the applicable return window</li><li>Order cancelled by the buyer before shipment or by the seller before dispatch</li><li>Duplicate charge or payment processing error verified by Gletra finance team</li></ul><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Home Service Refunds</h4><ul class=\"mb-3\"><li>Service provider failed to arrive within the confirmed appointment window without rescheduling</li><li>Service not performed or abandoned before completion without customer agreement</li><li>Work performed is materially deficient and provider failed to remedy after one revisit</li><li>Booking cancelled in accordance with our Cancellation Policy timeframes</li></ul>', 'policies/sections/refund-policy-eligible-refund-scenarios-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:51:54', '2026-06-19 06:51:54'),
(714, 4, 'Non-Refundable Transactions', '<p>The following transactions are generally non-refundable except where required by mandatory consumer protection law or where Gletra Customer Protection applies.</p><ul class=\"mb-3\"><li>Digital goods, software licences, and e-vouchers delivered to your account or email</li><li>Personalised, custom-made, or made-to-order products unless defective on arrival</li><li>Perishable goods including food and flowers after confirmed delivery</li><li>Services fully rendered and marked complete by both customer and provider</li><li>Gletra Wallet promotional credits and cashback bonuses (refundable portion limited to cash top-ups)</li><li>Products returned outside the return window or in unacceptable condition per Return Policy</li></ul><p>Partial refunds may apply where only a portion of an order qualifies. Multi-vendor cart orders are refunded on a per-seller basis.</p>', 'policies/sections/refund-policy-non-refundable-transactions-section-800x400.svg', 'notice', 2, 1, '2026-06-19 06:51:54', '2026-06-19 06:51:54'),
(715, 4, 'Refund Methods and Timelines', '<p>Approved refunds are processed using the method below based on your selection at the time of refund approval.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Refund Destination</th><th>Processing Time</th><th>Notes</th></tr></thead><tbody><tr><td>Gletra Wallet</td><td>Instant upon approval</td><td>Available for all eligible refunds; fastest option</td></tr><tr><td>Original UPI or card</td><td>5–10 business days</td><td>Subject to bank or payment gateway processing</td></tr><tr><td>Net banking</td><td>5–7 business days</td><td>Refunded to source account only</td></tr><tr><td>Cash on Delivery orders</td><td>Gletra Wallet or bank transfer</td><td>Bank details required; KYC may apply for large amounts</td></tr></tbody></table></div><p>Refund amounts include the product or service price and applicable taxes. Original shipping charges are refunded when the return reason is seller fault. Return shipping costs follow our Return Policy allocation rules.</p>', 'policies/sections/refund-policy-refund-methods-and-timelines-section-800x400.svg', 'highlight', 3, 1, '2026-06-19 06:51:54', '2026-06-19 06:51:54'),
(716, 4, 'How to Request a Refund', '<p>Initiate refund requests through the Gletra platform to ensure proper tracking and eligibility assessment.</p><ol class=\"mb-3\"><li>Navigate to My Orders or My Bookings and select the relevant transaction</li><li>Choose \"Request Refund\" or \"Report Issue\" and select the applicable reason code</li><li>Upload supporting evidence including photographs, chat transcripts, and unboxing videos where relevant</li><li>Await seller or provider response within 48 hours; Gletra mediates if no agreement is reached</li><li>Receive refund decision notification via email and in-app alert</li></ol><p>Refund requests must be submitted within the timeframes specified in our Return Policy for products and within 7 days of service completion for home services, unless a longer period applies under Gletra Customer Protection.</p>', 'policies/sections/refund-policy-how-to-request-a-refund-section-800x400.svg', 'content', 4, 1, '2026-06-19 06:51:54', '2026-06-19 06:51:54'),
(717, 4, 'Multi-Vendor Order Refunds', '<p>When your cart contains items from multiple sellers, each item is evaluated and refunded independently. Partial order refunds are fully supported—you need not return the entire order to receive a refund for qualifying items.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Split Shipment Considerations</h4><ul class=\"mb-3\"><li>Each shipment has its own delivery confirmation date for return window calculations</li><li>Shipping charges are recalculated if remaining order value falls below free shipping threshold</li><li>Seller-specific refund policies apply per item but cannot be less favourable than Gletra minimums</li><li>Wallet refunds for multi-vendor orders appear as a single credit regardless of seller count</li></ul>', 'policies/sections/refund-policy-multi-vendor-order-refunds-section-800x400.svg', 'accordion', 5, 1, '2026-06-19 06:51:54', '2026-06-19 06:51:54'),
(718, 4, 'Wallet Top-Up and Balance Refunds', '<p>Unused Gletra Wallet cash top-ups may be withdrawn to your verified bank account after KYC completion, subject to our Wallet Policy. Promotional credits and cashback bonuses are non-withdrawable and expire per offer terms.</p><p>When a refund is issued to Gletra Wallet, funds are immediately available for subsequent purchases, service bookings, or withdrawal. Wallet refunds do not expire unless your account is inactive for two consecutive years, in which case escheatment rules under applicable law may apply.</p>', 'policies/sections/refund-policy-wallet-top-up-and-balance-refunds-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:51:54', '2026-06-19 06:51:54'),
(719, 4, 'Seller and Provider Refund Obligations', '<p>Sellers and service providers must cooperate with refund investigations by responding to dispute notifications within 48 hours and providing evidence of shipment, delivery, or service completion. Failure to respond may result in automatic refund approval in favour of the buyer or customer.</p><p>Refund amounts for approved claims are deducted from seller settlement balances or service provider payouts. Gletra may apply account holds for sellers or providers with excessive refund rates pending quality review.</p>', 'policies/sections/refund-policy-seller-and-provider-refund-obligations-section-800x400.svg', 'notice', 7, 1, '2026-06-19 06:51:54', '2026-06-19 06:51:54'),
(720, 4, 'Chargebacks and Payment Disputes', '<p>If you initiate a chargeback with your bank or payment provider before exhausting Gletra\'s internal dispute process, your account may be restricted pending investigation. Fraudulent chargebacks—filed without genuine cause—may result in permanent account termination and referral to collections or law enforcement.</p><p>We encourage you to use the Gletra Dispute Center first, as it typically resolves issues faster than bank chargeback processes and preserves your account standing. Gletra provides banks with transaction evidence including delivery confirmation, chat logs, and service completion records.</p>', 'policies/sections/refund-policy-chargebacks-and-payment-disputes-section-800x400.svg', 'legal_update', 8, 1, '2026-06-19 06:51:54', '2026-06-19 06:51:54'),
(721, 4, 'Refund Appeals', '<p>If you disagree with a refund decision, you may appeal within 5 business days by submitting additional evidence to disputes@gletra.com with your order or booking reference. A senior dispute resolution specialist will review the case within 7 business days. Appeal decisions are final except where mandatory consumer forum remedies apply under Indian law.</p>', 'policies/sections/refund-policy-refund-appeals-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:51:54', '2026-06-19 06:51:54'),
(722, 4, 'Contact and Support', '<p>For refund status inquiries, contact support@gletra.com with your order ID. Refund tracking is available in My Orders under the \"Refunds\" tab. Our support team operates seven days a week with target first response within 4 hours for refund-related tickets.</p>', 'policies/sections/refund-policy-contact-and-support-section-800x400.svg', 'highlight', 10, 1, '2026-06-19 06:51:54', '2026-06-19 06:51:54'),
(723, 5, 'Product Order Cancellation by Buyers', '<p>Buyers may cancel product orders without penalty before the seller marks the order as shipped or handed to a logistics partner.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Cancellation Windows</h4><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Order Status</th><th>Cancellation Fee</th><th>Refund Amount</th></tr></thead><tbody><tr><td>Payment confirmed, not yet packed</td><td>Free</td><td>100% including shipping</td></tr><tr><td>Packed, awaiting pickup</td><td>Free</td><td>100% including shipping</td></tr><tr><td>Shipped / in transit</td><td>Not cancellable</td><td>Initiate return after delivery</td></tr><tr><td>Out for delivery</td><td>Not cancellable</td><td>Refuse delivery or return after receipt</td></tr></tbody></table></div><p>To cancel, go to My Orders, select the order, and tap \"Cancel Order.\" Cancellation is instant for eligible orders and triggers automatic refund processing per our Refund Policy.</p>', 'policies/sections/cancellation-policy-product-order-cancellation-by-buyers-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:51:55', '2026-06-19 06:51:55'),
(724, 5, 'Home Service Booking Cancellation by Customers', '<p>Service booking cancellations follow time-based rules to respect provider scheduling and travel commitments for electricians, plumbers, carpenters, cleaners, and appliance repair professionals.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Cancellation Fee Schedule</h4><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Time Before Appointment</th><th>Cancellation Fee</th><th>Refund</th></tr></thead><tbody><tr><td>More than 24 hours</td><td>Free</td><td>100% of prepaid amount</td></tr><tr><td>12–24 hours</td><td>15% of booking value</td><td>85% refund to wallet or original method</td></tr><tr><td>Less than 12 hours</td><td>25% of booking value</td><td>75% refund</td></tr><tr><td>Provider en route or arrived</td><td>50% of booking value</td><td>50% refund; no-show forfeits full amount</td></tr></tbody></table></div><p>Free rescheduling is available once per booking when requested at least 12 hours before the appointment through the My Bookings section.</p>', 'policies/sections/cancellation-policy-home-service-booking-cancellation-by-customers-section-800x400.svg', 'content', 2, 1, '2026-06-19 06:51:55', '2026-06-19 06:51:55'),
(725, 5, 'Prepaid vs Pay-After-Service Bookings', '<p>Prepaid bookings receive refunds per the fee schedule above. Pay-after-service bookings cancelled within the free window incur no charge. Late cancellations of pay-after-service bookings may result in a cancellation fee invoice sent to your Gletra account, deductible from Gletra Wallet or payable at next checkout.</p><p>Diagnostic or inspection fees for services such as appliance repair and electrical fault-finding may be non-refundable if the provider has already travelled to your location and performed the assessment, even if you cancel before additional repair work begins.</p>', 'policies/sections/cancellation-policy-prepaid-vs-pay-after-service-bookings-section-800x400.svg', 'highlight', 3, 1, '2026-06-19 06:51:55', '2026-06-19 06:51:55'),
(726, 5, 'Seller-Initiated Cancellations', '<p>Sellers may cancel orders only when the product is permanently out of stock, the listing contained a manifest pricing error, or fulfilment is impossible due to circumstances beyond the seller\'s control such as regulatory restrictions or natural disasters.</p><ul class=\"mb-3\"><li>Buyers receive an automatic full refund including shipping charges</li><li>Gletra may issue platform credit of up to INR 200 at its discretion as a goodwill gesture</li><li>Repeated seller cancellations affect seller rating, search visibility, and may trigger account review</li><li>Buyers may reorder from an alternative seller; Gletra support can assist with equivalent product recommendations</li></ul>', 'policies/sections/cancellation-policy-seller-initiated-cancellations-section-800x400.svg', 'notice', 4, 1, '2026-06-19 06:51:55', '2026-06-19 06:51:55'),
(727, 5, 'Service Provider Cancellations', '<p>Service providers may cancel bookings when unable to perform the service due to emergencies, safety concerns, or skills mismatch identified before arrival. Providers must cancel through the provider app with a documented reason.</p><p>Customer receives full refund for provider-initiated cancellations. Gletra automatically reassigns the booking to an available alternative provider where possible. Provider cancellation rates above 5% monthly trigger performance review and potential delisting from Gletra Home Services.</p>', 'policies/sections/cancellation-policy-service-provider-cancellations-section-800x400.svg', 'accordion', 5, 1, '2026-06-19 06:51:55', '2026-06-19 06:51:55'),
(728, 5, 'Gletra-Initiated Cancellations', '<p>Gletra reserves the right to cancel orders or bookings when fraud is detected, the seller or provider fails verification, the transaction violates our Prohibited Items Policy, or payment authorisation fails after order confirmation. Affected users receive full refunds and explanatory notifications.</p>', 'policies/sections/cancellation-policy-gletra-initiated-cancellations-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:51:55', '2026-06-19 06:51:55'),
(729, 5, 'Cancellation of Multi-Vendor Orders', '<p>Each item in a multi-vendor cart is cancelled independently. Cancelling one item does not affect other items from different sellers. Shipping cost recalculation applies if the remaining order value no longer qualifies for free shipping promotions.</p>', 'policies/sections/cancellation-policy-cancellation-of-multi-vendor-orders-section-800x400.svg', 'content', 7, 1, '2026-06-19 06:51:55', '2026-06-19 06:51:55'),
(730, 5, 'Subscription and Recurring Service Cancellations', '<p>Recurring home service subscriptions such as weekly cleaning packages may be cancelled at any time before the next scheduled billing cycle. The current paid period runs to completion unless cancelled more than 48 hours before the next appointment. No partial refunds apply to completed subscription periods.</p>', 'policies/sections/cancellation-policy-subscription-and-recurring-service-cancellations-section-800x400.svg', 'highlight', 8, 1, '2026-06-19 06:51:55', '2026-06-19 06:51:55'),
(731, 5, 'Cancellation Disputes', '<p>If you believe a cancellation fee was applied incorrectly, file a dispute within 48 hours through the Dispute Center with your booking reference and reason. Gletra reviews fee disputes within 3 business days. Approved fee reversals are credited to Gletra Wallet instantly.</p>', 'policies/sections/cancellation-policy-cancellation-disputes-section-800x400.svg', 'legal_update', 9, 1, '2026-06-19 06:51:55', '2026-06-19 06:51:55'),
(732, 5, 'Impact on Gletra Wallet and Rewards', '<p>When a cancelled order or booking was paid using Gletra Wallet balance and promotional credits, cash top-up portions are refunded to wallet cash balance. Promotional credits used are restored only if the cancellation occurs before the promotional period expires. Cashback earned on cancelled transactions is reversed.</p>', 'policies/sections/cancellation-policy-impact-on-gletra-wallet-and-rewards-section-800x400.svg', 'notice', 10, 1, '2026-06-19 06:51:55', '2026-06-19 06:51:55'),
(733, 6, 'Return Window by Category', '<p>Return windows begin on the date of delivery confirmation recorded by our logistics partner or OTP-verified delivery.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Product Category</th><th>Return Window</th><th>Notes</th></tr></thead><tbody><tr><td>General merchandise</td><td>7 days</td><td>Platform default for most categories</td></tr><tr><td>Electronics and appliances</td><td>15 days</td><td>Must include all accessories and packaging</td></tr><tr><td>Fashion and footwear</td><td>15 days</td><td>Tags attached, unworn condition required</td></tr><tr><td>Books and media (physical)</td><td>7 days</td><td>Shrink wrap intact for sealed items</td></tr><tr><td>Furniture and large items</td><td>7 days</td><td>Seller-arranged pickup required</td></tr><tr><td>Beauty and personal care</td><td>7 days</td><td>Unopened and sealed only</td></tr></tbody></table></div><p>Extended return windows displayed on product pages override category defaults. Holiday season promotions may offer 30-day returns as indicated at checkout.</p>', 'policies/sections/return-policy-return-window-by-category-section-800x400.svg', 'highlight', 1, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(734, 6, 'Return Eligibility Conditions', '<p>To qualify for a return, products must meet all of the following conditions unless the return reason is seller fault such as defective, damaged, or wrong item received.</p><ol class=\"mb-3\"><li>Product is in unused, resalable condition with no signs of wear, damage, or alteration</li><li>Original packaging, tags, labels, and all included accessories are intact and included</li><li>Proof of purchase available through My Orders or order confirmation email</li><li>Return initiated within the applicable return window via the Gletra platform</li><li>Product is not listed in Non-Returnable Categories below</li></ol><p>For defective or damaged items, return conditions are relaxed—you may return products showing manufacturing defects or transit damage even if packaging has been opened, provided you report the issue within 48 hours of delivery with photographic evidence.</p>', 'policies/sections/return-policy-return-eligibility-conditions-section-800x400.svg', 'content', 2, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(735, 6, 'Non-Returnable Categories', '<p>The following product categories cannot be returned except when defective, not as described, or required by mandatory consumer protection law.</p><ul class=\"mb-3\"><li>Undergarments, swimwear, and socks for hygiene reasons</li><li>Opened cosmetics, skincare, and personal care products</li><li>Custom-made, personalised, or engraved items made to your specifications</li><li>Digital downloads, software licence keys, and e-gift cards</li><li>Perishable goods including fresh food, flowers, and plants</li><li>Hazardous materials, chemicals, and flammable products</li><li>Prescription medications and medical devices requiring regulatory handling</li><li>Items marked \"Final Sale\" or \"Non-Returnable\" on the product page at time of purchase</li></ul>', 'policies/sections/return-policy-non-returnable-categories-section-800x400.svg', 'notice', 3, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(736, 6, 'Return Process Step by Step', '<p>Follow these steps to initiate and complete a return on Gletra.</p><ol class=\"mb-3\"><li>Log in to Gletra and navigate to My Orders</li><li>Select the delivered order and tap \"Return Item\" or \"Report Issue\"</li><li>Choose the return reason from the provided list and upload required photographs</li><li>Await return authorisation—typically within 24 hours for standard returns</li><li>Pack the item securely in original packaging with the return label provided</li><li>Schedule pickup through Gletra logistics or drop off at the designated courier point</li><li>Track return shipment status in My Orders until the seller confirms receipt</li><li>Refund processed within 3–5 business days after seller inspection and approval</li></ol><p>Return authorisation numbers must be affixed to the outside of the return package. Returns shipped without valid authorisation may be rejected by the seller.</p>', 'policies/sections/return-policy-return-process-step-by-step-section-800x400.svg', 'content', 4, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(737, 6, 'Return Shipping Cost Allocation', '<p>Who pays for return shipping depends on the reason for return.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Return Reason</th><th>Return Shipping Paid By</th><th>Original Shipping Refunded</th></tr></thead><tbody><tr><td>Defective or damaged product</td><td>Seller or Gletra</td><td>Yes</td></tr><tr><td>Wrong item shipped</td><td>Seller or Gletra</td><td>Yes</td></tr><tr><td>Not as described (seller fault)</td><td>Seller or Gletra</td><td>Yes</td></tr><tr><td>Change of mind</td><td>Buyer (unless free returns promoted)</td><td>No</td></tr><tr><td>Size or fit issue (fashion)</td><td>Buyer (unless free returns promoted)</td><td>No</td></tr></tbody></table></div><p>Gletra Customer Protection covers return shipping for all qualifying seller-fault returns regardless of product page terms. Free return promotions displayed at checkout apply to change-of-mind returns for eligible categories.</p>', 'policies/sections/return-policy-return-shipping-cost-allocation-section-800x400.svg', 'accordion', 5, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(738, 6, 'Replacements and Exchanges', '<p>Where available, you may request a replacement instead of a refund for defective or wrong items. Select \"Replace\" during the return initiation flow. Replacements ship after the seller receives and inspects the returned item, or immediately for advance replacement eligible orders.</p><p>Size and colour exchanges for fashion items are subject to seller inventory availability. Exchange requests follow the same return window and condition requirements. Price differences for exchanged items are charged or refunded accordingly.</p>', 'policies/sections/return-policy-replacements-and-exchanges-section-800x400.svg', 'highlight', 6, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56');
INSERT INTO `policy_sections` (`id`, `policy_id`, `title`, `content`, `image`, `section_type`, `sort_order`, `status`, `created_at`, `updated_at`) VALUES
(739, 6, 'Multi-Vendor Order Returns', '<p>Each item in a multi-vendor order is returned independently to its respective seller. Return labels, pickup schedules, and refund processing occur separately per seller. You may have multiple concurrent return shipments for a single checkout order.</p>', 'policies/sections/return-policy-multi-vendor-order-returns-section-800x400.svg', 'content', 7, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(740, 6, 'Seller Return Inspection', '<p>Sellers have 3 business days after receiving a returned item to inspect and confirm refund eligibility. If a seller rejects a return claiming the item was returned in unacceptable condition, Gletra mediates using photographic evidence submitted at return initiation. Buyers should photograph items before packing and retain shipping receipts until refund confirmation.</p>', 'policies/sections/return-policy-seller-return-inspection-section-800x400.svg', 'notice', 8, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(741, 6, 'International and Remote Area Returns', '<p>Returns from remote or non-serviceable pin codes may require drop-off at the nearest Gletra partner courier location. Additional transit time of 3–5 business days applies. Return shipping cost allocation rules remain the same regardless of delivery location.</p>', 'policies/sections/return-policy-international-and-remote-area-returns-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(742, 6, 'Return Fraud Prevention', '<p>Gletra monitors return patterns for abuse including wardrobing, empty box returns, and serial returners exceeding category norms. Accounts engaged in return fraud face restrictions on return privileges, wallet holds, and potential permanent suspension. Evidence of return fraud may be shared with law enforcement.</p>', 'policies/sections/return-policy-return-fraud-prevention-section-800x400.svg', 'legal_update', 10, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(743, 7, 'Delivery Timelines', '<p>Estimated delivery dates are displayed at checkout and in order confirmation emails. Actual delivery may vary based on seller dispatch time, logistics partner capacity, weather, and destination accessibility.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Shipping Method</th><th>Estimated Delivery</th><th>Availability</th></tr></thead><tbody><tr><td>Standard</td><td>3–7 business days</td><td>Pan-India for most pin codes</td></tr><tr><td>Express</td><td>1–3 business days</td><td>Metro and tier-1 cities</td></tr><tr><td>Same-day / Next-day</td><td>0–1 business day</td><td>Select cities and sellers only</td></tr><tr><td>Scheduled delivery</td><td>Customer-selected date</td><td>Large items and furniture</td></tr></tbody></table></div><p>Remote and non-serviceable pin codes may require an additional 2–5 business days. Delivery timelines begin after the seller dispatches the order, not from the date of purchase.</p>', 'policies/sections/shipping-policy-delivery-timelines-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(744, 7, 'Shipping Charges', '<p>Shipping costs are calculated at checkout based on product weight, volumetric weight, seller location, destination pin code, and selected shipping method. Charges are displayed transparently before payment confirmation.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Free Shipping</h4><ul class=\"mb-3\"><li>Sellers may offer free standard shipping on all orders or orders above a minimum value</li><li>Gletra platform promotions may provide free shipping coupons applied at checkout</li><li>Free shipping applies per seller—multi-vendor orders may have separate shipping charges per seller</li><li>Express and same-day upgrades are never included in free standard shipping promotions</li></ul><p>Shipping charges are non-refundable for change-of-mind returns unless the product page explicitly included free return shipping.</p>', 'policies/sections/shipping-policy-shipping-charges-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(745, 7, 'Order Processing and Dispatch', '<p>After payment confirmation, sellers must dispatch orders within their stated handling time, typically 1–2 business days. Pre-order and made-to-order items display extended handling times on the product page.</p><ol class=\"mb-3\"><li>Seller receives order notification in the Seller Panel</li><li>Seller packs the item and generates shipping label through Gletra logistics integration</li><li>Logistics partner collects the package from seller location</li><li>Tracking number activated and shared with buyer via email and My Orders</li><li>Package transits through logistics network to destination hub</li><li>Last-mile delivery agent delivers to buyer address with OTP verification for high-value orders</li></ol>', 'policies/sections/shipping-policy-order-processing-and-dispatch-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(746, 7, 'Order Tracking', '<p>Real-time tracking is available in My Orders for all shipments with activated tracking numbers. Tracking updates include pickup confirmation, in-transit scans, out-for-delivery status, and delivery confirmation.</p><p>Enable push notifications in the Gletra app to receive delivery updates. SMS alerts are sent for out-for-delivery and delivered statuses. If tracking shows no updates for 72 hours, contact support@gletra.com with your order ID.</p>', 'policies/sections/shipping-policy-order-tracking-section-800x400.svg', 'accordion', 4, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(747, 7, 'Delivery Verification and OTP', '<p>High-value orders exceeding INR 5,000 require OTP verification at delivery. The OTP is sent to your registered mobile number. Do not share delivery OTPs with anyone except the verified delivery agent at your door. Report unsolicited OTP requests to support@gletra.com immediately—they may indicate delivery fraud.</p><p>For all deliveries, inspect the outer packaging before accepting. Note visible damage on the delivery receipt or refuse delivery if the package is severely damaged. Report packaging damage within 24 hours with photographs for expedited return processing.</p>', 'policies/sections/shipping-policy-delivery-verification-and-otp-section-800x400.svg', 'notice', 5, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(748, 7, 'Multi-Vendor Order Shipping', '<p>Each seller in a multi-vendor cart ships independently. You may receive multiple packages on different dates. Each shipment has its own tracking number, delivery confirmation, and return window start date. Shipping charges are itemised per seller at checkout.</p>', 'policies/sections/shipping-policy-multi-vendor-order-shipping-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(749, 7, 'Delivery Attempts and Failed Delivery', '<p>Logistics partners typically attempt delivery up to three times over 5 business days. After failed attempts, packages may be held at the local hub for 7 days awaiting pickup or returned to the seller.</p><ul class=\"mb-3\"><li>Ensure your delivery address includes landmark, flat number, and reachable phone number</li><li>Provide alternate contact numbers in order notes for gated communities and offices</li><li>Reschedule delivery through the tracking page or logistics partner app where available</li><li>Report non-delivery within 48 hours of the expected delivery date for investigation</li></ul>', 'policies/sections/shipping-policy-delivery-attempts-and-failed-delivery-section-800x400.svg', 'highlight', 7, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(750, 7, 'Shipping Restrictions', '<p>Certain products cannot be shipped to all pin codes due to regulatory, safety, or logistics constraints. Restricted items include aerosols, lithium batteries above permitted limits, oversized furniture to non-ground-floor addresses without lift access, and products requiring cold chain handling.</p><p>If your pin code is not serviceable for a product, checkout will display an error before payment. Sellers may restrict shipping to specific regions as noted on product pages.</p>', 'policies/sections/shipping-policy-shipping-restrictions-section-800x400.svg', 'notice', 8, 1, '2026-06-19 06:51:56', '2026-06-19 06:51:56'),
(751, 7, 'Lost and Damaged Shipments', '<p>If tracking shows delivered but you did not receive the package, report within 48 hours through My Orders. Gletra initiates an investigation with the logistics partner. Confirmed lost shipments result in full refund or replacement at your choice under Gletra Customer Protection.</p><p>Transit damage reported within 48 hours of delivery with photographic evidence qualifies for immediate return and refund with Gletra-covered return shipping.</p>', 'policies/sections/shipping-policy-lost-and-damaged-shipments-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:51:57', '2026-06-19 06:51:57'),
(752, 7, 'Seller Shipping Obligations', '<p>Sellers must use Gletra-approved logistics partners, provide accurate package weight and dimensions, and ship within stated handling times. Sellers shipping via unapproved carriers forfeit Gletra Customer Protection coverage for those orders. Repeated shipping violations result in seller account penalties including reduced search visibility and mandatory Gletra fulfilment requirements.</p>', 'policies/sections/shipping-policy-seller-shipping-obligations-section-800x400.svg', 'legal_update', 10, 1, '2026-06-19 06:51:57', '2026-06-19 06:51:57'),
(753, 8, 'Seller Eligibility and Onboarding', '<p>To sell on Gletra, you must complete registration through the Seller Panel and satisfy the following eligibility criteria.</p><ul class=\"mb-3\"><li>Valid government-issued identity proof and completed KYC verification</li><li>Business registration documents, GST registration where turnover exceeds statutory thresholds</li><li>Verified bank account in the name of the registered business or individual seller</li><li>Agreement to the Vendor Agreement, Seller Policy, and all applicable platform policies</li><li>Minimum age of 18 years with legal authority to enter commercial contracts</li></ul><p>Gletra reserves the right to approve or reject seller applications based on business category, documentation quality, prior platform violations, and category capacity. Rejected applicants may reapply after 90 days with corrected documentation.</p>', 'policies/sections/seller-policy-seller-eligibility-and-onboarding-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:51:58', '2026-06-19 06:51:58'),
(754, 8, 'Listing Standards and Catalogue Quality', '<p>All product listings must meet Gletra catalogue quality standards to ensure buyer trust and search relevance.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Required Listing Elements</h4><ol class=\"mb-3\"><li>Accurate product title without keyword stuffing or misleading claims</li><li>Complete description including materials, dimensions, warranty, and country of origin</li><li>High-resolution images on white background; minimum 1000x1000 pixels for primary image</li><li>Correct category assignment, brand authorisation, and HSN code for GST compliance</li><li>Real-time inventory sync to prevent overselling and order cancellations</li><li>Competitive pricing with transparent MRP and discount display where applicable</li></ol><p>Listings containing counterfeit goods, prohibited items, or intellectual property violations are removed immediately and may result in permanent seller ban and legal referral.</p>', 'policies/sections/seller-policy-listing-standards-and-catalogue-quality-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:51:58', '2026-06-19 06:51:58'),
(755, 8, 'Order Fulfilment Requirements', '<p>Timely and accurate order fulfilment is critical to marketplace health. Sellers must maintain the following performance standards.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Metric</th><th>Minimum Standard</th><th>Consequence of Breach</th></tr></thead><tbody><tr><td>Dispatch time</td><td>Within 2 business days</td><td>Rating penalty; repeated breach triggers review</td></tr><tr><td>On-time dispatch rate</td><td>95% or higher</td><td>Reduced search visibility below 90%</td></tr><tr><td>Order cancellation rate</td><td>Below 2.5%</td><td>Account hold above 5%</td></tr><tr><td>Return rate (seller fault)</td><td>Below 5%</td><td>Quality audit above 8%</td></tr><tr><td>Buyer message response</td><td>Within 24 hours</td><td>Badge removal; warning after 48 hours</td></tr></tbody></table></div><p>Pre-order and made-to-order items must display accurate handling times. Sellers must update inventory immediately when products become unavailable to prevent buyer disappointment and cancellation penalties.</p>', 'policies/sections/seller-policy-order-fulfilment-requirements-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:51:58', '2026-06-19 06:51:58'),
(756, 8, 'Communication and Customer Service', '<p>Sellers must use Gletra Chat as the primary communication channel with buyers. Off-platform communication to solicit direct payments or circumvent marketplace fees is strictly prohibited.</p><ul class=\"mb-3\"><li>Respond to pre-sale inquiries within 24 hours during business days</li><li>Provide tracking information within 4 hours of dispatch</li><li>Cooperate with return and refund requests per platform policies</li><li>Participate in dispute resolution with evidence within 48 hours of notification</li><li>Maintain professional conduct in all buyer interactions including voice and video calls initiated through Gletra</li></ul>', 'policies/sections/seller-policy-communication-and-customer-service-section-800x400.svg', 'accordion', 4, 1, '2026-06-19 06:51:58', '2026-06-19 06:51:58'),
(757, 8, 'Commission, Fees, and Settlements', '<p>Gletra charges category-based commission on each completed sale, deducted automatically at settlement. Additional fees may apply for optional services including advertising, premium placement, and Gletra fulfilment.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Settlement Overview</h4><ul class=\"mb-3\"><li>Standard settlement cycle: T+7 business days after delivery confirmation</li><li>Premium sellers: T+3 business days subject to eligibility criteria</li><li>Minimum settlement threshold: INR 100; amounts below roll to next cycle</li><li>Payout holds apply for disputed orders, high return rates, and new seller probation periods</li><li>Detailed fee breakdown available in Seller Panel under Finance and Reports</li></ul>', 'policies/sections/seller-policy-commission-fees-and-settlements-section-800x400.svg', 'content', 5, 1, '2026-06-19 06:51:58', '2026-06-19 06:51:58'),
(758, 8, 'Prohibited Seller Conduct', '<p>The following activities result in immediate account suspension pending investigation and permanent termination upon confirmation.</p><ul class=\"mb-3\"><li>Selling counterfeit, stolen, or prohibited items</li><li>Manipulating reviews through fake orders, incentivised ratings, or review exchange groups</li><li>Price gouging during emergencies or supply shortages beyond reasonable market adjustments</li><li>Circumventing Gletra fees through off-platform payment solicitation in chat or calls</li><li>Submitting fraudulent KYC documents or operating under false business identity</li><li>Ship-to-switch fraud or sending empty boxes, rocks, or unrelated items</li></ul>', 'policies/sections/seller-policy-prohibited-seller-conduct-section-800x400.svg', 'notice', 6, 1, '2026-06-19 06:51:58', '2026-06-19 06:51:58'),
(759, 8, 'Seller Panel Tools and Responsibilities', '<p>The Seller Panel provides inventory management, order processing, analytics, advertising tools, and payout management. Sellers are responsible for maintaining accurate data, securing Seller Panel credentials, and promptly updating business information when changes occur.</p><p>API access for inventory sync and order management is available to eligible sellers. API credentials must not be shared with unauthorised third parties. Sellers using integrations remain responsible for data accuracy and order fulfilment.</p>', 'policies/sections/seller-policy-seller-panel-tools-and-responsibilities-section-800x400.svg', 'highlight', 7, 1, '2026-06-19 06:51:58', '2026-06-19 06:51:58'),
(760, 8, 'Account Suspension and Termination', '<p>Gletra may suspend seller accounts for policy violations, quality failures, buyer complaint patterns, or regulatory requirements. Suspended sellers cannot list new products or receive new orders. Pending settlements are processed subject to hold periods for open disputes and chargebacks.</p><p>Terminated sellers forfeit access to the Seller Panel. Outstanding payouts for completed orders without disputes are released after the standard hold period. Gletra may retain funds to cover buyer refunds, chargebacks, and platform fee obligations.</p>', 'policies/sections/seller-policy-account-suspension-and-termination-section-800x400.svg', 'legal_update', 8, 1, '2026-06-19 06:51:58', '2026-06-19 06:51:58'),
(761, 8, 'Seller Support and Resources', '<p>Seller support is available at seller-support@gletra.com and through the Seller Panel help centre. Gletra provides onboarding guides, catalogue quality checklists, fulfilment best practices, and periodic webinars on marketplace growth strategies. Premium sellers receive dedicated account manager support.</p>', 'policies/sections/seller-policy-seller-support-and-resources-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:51:58', '2026-06-19 06:51:58'),
(762, 9, 'Grant of Licence and Platform Access', '<p>Subject to this Agreement and Vendor\'s continued compliance with all platform policies, Gletra grants Vendor a non-exclusive, non-transferable, revocable licence to access the Seller Panel, list products in approved categories, and sell to buyers on the Platform within India.</p><p>This licence does not grant Vendor any ownership interest in Gletra intellectual property, buyer data beyond order fulfilment necessities, or exclusivity in any product category or geographic region. Gletra may onboard competing vendors without restriction.</p>', 'policies/sections/vendor-agreement-grant-of-licence-and-platform-access-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(763, 9, 'Vendor Representations and Warranties', '<p>Vendor represents and warrants the following throughout the term of this Agreement.</p><ol class=\"mb-3\"><li>Vendor has legal authority to enter this Agreement and sell listed products</li><li>All products are genuine, legally sourced, and free from liens or encumbrances</li><li>Product listings are accurate, complete, and not misleading in any material respect</li><li>Vendor holds all necessary licences, brand authorisations, and regulatory approvals for listed products</li><li>Vendor complies with applicable tax laws including GST collection and remittance obligations</li><li>Vendor\'s KYC information and business registration documents are authentic and current</li></ol><p>Breach of any representation constitutes material breach entitling Gletra to immediate suspension and termination.</p>', 'policies/sections/vendor-agreement-vendor-representations-and-warranties-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(764, 9, 'Product Listings and Content Licence', '<p>Vendor retains ownership of product images, descriptions, and other listing content uploaded to the Platform. Vendor grants Gletra a worldwide, royalty-free, sublicensable licence to use, display, reproduce, and distribute listing content for the purpose of operating and promoting the marketplace.</p><p>Gletra may use Vendor product data for search indexing, recommendation algorithms, and marketing campaigns featuring Vendor products. Vendor may not use Gletra trademarks, buyer contact information, or platform data for off-platform marketing without written consent.</p>', 'policies/sections/vendor-agreement-product-listings-and-content-licence-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(765, 9, 'Orders, Pricing, and Fulfilment', '<p>When a buyer purchases Vendor\'s product, a contract of sale is formed directly between Vendor and buyer. Gletra acts as Vendor\'s limited payment collection agent. Vendor is responsible for order acceptance, packing, shipping, delivery, returns, and warranty obligations.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Obligation</th><th>Vendor Responsibility</th><th>Gletra Support</th></tr></thead><tbody><tr><td>Pricing accuracy</td><td>Vendor sets and maintains prices</td><td>Price error cancellation rights</td></tr><tr><td>Inventory management</td><td>Real-time stock updates</td><td>Overselling alerts</td></tr><tr><td>Shipping</td><td>Dispatch within handling time</td><td>Logistics partner integration</td></tr><tr><td>Returns</td><td>Accept per Return Policy</td><td>Dispute mediation</td></tr><tr><td>Customer service</td><td>Respond within 24 hours</td><td>Escalation support</td></tr></tbody></table></div>', 'policies/sections/vendor-agreement-orders-pricing-and-fulfilment-section-800x400.svg', 'accordion', 4, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(766, 9, 'Fees, Commission, and Payment Terms', '<p>Gletra charges commission on each completed sale as specified in the fee schedule published in the Seller Panel. Commission rates vary by product category and may be updated with 30 days notice. Payment gateway fees, shipping charges, and optional advertising fees are additional.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Settlement Terms</h4><ul class=\"mb-3\"><li>Settlement cycle: T+7 standard, T+3 for premium eligible vendors</li><li>Settlement amount equals sale price minus commission, fees, refunds, and chargebacks</li><li>Gletra may withhold settlement for disputed orders, suspected fraud, or policy violations</li><li>Vendor is responsible for all applicable taxes on sales income</li><li>Gletra provides monthly tax reports and TDS certificates where applicable</li></ul>', 'policies/sections/vendor-agreement-fees-commission-and-payment-terms-section-800x400.svg', 'content', 5, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(767, 9, 'Indemnification', '<p>Vendor shall indemnify, defend, and hold harmless Gletra, its officers, directors, employees, and agents from any claims, damages, losses, liabilities, and expenses (including reasonable legal fees) arising from: (a) Vendor\'s products, listings, or conduct; (b) breach of this Agreement or applicable law; (c) intellectual property infringement claims related to Vendor products; (d) product liability claims; or (e) tax obligations related to Vendor sales.</p>', 'policies/sections/vendor-agreement-indemnification-section-800x400.svg', 'notice', 6, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(768, 9, 'Limitation of Liability', '<p>GLETRA\'S AGGREGATE LIABILITY TO VENDOR UNDER THIS AGREEMENT SHALL NOT EXCEED THE TOTAL COMMISSION RECEIVED BY GLETRA FROM VENDOR\'S SALES IN THE THREE MONTHS PRECEDING THE CLAIM. GLETRA SHALL NOT BE LIABLE FOR INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, INCLUDING LOST PROFITS, LOST SALES, OR BUSINESS INTERRUPTION.</p><p>Gletra does not guarantee any minimum sales volume, buyer traffic, or revenue for Vendor.</p>', 'policies/sections/vendor-agreement-limitation-of-liability-section-800x400.svg', 'legal_update', 7, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(769, 9, 'Term, Termination, and Effect', '<p>This Agreement begins upon Vendor acceptance and continues until terminated by either party. Vendor may terminate with 30 days written notice to seller-support@gletra.com after fulfilling all pending orders and resolving open disputes.</p><p>Gletra may terminate immediately for material breach, fraud, counterfeit sales, or legal requirement. Upon termination, Vendor\'s licence to use the Seller Panel ceases, listings are removed, and pending settlements are processed subject to hold periods. Sections on indemnification, limitation of liability, and governing law survive termination.</p>', 'policies/sections/vendor-agreement-term-termination-and-effect-section-800x400.svg', 'content', 8, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(770, 9, 'Governing Law and Dispute Resolution', '<p>This Agreement is governed by the laws of India. Disputes between Gletra and Vendor shall first be addressed through good-faith negotiation. Unresolved disputes shall be referred to arbitration in Bengaluru under the Arbitration and Conciliation Act, 1996, before a sole arbitrator appointed by mutual agreement or by the Bengaluru High Court.</p>', 'policies/sections/vendor-agreement-governing-law-and-dispute-resolution-section-800x400.svg', 'highlight', 9, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(771, 10, 'Provider Registration and Verification', '<p>Service providers register through the Gletra provider onboarding portal and must satisfy verification requirements before receiving booking assignments.</p><ul class=\"mb-3\"><li>Valid government-issued photo ID and completed KYC verification</li><li>Professional skill certification or documented experience for specialised trades</li><li>Background verification including criminal record check for in-home service access</li><li>Defined service area with accurate pin code coverage in provider profile</li><li>Portfolio photographs of prior work for carpentry, plumbing, and repair categories</li><li>Bank account verification for payout settlement</li></ul><p>Partner agencies registering multiple providers must submit agency registration documents and assume responsibility for their assigned professionals\' compliance with this policy.</p>', 'policies/sections/service-provider-policy-provider-registration-and-verification-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(772, 10, 'Service Categories and Skill Requirements', '<p>Gletra Home Services supports the following primary service categories, each with specific skill and certification expectations.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Category</th><th>Typical Services</th><th>Certification Expectations</th></tr></thead><tbody><tr><td>Electrical</td><td>Wiring, switchboard repair, fan installation, fault diagnosis</td><td>Licensed electrician preferred; minimum 2 years experience</td></tr><tr><td>Plumbing</td><td>Leak repair, pipe fitting, bathroom fixtures, drainage</td><td>Trade certification or verified experience portfolio</td></tr><tr><td>Carpentry</td><td>Furniture assembly, door repair, custom shelving, woodwork</td><td>Portfolio review; 3+ completed project references</td></tr><tr><td>Cleaning</td><td>Deep cleaning, regular housekeeping, move-in/out cleaning</td><td>Training module completion; background check mandatory</td></tr><tr><td>Appliance Repair</td><td>AC, refrigerator, washing machine, microwave repair</td><td>Brand-specific or general appliance certification preferred</td></tr></tbody></table></div>', 'policies/sections/service-provider-policy-service-categories-and-skill-requirements-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(773, 10, 'Service Delivery Standards', '<p>Providers must deliver services meeting the following minimum standards at every appointment.</p><ol class=\"mb-3\"><li>Arrive within the confirmed appointment window; notify customer via Gletra Chat if delayed beyond 15 minutes</li><li>Present Gletra provider ID badge and verify booking details before entering customer premises</li><li>Conduct upfront assessment and communicate pricing before commencing billable work</li><li>Use professional language and conduct in all customer interactions including calls and chat</li><li>Complete work to industry standards and customer satisfaction before marking job complete</li><li>Clean work area and dispose of debris appropriately after service completion</li><li>Collect customer rating and feedback through the Gletra app upon job completion</li></ol>', 'policies/sections/service-provider-policy-service-delivery-standards-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(774, 10, 'Pricing and Payment Practices', '<p>Providers set service rates within Gletra platform guidelines. Transparent pricing is mandatory—customers must receive a clear estimate before work begins and approve any additional charges for parts, materials, or scope changes.</p><ul class=\"mb-3\"><li>Diagnostic or inspection fees must be disclosed at booking or before travel</li><li>Parts and materials billed separately with customer approval documented in app</li><li>Off-platform payment requests violate Terms and result in immediate account suspension</li><li>Payment released from escrow 24 hours after job completion unless dispute filed</li><li>Tips given directly to providers are permitted but not processed through Gletra</li></ul>', 'policies/sections/service-provider-policy-pricing-and-payment-practices-section-800x400.svg', 'accordion', 4, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(775, 10, 'Safety and In-Home Conduct', '<p>Providers entering customer homes bear heightened safety and conduct responsibilities. The following rules are strictly enforced.</p><ul class=\"mb-3\"><li>Never enter a home when no adult customer or authorised representative is present</li><li>Do not bring unauthorised assistants without customer and Gletra approval</li><li>Report safety hazards discovered during service through the provider app</li><li>Zero tolerance for harassment, discrimination, theft, or substance use on the job</li><li>Use the in-app emergency button if you feel unsafe at a customer location</li><li>Do not photograph customer property except for job documentation with consent</li></ul>', 'policies/sections/service-provider-policy-safety-and-in-home-conduct-section-800x400.svg', 'notice', 5, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(776, 10, 'Insurance and Liability', '<p>Service providers are primarily responsible for work quality and any property damage or personal injury caused by negligent service delivery. Providers should maintain appropriate trade liability insurance where available.</p><p>Gletra platform insurance may provide limited coverage for verified incidents involving registered providers operating within platform guidelines. Claims must be filed within 48 hours with photographic evidence and incident report through the provider app.</p>', 'policies/sections/service-provider-policy-insurance-and-liability-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(777, 10, 'Performance Metrics and Ratings', '<p>Provider performance is continuously monitored through customer ratings, completion rates, cancellation rates, and dispute outcomes.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Metric</th><th>Minimum Standard</th><th>Action if Below Standard</th></tr></thead><tbody><tr><td>Customer rating</td><td>4.0 stars average</td><td>Improvement plan below 3.8; delisting below 3.5</td></tr><tr><td>On-time arrival</td><td>90% or higher</td><td>Scheduling review below 85%</td></tr><tr><td>Cancellation rate</td><td>Below 5% monthly</td><td>Booking restriction above 8%</td></tr><tr><td>Dispute rate</td><td>Below 3%</td><td>Quality audit above 5%</td></tr><tr><td>Response time (chat)</td><td>Within 2 hours</td><td>Warning after repeated delays</td></tr></tbody></table></div>', 'policies/sections/service-provider-policy-performance-metrics-and-ratings-section-800x400.svg', 'highlight', 7, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(778, 10, 'Communication Requirements', '<p>All customer communication regarding bookings, pricing, rescheduling, and service issues must occur through Gletra Chat or platform-initiated voice and video calls. This ensures dispute resolution capability and customer safety monitoring.</p>', 'policies/sections/service-provider-policy-communication-requirements-section-800x400.svg', 'content', 8, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(779, 10, 'Account Suspension and Delisting', '<p>Gletra may immediately suspend provider accounts for safety violations, theft allegations, assault complaints, fraudulent credentials, or off-platform payment solicitation. Suspended providers forfeit pending booking assignments. Confirmed violations result in permanent delisting and referral to law enforcement where appropriate.</p>', 'policies/sections/service-provider-policy-account-suspension-and-delisting-section-800x400.svg', 'legal_update', 9, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(780, 10, 'Provider Support and Training', '<p>Gletra provides onboarding training modules, safety guidelines, customer service best practices, and periodic skill workshops through the provider portal. Contact provider-support@gletra.com for operational assistance, payout inquiries, and booking disputes.</p>', 'policies/sections/service-provider-policy-provider-support-and-training-section-800x400.svg', 'notice', 10, 1, '2026-06-19 06:51:59', '2026-06-19 06:51:59'),
(781, 11, 'Booking Process and Confirmation', '<p>Bookings are made through the Gletra app or website by selecting a service category, describing the issue or requirement, choosing an available time slot, and confirming payment or pay-after-service preference.</p><ol class=\"mb-3\"><li>Select service category: electrical, plumbing, carpentry, cleaning, or appliance repair</li><li>Describe the issue with photographs where helpful for accurate provider matching</li><li>Choose date and time from available slots in your pin code service area</li><li>Review estimated pricing including diagnostic fees and platform service charges</li><li>Confirm booking with prepaid payment or pay-after-service authorisation</li><li>Receive booking confirmation with assigned provider details 2 hours before appointment</li></ol>', 'policies/sections/home-service-terms-booking-process-and-confirmation-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:00', '2026-06-19 06:52:00'),
(782, 11, 'Provider Assignment and Matching', '<p>Gletra assigns providers based on availability, proximity, skill match, customer ratings, and prior booking history where applicable. You may view provider profile including ratings, completed jobs, and verified certifications before appointment.</p><p>If the assigned provider cancels, Gletra automatically attempts reassignment to an alternative qualified provider. You receive notification of any provider change and may cancel without penalty if the replacement is unacceptable.</p>', 'policies/sections/home-service-terms-provider-assignment-and-matching-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:00', '2026-06-19 06:52:00'),
(783, 11, 'Pricing, Estimates, and Additional Charges', '<p>Booking estimates displayed at checkout cover standard service scope for the selected category. Complex jobs requiring inspection may incur a diagnostic fee disclosed before provider dispatch.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Charge Type</th><th>When Applied</th><th>Customer Approval Required</th></tr></thead><tbody><tr><td>Booking estimate</td><td>At checkout</td><td>Confirmed at booking</td></tr><tr><td>Diagnostic fee</td><td>Before on-site inspection</td><td>Disclosed at booking</td></tr><tr><td>Parts and materials</td><td>During service</td><td>Yes, via app or chat</td></tr><tr><td>Scope expansion</td><td>When issue exceeds estimate</td><td>Yes, before additional work</td></tr><tr><td>Emergency surcharge</td><td>Same-day urgent bookings</td><td>Disclosed at booking</td></tr></tbody></table></div>', 'policies/sections/home-service-terms-pricing-estimates-and-additional-charges-section-800x400.svg', 'accordion', 3, 1, '2026-06-19 06:52:00', '2026-06-19 06:52:00'),
(784, 11, 'Customer Responsibilities', '<p>Customers must fulfil the following responsibilities to ensure safe and successful service delivery.</p><ul class=\"mb-3\"><li>Provide accurate service address with flat number, landmark, and access instructions</li><li>Ensure an adult aged 18 or above is present for the entire service appointment</li><li>Secure pets and clear work area of valuables and obstructions before provider arrival</li><li>Provide accurate issue description and disclose known hazards such as asbestos or live wiring</li><li>Grant safe access to required areas including utility rooms, rooftops, and crawl spaces where necessary</li><li>Complete payment upon service completion or honour prepaid booking terms</li></ul>', 'policies/sections/home-service-terms-customer-responsibilities-section-800x400.svg', 'notice', 4, 1, '2026-06-19 06:52:00', '2026-06-19 06:52:00'),
(785, 11, 'Service Completion and Sign-Off', '<p>Upon completing work, the provider requests service completion confirmation through the Gletra app. Customers should verify work quality before confirming completion. Once marked complete, the 24-hour dispute window begins and payment is released to the provider unless a dispute is filed.</p><p>For multi-day projects, milestone completion confirmations may be required at each stage. Partial payments for milestones are released upon customer approval of each completed stage.</p>', 'policies/sections/home-service-terms-service-completion-and-sign-off-section-800x400.svg', 'content', 5, 1, '2026-06-19 06:52:00', '2026-06-19 06:52:00'),
(786, 11, 'Rescheduling and Cancellation', '<p>Rescheduling and cancellation rules are governed by our Cancellation Policy. One free reschedule is available when requested at least 12 hours before the appointment. Cancellation fees apply within 24 hours of the scheduled appointment time.</p>', 'policies/sections/home-service-terms-rescheduling-and-cancellation-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:52:01', '2026-06-19 06:52:01'),
(787, 11, 'Warranty and Rework', '<p>Gletra Home Services provides a 7-day workmanship warranty on standard repairs and installations. If the same issue recurs within 7 days due to provider workmanship, the provider must return and remedy at no additional labour charge. Parts warranty follows manufacturer terms where new parts were installed.</p><p>Warranty claims must be filed through My Bookings within the warranty period with description and photographs of the recurring issue.</p>', 'policies/sections/home-service-terms-warranty-and-rework-section-800x400.svg', 'highlight', 7, 1, '2026-06-19 06:52:01', '2026-06-19 06:52:01'),
(788, 11, 'Safety and Property Protection', '<p>Customers should verify provider identity through the Gletra app before granting home access. Report safety concerns immediately using the in-app emergency button. Gletra platform insurance may cover verified property damage caused by provider negligence—file claims within 48 hours with photographic evidence.</p>', 'policies/sections/home-service-terms-safety-and-property-protection-section-800x400.svg', 'notice', 8, 1, '2026-06-19 06:52:01', '2026-06-19 06:52:01'),
(789, 11, 'Recurring and Subscription Services', '<p>Weekly or monthly cleaning subscriptions and maintenance packages renew automatically unless cancelled before the next billing cycle. Subscription terms including frequency, pricing, and cancellation notice are displayed at subscription signup.</p>', 'policies/sections/home-service-terms-recurring-and-subscription-services-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:52:01', '2026-06-19 06:52:01'),
(790, 11, 'Limitation of Service Scope', '<p>Gletra Home Services does not cover industrial equipment repair, structural building modifications requiring municipal permits unless provider holds valid licence, hazardous material remediation, or medical device servicing. Such requests may be declined at booking or referred to specialised licensed contractors outside the platform.</p>', 'policies/sections/home-service-terms-limitation-of-service-scope-section-800x400.svg', 'legal_update', 10, 1, '2026-06-19 06:52:01', '2026-06-19 06:52:01'),
(791, 12, 'Permitted Uses', '<p>Voice and video calls on Gletra may be used for the following legitimate purposes related to platform transactions.</p><ul class=\"mb-3\"><li>Pre-sale product inquiries including specifications, compatibility, and availability</li><li>Order coordination such as delivery instructions, packaging requests, and dispatch timing</li><li>Home service scope discussion including issue assessment, access instructions, and pricing estimates</li><li>Post-delivery or post-service follow-up regarding product function or workmanship questions</li><li>Dispute resolution discussions mediated by Gletra support with all parties present</li><li>Seller and provider customer service for active orders and bookings</li></ul>', 'policies/sections/call-video-policy-permitted-uses-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:02', '2026-06-19 06:52:02'),
(792, 12, 'Prohibited Uses', '<p>The following activities during Gletra calls are strictly prohibited and may result in immediate account action.</p><ul class=\"mb-3\"><li>Harassment, threats, hate speech, sexual content, or discriminatory language</li><li>Unsolicited marketing, spam calls, or telemarketing unrelated to active transactions</li><li>Soliciting off-platform payments, bank transfers, or deals circumventing Gletra fees</li><li>Recording calls without the knowledge and consent of all participants where required by law</li><li>Sharing OTPs, passwords, full payment card numbers, or KYC document images during calls</li><li>Impersonating Gletra staff, other users, or law enforcement officials</li><li>Using calls for illegal activity or to coordinate prohibited item transactions</li></ul>', 'policies/sections/call-video-policy-prohibited-uses-section-800x400.svg', 'notice', 2, 1, '2026-06-19 06:52:02', '2026-06-19 06:52:02'),
(793, 12, 'Call Privacy and Data Handling', '<p>Gletra processes call-related data in accordance with our Privacy Policy. Metadata is retained for 12 months. Reported call abuse may trigger review of associated chat context and metadata by authorised trust and safety personnel under strict access controls.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">What Gletra Logs</h4><ul class=\"mb-3\"><li>Call initiation time, duration, and end time</li><li>Participant user IDs and associated order or booking reference</li><li>Call quality metrics and connection status indicators</li><li>Report flags and user-submitted abuse complaints</li></ul><p>Gletra does not sell call metadata to third parties. Law enforcement requests are handled per our legal process guidelines.</p>', 'policies/sections/call-video-policy-call-privacy-and-data-handling-section-800x400.svg', 'highlight', 3, 1, '2026-06-19 06:52:02', '2026-06-19 06:52:02'),
(794, 12, 'Recording Policy', '<p>Call recording is disabled by default on Gletra. Where a recording feature is available for specific use cases such as dispute documentation, all participants must be notified and provide consent before recording begins. Secret recording violates this policy and applicable wiretapping laws.</p><p>Users who record calls without consent may face account termination and Gletra may cooperate with legal authorities. Customers and providers in two-party consent jurisdictions must verbally confirm recording consent at call start.</p>', 'policies/sections/call-video-policy-recording-policy-section-800x400.svg', 'accordion', 4, 1, '2026-06-19 06:52:02', '2026-06-19 06:52:02'),
(795, 12, 'Technical Requirements and Limitations', '<p>Voice and video calls require a stable internet connection on supported devices and browser versions listed in Gletra Help Centre. Gletra is not liable for call quality degradation caused by user network conditions, device limitations, or third-party ISP issues.</p><ul class=\"mb-3\"><li>Minimum recommended bandwidth: 1 Mbps for voice, 3 Mbps for video</li><li>Supported on Gletra mobile app iOS 14+ and Android 10+</li><li>Web calling supported on Chrome, Firefox, Safari, and Edge latest versions</li><li>Calls may disconnect when app is backgrounded on some devices; reconnect through chat thread</li></ul>', 'policies/sections/call-video-policy-technical-requirements-and-limitations-section-800x400.svg', 'content', 5, 1, '2026-06-19 06:52:02', '2026-06-19 06:52:02'),
(796, 12, 'Safety Features and Reporting', '<p>Gletra calls include safety features designed to protect users during real-time communication.</p><ol class=\"mb-3\"><li>In-call report button for immediate flagging of abusive behaviour</li><li>Automatic call termination option if you feel unsafe</li><li>Block user feature preventing future calls and messages from reported party</li><li>Post-call rating and feedback for service quality and conduct assessment</li><li>Emergency escalation to Gletra trust and safety team for severe reports</li></ol>', 'policies/sections/call-video-policy-safety-features-and-reporting-section-800x400.svg', 'notice', 6, 1, '2026-06-19 06:52:02', '2026-06-19 06:52:02'),
(797, 12, 'Seller and Provider Call Obligations', '<p>Sellers and service providers who initiate or accept calls must maintain professional conduct, respond during reasonable hours unless emergency service context applies, and never use calls to pressure customers into off-platform transactions. Business callers should identify themselves and the associated order or booking at call start.</p>', 'policies/sections/call-video-policy-seller-and-provider-call-obligations-section-800x400.svg', 'content', 7, 1, '2026-06-19 06:52:02', '2026-06-19 06:52:02'),
(798, 12, 'Call Feature Restrictions', '<p>Gletra may restrict or disable calling privileges for users with repeated abuse reports, off-platform payment solicitation violations, or excessive call volume indicative of spam behaviour. Restricted users retain Gletra Chat access for text-based transaction communication.</p>', 'policies/sections/call-video-policy-call-feature-restrictions-section-800x400.svg', 'legal_update', 8, 1, '2026-06-19 06:52:02', '2026-06-19 06:52:02'),
(799, 12, 'Integration with Gletra Chat', '<p>Calls initiated from Gletra Chat threads are linked to the conversation history for dispute resolution context. Call availability may be limited to users with active orders or bookings to reduce unsolicited contact. Users may disable incoming calls in privacy settings while retaining the ability to initiate calls for their own transactions.</p>', 'policies/sections/call-video-policy-integration-with-gletra-chat-section-800x400.svg', 'highlight', 9, 1, '2026-06-19 06:52:03', '2026-06-19 06:52:03'),
(800, 13, 'Respect and Dignity', '<p>Treat every Gletra user with respect regardless of background, identity, location, or transaction role. Our community includes diverse buyers, sellers across India, and home service professionals serving customers in their personal spaces.</p><ul class=\"mb-3\"><li>No hate speech, slurs, or content targeting protected characteristics</li><li>No personal attacks, bullying, or deliberate humiliation in chat, calls, or reviews</li><li>No threats of violence, harm, or intimidation against users or their property</li><li>No sexual harassment or unwanted romantic advances in any communication channel</li><li>Use professional language especially during in-home service interactions</li></ul>', 'policies/sections/community-guidelines-respect-and-dignity-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:03', '2026-06-19 06:52:03'),
(801, 13, 'Honest Reviews and Ratings', '<p>Reviews and ratings are essential to marketplace trust. They must reflect genuine, first-hand experiences with products or services purchased or booked through Gletra.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Review Integrity Rules</h4><ol class=\"mb-3\"><li>Review only products you purchased or services you received through Gletra</li><li>Base ratings on actual experience with product quality, delivery, or service performance</li><li>Do not offer or accept payment, discounts, or gifts in exchange for reviews</li><li>Do not post reviews on competitor products to manipulate ratings</li><li>Do not include personal information about sellers or providers in public reviews</li><li>Report suspicious review patterns to support@gletra.com</li></ol><p>Gletra removes fake reviews, incentivised ratings, and review manipulation content. Users engaged in review fraud face permanent account termination.</p>', 'policies/sections/community-guidelines-honest-reviews-and-ratings-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:03', '2026-06-19 06:52:03');
INSERT INTO `policy_sections` (`id`, `policy_id`, `title`, `content`, `image`, `section_type`, `sort_order`, `status`, `created_at`, `updated_at`) VALUES
(802, 13, 'Safe Communication Practices', '<p>Gletra Chat and calling features enable convenient communication but require responsible use to protect personal safety and data security.</p><ul class=\"mb-3\"><li>Do not share OTPs, passwords, Aadhaar numbers, or full payment card details in chat or calls</li><li>Be cautious of phishing links—Gletra never asks for credentials via chat</li><li>Report users who pressure you to communicate or pay outside the platform</li><li>Block and report users who send unsolicited offensive content</li><li>For home services, keep communication on Gletra until service is complete for dispute protection</li></ul>', 'policies/sections/community-guidelines-safe-communication-practices-section-800x400.svg', 'notice', 3, 1, '2026-06-19 06:52:03', '2026-06-19 06:52:03'),
(803, 13, 'Marketplace Integrity', '<p>Honest commerce benefits everyone in the Gletra community. Users must not engage in activities that undermine marketplace fairness or buyer trust.</p><ul class=\"mb-3\"><li>Sellers must represent products accurately without misleading images or descriptions</li><li>Do not coordinate with others to inflate ratings or suppress negative reviews</li><li>Do not exploit platform bugs, glitches, or promotional loopholes for unfair advantage</li><li>Do not list prohibited items or misrepresent product category to evade restrictions</li><li>Service providers must accurately represent skills, certifications, and service scope</li></ul>', 'policies/sections/community-guidelines-marketplace-integrity-section-800x400.svg', 'content', 4, 1, '2026-06-19 06:52:03', '2026-06-19 06:52:03'),
(804, 13, 'Content Standards', '<p>User-generated content including listing images, profile photos, chat messages, and review text must comply with community content standards.</p><ul class=\"mb-3\"><li>No obscene, pornographic, or gratuitously violent content</li><li>No content promoting illegal activity or regulated substances</li><li>No spam, repetitive unsolicited messages, or bulk promotional content</li><li>No content infringing third-party intellectual property rights</li><li>Product images must accurately represent the item for sale without deceptive editing</li></ul>', 'policies/sections/community-guidelines-content-standards-section-800x400.svg', 'accordion', 5, 1, '2026-06-19 06:52:03', '2026-06-19 06:52:03'),
(805, 13, 'Service Provider Community Standards', '<p>Service providers operate in customers\' homes and represent Gletra during every appointment. Elevated conduct standards apply.</p><ol class=\"mb-3\"><li>Arrive professionally dressed with visible Gletra provider identification</li><li>Respect customer property, privacy, and household rules</li><li>Do not solicit personal relationships or off-platform business from customers</li><li>Do not discuss other customers or share customer information with third parties</li><li>Report unsafe conditions or customer misconduct through proper channels</li></ol>', 'policies/sections/community-guidelines-service-provider-community-standards-section-800x400.svg', 'highlight', 6, 1, '2026-06-19 06:52:03', '2026-06-19 06:52:03'),
(806, 13, 'Reporting and Enforcement', '<p>Gletra employs a combination of automated detection and human review to enforce community guidelines. Enforcement actions are proportionate to violation severity and user history.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Violation Severity</th><th>Typical Enforcement Action</th></tr></thead><tbody><tr><td>Minor first offence (rude language)</td><td>Warning and content removal</td></tr><tr><td>Moderate (fake review, spam)</td><td>Feature restriction for 7–30 days</td></tr><tr><td>Serious (harassment, off-platform payment solicitation)</td><td>Account suspension 30–90 days</td></tr><tr><td>Severe (threats, fraud, hate speech)</td><td>Permanent termination; legal referral</td></tr></tbody></table></div>', 'policies/sections/community-guidelines-reporting-and-enforcement-section-800x400.svg', 'content', 7, 1, '2026-06-19 06:52:03', '2026-06-19 06:52:03'),
(807, 13, 'Appeals Process', '<p>Users who believe enforcement action was taken in error may appeal within 14 days by emailing appeals@gletra.com with their account details, enforcement notification reference, and explanation. Appeals are reviewed by a separate trust and safety specialist within 7 business days. Appeal decisions are final.</p>', 'policies/sections/community-guidelines-appeals-process-section-800x400.svg', 'legal_update', 8, 1, '2026-06-19 06:52:03', '2026-06-19 06:52:03'),
(808, 13, 'Positive Community Participation', '<p>We encourage constructive feedback, helpful responses to buyer questions, fair dispute engagement, and recognition of excellent sellers and providers through honest positive reviews. Community members who consistently demonstrate outstanding conduct may receive Gletra Community badges and early access to platform features.</p>', 'policies/sections/community-guidelines-positive-community-participation-section-800x400.svg', 'notice', 9, 1, '2026-06-19 06:52:04', '2026-06-19 06:52:04'),
(809, 14, 'Account Integrity', '<p>Each user must maintain account integrity in accordance with the following requirements.</p><ol class=\"mb-3\"><li>Register one personal account unless operating an authorised business account through the Seller Panel</li><li>Provide accurate registration information and keep KYC documents current</li><li>Maintain sole control of login credentials—do not share passwords or OTP access</li><li>Do not create accounts using false identity, stolen documents, or another person\'s information</li><li>Do not operate multiple accounts to evade suspensions, abuse promotions, or manipulate reviews</li><li>Notify Gletra immediately if you suspect unauthorised account access</li></ol>', 'policies/sections/user-conduct-policy-account-integrity-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:04', '2026-06-19 06:52:04'),
(810, 14, 'Transaction Integrity', '<p>All transactions on Gletra must be conducted through platform payment systems to ensure buyer protection, seller settlement, and regulatory compliance.</p><ul class=\"mb-3\"><li>Complete all product purchases through Gletra checkout or Gletra Wallet</li><li>Pay for home service bookings through Gletra escrow—never direct cash to providers for platform bookings</li><li>Do not solicit or accept off-platform payments to evade marketplace commissions</li><li>Do not file fraudulent chargebacks for legitimately delivered orders or completed services</li><li>Do not abuse return or refund policies through wardrobing, empty box returns, or false defect claims</li><li>Do not manipulate wallet top-ups, promotional credits, or cashback programmes</li></ul>', 'policies/sections/user-conduct-policy-transaction-integrity-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:04', '2026-06-19 06:52:04'),
(811, 14, 'Communication Conduct', '<p>All communication through Gletra Chat, voice calls, video calls, reviews, and support channels must comply with professional conduct standards.</p><ul class=\"mb-3\"><li>No harassment, threats, stalking, or persistent unwanted contact</li><li>No spam, bulk unsolicited messages, or automated messaging without authorisation</li><li>No sharing of malware links, phishing content, or fraudulent schemes</li><li>No impersonation of Gletra employees, other users, or government officials</li><li>No recording of calls without required consent</li></ul>', 'policies/sections/user-conduct-policy-communication-conduct-section-800x400.svg', 'notice', 3, 1, '2026-06-19 06:52:04', '2026-06-19 06:52:04'),
(812, 14, 'Seller and Provider Conduct Requirements', '<p>Users operating as sellers or service providers bear additional conduct obligations beyond those applicable to buyers.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Requirement</th><th>Buyers</th><th>Sellers</th><th>Service Providers</th></tr></thead><tbody><tr><td>KYC completion</td><td>For wallet withdrawal</td><td>Mandatory</td><td>Mandatory</td></tr><tr><td>Response time standard</td><td>N/A</td><td>24 hours chat</td><td>2 hours chat</td></tr><tr><td>Off-platform payment ban</td><td>Report if solicited</td><td>Strictly prohibited</td><td>Strictly prohibited</td></tr><tr><td>Performance metrics</td><td>N/A</td><td>Dispatch and return rates</td><td>Rating and arrival rates</td></tr></tbody></table></div>', 'policies/sections/user-conduct-policy-seller-and-provider-conduct-requirements-section-800x400.svg', 'accordion', 4, 1, '2026-06-19 06:52:04', '2026-06-19 06:52:04'),
(813, 14, 'Prohibited Technical Conduct', '<p>The following technical activities violate platform security and are prohibited under all circumstances.</p><ul class=\"mb-3\"><li>Scraping, crawling, or harvesting user data or listing content without written authorisation</li><li>Reverse engineering Gletra applications, APIs, or security mechanisms</li><li>Deploying bots, scripts, or automation tools without Gletra API authorisation</li><li>Attempting unauthorised access to other accounts, Seller Panel data, or backend systems</li><li>Interfering with platform operations through DDoS attacks or resource exhaustion</li><li>Circumventing geographic restrictions, account bans, or feature limitations</li></ul>', 'policies/sections/user-conduct-policy-prohibited-technical-conduct-section-800x400.svg', 'content', 5, 1, '2026-06-19 06:52:05', '2026-06-19 06:52:05'),
(814, 14, 'Fraud and Deceptive Practices', '<p>Gletra has zero tolerance for fraud. The following activities result in immediate account termination and referral to law enforcement and financial regulators where applicable.</p><ul class=\"mb-3\"><li>Identity fraud including fake KYC submissions and synthetic identity creation</li><li>Payment fraud including stolen card use, friendly fraud chargebacks, and wallet laundering</li><li>Counterfeit product sales and intellectual property infringement at scale</li><li>Triangulation fraud and drop-shipping scams using stolen payment credentials</li><li>Collusion between buyers and sellers to extract platform credits or manipulate metrics</li></ul>', 'policies/sections/user-conduct-policy-fraud-and-deceptive-practices-section-800x400.svg', 'notice', 6, 1, '2026-06-19 06:52:05', '2026-06-19 06:52:05'),
(815, 14, 'Enforcement Framework', '<p>Gletra applies progressive enforcement for most violations, escalating based on severity and recurrence.</p><ol class=\"mb-3\"><li><strong>Warning:</strong> Written notice for first minor violations with no immediate restriction</li><li><strong>Feature Restriction:</strong> Temporary loss of chat, calling, wallet, or selling privileges</li><li><strong>Temporary Suspension:</strong> Account access blocked for 7 to 90 days pending review</li><li><strong>Permanent Termination:</strong> Irreversible account closure for severe or repeated violations</li><li><strong>Legal Referral:</strong> Evidence preserved and shared with authorities for criminal conduct</li></ol><p>Severe violations including violence threats, child safety issues, and large-scale fraud bypass progressive enforcement and result in immediate permanent termination.</p>', 'policies/sections/user-conduct-policy-enforcement-framework-section-800x400.svg', 'legal_update', 7, 1, '2026-06-19 06:52:05', '2026-06-19 06:52:05'),
(816, 14, 'Wallet and Financial Conduct', '<p>Gletra Wallet users must comply with our Wallet Policy and AML Policy. Structuring transactions to avoid KYC thresholds, using wallet for unlicensed money transfer, or exploiting refund mechanisms for cash extraction constitute financial conduct violations subject to account freeze and regulatory reporting.</p>', 'policies/sections/user-conduct-policy-wallet-and-financial-conduct-section-800x400.svg', 'highlight', 8, 1, '2026-06-19 06:52:05', '2026-06-19 06:52:05'),
(817, 14, 'Cooperation with Investigations', '<p>Users must cooperate with Gletra trust and safety investigations by responding to information requests within specified timeframes and providing truthful account of relevant events. Obstruction including deletion of evidence, false statements to investigators, or creation of new accounts during suspension aggravates enforcement outcomes.</p>', 'policies/sections/user-conduct-policy-cooperation-with-investigations-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:52:05', '2026-06-19 06:52:05'),
(818, 14, 'Reporting Violations', '<p>Report conduct violations through in-app report buttons, support@gletra.com, or legal@gletra.com for severe matters. Include relevant order IDs, chat screenshots, and user profile links. Gletra protects good-faith reporters from retaliation per our Community Guidelines.</p>', 'policies/sections/user-conduct-policy-reporting-violations-section-800x400.svg', 'notice', 10, 1, '2026-06-19 06:52:05', '2026-06-19 06:52:05'),
(819, 15, 'Security Governance and Organisation', '<p>Gletra maintains a dedicated information security function reporting to executive leadership. Our security governance framework includes documented policies, risk assessments, incident response procedures, and annual third-party security audits.</p><ul class=\"mb-3\"><li>Chief Information Security Officer oversight of security programme</li><li>Quarterly risk assessments covering marketplace, wallet, and KYC systems</li><li>Annual ISO 27001-aligned external security audit</li><li>Mandatory security training for all employees upon hire and annually thereafter</li><li>Background verification for employees with access to production systems and KYC data</li></ul>', 'policies/sections/data-protection-policy-security-governance-and-organisation-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:06', '2026-06-19 06:52:06'),
(820, 15, 'Encryption and Data Transmission', '<p>All data transmitted between user devices and Gletra servers is protected using industry-standard encryption protocols.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Data State</th><th>Protection Method</th><th>Standard</th></tr></thead><tbody><tr><td>Data in transit</td><td>TLS 1.2+ encryption</td><td>All web, app, and API traffic</td></tr><tr><td>Sensitive data at rest</td><td>AES-256 encryption</td><td>KYC documents, payment tokens, wallet ledger</td></tr><tr><td>Database storage</td><td>Encrypted volumes</td><td>Production databases and backups</td></tr><tr><td>Chat messages</td><td>Encrypted in transit and at rest</td><td>Gletra Chat infrastructure</td></tr><tr><td>Password storage</td><td>Bcrypt hashing with salt</td><td>User authentication credentials</td></tr></tbody></table></div>', 'policies/sections/data-protection-policy-encryption-and-data-transmission-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:06', '2026-06-19 06:52:06'),
(821, 15, 'Access Controls and Authentication', '<p>Access to personal data is restricted based on the principle of least privilege. Employees and contractors access user data only when necessary for their role and only through authenticated, logged, and monitored systems.</p><ol class=\"mb-3\"><li>Multi-factor authentication required for all employee access to production systems</li><li>Role-based access control with quarterly access reviews and immediate revocation upon role change</li><li>Privileged access management with session recording for KYC and financial data access</li><li>Separate production and development environments with anonymised test data</li><li>API authentication using OAuth 2.0 and API key rotation policies for Seller Panel integrations</li></ol>', 'policies/sections/data-protection-policy-access-controls-and-authentication-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:52:06', '2026-06-19 06:52:06'),
(822, 15, 'KYC and Financial Data Protection', '<p>KYC documents and financial data receive enhanced protection commensurate with their sensitivity and regulatory requirements.</p><ul class=\"mb-3\"><li>KYC document images stored in isolated encrypted storage with restricted access</li><li>Payment card data tokenised through PCI-DSS Level 1 certified payment processors—Gletra does not store full card numbers</li><li>Gletra Wallet ledger protected by transactional integrity controls and dual-authorisation for large transfers</li><li>Seller payout and provider settlement data accessible only to authorised finance personnel</li><li>KYC data retention schedules enforced automatically with secure deletion upon expiry</li></ul>', 'policies/sections/data-protection-policy-kyc-and-financial-data-protection-section-800x400.svg', 'accordion', 4, 1, '2026-06-19 06:52:06', '2026-06-19 06:52:06'),
(823, 15, 'Chat and Call Data Security', '<p>Communication data processed through Gletra Chat and calling features is protected by dedicated security controls.</p><ul class=\"mb-3\"><li>Chat messages stored in encrypted databases with access logging</li><li>Call metadata retained separately from message content with equivalent encryption standards</li><li>Trust and safety review access requires dual authorisation and is fully audit logged</li><li>Automated content scanning for malware links and known fraud patterns in chat</li><li>Message export for legal requests processed through legal review workflow</li></ul>', 'policies/sections/data-protection-policy-chat-and-call-data-security-section-800x400.svg', 'notice', 5, 1, '2026-06-19 06:52:06', '2026-06-19 06:52:06'),
(824, 15, 'Infrastructure and Network Security', '<p>Gletra production infrastructure is hosted on cloud platforms with enterprise-grade security certifications. Network security controls include web application firewalls, DDoS protection, intrusion detection systems, and network segmentation isolating payment and KYC systems from general application traffic.</p><p>Vulnerability management includes automated dependency scanning, monthly vulnerability assessments, and annual penetration testing by independent security firms. Critical vulnerabilities are remediated within 24 hours of confirmed identification.</p>', 'policies/sections/data-protection-policy-infrastructure-and-network-security-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:52:06', '2026-06-19 06:52:06'),
(825, 15, 'Data Minimisation and Retention', '<p>Gletra collects and retains only data necessary for specified purposes. Automated retention enforcement deletes or anonymises data upon expiry of applicable retention periods defined in our Privacy Policy.</p><p>Product analytics and recommendation systems use anonymised or aggregated data where possible. Personal identifiers are removed from analytics datasets used for machine learning model training unless explicit consent applies.</p>', 'policies/sections/data-protection-policy-data-minimisation-and-retention-section-800x400.svg', 'highlight', 7, 1, '2026-06-19 06:52:06', '2026-06-19 06:52:06'),
(826, 15, 'Incident Response and Breach Notification', '<p>Gletra maintains a documented incident response plan tested annually through tabletop exercises. Upon confirmed personal data breach, we execute the following response procedures.</p><ol class=\"mb-3\"><li>Contain and assess breach scope within 4 hours of detection</li><li>Notify affected users and the Data Protection Board of India within 72 hours where required by law</li><li>Notify affected EEA/UK users and supervisory authorities per GDPR requirements where applicable</li><li>Provide guidance to affected users on protective measures such as password reset</li><li>Conduct post-incident review and implement remediation to prevent recurrence</li></ol><p>Report suspected security vulnerabilities responsibly to security@gletra.com. We acknowledge valid reports within 48 hours and maintain a responsible disclosure programme for security researchers.</p>', 'policies/sections/data-protection-policy-incident-response-and-breach-notification-section-800x400.svg', 'legal_update', 8, 1, '2026-06-19 06:52:06', '2026-06-19 06:52:06'),
(827, 15, 'Third-Party Data Processors', '<p>Gletra engages third-party processors for payment processing, cloud hosting, KYC verification, logistics, and analytics. All processors are assessed for security compliance before engagement and bound by data processing agreements requiring equivalent protection standards, breach notification obligations, and deletion upon contract termination.</p>', 'policies/sections/data-protection-policy-third-party-data-processors-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:52:06', '2026-06-19 06:52:06'),
(828, 15, 'Employee and Vendor Data Handling', '<p>All Gletra employees and contractors with data access sign confidentiality agreements and complete data protection training. Violations of data handling policies result in disciplinary action up to termination and legal referral. Vendor access to Gletra systems is time-limited, monitored, and revoked immediately upon project completion.</p>', 'policies/sections/data-protection-policy-employee-and-vendor-data-handling-section-800x400.svg', 'notice', 10, 1, '2026-06-19 06:52:06', '2026-06-19 06:52:06'),
(829, 16, 'Types of Cookies We Use', '<p>Gletra categorises cookies by purpose. The categories below describe each type and its function on our platform.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Category</th><th>Purpose</th><th>Examples</th><th>Consent Required</th></tr></thead><tbody><tr><td>Essential</td><td>Core platform operation</td><td>Session login, cart, CSRF protection, wallet security</td><td>No—strictly necessary</td></tr><tr><td>Functional</td><td>Enhanced experience</td><td>Language preference, recently viewed products, chat state</td><td>Yes in applicable jurisdictions</td></tr><tr><td>Analytics</td><td>Usage measurement</td><td>Page views, feature adoption, error tracking</td><td>Yes</td></tr><tr><td>Marketing</td><td>Personalised advertising</td><td>Retargeting, campaign attribution, social pixels</td><td>Yes</td></tr></tbody></table></div>', 'policies/sections/cookie-policy-types-of-cookies-we-use-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:06', '2026-06-19 06:52:06'),
(830, 16, 'Essential Cookies', '<p>Essential cookies are required for Gletra to function and cannot be disabled without breaking core features.</p><ul class=\"mb-3\"><li><strong>Authentication cookies:</strong> Maintain your logged-in session across pages and app restarts</li><li><strong>Security cookies:</strong> CSRF tokens, fraud detection fingerprints, and wallet transaction verification</li><li><strong>Cart cookies:</strong> Preserve shopping cart contents across sessions before checkout</li><li><strong>Load balancing cookies:</strong> Route requests to available servers for platform stability</li><li><strong>Cookie consent cookies:</strong> Record your cookie preference choices</li></ul><p>Disabling essential cookies through browser settings will prevent login, checkout, wallet operations, and Seller Panel access.</p>', 'policies/sections/cookie-policy-essential-cookies-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:07', '2026-06-19 06:52:07'),
(831, 16, 'Functional Cookies', '<p>Functional cookies enhance your Gletra experience by remembering preferences and state across sessions.</p><ul class=\"mb-3\"><li>Preferred language and currency display settings</li><li>Recently viewed products and search history for convenience</li><li>Gletra Chat window state and draft message preservation</li><li>Home service booking form progress for incomplete appointments</li><li>Seller Panel dashboard layout and filter preferences</li></ul>', 'policies/sections/cookie-policy-functional-cookies-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:52:07', '2026-06-19 06:52:07'),
(832, 16, 'Analytics Cookies', '<p>Analytics cookies help Gletra understand how users interact with the platform so we can improve performance, fix errors, and optimise user flows for marketplace shopping, service booking, and wallet top-ups.</p><ul class=\"mb-3\"><li>Google Analytics for aggregated traffic and conversion measurement (IP anonymisation enabled)</li><li>Internal analytics for feature adoption tracking across chat, calls, and Seller Panel</li><li>Error monitoring cookies capturing anonymised crash reports and performance metrics</li><li>A/B testing cookies for evaluating UI improvements with consent</li></ul><p>Analytics data is aggregated and does not include KYC documents, payment card numbers, or chat message content.</p>', 'policies/sections/cookie-policy-analytics-cookies-section-800x400.svg', 'accordion', 4, 1, '2026-06-19 06:52:07', '2026-06-19 06:52:07'),
(833, 16, 'Marketing Cookies', '<p>Marketing cookies, deployed only with your consent, enable personalised advertising and campaign measurement across Gletra and partner platforms.</p><ul class=\"mb-3\"><li>Retargeting cookies showing Gletra product ads on third-party websites</li><li>Social media pixel cookies attributing conversions to advertising campaigns</li><li>Affiliate tracking cookies for partner referral programmes</li><li>Email campaign tracking for measuring open and click rates on marketing emails</li></ul><p>You may withdraw marketing cookie consent at any time through Cookie Preferences without affecting essential platform functionality.</p>', 'policies/sections/cookie-policy-marketing-cookies-section-800x400.svg', 'notice', 5, 1, '2026-06-19 06:52:07', '2026-06-19 06:52:07'),
(834, 16, 'Mobile Application Technologies', '<p>The Gletra mobile application uses technologies equivalent to cookies including local storage, device identifiers, and SDK analytics. Push notification tokens are stored to deliver order updates, chat messages, service appointment reminders, and wallet transaction alerts.</p><p>Manage app tracking preferences through your device settings (iOS App Tracking Transparency or Android advertising ID controls) and Gletra app notification settings.</p>', 'policies/sections/cookie-policy-mobile-application-technologies-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:52:07', '2026-06-19 06:52:07'),
(835, 16, 'Third-Party Cookies', '<p>Third-party cookies may be set by integrated services operating on Gletra pages.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Third Party</th><th>Purpose</th><th>Privacy Policy</th></tr></thead><tbody><tr><td>Payment processors</td><td>Secure checkout and 3D Secure authentication</td><td>Linked at checkout</td></tr><tr><td>Google Analytics</td><td>Aggregated usage analytics</td><td>policies.google.com/privacy</td></tr><tr><td>Logistics partners</td><td>Delivery tracking widget functionality</td><td>Partner-specific policies</td></tr><tr><td>KYC verification provider</td><td>Identity verification session management</td><td>Available during KYC flow</td></tr></tbody></table></div>', 'policies/sections/cookie-policy-third-party-cookies-section-800x400.svg', 'highlight', 7, 1, '2026-06-19 06:52:07', '2026-06-19 06:52:07'),
(836, 16, 'Managing Your Cookie Preferences', '<p>You have several options for managing cookies and tracking technologies on Gletra.</p><ol class=\"mb-3\"><li>Use the Cookie Preferences panel linked in the website footer or Account Settings</li><li>Configure browser settings to block or delete cookies—note essential cookie impact</li><li>Enable \"Do Not Track\" browser signals—Gletra honours DNT for non-essential cookies where supported</li><li>Opt out of Google Analytics via the Google Analytics Opt-out Browser Add-on</li><li>Manage iOS and Android device advertising identifiers in device privacy settings</li></ol>', 'policies/sections/cookie-policy-managing-your-cookie-preferences-section-800x400.svg', 'content', 8, 1, '2026-06-19 06:52:07', '2026-06-19 06:52:07'),
(837, 16, 'Cookie Retention Periods', '<p>Cookie lifetimes vary by category. Session cookies expire when you close your browser. Persistent cookies remain for defined periods: functional cookies up to 12 months, analytics cookies up to 24 months, and marketing cookies up to 90 days unless renewed by continued consent. You may delete all cookies immediately through browser settings or our Cookie Preferences reset option.</p>', 'policies/sections/cookie-policy-cookie-retention-periods-section-800x400.svg', 'legal_update', 9, 1, '2026-06-19 06:52:07', '2026-06-19 06:52:07'),
(838, 16, 'Updates to This Cookie Policy', '<p>We may update this Cookie Policy when we introduce new cookies, change third-party integrations, or modify consent requirements. Material changes will be communicated through the Cookie Preferences panel and a website banner. The effective date at the top of this page indicates the most recent revision. Contact privacy@gletra.com with cookie-related questions.</p>', 'policies/sections/cookie-policy-updates-to-this-cookie-policy-section-800x400.svg', 'notice', 10, 1, '2026-06-19 06:52:07', '2026-06-19 06:52:07'),
(839, 17, 'Scope of This Policy', '<p>This Copyright Policy applies to all content accessible through Gletra, including but not limited to:</p><ul class=\"mb-3\"><li>Product listing titles, descriptions, images, and videos uploaded by marketplace sellers</li><li>Service provider profile photos, certification documents, and portfolio galleries on Gletra Home Services</li><li>Chat messages, file attachments, and shared media exchanged via Gletra Chat</li><li>User reviews, Q&amp;A responses, and community forum contributions</li><li>Seller storefront banners, promotional creatives, and marketing copy</li><li>Call-related shared screens or files transmitted during Gletra voice and video sessions where stored</li></ul><p>Gletra does not claim ownership of user-uploaded content but requires users to warrant that they hold necessary rights or licenses before publication.</p>', 'policies/sections/copyright-policy-scope-of-this-policy-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:08', '2026-06-19 06:52:08'),
(840, 17, 'Copyright Ownership and User Responsibilities', '<h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Seller and Provider Obligations</h4><p>Sellers and home service providers must upload only original content or content for which they hold a valid license, assignment, or permission from the copyright owner.</p><ul class=\"mb-3\"><li>Product photographs must be original or licensed stock imagery with proof retained on request</li><li>Brand logos and trademarks may only be used with authorization from the rights holder</li><li>Copied descriptions from manufacturer sites require explicit permission or fall within fair use</li><li>Chat attachments shared with buyers must not contain pirated software, ebooks, or media</li></ul><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Buyer Responsibilities</h4><p>Buyers who upload review photos, videos, or other media grant Gletra a license to display such content but must not upload copyrighted material they do not own.</p>', 'policies/sections/copyright-policy-copyright-ownership-and-user-responsibilities-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:08', '2026-06-19 06:52:08'),
(841, 17, 'Reporting Copyright Infringement', '<p>Copyright owners or their authorized agents may submit an infringement notice to Gletra\'s designated Copyright Agent. Notices must include all of the following elements to be processed:</p><ol class=\"mb-3\"><li>Physical or electronic signature of the copyright owner or authorized representative</li><li>Identification of the copyrighted work claimed to have been infringed, with registration details if applicable</li><li>Identification of the infringing material on Gletra, including specific URLs, listing IDs, or chat thread references</li><li>Contact information: name, address, telephone number, and email address of the complainant</li><li>A statement of good-faith belief that the disputed use is not authorized by the copyright owner, its agent, or the law</li><li>A statement, under penalty of perjury, that the information in the notice is accurate and that the complainant is authorized to act on behalf of the copyright owner</li></ol><p>Submit notices to: <strong>copyright@gletra.com</strong> with subject line \"Copyright Infringement Notice — [Listing/Content ID]\".</p>', 'policies/sections/copyright-policy-reporting-copyright-infringement-section-800x400.svg', 'notice', 3, 1, '2026-06-19 06:52:08', '2026-06-19 06:52:08'),
(842, 17, 'Notice Processing Timeline', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Stage</th><th>Timeline</th><th>Action</th></tr></thead><tbody><tr><td>Notice receipt</td><td>Within 24 hours</td><td>Acknowledgment email sent to complainant</td></tr><tr><td>Initial review</td><td>1–3 business days</td><td>Validity assessment and content identification</td></tr><tr><td>Content action</td><td>Within 5 business days</td><td>Removal or disablement of infringing material</td></tr><tr><td>User notification</td><td>Concurrent with removal</td><td>Affected seller/provider notified with reason and appeal path</td></tr><tr><td>Repeat infringer review</td><td>Ongoing</td><td>Account flagged or terminated per repeat infringer policy</td></tr></tbody></table></div>', 'policies/sections/copyright-policy-notice-processing-timeline-section-800x400.svg', 'content', 4, 1, '2026-06-19 06:52:08', '2026-06-19 06:52:08'),
(843, 17, 'Counter-Notification Procedure', '<p>If you believe your content was removed in error, submit a counter-notification to copyright@gletra.com containing your signature, identification of removed content, a good-faith statement, and consent to jurisdiction in Bengaluru, Karnataka, India.</p><p>Upon receipt of a valid counter-notification, Gletra will forward it to the original complainant. If the complainant does not initiate legal proceedings within 14 business days, Gletra may restore the content at its discretion.</p>', 'policies/sections/copyright-policy-counter-notification-procedure-section-800x400.svg', 'content', 5, 1, '2026-06-19 06:52:08', '2026-06-19 06:52:08'),
(844, 17, 'Repeat Infringer Policy', '<p>Users who receive three or more valid copyright strikes within a 12-month period face permanent account termination and forfeiture of pending wallet balances subject to legal holds.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Strike Level</th><th>Consequence</th><th>Appeal Window</th></tr></thead><tbody><tr><td>First valid notice</td><td>Content removed; written warning issued</td><td>7 days</td></tr><tr><td>Second valid notice</td><td>7-day listing suspension; seller panel restricted</td><td>7 days</td></tr><tr><td>Third valid notice</td><td>Permanent account termination</td><td>14 days (limited grounds)</td></tr></tbody></table></div>', 'policies/sections/copyright-policy-repeat-infringer-policy-section-800x400.svg', 'legal_update', 6, 1, '2026-06-19 06:52:08', '2026-06-19 06:52:08'),
(845, 17, 'Fair Use and Licensed Content', '<p>Gletra recognizes that certain uses of copyrighted material may qualify as fair use or fair dealing under applicable law. Fair use determinations are fact-specific, and Gletra cannot adjudicate fair use claims during the standard takedown process.</p><p>Sellers listing branded products may use manufacturer-provided images only where an authorized distributor relationship exists. Service providers may display certification badges only when issued by the certifying body.</p>', 'policies/sections/copyright-policy-fair-use-and-licensed-content-section-800x400.svg', 'content', 7, 1, '2026-06-19 06:52:08', '2026-06-19 06:52:08'),
(846, 17, 'Gletra Platform Content', '<p>All Gletra-owned content — including the Gletra logo, app interface, policy pages, help center articles, marketing materials, and proprietary algorithms — is protected by copyright and other intellectual property laws.</p><p>Third parties may not use Gletra branding in a manner that implies endorsement without written consent from legal@gletra.com.</p>', 'policies/sections/copyright-policy-gletra-platform-content-section-800x400.svg', 'highlight', 8, 1, '2026-06-19 06:52:08', '2026-06-19 06:52:08'),
(847, 17, 'Misrepresentation and Penalties', '<p>Knowingly submitting false infringement notices or counter-notifications may result in liability for damages. Gletra may report egregious abuse of the notice process to relevant authorities.</p><p>Users who file fraudulent copyright claims to harass competitors or gain commercial advantage face immediate account termination and potential legal action.</p>', 'policies/sections/copyright-policy-misrepresentation-and-penalties-section-800x400.svg', 'notice', 9, 1, '2026-06-19 06:52:08', '2026-06-19 06:52:08'),
(848, 17, 'Contact and Updates', '<p>Copyright Agent: Gletra Technologies Pvt. Ltd., Copyright Compliance Team, 42 Brigade Tech Park, Whitefield, Bengaluru, Karnataka 560066, India. Email: copyright@gletra.com.</p><p>This policy is reviewed annually. Material changes are communicated via email and in-app notification.</p>', 'policies/sections/copyright-policy-contact-and-updates-section-800x400.svg', 'content', 10, 1, '2026-06-19 06:52:08', '2026-06-19 06:52:08'),
(849, 18, 'Gletra Owned Intellectual Property', '<p>The following assets are the exclusive property of Gletra Technologies Pvt. Ltd.:</p><ul class=\"mb-3\"><li>The \"Gletra\" word mark, logo, favicon, app icons, and all brand variations</li><li>Gletra.com website design, mobile application UI/UX, and seller panel interface</li><li>Proprietary recommendation algorithms, search indexing, and fraud detection systems</li><li>Gletra Wallet architecture, payment orchestration logic, and settlement workflows</li><li>Chat and call routing infrastructure, notification systems, and API specifications</li><li>Policy documents, help center content, training materials, and marketing collateral</li></ul><p>No license to use, reproduce, modify, or create derivative works of Gletra IP is granted except as strictly necessary to access and use the platform in accordance with our Terms & Conditions.</p>', 'policies/sections/intellectual-property-policy-gletra-owned-intellectual-property-section-800x400.svg', 'highlight', 1, 1, '2026-06-19 06:52:08', '2026-06-19 06:52:08'),
(850, 18, 'Trademark Usage Guidelines', '<h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Permitted Use</h4><ul class=\"mb-3\"><li>Referencing Gletra by name in factual, non-misleading contexts (e.g., \"Available on Gletra\")</li><li>Using official Gletra badges provided through the authorized affiliate or partner program</li><li>Linking to gletra.com using standard text links without implying endorsement</li></ul><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Prohibited Use</h4><ul class=\"mb-3\"><li>Using Gletra logos or trademarks in domain names, social media handles, or app names without authorization</li><li>Implying Gletra sponsorship, partnership, or endorsement without written agreement</li><li>Modifying Gletra logos, colors, or brand elements</li><li>Registering trademarks confusingly similar to Gletra in any jurisdiction</li></ul>', 'policies/sections/intellectual-property-policy-trademark-usage-guidelines-section-800x400.svg', 'content', 2, 1, '2026-06-19 06:52:09', '2026-06-19 06:52:09'),
(851, 18, 'User Content and Platform License', '<p>By uploading, posting, or submitting content to Gletra — including product listings, reviews, chat messages, call attachments, and service provider profiles — you grant Gletra a worldwide, non-exclusive, royalty-free, sublicensable license to use, reproduce, display, distribute, and adapt such content solely for platform operation, marketing (with opt-out for reviews), and legal compliance.</p><p>You represent and warrant that you own or have all necessary rights to the content you submit and that such content does not infringe any third-party IP rights.</p>', 'policies/sections/intellectual-property-policy-user-content-and-platform-license-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:52:09', '2026-06-19 06:52:09'),
(852, 18, 'Third-Party Intellectual Property on Gletra', '<p>Sellers and service providers must not list counterfeit goods, unauthorized replicas, or products bearing trademarks without authorization. Gletra employs automated and manual review systems to detect IP violations.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Violation Type</th><th>Detection Method</th><th>Enforcement Action</th></tr></thead><tbody><tr><td>Counterfeit goods</td><td>Brand registry + manual review</td><td>Listing removal; account suspension</td></tr><tr><td>Trademark misuse in listings</td><td>Keyword and image matching</td><td>Listing edit required or removal</td></tr><tr><td>Unauthorized brand logos in chat</td><td>User reports + AI screening</td><td>Warning; repeat offense ban</td></tr><tr><td>Scraped competitor content</td><td>Duplicate detection</td><td>Listing rejection; seller review</td></tr></tbody></table></div>', 'policies/sections/intellectual-property-policy-third-party-intellectual-property-on-gletra-section-800x400.svg', 'notice', 4, 1, '2026-06-19 06:52:09', '2026-06-19 06:52:09'),
(853, 18, 'Brand Registry and Rights Holders', '<p>Authorized brand owners may enroll in the Gletra Brand Registry to proactively protect their trademarks. Registered brands receive priority review of infringement reports, access to search tools for unauthorized listings, and dedicated support from our IP team.</p><p>Enroll at seller.gletra.com/brand-registry with proof of trademark registration. Gletra verifies applications within 10 business days.</p>', 'policies/sections/intellectual-property-policy-brand-registry-and-rights-holders-section-800x400.svg', 'highlight', 5, 1, '2026-06-19 06:52:09', '2026-06-19 06:52:09'),
(854, 18, 'Patents and Trade Secrets', '<p>Gletra\'s platform technology, including wallet settlement engines, chat encryption protocols, and service-matching algorithms, may be protected as trade secrets or pending patent applications. Reverse engineering, decompiling, or extracting source code from Gletra applications is strictly prohibited.</p><p>Third-party developers integrating via Gletra APIs must comply with developer terms and may not replicate Gletra functionality in competing platforms using proprietary methods learned through integration.</p>', 'policies/sections/intellectual-property-policy-patents-and-trade-secrets-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:52:09', '2026-06-19 06:52:09'),
(855, 18, 'IP Infringement Reporting', '<p>Report IP violations (trademark, patent, trade dress) to legal@gletra.com with: identification of your IP rights, description of the infringing content on Gletra, location (URL/ID), and your contact details. Gletra responds to valid IP reports within 5 business days.</p>', 'policies/sections/intellectual-property-policy-ip-infringement-reporting-section-800x400.svg', 'notice', 7, 1, '2026-06-19 06:52:09', '2026-06-19 06:52:09'),
(856, 18, 'Seller and Provider IP Obligations', '<h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Marketplace Sellers</h4><p>Maintain documentation of product authenticity. Respond to IP inquiries within 48 hours. Do not use competitor trademarks in listing keywords for diversion.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Home Service Providers</h4><p>Service professionals must not misrepresent certifications or use unauthorized trade association logos. Display only credentials verified through Gletra KYC.</p>', 'policies/sections/intellectual-property-policy-seller-and-provider-ip-obligations-section-800x400.svg', 'content', 8, 1, '2026-06-19 06:52:09', '2026-06-19 06:52:09'),
(857, 18, 'Enforcement and Remedies', '<p>Gletra may remove content, suspend accounts, withhold seller payouts, freeze wallet funds pending investigation, and cooperate with law enforcement for serious IP violations. Rights holders may pursue independent legal remedies against infringing users.</p>', 'policies/sections/intellectual-property-policy-enforcement-and-remedies-section-800x400.svg', 'legal_update', 9, 1, '2026-06-19 06:52:09', '2026-06-19 06:52:09'),
(858, 18, 'Policy Updates', '<p>This policy is updated as Gletra expands features and as IP law evolves. Last reviewed annually. Contact legal@gletra.com for IP licensing inquiries.</p>', 'policies/sections/intellectual-property-policy-policy-updates-section-800x400.svg', 'content', 10, 1, '2026-06-19 06:52:09', '2026-06-19 06:52:09'),
(859, 19, 'Definition of Spam on Gletra', '<p>For purposes of this policy, \"spam\" includes any unsolicited, bulk, repetitive, or deceptive communication where one or more of the following apply:</p><ul class=\"mb-3\"><li>Messages sent to users who have not initiated contact or consented to marketing</li><li>Identical or substantially similar messages sent to multiple recipients without personalization</li><li>Content designed to mislead recipients about sender identity or message purpose</li><li>Promotion of off-platform payment to evade Gletra fees or buyer protection</li><li>Automated bot messages without authorization from Gletra</li><li>Phishing attempts requesting passwords, OTPs, or payment credentials</li></ul>', 'policies/sections/anti-spam-policy-definition-of-spam-on-gletra-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:10', '2026-06-19 06:52:10'),
(860, 19, 'Prohibited Activities', '<h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Chat and Messaging Abuse</h4><ul class=\"mb-3\"><li>Mass messaging buyers who have not purchased from or inquired with your store</li><li>Sending promotional links unrelated to an active order or service booking</li><li>Repeated messages after a user has declined or blocked communication</li><li>Sharing external WhatsApp or Telegram groups for unsolicited marketing</li></ul><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Call and Notification Abuse</h4><ul class=\"mb-3\"><li>Robocalls or pre-recorded voice messages via Gletra calling features</li><li>Excessive push notifications beyond transactional and opted-in marketing limits</li><li>SMS campaigns without valid user consent and opt-out mechanism</li></ul>', 'policies/sections/anti-spam-policy-prohibited-activities-section-800x400.svg', 'notice', 2, 1, '2026-06-19 06:52:10', '2026-06-19 06:52:10'),
(861, 19, 'Permitted Communications', '<p>The following communications are permitted when sent through Gletra channels:</p><ol class=\"mb-3\"><li>Order confirmations, shipping updates, and delivery notifications</li><li>Service booking confirmations, provider assignment, and appointment reminders</li><li>Responses to buyer inquiries initiated through product pages or chat</li><li>Dispute resolution and customer support correspondence</li><li>Marketing messages to users who have opted in via Gletra notification preferences</li><li>Wallet transaction alerts and KYC verification requests</li></ol>', 'policies/sections/anti-spam-policy-permitted-communications-section-800x400.svg', 'highlight', 3, 1, '2026-06-19 06:52:10', '2026-06-19 06:52:10'),
(862, 19, 'Seller and Provider Marketing Rules', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Channel</th><th>Daily Limit</th><th>Consent Required</th></tr></thead><tbody><tr><td>Gletra Chat (post-purchase)</td><td>Unlimited for order-related</td><td>No (transactional)</td></tr><tr><td>Gletra Chat (promotional)</td><td>50 unique recipients/day</td><td>Yes (opt-in)</td></tr><tr><td>Push notifications</td><td>2 promotional/day max</td><td>Yes (opt-in)</td></tr><tr><td>Email via Gletra</td><td>1 promotional/week max</td><td>Yes (double opt-in)</td></tr><tr><td>Voice/video calls</td><td>Order/service related only</td><td>N/A (must be initiated by buyer or for active booking)</td></tr></tbody></table></div><p>Sellers and service providers must not export buyer contact data from Gletra for external email or SMS campaigns.</p>', 'policies/sections/anti-spam-policy-seller-and-provider-marketing-rules-section-800x400.svg', 'content', 4, 1, '2026-06-19 06:52:10', '2026-06-19 06:52:10'),
(863, 19, 'Automated Detection and Filtering', '<p>Gletra employs machine learning models and rule-based filters to detect spam patterns including high-velocity messaging, duplicate content hashes, suspicious URLs, and reported keyword combinations. Flagged messages may be quarantined pending review or blocked automatically.</p><p>False positives may occur. Sellers may appeal blocked messages through the Seller Panel under Compliance &gt; Message Appeals within 7 days.</p>', 'policies/sections/anti-spam-policy-automated-detection-and-filtering-section-800x400.svg', 'content', 5, 1, '2026-06-19 06:52:10', '2026-06-19 06:52:10'),
(864, 19, 'User Reporting', '<p>Any user may report spam by tapping \"Report\" on a chat message, call log entry, or notification. Reports are reviewed within 24 hours. Provide context including screenshots where available. Gletra does not disclose reporter identity to the reported party.</p>', 'policies/sections/anti-spam-policy-user-reporting-section-800x400.svg', 'highlight', 6, 1, '2026-06-19 06:52:10', '2026-06-19 06:52:10');
INSERT INTO `policy_sections` (`id`, `policy_id`, `title`, `content`, `image`, `section_type`, `sort_order`, `status`, `created_at`, `updated_at`) VALUES
(865, 19, 'Penalties and Enforcement', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Offense Level</th><th>Examples</th><th>Consequence</th></tr></thead><tbody><tr><td>Minor</td><td>Single unsolicited promo message</td><td>Warning; message blocked</td></tr><tr><td>Moderate</td><td>Repeated promo spam; minor harvesting attempt</td><td>7-day messaging restriction</td></tr><tr><td>Major</td><td>Bulk spam; phishing; bot automation</td><td>30-day suspension; seller panel lock</td></tr><tr><td>Severe</td><td>Large-scale phishing; credential theft; repeat offenses</td><td>Permanent ban; legal referral</td></tr></tbody></table></div>', 'policies/sections/anti-spam-policy-penalties-and-enforcement-section-800x400.svg', 'legal_update', 7, 1, '2026-06-19 06:52:10', '2026-06-19 06:52:10'),
(866, 19, 'Compliance with External Laws', '<p>Gletra complies with applicable anti-spam regulations. Users sending communications through Gletra to recipients in regulated jurisdictions bear responsibility for obtaining valid consent and honoring opt-out requests within 48 hours.</p>', 'policies/sections/anti-spam-policy-compliance-with-external-laws-section-800x400.svg', 'content', 8, 1, '2026-06-19 06:52:10', '2026-06-19 06:52:10'),
(867, 19, 'Best Practices for Sellers', '<ul class=\"mb-3\"><li>Use Gletra\'s built-in promotional tools rather than manual bulk chat</li><li>Personalize messages with order or product context</li><li>Include clear opt-out instructions in marketing communications</li><li>Never request payment outside Gletra Wallet or approved checkout</li><li>Respond to buyer-initiated chats within 24 hours instead of cold outreach</li></ul>', 'policies/sections/anti-spam-policy-best-practices-for-sellers-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:52:10', '2026-06-19 06:52:10'),
(868, 19, 'Contact and Reporting', '<p>Report platform-wide spam campaigns or security concerns to abuse@gletra.com. Enterprise sellers may contact partner-support@gletra.com for guidance on compliant marketing practices.</p>', 'policies/sections/anti-spam-policy-contact-and-reporting-section-800x400.svg', 'notice', 10, 1, '2026-06-19 06:52:10', '2026-06-19 06:52:10'),
(869, 20, 'Accepted Payment Methods', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Method</th><th>Availability</th><th>Notes</th></tr></thead><tbody><tr><td>UPI (GPay, PhonePe, Paytm, etc.)</td><td>All users</td><td>Instant confirmation; primary method in India</td></tr><tr><td>Credit / Debit Cards</td><td>All users</td><td>Visa, Mastercard, RuPay; 3D Secure required</td></tr><tr><td>Net Banking</td><td>All users</td><td>Major Indian banks supported</td></tr><tr><td>Gletra Wallet</td><td>Verified users</td><td>Instant checkout; combine with other methods</td></tr><tr><td>Cash on Delivery (COD)</td><td>Eligible orders</td><td>Select products and regions; ₹50 fee may apply</td></tr><tr><td>EMI</td><td>Orders above ₹3,000</td><td>Partner bank terms apply; interest may apply</td></tr></tbody></table></div>', 'policies/sections/payment-terms-accepted-payment-methods-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:10', '2026-06-19 06:52:10'),
(870, 20, 'Payment Authorization and Capture', '<p>When you place an order or confirm a service booking, Gletra authorizes payment for the total amount including product price, service fees, shipping, applicable taxes, and platform charges displayed at checkout.</p><ul class=\"mb-3\"><li>Marketplace orders: payment captured when seller confirms or ships (or immediately for digital goods)</li><li>Service bookings: partial or full prepayment captured at booking; balance on completion</li><li>Wallet top-ups: captured immediately upon successful gateway response</li><li>Multi-vendor carts: each seller item processed as a separate transaction where required by payment partner</li></ul>', 'policies/sections/payment-terms-payment-authorization-and-capture-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:10', '2026-06-19 06:52:10'),
(871, 20, 'Pricing, Fees, and Taxes', '<p>All prices are displayed in Indian Rupees (INR) unless otherwise noted. GST and applicable state taxes are calculated at checkout based on product category, seller location, and delivery address.</p><p>Gletra service fees, payment gateway fees (where passed to buyer), and COD handling charges are disclosed before payment confirmation. Sellers set product and service prices; Gletra is not responsible for seller pricing errors but will facilitate corrections before capture where possible.</p>', 'policies/sections/payment-terms-pricing-fees-and-taxes-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:52:10', '2026-06-19 06:52:10'),
(872, 20, 'Failed and Declined Payments', '<p>Orders with failed payment authorization are not confirmed. Common failure reasons include insufficient funds, incorrect card details, bank declines, and UPI timeout.</p><ol class=\"mb-3\"><li>Retry payment within 30 minutes from My Orders or booking screen</li><li>After 30 minutes, the order or booking hold is released automatically</li><li>Repeated failed attempts may trigger temporary payment method restriction for fraud prevention</li><li>Contact support@gletra.com if your bank confirms deduction but Gletra shows failure</li></ol>', 'policies/sections/payment-terms-failed-and-declined-payments-section-800x400.svg', 'notice', 4, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(873, 20, 'Payment Security', '<p>Gletra implements industry-standard security measures: TLS 1.3 encryption in transit, tokenization of card data, PCI-DSS Level 1 compliant payment partners, 3D Secure authentication, and fraud scoring on all transactions.</p><p>Never share OTPs, CVV, or UPI PINs in Gletra Chat or during calls. Gletra staff will never request these credentials.</p>', 'policies/sections/payment-terms-payment-security-section-800x400.svg', 'highlight', 5, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(874, 20, 'Chargebacks and Disputes', '<p>Buyers who dispute charges with their bank or card issuer initiate a chargeback. Gletra provides transaction evidence to payment partners and may debit seller accounts for upheld chargebacks on their orders.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Chargeback Reason</th><th>Gletra Response</th><th>User Action</th></tr></thead><tbody><tr><td>Unauthorized transaction</td><td>Fraud investigation; account secured</td><td>Report immediately to support@gletra.com</td></tr><tr><td>Product not received</td><td>Tracking and delivery proof submitted</td><td>File Gletra dispute first before chargeback</td></tr><tr><td>Not as described</td><td>Seller evidence and buyer photos reviewed</td><td>Use Gletra Dispute Center for faster resolution</td></tr></tbody></table></div>', 'policies/sections/payment-terms-chargebacks-and-disputes-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(875, 20, 'Refunds and Payment Reversals', '<p>Approved refunds are returned to the original payment method or Gletra Wallet at buyer\'s choice. Refund timelines: Wallet (instant), UPI/cards (5–10 business days), net banking (5–10 business days). See Refund Policy for eligibility criteria.</p>', 'policies/sections/payment-terms-refunds-and-payment-reversals-section-800x400.svg', 'content', 7, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(876, 20, 'Off-Platform Payment Prohibition', '<p>Sellers, service providers, and buyers must not solicit or accept payment outside Gletra\'s approved checkout, wallet, or booking payment flows. Off-platform payments void Gletra Customer Protection and may result in account termination for all parties involved.</p>', 'policies/sections/payment-terms-off-platform-payment-prohibition-section-800x400.svg', 'notice', 8, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(877, 20, 'Seller and Provider Settlements', '<p>Seller earnings are settled per the Seller Withdrawal Policy (standard T+7 after delivery confirmation). Service provider payments are released 24 hours after job completion unless a dispute is filed. Gletra deducts applicable commission, payment gateway fees, and tax withholdings before disbursement.</p>', 'policies/sections/payment-terms-seller-and-provider-settlements-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(878, 20, 'Modifications and Contact', '<p>Gletra may modify these Payment Terms with 15 days notice for material changes. Payment inquiries: payments@gletra.com. Fraud reports: fraud@gletra.com.</p>', 'policies/sections/payment-terms-modifications-and-contact-section-800x400.svg', 'legal_update', 10, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(879, 21, 'Wallet Features and Eligibility', '<ul class=\"mb-3\"><li>Instant checkout for marketplace orders and service bookings</li><li>Receive refunds from cancelled orders and approved returns</li><li>Earn cashback and promotional credits from Gletra campaigns</li><li>Partial payment combined with UPI, cards, or net banking</li><li>Seller settlement disbursement destination (post-KYC)</li><li>Transaction history and downloadable statements in Account Settings</li></ul><p>All registered Gletra users aged 18+ may activate a wallet. Users under 18 may not hold wallet balances.</p>', 'policies/sections/wallet-policy-wallet-features-and-eligibility-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(880, 21, 'Top-Up Methods and Limits', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Method</th><th>Min Top-Up</th><th>Max Top-Up/Day</th><th>Processing</th></tr></thead><tbody><tr><td>UPI</td><td>₹100</td><td>₹1,00,000</td><td>Instant</td></tr><tr><td>Debit/Credit Card</td><td>₹100</td><td>₹1,00,000</td><td>Instant</td></tr><tr><td>Net Banking</td><td>₹500</td><td>₹1,00,000</td><td>Instant–2 hours</td></tr><tr><td>Refund credit</td><td>N/A</td><td>N/A</td><td>Automatic on approval</td></tr></tbody></table></div><p>Maximum wallet balance: ₹1,00,000 for standard users; ₹5,00,000 for KYC-verified business accounts.</p>', 'policies/sections/wallet-policy-top-up-methods-and-limits-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(881, 21, 'Spending Rules', '<p>Wallet funds may be used for product purchases, home service bookings, platform fees, and tipping service providers where enabled. Wallet funds may not be used for:</p><ul class=\"mb-3\"><li>Transfer to other Gletra user wallets (P2P transfers not supported)</li><li>Off-platform purchases or cash equivalent conversion except via approved withdrawal</li><li>Gambling, cryptocurrency, or prohibited category purchases</li><li>Payment of seller commission or subscription fees (debited from seller settlement)</li></ul>', 'policies/sections/wallet-policy-spending-rules-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(882, 21, 'Promotional Credits and Cashback', '<p>Promotional credits, referral bonuses, and cashback rewards are subject to individual offer terms including expiry dates, minimum order values, and category restrictions.</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Credit Type</th><th>Typical Expiry</th><th>Withdrawable</th></tr></thead><tbody><tr><td>Cashback on orders</td><td>90 days</td><td>Yes (after KYC)</td></tr><tr><td>Referral bonus</td><td>60 days</td><td>Yes (after KYC)</td></tr><tr><td>Campaign voucher</td><td>Per offer (7–30 days)</td><td>No</td></tr><tr><td>Compensation credit</td><td>180 days</td><td>Yes (after KYC)</td></tr></tbody></table></div>', 'policies/sections/wallet-policy-promotional-credits-and-cashback-section-800x400.svg', 'notice', 4, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(883, 21, 'Refunds to Wallet', '<p>Buyers may elect to receive approved refunds as instant Gletra Wallet credit during the refund request process. Wallet refunds are credited immediately upon approval and may be used for subsequent purchases or withdrawn after KYC verification.</p>', 'policies/sections/wallet-policy-refunds-to-wallet-section-800x400.svg', 'highlight', 5, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(884, 21, 'Withdrawals', '<p>KYC-verified users may withdraw available wallet balance to a registered bank account. Promotional non-withdrawable credits are excluded from withdrawal calculations.</p><ul class=\"mb-3\"><li>Minimum withdrawal: ₹100</li><li>Processing time: 2–5 business days via NEFT/IMPS</li><li>Maximum 3 withdrawal requests per day</li><li>Withdrawals suspended during active fraud investigation</li></ul>', 'policies/sections/wallet-policy-withdrawals-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(885, 21, 'Inactivity and Escheatment', '<p>Wallets with no transaction activity for 24 consecutive months receive email notice at 21 months. After 24 months of inactivity, remaining balances may be escheated to government unclaimed property authorities as required by applicable law. Reactivate by logging in and completing a transaction before the deadline.</p>', 'policies/sections/wallet-policy-inactivity-and-escheatment-section-800x400.svg', 'legal_update', 7, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(886, 21, 'Security and Unauthorized Access', '<p>Protect your Gletra account credentials. Enable two-factor authentication. Report unauthorized wallet transactions to support@gletra.com within 24 hours. Gletra investigates claims and may provisionally credit verified unauthorized transactions.</p><p>Never share OTPs or wallet PINs via chat or phone calls, even if the caller claims to be Gletra support.</p>', 'policies/sections/wallet-policy-security-and-unauthorized-access-section-800x400.svg', 'notice', 8, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(887, 21, 'Seller Wallet Settlement', '<p>Sellers may receive settlements directly to Gletra Wallet for faster reinvestment in platform advertising or supplier payments. Seller wallet balances follow the same KYC and withdrawal rules. Commission and fee debits are itemized in Seller Panel &gt; Finance.</p>', 'policies/sections/wallet-policy-seller-wallet-settlement-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:52:11', '2026-06-19 06:52:11'),
(888, 21, 'Disputes and Contact', '<p>Wallet transaction disputes: wallet@gletra.com. Include transaction ID, date, and amount. Response within 48 hours.</p>', 'policies/sections/wallet-policy-disputes-and-contact-section-800x400.svg', 'content', 10, 1, '2026-06-19 06:52:12', '2026-06-19 06:52:12'),
(889, 22, 'Who Must Complete KYC', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>User Type</th><th>KYC Trigger</th><th>Verification Level</th></tr></thead><tbody><tr><td>Marketplace seller</td><td>Seller registration</td><td>Full business KYC</td></tr><tr><td>Home service provider</td><td>Provider registration</td><td>Individual + skill KYC</td></tr><tr><td>Buyer (wallet withdrawal)</td><td>First withdrawal request</td><td>Individual KYC</td></tr><tr><td>Buyer (high balance)</td><td>Wallet balance &gt; ₹50,000</td><td>Individual KYC</td></tr><tr><td>Any user</td><td>Risk flag or compliance review</td><td>Enhanced due diligence</td></tr></tbody></table></div>', 'policies/sections/kyc-verification-policy-who-must-complete-kyc-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:12', '2026-06-19 06:52:12'),
(890, 22, 'Required Documents — Individual Users', '<ul class=\"mb-3\"><li>Government-issued photo ID: Aadhaar, PAN card, Passport, or Driving License</li><li>Live selfie verification matching ID photograph</li><li>Bank account proof: cancelled cheque, bank statement, or passbook (for withdrawals)</li><li>Address proof if different from ID (utility bill, rental agreement — within 3 months)</li></ul><p>Documents must be valid, unexpired, and clearly legible. Screenshots of documents are accepted only through Gletra\'s secure upload portal.</p>', 'policies/sections/kyc-verification-policy-required-documents-individual-users-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:12', '2026-06-19 06:52:12'),
(891, 22, 'Required Documents — Business Sellers', '<h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Sole Proprietorship / Individual Seller</h4><ul class=\"mb-3\"><li>PAN card</li><li>GST registration (if applicable)</li><li>Bank account in business or individual name</li><li>Business address proof</li></ul><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Private Limited / LLP / Partnership</h4><ul class=\"mb-3\"><li>Certificate of Incorporation</li><li>PAN of entity</li><li>GST registration</li><li>Authorized signatory ID and board resolution</li><li>Bank account proof in entity name</li></ul>', 'policies/sections/kyc-verification-policy-required-documents-business-sellers-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:52:12', '2026-06-19 06:52:12'),
(892, 22, 'Service Provider Verification', '<p>Home service providers undergo additional verification beyond standard KYC:</p><ol class=\"mb-3\"><li>Skill certification upload (electrician license, plumbing certification, etc.) where applicable</li><li>Background check authorization and criminal record screening for in-home services</li><li>Service area and vehicle registration (if applicable)</li><li>Portfolio or work sample review for quality standards</li></ol><p>Providers failing background checks are denied registration. Results are not disclosed to other users.</p>', 'policies/sections/kyc-verification-policy-service-provider-verification-section-800x400.svg', 'content', 4, 1, '2026-06-19 06:52:12', '2026-06-19 06:52:12'),
(893, 22, 'Verification Process and Timeline', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Step</th><th>Timeline</th><th>Description</th></tr></thead><tbody><tr><td>Document upload</td><td>User-initiated</td><td>Via Account Settings or Seller Panel &gt; KYC</td></tr><tr><td>Automated validation</td><td>1–4 hours</td><td>OCR, database match, liveness check</td></tr><tr><td>Manual review</td><td>1–3 business days</td><td>Compliance team review if flagged</td></tr><tr><td>Approval / rejection</td><td>Within 5 business days</td><td>Email and in-app notification</td></tr></tbody></table></div>', 'policies/sections/kyc-verification-policy-verification-process-and-timeline-section-800x400.svg', 'highlight', 5, 1, '2026-06-19 06:52:12', '2026-06-19 06:52:12'),
(894, 22, 'Data Handling and Privacy', '<p>KYC documents are stored with AES-256 encryption. Access is restricted to authorized compliance personnel on a need-to-know basis. Documents are not shared with buyers, sellers, or third parties except as required by law or with explicit user consent for specific integrations.</p><p>Retention period: duration of account plus 7 years after closure for regulatory compliance. Users may request deletion subject to legal retention requirements via privacy@gletra.com.</p>', 'policies/sections/kyc-verification-policy-data-handling-and-privacy-section-800x400.svg', 'notice', 6, 1, '2026-06-19 06:52:12', '2026-06-19 06:52:12'),
(895, 22, 'Re-Verification and Enhanced Due Diligence', '<p>Gletra may require re-verification when: documents expire, account details change, suspicious activity is detected, regulatory requirements change, or random compliance audits occur. Failure to complete re-verification within 30 days results in account restriction.</p>', 'policies/sections/kyc-verification-policy-re-verification-and-enhanced-due-diligence-section-800x400.svg', 'content', 7, 1, '2026-06-19 06:52:12', '2026-06-19 06:52:12'),
(896, 22, 'Consequences of Failed or Refused KYC', '<ul class=\"mb-3\"><li>Seller accounts: registration denied or suspended; listings hidden</li><li>Service providers: unable to accept bookings</li><li>Wallet users: withdrawals blocked; top-ups may continue up to ₹10,000</li><li>False documents: permanent ban and referral to authorities</li></ul>', 'policies/sections/kyc-verification-policy-consequences-of-failed-or-refused-kyc-section-800x400.svg', 'legal_update', 8, 1, '2026-06-19 06:52:12', '2026-06-19 06:52:12'),
(897, 22, 'Third-Party Verification Partners', '<p>Gletra engages licensed verification partners for document authentication and background checks. Partners are bound by data processing agreements requiring equivalent security standards.</p>', 'policies/sections/kyc-verification-policy-third-party-verification-partners-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:52:12', '2026-06-19 06:52:12'),
(898, 22, 'Contact and Appeals', '<p>KYC support: kyc@gletra.com. Rejection appeals with additional documentation within 14 days. Grievance Officer: grievance@gletra.com.</p>', 'policies/sections/kyc-verification-policy-contact-and-appeals-section-800x400.svg', 'content', 10, 1, '2026-06-19 06:52:12', '2026-06-19 06:52:12'),
(899, 23, 'Settlement Cycles', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Account Type</th><th>Settlement Cycle</th><th>Minimum Payout</th></tr></thead><tbody><tr><td>Standard seller</td><td>T+7 after delivery confirmation</td><td>₹100 (rolls to next cycle)</td></tr><tr><td>Premium seller</td><td>T+3 after delivery confirmation</td><td>₹100</td></tr><tr><td>New seller (first 90 days)</td><td>T+14 after delivery confirmation</td><td>₹500</td></tr><tr><td>Home service provider</td><td>T+1 after job completion (24h dispute window)</td><td>₹100</td></tr><tr><td>Enterprise seller</td><td>Custom (contact partner-support@gletra.com)</td><td>Negotiated</td></tr></tbody></table></div><p>\"T\" refers to the date of delivery confirmation (marketplace) or service completion marked in app (home services).</p>', 'policies/sections/seller-withdrawal-policy-settlement-cycles-section-800x400.svg', 'highlight', 1, 1, '2026-06-19 06:52:13', '2026-06-19 06:52:13'),
(900, 23, 'Commission and Fee Deductions', '<p>Before settlement, Gletra deducts:</p><ul class=\"mb-3\"><li>Category-based commission (8%–20% depending on product category)</li><li>Payment gateway fees (2%–2.5% where applicable)</li><li>Gletra shipping fees (if using Gletra Logistics)</li><li>Advertising spend (Sponsored Products — if auto-debit enabled)</li><li>Tax collected at source (TCS) and TDS where applicable by law</li></ul><p>Detailed fee breakdown available in Seller Panel &gt; Finance &gt; Settlement Reports.</p>', 'policies/sections/seller-withdrawal-policy-commission-and-fee-deductions-section-800x400.svg', 'content', 2, 1, '2026-06-19 06:52:13', '2026-06-19 06:52:13'),
(901, 23, 'Holds and Reserves', '<p>Gletra may place holds on seller earnings in the following circumstances:</p><div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Hold Reason</th><th>Duration</th><th>Release Condition</th></tr></thead><tbody><tr><td>Active buyer dispute</td><td>Until resolution</td><td>Dispute closed in seller favor or refund processed</td></tr><tr><td>High return rate (&gt;15%)</td><td>Rolling 30-day reserve (10% of sales)</td><td>Return rate below 10% for 60 days</td></tr><tr><td>New seller probation</td><td>First 90 days — 5% reserve</td><td>Automatic release after 90 days if no violations</td></tr><tr><td>Suspected fraud investigation</td><td>Up to 90 days</td><td>Investigation cleared or legal order</td></tr><tr><td>Chargeback received</td><td>Until chargeback resolved</td><td>Evidence submitted; bank decision final</td></tr></tbody></table></div>', 'policies/sections/seller-withdrawal-policy-holds-and-reserves-section-800x400.svg', 'notice', 3, 1, '2026-06-19 06:52:13', '2026-06-19 06:52:13'),
(902, 23, 'Withdrawal Methods', '<ul class=\"mb-3\"><li>Bank transfer (NEFT/IMPS) to registered KYC-verified account — primary method</li><li>Gletra Wallet credit — instant, for platform reinvestment</li><li>UPI transfer — available for verified individual sellers (max ₹1,00,000/day)</li></ul><p>Processing time: 1–3 business days for bank transfers after settlement release. Weekends and bank holidays excluded.</p>', 'policies/sections/seller-withdrawal-policy-withdrawal-methods-section-800x400.svg', 'content', 4, 1, '2026-06-19 06:52:13', '2026-06-19 06:52:13'),
(903, 23, 'Withdrawal Limits and Frequency', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Limit Type</th><th>Standard Seller</th><th>Premium Seller</th></tr></thead><tbody><tr><td>Min withdrawal</td><td>₹500</td><td>₹100</td></tr><tr><td>Max per withdrawal</td><td>₹10,00,000</td><td>₹25,00,000</td></tr><tr><td>Withdrawals per day</td><td>2</td><td>5</td></tr><tr><td>Auto-withdrawal threshold</td><td>Optional: ₹5,000</td><td>Optional: ₹1,000</td></tr></tbody></table></div>', 'policies/sections/seller-withdrawal-policy-withdrawal-limits-and-frequency-section-800x400.svg', 'highlight', 5, 1, '2026-06-19 06:52:13', '2026-06-19 06:52:13'),
(904, 23, 'Failed and Reversed Payouts', '<p>Payouts fail when bank account details are incorrect, the account is frozen, or name mismatch occurs. Failed amounts return to pending balance within 2 business days. Update bank details in Seller Panel &gt; Settings &gt; Banking and re-initiate withdrawal.</p>', 'policies/sections/seller-withdrawal-policy-failed-and-reversed-payouts-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:52:13', '2026-06-19 06:52:13'),
(905, 23, 'Negative Balances', '<p>If refunds, chargebacks, or fee adjustments exceed available balance, a negative balance is created. Sellers must remit the deficit within 14 days. Gletra may offset future settlements, restrict listings, or pursue collection for unpaid negative balances.</p>', 'policies/sections/seller-withdrawal-policy-negative-balances-section-800x400.svg', 'legal_update', 7, 1, '2026-06-19 06:52:13', '2026-06-19 06:52:13'),
(906, 23, 'Tax Documentation', '<p>Gletra provides monthly settlement statements and annual tax summaries (Form 16A / TDS certificates where applicable). Sellers are responsible for their own GST filing and income tax compliance.</p>', 'policies/sections/seller-withdrawal-policy-tax-documentation-section-800x400.svg', 'content', 8, 1, '2026-06-19 06:52:13', '2026-06-19 06:52:13'),
(907, 23, 'Account Closure and Final Settlement', '<p>Upon account closure request, pending orders must be fulfilled or cancelled. Final settlement occurs after all dispute windows close (minimum 30 days). Reserves are released subject to no outstanding claims.</p>', 'policies/sections/seller-withdrawal-policy-account-closure-and-final-settlement-section-800x400.svg', 'notice', 9, 1, '2026-06-19 06:52:13', '2026-06-19 06:52:13'),
(908, 23, 'Contact', '<p>Settlement inquiries: settlements@gletra.com. Include seller ID and settlement reference number. Seller Panel live chat available 9 AM–9 PM IST.</p>', 'policies/sections/seller-withdrawal-policy-contact-section-800x400.svg', 'content', 10, 1, '2026-06-19 06:52:13', '2026-06-19 06:52:13'),
(909, 24, 'Service Categories and Coverage', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Category</th><th>Examples</th><th>Typical Duration</th></tr></thead><tbody><tr><td>Electrical</td><td>Wiring, switch repair, fan installation, MCB replacement</td><td>1–4 hours</td></tr><tr><td>Plumbing</td><td>Leak repair, tap replacement, drainage, geyser install</td><td>1–3 hours</td></tr><tr><td>Carpentry</td><td>Furniture assembly, door repair, shelf installation</td><td>2–6 hours</td></tr><tr><td>Cleaning</td><td>Deep cleaning, sofa cleaning, bathroom sanitization</td><td>2–5 hours</td></tr><tr><td>Appliance Repair</td><td>AC, washing machine, refrigerator, microwave repair</td><td>1–3 hours</td></tr></tbody></table></div><p>Service availability varies by city. Check gletra.com/services for coverage in your area.</p>', 'policies/sections/service-booking-policy-service-categories-and-coverage-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:14', '2026-06-19 06:52:14'),
(910, 24, 'Booking Process', '<ol class=\"mb-3\"><li>Select service category and describe the issue or requirement</li><li>Choose preferred date and time slot from available provider schedules</li><li>Review estimated price range and confirm booking with payment authorization</li><li>Receive instant confirmation; provider details shared 2 hours before appointment</li><li>Provider arrives, assesses scope, confirms final price before work begins</li><li>Mark service complete in app and rate the provider after job completion</li></ol>', 'policies/sections/service-booking-policy-booking-process-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:14', '2026-06-19 06:52:14'),
(911, 24, 'Pricing and Payment', '<h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Estimate vs. Final Price</h4><p>Booking screen shows an estimated price range based on service type and description. Provider confirms final price after on-site inspection. Additional parts, materials, or extended labor require customer approval before proceeding.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Payment Options</h4><ul class=\"mb-3\"><li>Full prepayment at booking (preferred; unlocks Gletra Guarantee)</li><li>Partial prepayment with balance on completion via Gletra app</li><li>Gletra Wallet, UPI, cards accepted; cash only where explicitly indicated</li></ul>', 'policies/sections/service-booking-policy-pricing-and-payment-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:52:14', '2026-06-19 06:52:14'),
(912, 24, 'Provider Assignment and Communication', '<p>Providers are assigned based on proximity, availability, rating, and skill match. Customers may view provider profile, ratings, and verified credentials before appointment.</p><p>Pre-service communication via Gletra Chat and calls is encouraged for sharing access instructions, parking details, and scope clarification. Do not share payment credentials or move communication off-platform.</p>', 'policies/sections/service-booking-policy-provider-assignment-and-communication-section-800x400.svg', 'content', 4, 1, '2026-06-19 06:52:14', '2026-06-19 06:52:14'),
(913, 24, 'Rescheduling and Cancellation', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Action</th><th>Timing</th><th>Fee / Refund</th></tr></thead><tbody><tr><td>Customer cancellation</td><td>&gt;24 hours before</td><td>Full refund</td></tr><tr><td>Customer cancellation</td><td>12–24 hours before</td><td>25% cancellation fee</td></tr><tr><td>Customer cancellation</td><td>&lt;12 hours before</td><td>50% cancellation fee</td></tr><tr><td>Customer no-show</td><td>Provider waits 30 min</td><td>No refund</td></tr><tr><td>Free reschedule</td><td>&gt;12 hours before</td><td>One free per booking</td></tr><tr><td>Provider cancellation</td><td>Any time</td><td>Full refund + rebooking priority</td></tr></tbody></table></div>', 'policies/sections/service-booking-policy-rescheduling-and-cancellation-section-800x400.svg', 'notice', 5, 1, '2026-06-19 06:52:14', '2026-06-19 06:52:14'),
(914, 24, 'Service Completion and Provider Payout', '<p>Customer marks \"Service Complete\" in app or auto-completion occurs 48 hours after scheduled end time if no dispute filed. Provider payout released T+1 after completion per Seller Withdrawal Policy.</p><p>Disputes filed within 24 hours of completion hold provider payout until resolution.</p>', 'policies/sections/service-booking-policy-service-completion-and-provider-payout-section-800x400.svg', 'highlight', 6, 1, '2026-06-19 06:52:14', '2026-06-19 06:52:14'),
(915, 24, 'Customer Responsibilities', '<ul class=\"mb-3\"><li>Provide accurate address with landmarks and working phone number</li><li>Ensure safe access to service area; secure pets</li><li>Adult (18+) present during in-home services</li><li>Disclose known hazards (electrical issues, asbestos, structural concerns)</li><li>Approve additional charges before provider procures parts or extends scope</li></ul>', 'policies/sections/service-booking-policy-customer-responsibilities-section-800x400.svg', 'content', 7, 1, '2026-06-19 06:52:14', '2026-06-19 06:52:14'),
(916, 24, 'Provider Responsibilities', '<ul class=\"mb-3\"><li>Arrive within 15-minute window of scheduled time; notify delays via app</li><li>Display Gletra provider ID and wear identification badge</li><li>Provide upfront pricing before starting work</li><li>Use professional tools and follow safety standards</li><li>Clean work area and dispose of debris per customer agreement</li><li>Do not solicit off-platform payment or future bookings bypassing Gletra</li></ul>', 'policies/sections/service-booking-policy-provider-responsibilities-section-800x400.svg', 'content', 8, 1, '2026-06-19 06:52:14', '2026-06-19 06:52:14'),
(917, 24, 'Disputes and Quality Issues', '<p>File service disputes within 7 days via My Bookings &gt; Report Issue. Include photos, description, and chat records. Gletra mediates and may issue partial refunds, free re-service, or full refunds based on evidence.</p>', 'policies/sections/service-booking-policy-disputes-and-quality-issues-section-800x400.svg', 'notice', 9, 1, '2026-06-19 06:52:14', '2026-06-19 06:52:14'),
(918, 24, 'Recurring and Subscription Services', '<p>Gletra offers recurring bookings for cleaning and maintenance services. Subscriptions auto-renew unless cancelled 48 hours before next scheduled visit. Subscription pricing locked for 3-month minimum term.</p>', 'policies/sections/service-booking-policy-recurring-and-subscription-services-section-800x400.svg', 'content', 10, 1, '2026-06-19 06:52:14', '2026-06-19 06:52:14'),
(919, 25, 'Gletra Guarantee — Marketplace', '<p>You are protected when:</p><ul class=\"mb-3\"><li>Item not delivered within promised timeframe (or at all)</li><li>Item significantly not as described in listing</li><li>Item is counterfeit or materially different from photos</li><li>Wrong item received and seller unresponsive</li><li>Item arrives damaged due to shipping (with photo evidence)</li></ul><p>File a claim within 30 days of expected or actual delivery date via My Orders &gt; Get Help &gt; Gletra Guarantee.</p>', 'policies/sections/customer-protection-policy-gletra-guarantee-marketplace-section-800x400.svg', 'highlight', 1, 1, '2026-06-19 06:52:14', '2026-06-19 06:52:14'),
(920, 25, 'Gletra Guarantee — Home Services', '<ul class=\"mb-3\"><li>Provider no-show after confirmed booking</li><li>Service not performed or abandoned mid-job</li><li>Work quality materially below professional standards (with evidence)</li><li>Damage to property caused by provider during service</li><li>Overcharging beyond approved quote</li></ul><p>File within 7 days of scheduled service date via My Bookings &gt; Report Issue.</p>', 'policies/sections/customer-protection-policy-gletra-guarantee-home-services-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:15', '2026-06-19 06:52:15'),
(921, 25, 'Coverage Limits', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Transaction Type</th><th>Max Protection</th><th>Claim Window</th></tr></thead><tbody><tr><td>Standard product order</td><td>Full order value up to ₹1,00,000</td><td>30 days from delivery</td></tr><tr><td>High-value order (&gt;₹1,00,000)</td><td>Full value; enhanced review</td><td>30 days; may require additional verification</td></tr><tr><td>Home service booking</td><td>Full booking value up to ₹50,000</td><td>7 days from service date</td></tr><tr><td>Wallet transaction (fraud)</td><td>Full unauthorized amount</td><td>24 hours from discovery</td></tr></tbody></table></div>', 'policies/sections/customer-protection-policy-coverage-limits-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:52:15', '2026-06-19 06:52:15'),
(922, 25, 'Exclusions', '<p>Customer Protection does not cover:</p><ul class=\"mb-3\"><li>Off-platform payments or bookings arranged outside Gletra</li><li>Buyer\'s remorse or change of mind (see Return Policy instead)</li><li>Items damaged by buyer after delivery</li><li>Services where customer approved final work and marked complete</li><li>Digital goods after download or access granted</li><li>Perishable goods after delivery acceptance</li><li>Claims filed outside applicable time windows</li></ul>', 'policies/sections/customer-protection-policy-exclusions-section-800x400.svg', 'notice', 4, 1, '2026-06-19 06:52:15', '2026-06-19 06:52:15'),
(923, 25, 'Filing a Protection Claim', '<ol class=\"mb-3\"><li>Navigate to My Orders or My Bookings and select the transaction</li><li>Choose issue type and provide detailed description</li><li>Upload supporting evidence: photos, videos, chat screenshots</li><li>Submit claim; receive acknowledgment within 24 hours</li><li>Cooperate with investigation; respond to requests within 72 hours</li><li>Receive decision notification with refund or resolution details</li></ol>', 'policies/sections/customer-protection-policy-filing-a-protection-claim-section-800x400.svg', 'content', 5, 1, '2026-06-19 06:52:15', '2026-06-19 06:52:15'),
(924, 25, 'Investigation and Resolution Timeline', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Stage</th><th>Timeline</th><th>Action</th></tr></thead><tbody><tr><td>Acknowledgment</td><td>24 hours</td><td>Claim ID assigned; initial review</td></tr><tr><td>Seller/provider response</td><td>72 hours</td><td>Other party may submit counter-evidence</td></tr><tr><td>Gletra decision</td><td>7 business days (standard)</td><td>Refund, replacement, or rejection with reason</td></tr><tr><td>Appeal</td><td>5 days from decision</td><td>One appeal with new evidence</td></tr></tbody></table></div>', 'policies/sections/customer-protection-policy-investigation-and-resolution-timeline-section-800x400.svg', 'highlight', 6, 1, '2026-06-19 06:52:15', '2026-06-19 06:52:15'),
(925, 25, 'Fraud Protection', '<p>Gletra monitors transactions for fraud using machine learning, device fingerprinting, and behavioral analysis. Suspicious orders may be held for verification. Buyers are never liable for verified unauthorized wallet or card transactions reported within 24 hours.</p><p>Report suspected fraud immediately: fraud@gletra.com or Account Settings &gt; Security &gt; Report Unauthorized Activity.</p>', 'policies/sections/customer-protection-policy-fraud-protection-section-800x400.svg', 'content', 7, 1, '2026-06-19 06:52:15', '2026-06-19 06:52:15'),
(926, 25, 'Chat and Call Safety in Disputes', '<p>Gletra may review chat messages and call metadata related to disputed transactions. Users who attempt to manipulate outcomes through false claims, collusion, or evidence fabrication forfeit protection eligibility and face account termination.</p>', 'policies/sections/customer-protection-policy-chat-and-call-safety-in-disputes-section-800x400.svg', 'notice', 8, 1, '2026-06-19 06:52:15', '2026-06-19 06:52:15'),
(927, 25, 'Compensation Beyond Refund', '<p>In exceptional cases — significant inconvenience, repeat seller failures, or service failures — Gletra may offer additional wallet credit at its discretion. This is not guaranteed and does not set precedent.</p>', 'policies/sections/customer-protection-policy-compensation-beyond-refund-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:52:15', '2026-06-19 06:52:15'),
(928, 25, 'Contact', '<p>Customer Protection team: protection@gletra.com. Live chat in app 8 AM–10 PM IST. Emergency safety issues: use in-app Emergency button during active home service bookings.</p>', 'policies/sections/customer-protection-policy-contact-section-800x400.svg', 'content', 10, 1, '2026-06-19 06:52:15', '2026-06-19 06:52:15'),
(929, 26, 'Account and Digital Safety', '<ul class=\"mb-3\"><li>Use a strong, unique password and enable two-factor authentication</li><li>Never share OTPs, passwords, UPI PINs, or CVV codes with anyone</li><li>Gletra staff will never ask for your password or OTP via chat or call</li><li>Log out on shared devices; review active sessions in Account Settings</li><li>Verify gletra.com URL; beware of phishing sites mimicking Gletra</li></ul>', 'policies/sections/safety-guidelines-account-and-digital-safety-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:16', '2026-06-19 06:52:16'),
(930, 26, 'Safe Shopping Practices', '<ol class=\"mb-3\"><li>Check seller ratings, review count, and response time before purchasing</li><li>Read product descriptions carefully; verify return eligibility</li><li>Use Gletra checkout only — never pay sellers directly via UPI or bank transfer</li><li>Inspect high-value items at delivery; report damage before accepting</li><li>Keep order confirmations and chat records until transaction is fully resolved</li></ol>', 'policies/sections/safety-guidelines-safe-shopping-practices-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:16', '2026-06-19 06:52:16'),
(931, 26, 'Chat and Communication Safety', '<p>Gletra Chat is for transaction-related communication. Safety rules:</p><ul class=\"mb-3\"><li>Do not share Aadhaar, PAN, full card numbers, or home security details unnecessarily</li><li>Block and report users who send harassment, threats, or inappropriate content</li><li>Be cautious of links sent in chat; verify they point to gletra.com domains</li><li>Report requests to move conversation to personal WhatsApp for payment</li></ul>', 'policies/sections/safety-guidelines-chat-and-communication-safety-section-800x400.svg', 'notice', 3, 1, '2026-06-19 06:52:16', '2026-06-19 06:52:16'),
(932, 26, 'Voice and Video Call Safety', '<ul class=\"mb-3\"><li>Use Gletra in-app calling rather than sharing personal phone numbers when possible</li><li>Do not share screen showing sensitive financial or identity documents</li><li>End calls immediately if the other party behaves inappropriately; report via call log</li><li>Recording calls without all-party consent may violate local law — do not record without consent</li></ul>', 'policies/sections/safety-guidelines-voice-and-video-call-safety-section-800x400.svg', 'content', 4, 1, '2026-06-19 06:52:16', '2026-06-19 06:52:16'),
(933, 26, 'In-Home Service Safety', '<h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Before the Appointment</h4><ul class=\"mb-3\"><li>Verify provider identity matches Gletra app profile and ID badge</li><li>Share appointment details with a trusted contact</li><li>Secure valuables and restrict access to sensitive areas</li><li>Ensure an adult (18+) will be present throughout the service</li></ul><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">During the Service</h4><ul class=\"mb-3\"><li>Maintain visibility of the provider\'s work area</li><li>Do not leave provider alone in home unless necessary and trusted</li><li>Use in-app Emergency button for immediate safety concerns</li><li>Decline requests to pay in cash if you prepaid through Gletra</li></ul>', 'policies/sections/safety-guidelines-in-home-service-safety-section-800x400.svg', 'highlight', 5, 1, '2026-06-19 06:52:16', '2026-06-19 06:52:16'),
(934, 26, 'Local Pickup and Meeting Safety', '<p>For local pickup orders or buyer-seller meetings:</p><ul class=\"mb-3\"><li>Meet in public, well-lit locations during daytime hours</li><li>Bring a companion when possible</li><li>Inspect items before completing payment</li><li>Do not invite strangers to your home except for verified Gletra service bookings</li></ul>', 'policies/sections/safety-guidelines-local-pickup-and-meeting-safety-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:52:16', '2026-06-19 06:52:16'),
(935, 26, 'Recognizing Scams', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Scam Type</th><th>Warning Signs</th><th>Action</th></tr></thead><tbody><tr><td>Fake Gletra support</td><td>Unsolicited call asking for OTP or remote access</td><td>Hang up; contact support@gletra.com only</td></tr><tr><td>Payment redirect</td><td>Seller asks to pay via personal UPI</td><td>Refuse; report seller</td></tr><tr><td>Phishing link</td><td>Chat link to non-gletra.com login page</td><td>Do not click; report message</td></tr><tr><td>Too-good-to-be-true listing</td><td>Premium product at 90% discount</td><td>Verify seller; use Customer Protection</td></tr></tbody></table></div>', 'policies/sections/safety-guidelines-recognizing-scams-section-800x400.svg', 'notice', 7, 1, '2026-06-19 06:52:16', '2026-06-19 06:52:16'),
(936, 26, 'Reporting Safety Issues', '<p>Report via: in-app Report button (chat, calls, orders, bookings), safety@gletra.com, or Emergency button during active home services. Gletra Safety Team responds to emergency reports within 15 minutes 24/7.</p>', 'policies/sections/safety-guidelines-reporting-safety-issues-section-800x400.svg', 'content', 8, 1, '2026-06-19 06:52:16', '2026-06-19 06:52:16'),
(937, 26, 'Children and Vulnerable Users', '<p>Gletra is not intended for users under 18. Parents should supervise minors\' internet use. Vulnerable users should arrange for a trusted adult during in-home services and high-value transactions.</p>', 'policies/sections/safety-guidelines-children-and-vulnerable-users-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:52:16', '2026-06-19 06:52:16'),
(938, 26, 'Seller and Provider Safety', '<p>Sellers and service providers should: verify buyer identity for high-value orders, avoid sharing personal contact details unnecessarily, report threatening buyer behavior, and use Gletra\'s documented channels for all communication to maintain evidence for disputes.</p>', 'policies/sections/safety-guidelines-seller-and-provider-safety-section-800x400.svg', 'highlight', 10, 1, '2026-06-19 06:52:16', '2026-06-19 06:52:16'),
(939, 27, 'Absolutely Prohibited Items', '<p>The following categories are strictly banned on Gletra:</p><ul class=\"mb-3\"><li>Weapons, firearms, ammunition, explosives, and weapon components</li><li>Illegal drugs, controlled substances, and drug paraphernalia</li><li>Counterfeit goods, unauthorized replicas, and fake branded products</li><li>Stolen property and items without clear legal title</li><li>Human remains, organs, body parts, and related materials</li><li>Unauthorized prescription medications and unapproved medical devices</li><li>Child exploitation material and content sexualizing minors</li><li>Hate propaganda, extremist materials, and discriminatory content</li><li>Wildlife products from endangered species (ivory, rhino horn, etc.)</li><li>Currency, counterfeit money, and unauthorized financial instruments</li></ul>', 'policies/sections/prohibited-items-policy-absolutely-prohibited-items-section-800x400.svg', 'notice', 1, 1, '2026-06-19 06:52:16', '2026-06-19 06:52:16'),
(940, 27, 'Prohibited Services', '<ul class=\"mb-3\"><li>Unlicensed medical, dental, or surgical procedures</li><li>Illegal gambling, betting, and lottery services</li><li>Escort, adult entertainment, and sexual services</li><li>Unlicensed financial advisory, crypto mining, or Ponzi schemes</li><li>Services requiring licenses the provider does not hold (certain electrical/plumbing work above permitted scope)</li><li>Surveillance equipment for illegal interception</li></ul>', 'policies/sections/prohibited-items-policy-prohibited-services-section-800x400.svg', 'notice', 2, 1, '2026-06-19 06:52:17', '2026-06-19 06:52:17'),
(941, 27, 'Restricted Items Requiring Approval', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Category</th><th>Requirements</th><th>Approval Process</th></tr></thead><tbody><tr><td>Alcohol and beverages</td><td>Valid liquor license; age verification at delivery</td><td>compliance@gletra.com + license upload</td></tr><tr><td>Tobacco and vaping products</td><td>GST registration; age 21+ verification</td><td>Restricted category application</td></tr><tr><td>Adult products (legal category)</td><td>Age verification; no obscene imagery in listings</td><td>Category unlock request</td></tr><tr><td>Precious metals and gems</td><td>BIS hallmark; authenticity certificate</td><td>High-value seller verification</td></tr><tr><td>Agricultural chemicals and pesticides</td><td>Licensed dealer certificate</td><td>Document review</td></tr><tr><td>Medical equipment (non-prescription)</td><td>CDSCO compliance where applicable</td><td>Category application</td></tr></tbody></table></div>', 'policies/sections/prohibited-items-policy-restricted-items-requiring-approval-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:52:17', '2026-06-19 06:52:17'),
(942, 27, 'Marketplace Listing Violations', '<p>Common listing violations beyond prohibited categories:</p><ul class=\"mb-3\"><li>Products with false safety certifications (fake ISI, BIS marks)</li><li>Items recalled by manufacturer or government authority</li><li>Products exceeding legal quantity limits (certain chemicals, batteries)</li><li>Listings designed to circumvent category restrictions (miscategorization)</li><li>Drop-shipped items from unauthorized sources</li></ul>', 'policies/sections/prohibited-items-policy-marketplace-listing-violations-section-800x400.svg', 'highlight', 4, 1, '2026-06-19 06:52:17', '2026-06-19 06:52:17');
INSERT INTO `policy_sections` (`id`, `policy_id`, `title`, `content`, `image`, `section_type`, `sort_order`, `status`, `created_at`, `updated_at`) VALUES
(943, 27, 'Home Services Restrictions', '<p>Gletra Home Services providers may not offer:</p><ul class=\"mb-3\"><li>Gas line modifications without valid gas fitter license</li><li>Structural demolition without municipal permits</li><li>Asbestos removal or hazardous material abatement</li><li>Pest control using banned chemical agents</li><li>Electrical work exceeding provider\'s verified license class</li></ul><p>Providers must accurately declare license scope during KYC registration.</p>', 'policies/sections/prohibited-items-policy-home-services-restrictions-section-800x400.svg', 'content', 5, 1, '2026-06-19 06:52:17', '2026-06-19 06:52:17'),
(944, 27, 'Chat and Communication Restrictions', '<p>Users may not use Gletra Chat or calls to offer, solicit, or facilitate sale of prohibited items or off-platform transactions involving restricted goods.</p>', 'policies/sections/prohibited-items-policy-chat-and-communication-restrictions-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:52:17', '2026-06-19 06:52:17'),
(945, 27, 'Detection and Enforcement', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Violation Severity</th><th>First Offense</th><th>Repeat Offense</th></tr></thead><tbody><tr><td>Critical (weapons, drugs, CSAM)</td><td>Permanent ban; law enforcement referral</td><td>N/A</td></tr><tr><td>Major (counterfeit, stolen goods)</td><td>Permanent ban; wallet hold</td><td>N/A</td></tr><tr><td>Moderate (miscategorization, restricted without approval)</td><td>Listing removal; 7-day suspension</td><td>30-day or permanent ban</td></tr><tr><td>Minor (policy edge case)</td><td>Listing removal; warning</td><td>Escalating suspension</td></tr></tbody></table></div>', 'policies/sections/prohibited-items-policy-detection-and-enforcement-section-800x400.svg', 'legal_update', 7, 1, '2026-06-19 06:52:17', '2026-06-19 06:52:17'),
(946, 27, 'Reporting Prohibited Items', '<p>Report prohibited listings via product page \"Report\" button or compliance@gletra.com. Include listing URL, category concern, and supporting evidence. Gletra reviews reports within 24 hours for critical categories.</p>', 'policies/sections/prohibited-items-policy-reporting-prohibited-items-section-800x400.svg', 'highlight', 8, 1, '2026-06-19 06:52:17', '2026-06-19 06:52:17'),
(947, 27, 'Seller Responsibilities', '<p>Sellers must maintain current knowledge of prohibited items, verify product legality before listing, retain supplier documentation, and immediately remove listings for recalled or banned products upon notification.</p>', 'policies/sections/prohibited-items-policy-seller-responsibilities-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:52:17', '2026-06-19 06:52:17'),
(948, 27, 'Policy Updates', '<p>This list is updated as laws change and new risk patterns emerge. Subscribe to Seller Panel announcements for policy updates. Last comprehensive review: annual cycle.</p>', 'policies/sections/prohibited-items-policy-policy-updates-section-800x400.svg', 'content', 10, 1, '2026-06-19 06:52:17', '2026-06-19 06:52:17'),
(949, 28, 'Types of Disputes Covered', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Dispute Category</th><th>Examples</th><th>Filing Window</th></tr></thead><tbody><tr><td>Product — non-delivery</td><td>Item never arrived; tracking shows no delivery</td><td>30 days from expected delivery</td></tr><tr><td>Product — quality</td><td>Defective, damaged, not as described</td><td>30 days from delivery</td></tr><tr><td>Service — performance</td><td>Incomplete work, poor quality, scope disagreement</td><td>7 days from service date</td></tr><tr><td>Service — no-show</td><td>Provider did not arrive</td><td>24 hours from scheduled time</td></tr><tr><td>Payment — billing</td><td>Overcharge, duplicate charge, unauthorized transaction</td><td>24 hours–30 days by type</td></tr><tr><td>Communication — conduct</td><td>Harassment, threats via chat or calls</td><td>30 days from incident</td></tr></tbody></table></div>', 'policies/sections/dispute-resolution-policy-types-of-disputes-covered-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:18', '2026-06-19 06:52:18'),
(950, 28, 'Pre-Dispute Requirements', '<ol class=\"mb-3\"><li>Attempt direct resolution via Gletra Chat or in-app call</li><li>Document the issue with photos, screenshots, and order/booking details</li><li>Review applicable policy (Return, Refund, Cancellation, Service Booking)</li><li>File formal dispute only after 48 hours without satisfactory seller/provider response (except emergencies)</li></ol>', 'policies/sections/dispute-resolution-policy-pre-dispute-requirements-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:18', '2026-06-19 06:52:18'),
(951, 28, 'Filing a Dispute', '<p>Access Dispute Center from My Orders, My Bookings, or Account Settings &gt; Help &gt; Dispute Center.</p><ul class=\"mb-3\"><li>Select transaction and dispute category</li><li>Describe issue with specific details (dates, amounts, expectations vs. reality)</li><li>Upload evidence: photos, videos, chat exports, receipts</li><li>Specify desired resolution: full refund, partial refund, replacement, re-service</li><li>Submit; receive Dispute ID for tracking</li></ul>', 'policies/sections/dispute-resolution-policy-filing-a-dispute-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:52:18', '2026-06-19 06:52:18'),
(952, 28, 'Mediation Process', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Phase</th><th>Timeline</th><th>Description</th></tr></thead><tbody><tr><td>Acknowledgment</td><td>24 hours</td><td>Dispute assigned to Gletra mediator</td></tr><tr><td>Seller/provider response</td><td>72 hours</td><td>Other party submits counter-evidence</td></tr><tr><td>Evidence review</td><td>2–5 business days</td><td>Mediator evaluates all submissions</td></tr><tr><td>Decision</td><td>7 business days total (standard)</td><td>Binding platform decision issued</td></tr><tr><td>Appeal</td><td>5 days from decision</td><td>One appeal with new material evidence</td></tr></tbody></table></div>', 'policies/sections/dispute-resolution-policy-mediation-process-section-800x400.svg', 'highlight', 4, 1, '2026-06-19 06:52:18', '2026-06-19 06:52:18'),
(953, 28, 'Evidence Standards', '<h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Accepted Evidence</h4><ul class=\"mb-3\"><li>Gletra order/booking records</li><li>In-app chat messages</li><li>Delivery tracking data</li><li>Timestamped photos/videos</li><li>Call logs (metadata from Gletra system)</li></ul><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Limited Weight Evidence</h4><ul class=\"mb-3\"><li>Off-platform WhatsApp messages (unless corroborated)</li><li>Unverified third-party statements</li><li>Evidence created after dispute filing without prior documentation</li></ul>', 'policies/sections/dispute-resolution-policy-evidence-standards-section-800x400.svg', 'content', 5, 1, '2026-06-19 06:52:18', '2026-06-19 06:52:18'),
(954, 28, 'Possible Outcomes', '<ul class=\"mb-3\"><li>Full refund to original payment method or Gletra Wallet</li><li>Partial refund based on assessed damage or incomplete service</li><li>Replacement item shipped at seller expense</li><li>Free re-service by same or different provider</li><li>No refund — claim rejected with written reasoning</li><li>Account action against party found in violation (warning, suspension)</li></ul>', 'policies/sections/dispute-resolution-policy-possible-outcomes-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:52:18', '2026-06-19 06:52:18'),
(955, 28, 'Financial Holds During Disputes', '<p>When a dispute is filed, seller or provider payouts for the disputed transaction are held until resolution. If refund is ordered, held amount is returned to buyer. If dispute is rejected, held amount is released to seller/provider.</p>', 'policies/sections/dispute-resolution-policy-financial-holds-during-disputes-section-800x400.svg', 'notice', 7, 1, '2026-06-19 06:52:18', '2026-06-19 06:52:18'),
(956, 28, 'Escalation and Arbitration', '<p>If appeal is denied or dispute involves amounts exceeding ₹5,00,000, either party may request binding arbitration per Gletra Terms & Conditions. Arbitration conducted in Bengaluru, Karnataka under Indian Arbitration and Conciliation Act. Small claims court remedies remain available where applicable.</p>', 'policies/sections/dispute-resolution-policy-escalation-and-arbitration-section-800x400.svg', 'legal_update', 8, 1, '2026-06-19 06:52:18', '2026-06-19 06:52:18'),
(957, 28, 'Abuse of Dispute Process', '<p>Frivolous, fraudulent, or repetitive disputes filed to harass sellers or obtain unjustified refunds result in loss of Customer Protection eligibility, account restrictions, and potential legal action for fraud.</p>', 'policies/sections/dispute-resolution-policy-abuse-of-dispute-process-section-800x400.svg', 'notice', 9, 1, '2026-06-19 06:52:18', '2026-06-19 06:52:18'),
(958, 28, 'Contact', '<p>Dispute Center in app. Email: disputes@gletra.com with Dispute ID. Response within 24 hours for acknowledgment.</p>', 'policies/sections/dispute-resolution-policy-contact-section-800x400.svg', 'content', 10, 1, '2026-06-19 06:52:18', '2026-06-19 06:52:18'),
(959, 29, 'Regulatory Framework', '<p>Gletra\'s AML program addresses requirements under:</p><ul class=\"mb-3\"><li>Prevention of Money Laundering Act, 2002 (PMLA) and amendments</li><li>RBI Master Direction on Prepaid Payment Instruments</li><li>FEMA regulations for cross-border transactions where applicable</li><li>IT Act provisions on intermediary due diligence</li><li>Sanctions lists issued by UN, OFAC, and Indian government</li></ul>', 'policies/sections/aml-policy-regulatory-framework-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:19', '2026-06-19 06:52:19'),
(960, 29, 'Customer Due Diligence (CDD)', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>User Category</th><th>CDD Requirement</th><th>Trigger</th></tr></thead><tbody><tr><td>All sellers</td><td>Full KYC + business verification</td><td>Registration</td></tr><tr><td>Service providers</td><td>Individual KYC + background check</td><td>Registration</td></tr><tr><td>Wallet users (withdrawal)</td><td>Individual KYC + bank verification</td><td>First withdrawal</td></tr><tr><td>High-value buyers</td><td>Enhanced verification</td><td>Single transaction &gt; ₹2,00,000</td></tr><tr><td>All users</td><td>Ongoing monitoring</td><td>Continuous automated screening</td></tr></tbody></table></div>', 'policies/sections/aml-policy-customer-due-diligence-cdd-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:19', '2026-06-19 06:52:19'),
(961, 29, 'Enhanced Due Diligence (EDD)', '<p>EDD applies to: politically exposed persons (PEPs), users from high-risk jurisdictions, accounts with unusual transaction patterns, sellers in high-risk categories (precious metals, electronics), and any account flagged by automated risk scoring.</p><p>EDD measures include senior management approval, source of funds documentation, increased monitoring frequency, and transaction limits.</p>', 'policies/sections/aml-policy-enhanced-due-diligence-edd-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:52:19', '2026-06-19 06:52:19'),
(962, 29, 'Transaction Monitoring', '<p>Gletra employs automated systems monitoring for:</p><ul class=\"mb-3\"><li>Structuring: multiple transactions just below reporting thresholds</li><li>Rapid wallet top-up and immediate withdrawal cycles</li><li>Unusual seller payout patterns inconsistent with sales history</li><li>High refund rates combined with new account activity</li><li>Cross-border payment anomalies</li><li>Matches against sanctions and PEP databases</li></ul><p>Flagged transactions are reviewed by the Compliance Team within 24 hours.</p>', 'policies/sections/aml-policy-transaction-monitoring-section-800x400.svg', 'highlight', 4, 1, '2026-06-19 06:52:19', '2026-06-19 06:52:19'),
(963, 29, 'Suspicious Activity Reporting (SAR)', '<p>When Gletra identifies suspicious activity that may indicate money laundering or terrorist financing, we file Suspicious Transaction Reports (STRs) with FIU-IND as required by law. Users are not notified of SAR filings where notification is prohibited.</p><p>Indicators include: inability to explain source of funds, reluctance to provide KYC documents, transactions with no apparent economic purpose, and use of multiple accounts to obscure identity.</p>', 'policies/sections/aml-policy-suspicious-activity-reporting-sar-section-800x400.svg', 'notice', 5, 1, '2026-06-19 06:52:19', '2026-06-19 06:52:19'),
(964, 29, 'Prohibited Activities', '<ul class=\"mb-3\"><li>Using Gletra to launder proceeds of crime</li><li>Structuring transactions to avoid reporting thresholds</li><li>Using stolen payment instruments or compromised accounts</li><li>Shell seller accounts for pass-through transactions</li><li>Off-platform payment schemes to obscure transaction trails</li><li>Transactions involving sanctioned individuals or entities</li></ul>', 'policies/sections/aml-policy-prohibited-activities-section-800x400.svg', 'legal_update', 6, 1, '2026-06-19 06:52:19', '2026-06-19 06:52:19'),
(965, 29, 'Record Keeping', '<p>Gletra maintains transaction records, KYC documents, and compliance reports for a minimum of 7 years from account closure or last transaction, whichever is later. Records are stored securely and made available to regulators upon lawful request.</p>', 'policies/sections/aml-policy-record-keeping-section-800x400.svg', 'content', 7, 1, '2026-06-19 06:52:19', '2026-06-19 06:52:19'),
(966, 29, 'Employee Training and Governance', '<p>Gletra\'s Compliance Officer oversees the AML program. All employees handling financial transactions, KYC review, or seller onboarding receive annual AML training. The program is audited internally every 12 months and by external auditors biennially.</p>', 'policies/sections/aml-policy-employee-training-and-governance-section-800x400.svg', 'content', 8, 1, '2026-06-19 06:52:19', '2026-06-19 06:52:19'),
(967, 29, 'Sanctions Screening', '<p>All users are screened against UN Security Council sanctions lists, OFAC SDN list, and Indian Ministry of Home Affairs proscribed entity lists at onboarding and continuously thereafter. Matches result in account blocking and regulatory reporting.</p>', 'policies/sections/aml-policy-sanctions-screening-section-800x400.svg', 'highlight', 9, 1, '2026-06-19 06:52:19', '2026-06-19 06:52:19'),
(968, 29, 'User Cooperation and Contact', '<p>Users must provide accurate information and respond to compliance inquiries within 7 days. Non-cooperation results in account restriction. AML inquiries: compliance@gletra.com. Compliance Officer: aml-officer@gletra.com.</p>', 'policies/sections/aml-policy-user-cooperation-and-contact-section-800x400.svg', 'content', 10, 1, '2026-06-19 06:52:19', '2026-06-19 06:52:19'),
(969, 30, 'Data Controller Information', '<p><strong>Data Controller:</strong> Gletra Technologies Pvt. Ltd., 42 Brigade Tech Park, Whitefield, Bengaluru, Karnataka 560066, India.</p><p><strong>EU Representative:</strong> Where required, Gletra appoints an EU representative accessible at dpo@gletra.com for EEA data subject inquiries.</p><p><strong>Data Protection Officer:</strong> dpo@gletra.com</p>', 'policies/sections/gdpr-compliance-data-controller-information-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:20', '2026-06-19 06:52:20'),
(970, 30, 'Legal Bases for Processing', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Processing Activity</th><th>Legal Basis</th><th>GDPR Article</th></tr></thead><tbody><tr><td>Account creation and order fulfillment</td><td>Contract performance</td><td>Art. 6(1)(b)</td></tr><tr><td>KYC and AML compliance</td><td>Legal obligation</td><td>Art. 6(1)(c)</td></tr><tr><td>Fraud prevention and platform security</td><td>Legitimate interests</td><td>Art. 6(1)(f)</td></tr><tr><td>Marketing communications</td><td>Consent</td><td>Art. 6(1)(a)</td></tr><tr><td>Chat and call metadata storage</td><td>Legitimate interests / Contract</td><td>Art. 6(1)(f)/(b)</td></tr><tr><td>Analytics and product improvement</td><td>Legitimate interests (with opt-out)</td><td>Art. 6(1)(f)</td></tr></tbody></table></div>', 'policies/sections/gdpr-compliance-legal-bases-for-processing-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:20', '2026-06-19 06:52:20'),
(971, 30, 'Personal Data Categories Processed', '<ul class=\"mb-3\"><li>Identity data: name, email, phone, date of birth, government ID (KYC)</li><li>Transaction data: orders, bookings, payments, wallet activity</li><li>Communication data: chat messages, call metadata, support tickets</li><li>Technical data: IP address, device ID, browser type, cookies</li><li>Location data: delivery address, service location (with consent for GPS)</li><li>Profile data: preferences, reviews, seller/service provider credentials</li></ul>', 'policies/sections/gdpr-compliance-personal-data-categories-processed-section-800x400.svg', 'content', 3, 1, '2026-06-19 06:52:20', '2026-06-19 06:52:20'),
(972, 30, 'Your GDPR Rights', '<h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Right of Access (Art. 15)</h4><p>Request a copy of personal data Gletra holds about you.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Right to Rectification (Art. 16)</h4><p>Correct inaccurate personal data via Account Settings or dpo@gletra.com.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Right to Erasure (Art. 17)</h4><p>Request deletion where no legal retention obligation exists.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Right to Restriction (Art. 18)</h4><p>Limit processing during dispute resolution or objection review.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Right to Data Portability (Art. 20)</h4><p>Receive your data in structured, machine-readable format.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Right to Object (Art. 21)</h4><p>Object to processing based on legitimate interests or for direct marketing.</p><h4 class=\"h6 fw-bold mt-3 mb-2 text-dark\">Right to Withdraw Consent (Art. 7)</h4><p>Withdraw marketing consent anytime via Account Settings without affecting prior lawful processing.</p>', 'policies/sections/gdpr-compliance-your-gdpr-rights-section-800x400.svg', 'highlight', 4, 1, '2026-06-19 06:52:20', '2026-06-19 06:52:20'),
(973, 30, 'Exercising Your Rights', '<p>Submit requests to dpo@gletra.com with subject \"GDPR Data Subject Request.\" Include account email and request type. Gletra responds within 30 days (extendable by 60 days for complex requests with notice). Identity verification required before disclosure.</p>', 'policies/sections/gdpr-compliance-exercising-your-rights-section-800x400.svg', 'content', 5, 1, '2026-06-19 06:52:20', '2026-06-19 06:52:20'),
(974, 30, 'International Data Transfers', '<p>Personal data of EEA/UK users may be transferred to India and other countries where Gletra or its processors operate. Transfers are protected by:</p><ul class=\"mb-3\"><li>Standard Contractual Clauses (SCCs) approved by European Commission</li><li>UK International Data Transfer Agreement where applicable</li><li>Adequacy decisions where recognized by relevant authorities</li><li>Supplementary measures including encryption and access controls</li></ul>', 'policies/sections/gdpr-compliance-international-data-transfers-section-800x400.svg', 'notice', 6, 1, '2026-06-19 06:52:20', '2026-06-19 06:52:20'),
(975, 30, 'Data Processors and Sub-Processors', '<p>Gletra engages vetted processors for payment processing, cloud hosting, KYC verification, email delivery, and analytics. All processors are bound by Data Processing Agreements requiring GDPR-equivalent protections. Sub-processor list available on request from dpo@gletra.com.</p>', 'policies/sections/gdpr-compliance-data-processors-and-sub-processors-section-800x400.svg', 'content', 7, 1, '2026-06-19 06:52:20', '2026-06-19 06:52:20'),
(976, 30, 'Data Retention for EEA/UK Users', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Data Category</th><th>Retention Period</th><th>Basis</th></tr></thead><tbody><tr><td>Account profile</td><td>Account lifetime + 2 years</td><td>Contract / legal claims</td></tr><tr><td>Transaction records</td><td>7 years</td><td>Tax and AML legal obligation</td></tr><tr><td>Chat messages</td><td>3 years from last activity</td><td>Dispute resolution legitimate interest</td></tr><tr><td>Marketing consent records</td><td>Duration of consent + 3 years</td><td>Legal obligation to demonstrate consent</td></tr><tr><td>KYC documents</td><td>7 years after account closure</td><td>AML legal obligation</td></tr></tbody></table></div>', 'policies/sections/gdpr-compliance-data-retention-for-eeauk-users-section-800x400.svg', 'content', 8, 1, '2026-06-19 06:52:20', '2026-06-19 06:52:20'),
(977, 30, 'Automated Decision-Making', '<p>Gletra uses automated systems for fraud scoring, product recommendations, and search ranking. These do not produce legal or similarly significant effects without human review. You may request human review of automated fraud holds by contacting dpo@gletra.com.</p>', 'policies/sections/gdpr-compliance-automated-decision-making-section-800x400.svg', 'notice', 9, 1, '2026-06-19 06:52:20', '2026-06-19 06:52:20'),
(978, 30, 'Complaints and Supervisory Authority', '<p>You have the right to lodge a complaint with your local data protection supervisory authority. Gletra encourages contacting our DPO first at dpo@gletra.com to resolve concerns. List of EU supervisory authorities: edpb.europa.eu.</p>', 'policies/sections/gdpr-compliance-complaints-and-supervisory-authority-section-800x400.svg', 'legal_update', 10, 1, '2026-06-19 06:52:20', '2026-06-19 06:52:20'),
(979, 31, 'Company Information', '<p><strong>Legal Name:</strong> Gletra Technologies Pvt. Ltd.</p><p><strong>Registered Office:</strong><br>42, Brigade Tech Park, 1st Floor, Whitefield Main Road,<br>Whitefield, Bengaluru, Karnataka 560066, India</p><p><strong>Corporate Identity Number (CIN):</strong> U72900KA2021PTC145678</p><p><strong>GSTIN:</strong> 29AABCG1234F1Z5</p><p><strong>Website:</strong> https://www.gletra.com</p>', 'policies/sections/contact-legal-company-information-section-800x400.svg', 'content', 1, 1, '2026-06-19 06:52:21', '2026-06-19 06:52:21'),
(980, 31, 'Department Contact Channels', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Department</th><th>Email</th><th>Purpose</th></tr></thead><tbody><tr><td>General Support</td><td>support@gletra.com</td><td>Orders, bookings, refunds, account help</td></tr><tr><td>Legal</td><td>legal@gletra.com</td><td>Legal notices, contracts, litigation</td></tr><tr><td>Privacy / DPO</td><td>dpo@gletra.com</td><td>GDPR requests, privacy inquiries</td></tr><tr><td>Copyright</td><td>copyright@gletra.com</td><td>IP infringement notices</td></tr><tr><td>Compliance / AML</td><td>compliance@gletra.com</td><td>AML inquiries, regulatory correspondence</td></tr><tr><td>KYC</td><td>kyc@gletra.com</td><td>Identity verification support</td></tr><tr><td>Payments</td><td>payments@gletra.com</td><td>Payment and settlement issues</td></tr><tr><td>Wallet</td><td>wallet@gletra.com</td><td>Wallet balance and withdrawal</td></tr><tr><td>Safety</td><td>safety@gletra.com</td><td>Safety reports and emergencies</td></tr><tr><td>Fraud</td><td>fraud@gletra.com</td><td>Fraud and unauthorized activity</td></tr><tr><td>Disputes</td><td>disputes@gletra.com</td><td>Formal dispute escalation</td></tr><tr><td>Seller Support</td><td>seller-support@gletra.com</td><td>Seller panel and settlements</td></tr><tr><td>Abuse</td><td>abuse@gletra.com</td><td>Spam, harassment, platform abuse</td></tr></tbody></table></div>', 'policies/sections/contact-legal-department-contact-channels-section-800x400.svg', 'highlight', 2, 1, '2026-06-19 06:52:21', '2026-06-19 06:52:21'),
(981, 31, 'Grievance Officer (IT Rules 2021)', '<p><strong>Name:</strong> Ms. Priya Sharma, Grievance Officer</p><p><strong>Email:</strong> grievance@gletra.com</p><p><strong>Address:</strong> Gletra Technologies Pvt. Ltd., 42 Brigade Tech Park, Whitefield, Bengaluru 560066, India</p><p>The Grievance Officer acknowledges complaints within 24 hours and aims to resolve them within 15 days. For content-related grievances under IT Rules 2021, include the content URL and nature of complaint.</p>', 'policies/sections/contact-legal-grievance-officer-it-rules-2021-section-800x400.svg', 'notice', 3, 1, '2026-06-19 06:52:21', '2026-06-19 06:52:21'),
(982, 31, 'Legal Notices and Service of Process', '<p>Legal notices, court orders, and service of process must be delivered to:</p><ol class=\"mb-3\"><li>Registered Office (registered post or courier with acknowledgment)</li><li>Electronic copy to legal@gletra.com (PDF format with sender verification)</li></ol><p>Gletra does not accept legal service via social media, chat, or general support email without \"Legal Notice\" designation.</p>', 'policies/sections/contact-legal-legal-notices-and-service-of-process-section-800x400.svg', 'legal_update', 4, 1, '2026-06-19 06:52:21', '2026-06-19 06:52:21'),
(983, 31, 'Regulatory and Law Enforcement', '<p>Law enforcement and regulatory agencies may contact compliance@gletra.com with official credentials and legal authority documentation. Gletra responds to lawful requests in accordance with applicable law and our Law Enforcement Guidelines.</p>', 'policies/sections/contact-legal-regulatory-and-law-enforcement-section-800x400.svg', 'content', 5, 1, '2026-06-19 06:52:21', '2026-06-19 06:52:21'),
(984, 31, 'Media and Press Inquiries', '<p>Media inquiries: press@gletra.com. Gletra\'s communications team responds to verified media requests within 2 business days.</p>', 'policies/sections/contact-legal-media-and-press-inquiries-section-800x400.svg', 'content', 6, 1, '2026-06-19 06:52:21', '2026-06-19 06:52:21'),
(985, 31, 'Business and Partnership Inquiries', '<p>Enterprise sellers, brand partnerships, and API integrations: partner-support@gletra.com or visit gletra.com/partners.</p>', 'policies/sections/contact-legal-business-and-partnership-inquiries-section-800x400.svg', 'content', 7, 1, '2026-06-19 06:52:21', '2026-06-19 06:52:21'),
(986, 31, 'Office Hours and Support Availability', '<div class=\"table-responsive mb-3\"><table class=\"table table-bordered table-sm\"><thead class=\"table-light\"><tr><th>Channel</th><th>Hours (IST)</th><th>Languages</th></tr></thead><tbody><tr><td>Live chat (in-app)</td><td>8:00 AM – 10:00 PM daily</td><td>English, Hindi</td></tr><tr><td>Email support</td><td>24/7 intake; response 8 AM–10 PM</td><td>English, Hindi</td></tr><tr><td>Emergency safety (home services)</td><td>24/7</td><td>English, Hindi</td></tr><tr><td>Legal / compliance email</td><td>Business days; 24/7 intake</td><td>English</td></tr></tbody></table></div>', 'policies/sections/contact-legal-office-hours-and-support-availability-section-800x400.svg', 'highlight', 8, 1, '2026-06-19 06:52:22', '2026-06-19 06:52:22'),
(987, 31, 'Accessibility', '<p>Gletra is committed to digital accessibility. Report accessibility barriers to accessibility@gletra.com.</p>', 'policies/sections/contact-legal-accessibility-section-800x400.svg', 'content', 9, 1, '2026-06-19 06:52:22', '2026-06-19 06:52:22'),
(988, 31, 'Policy Document Index', '<p>All Gletra policies are available at gletra.com/legal. Key documents include Privacy Policy, Terms & Conditions, Payment Terms, Wallet Policy, KYC Verification Policy, Customer Protection Policy, and this Contact & Legal Information page.</p>', 'policies/sections/contact-legal-policy-document-index-section-800x400.svg', 'content', 10, 1, '2026-06-19 06:52:22', '2026-06-19 06:52:22');

-- --------------------------------------------------------

--
-- Table structure for table `price_change_requests`
--

CREATE TABLE `price_change_requests` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `product_variant_id` bigint(20) UNSIGNED DEFAULT NULL,
  `vendor_id` bigint(20) UNSIGNED NOT NULL,
  `admin_id` bigint(20) UNSIGNED DEFAULT NULL,
  `current_price` decimal(10,2) NOT NULL,
  `current_sale_price` decimal(10,2) DEFAULT NULL,
  `requested_price` decimal(10,2) NOT NULL,
  `requested_sale_price` decimal(10,2) DEFAULT NULL,
  `approved_price` decimal(10,2) DEFAULT NULL,
  `approved_sale_price` decimal(10,2) DEFAULT NULL,
  `reason` text NOT NULL,
  `status` enum('pending','approved','rejected') NOT NULL DEFAULT 'pending',
  `admin_remark` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `price_history_logs`
--

CREATE TABLE `price_history_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `product_variant_id` bigint(20) UNSIGNED DEFAULT NULL,
  `vendor_id` bigint(20) UNSIGNED NOT NULL,
  `admin_id` bigint(20) UNSIGNED DEFAULT NULL,
  `old_price` decimal(10,2) NOT NULL,
  `new_price` decimal(10,2) NOT NULL,
  `old_sale_price` decimal(10,2) DEFAULT NULL,
  `new_sale_price` decimal(10,2) DEFAULT NULL,
  `reason` text DEFAULT NULL,
  `source` varchar(50) NOT NULL DEFAULT 'admin_direct',
  `price_change_request_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `vendor_id` bigint(20) UNSIGNED DEFAULT NULL,
  `category_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_type_id` bigint(20) UNSIGNED DEFAULT NULL,
  `brand_id` bigint(20) UNSIGNED DEFAULT NULL,
  `name` varchar(200) DEFAULT NULL,
  `primary_image` varchar(255) DEFAULT NULL,
  `slug` varchar(200) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `short_description` varchar(500) DEFAULT NULL,
  `price` decimal(10,2) DEFAULT NULL,
  `weight` decimal(8,2) NOT NULL DEFAULT 0.50,
  `sale_price` decimal(10,2) DEFAULT NULL,
  `sku` varchar(100) DEFAULT NULL,
  `product_code` varchar(50) DEFAULT NULL,
  `barcode` varchar(64) DEFAULT NULL,
  `print_sku_on_image` tinyint(1) NOT NULL DEFAULT 1,
  `hsn_code` varchar(20) DEFAULT NULL,
  `gst_rate` decimal(5,2) NOT NULL DEFAULT 18.00,
  `stock_qty` int(11) NOT NULL DEFAULT 0,
  `low_stock_threshold` int(10) UNSIGNED NOT NULL DEFAULT 5,
  `product_type` enum('simple','variable','digital') DEFAULT NULL,
  `listing_type` enum('own','affiliate') NOT NULL DEFAULT 'own',
  `affiliate_source` enum('amazon','flipkart','meesho','myntra','other') DEFAULT NULL,
  `affiliate_url` varchar(500) DEFAULT NULL,
  `affiliate_status` enum('pending','approved','rejected') DEFAULT NULL,
  `affiliate_admin_remark` text DEFAULT NULL,
  `affiliate_reviewed_at` timestamp NULL DEFAULT NULL,
  `status` varchar(50) DEFAULT 'pending',
  `is_live` tinyint(1) NOT NULL DEFAULT 0,
  `approved_at` timestamp NULL DEFAULT NULL,
  `is_cod_available` tinyint(1) NOT NULL DEFAULT 1,
  `is_prepaid_available` tinyint(1) NOT NULL DEFAULT 1,
  `length` decimal(8,2) DEFAULT NULL,
  `width` decimal(8,2) DEFAULT NULL,
  `height` decimal(8,2) DEFAULT NULL,
  `is_featured` tinyint(4) NOT NULL DEFAULT 0,
  `average_rating` decimal(3,2) NOT NULL DEFAULT 0.00,
  `rating_count` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `is_flash_sale` tinyint(1) NOT NULL DEFAULT 0,
  `flash_sale_price` decimal(15,2) DEFAULT NULL,
  `is_deal_of_the_day` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `ai_tags` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`ai_tags`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_analytics_daily`
--

CREATE TABLE `product_analytics_daily` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `vendor_id` bigint(20) UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `views` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `unique_views` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `clicks` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `unique_clicks` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `searches` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `page_visits` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `cart_adds` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `wishlist_adds` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `checkout_starts` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `orders` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `units_sold` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `revenue` decimal(14,2) NOT NULL DEFAULT 0.00,
  `returns` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `cancellations` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `conversion_rate` decimal(8,4) NOT NULL DEFAULT 0.0000,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_analytics_insights`
--

CREATE TABLE `product_analytics_insights` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `vendor_id` bigint(20) UNSIGNED NOT NULL,
  `insight_type` varchar(50) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `severity` varchar(20) NOT NULL DEFAULT 'medium',
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `metrics` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`metrics`)),
  `recommendations` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`recommendations`)),
  `detected_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `expires_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_analytics_recommendations`
--

CREATE TABLE `product_analytics_recommendations` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `vendor_id` bigint(20) UNSIGNED NOT NULL,
  `recommendation_type` varchar(50) NOT NULL,
  `title` varchar(255) NOT NULL,
  `message` text NOT NULL,
  `action_items` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`action_items`)),
  `priority` tinyint(3) UNSIGNED NOT NULL DEFAULT 5,
  `is_read` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_answers`
--

CREATE TABLE `product_answers` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_question_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `answer` text NOT NULL,
  `is_vendor_reply` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_attributes`
--

CREATE TABLE `product_attributes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `slug` varchar(255) NOT NULL,
  `type` enum('text','select','color','number') NOT NULL DEFAULT 'select',
  `is_filterable` tinyint(1) NOT NULL DEFAULT 1,
  `sort_order` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_attribute_product`
--

CREATE TABLE `product_attribute_product` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `product_attribute_value_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_attribute_values`
--

CREATE TABLE `product_attribute_values` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_attribute_id` bigint(20) UNSIGNED NOT NULL,
  `value` varchar(255) NOT NULL,
  `slug` varchar(255) DEFAULT NULL,
  `color_hex` varchar(7) DEFAULT NULL,
  `sort_order` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_comparisons`
--

CREATE TABLE `product_comparisons` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `session_id` varchar(64) DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_galleries`
--

CREATE TABLE `product_galleries` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `image` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_health_scores`
--

CREATE TABLE `product_health_scores` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `vendor_id` bigint(20) UNSIGNED NOT NULL,
  `score` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
  `grade` varchar(20) NOT NULL DEFAULT 'needs_attention',
  `views_score` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
  `clicks_score` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
  `orders_score` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
  `conversion_score` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
  `revenue_score` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
  `returns_score` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
  `ratings_score` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
  `period` varchar(20) NOT NULL DEFAULT '30d',
  `computed_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_images`
--

CREATE TABLE `product_images` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `image_path` varchar(255) DEFAULT NULL,
  `is_primary` tinyint(4) NOT NULL DEFAULT 0,
  `hash` varchar(64) DEFAULT NULL,
  `overlay_number` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_questions`
--

CREATE TABLE `product_questions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `question` text NOT NULL,
  `is_approved` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_tags`
--

CREATE TABLE `product_tags` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `tag` varchar(255) NOT NULL,
  `is_ai_generated` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_types`
--

CREATE TABLE `product_types` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `category_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(150) NOT NULL,
  `slug` varchar(150) NOT NULL,
  `description` text DEFAULT NULL,
  `image` varchar(255) DEFAULT NULL,
  `display_order` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_updates`
--

CREATE TABLE `product_updates` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `vendor_id` bigint(20) UNSIGNED NOT NULL,
  `updated_fields` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`updated_fields`)),
  `status` enum('pending','approved','rejected') NOT NULL DEFAULT 'pending',
  `admin_remark` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_variants`
--

CREATE TABLE `product_variants` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `price` decimal(10,2) DEFAULT NULL,
  `sale_price` decimal(10,2) DEFAULT NULL,
  `stock_qty` int(11) NOT NULL DEFAULT 0,
  `sku` varchar(255) DEFAULT NULL,
  `featured_image` varchar(255) DEFAULT NULL,
  `combination_key` varchar(255) DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `barcode` varchar(64) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_variant_values`
--

CREATE TABLE `product_variant_values` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_variant_id` bigint(20) UNSIGNED NOT NULL,
  `variant_value_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `product_view_logs`
--

CREATE TABLE `product_view_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `session_id` varchar(64) NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `vendor_id` bigint(20) UNSIGNED DEFAULT NULL,
  `source_page` varchar(100) DEFAULT NULL,
  `view_duration_seconds` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `was_shared` tinyint(1) NOT NULL DEFAULT 0,
  `added_to_cart` tinyint(1) NOT NULL DEFAULT 0,
  `added_to_wishlist` tinyint(1) NOT NULL DEFAULT 0,
  `purchased` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `promotional_campaigns`
--

CREATE TABLE `promotional_campaigns` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `slug` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `type` enum('banner','email','push','sms') NOT NULL DEFAULT 'banner',
  `target_rules` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`target_rules`)),
  `starts_at` timestamp NULL DEFAULT NULL,
  `ends_at` timestamp NULL DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `push_notification_devices`
--

CREATE TABLE `push_notification_devices` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `device_token` varchar(255) NOT NULL,
  `platform` enum('web','android','ios') NOT NULL DEFAULT 'web',
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `push_subscriptions`
--

CREATE TABLE `push_subscriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `endpoint` varchar(500) NOT NULL,
  `public_key` varchar(255) DEFAULT NULL,
  `auth_token` varchar(255) DEFAULT NULL,
  `content_encoding` varchar(255) DEFAULT NULL,
  `user_agent` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `push_subscriptions`
--

INSERT INTO `push_subscriptions` (`id`, `user_id`, `endpoint`, `public_key`, `auth_token`, `content_encoding`, `user_agent`, `created_at`, `updated_at`) VALUES
(37, 1, 'https://fcm.googleapis.com/fcm/send/fcCwpBu4alQ:APA91bHtxT-l3UNJLlBAqhJE0GGUp2Yh3p6bS7Q6fDA_KuUzaW_h87rRjXLzN50XZmIy79fzBQDostegvHRQ-dRrkqliNNFD59ZKdr_Z2y92eGCiRKHklnLx1mZrxkPS3N_n3D-9QoUq', 'BKtjpu4jcZxRZtIFbTcw9PRSQkIOyAuI4TDFZwul_Yn9WVRpmGgC3hDl3jhajSzIhhCLRGmaEEcgBMIxHlutfCs', 'WZm9eFiMPN07VhCTXU1BcA', 'aesgcm', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36', '2026-07-06 20:47:10', '2026-07-06 21:39:24'),
(38, 26, 'https://fcm.googleapis.com/fcm/send/fNUEvJdsOWU:APA91bH5vCh8H3mYPe2YnerHJWYGA3TaGP8Sfz-r_YaE6JVy9T_sk6cKvRJIOZjaH6A9Uktb1QQbJjtGfo5LFjc9mxYwxbPh0K6q7xvDmQWEYxDIy1jNlORMtL8fIbWKsXUCRVFfsOnL', 'BMPWQ3op55nkTTCWj4cmwAn6RMXZYbiFTxiwDLeqa1a9R-tBXbPWJTcfcjzOTq-lqr0dg2z2vqiVcRPajSK6lBQ', '2XymXx69Emt_KTHK7oiNSg', 'aesgcm', 'Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1', '2026-07-07 02:06:32', '2026-07-07 02:47:31'),
(39, 1, 'https://fcm.googleapis.com/fcm/send/fNUEvJdsOWU:APA91bH5vCh8H3mYPe2YnerHJWYGA3TaGP8Sfz-r_YaE6JVy9T_sk6cKvRJIOZjaH6A9Uktb1QQbJjtGfo5LFjc9mxYwxbPh0K6q7xvDmQWEYxDIy1jNlORMtL8fIbWKsXUCRVFfsOnL', 'BMPWQ3op55nkTTCWj4cmwAn6RMXZYbiFTxiwDLeqa1a9R-tBXbPWJTcfcjzOTq-lqr0dg2z2vqiVcRPajSK6lBQ', '2XymXx69Emt_KTHK7oiNSg', 'aesgcm', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36', '2026-07-07 11:18:09', '2026-07-07 12:04:54');

-- --------------------------------------------------------

--
-- Table structure for table `ratings`
--

CREATE TABLE `ratings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `booking_id` bigint(20) UNSIGNED NOT NULL,
  `customer_id` bigint(20) UNSIGNED NOT NULL,
  `worker_id` bigint(20) UNSIGNED NOT NULL,
  `rating` tinyint(3) UNSIGNED NOT NULL,
  `comment` text DEFAULT NULL,
  `images` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`images`)),
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `recently_vieweds`
--

CREATE TABLE `recently_vieweds` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `viewed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `reels`
--

CREATE TABLE `reels` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `video` varchar(255) NOT NULL,
  `thumbnail` varchar(255) DEFAULT NULL,
  `caption` text DEFAULT NULL,
  `music_name` varchar(255) DEFAULT NULL,
  `music_url` varchar(255) DEFAULT NULL,
  `trim_start` decimal(8,2) NOT NULL DEFAULT 0.00,
  `duration` decimal(8,2) DEFAULT NULL,
  `views` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `likes_count` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `reel_comments`
--

CREATE TABLE `reel_comments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `reel_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `body` text NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `reel_likes`
--

CREATE TABLE `reel_likes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `reel_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `referrals`
--

CREATE TABLE `referrals` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `referral_type` varchar(20) NOT NULL DEFAULT 'customer',
  `referrer_id` bigint(20) UNSIGNED NOT NULL,
  `referred_user_id` bigint(20) UNSIGNED NOT NULL,
  `coins_earned` decimal(12,2) NOT NULL DEFAULT 0.00,
  `coins_unlocked` decimal(12,2) NOT NULL DEFAULT 0.00,
  `status` enum('pending','successful','flagged','blocked') NOT NULL DEFAULT 'pending',
  `ip_address` varchar(45) DEFAULT NULL,
  `device_id` varchar(255) DEFAULT NULL,
  `first_order_at` timestamp NULL DEFAULT NULL,
  `is_fraud` tinyint(1) NOT NULL DEFAULT 0,
  `risk_score` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `referrals`
--

INSERT INTO `referrals` (`id`, `referral_type`, `referrer_id`, `referred_user_id`, `coins_earned`, `coins_unlocked`, `status`, `ip_address`, `device_id`, `first_order_at`, `is_fraud`, `risk_score`, `created_at`, `updated_at`) VALUES
(1, 'customer', 26, 27, 100.00, 0.00, 'pending', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36127.0.0.1', NULL, 0, 0, '2026-07-06 21:07:17', '2026-07-06 21:07:17'),
(2, 'customer', 26, 28, 100.00, 100.00, 'successful', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36127.0.0.1', '2026-07-07 02:53:16', 0, 0, '2026-07-07 02:53:16', '2026-07-07 02:53:16');

-- --------------------------------------------------------

--
-- Table structure for table `refund_requests`
--

CREATE TABLE `refund_requests` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `order_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `reason` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `status` enum('pending','approved','rejected') NOT NULL DEFAULT 'pending',
  `admin_note` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `related_products`
--

CREATE TABLE `related_products` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `related_product_id` bigint(20) UNSIGNED NOT NULL,
  `sort_order` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `return_requests`
--

CREATE TABLE `return_requests` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `order_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `type` enum('return','exchange','cancel') NOT NULL DEFAULT 'return',
  `items` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`items`)),
  `reason` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `status` enum('pending','approved','rejected','picked_up','completed') NOT NULL DEFAULT 'pending',
  `admin_note` text DEFAULT NULL,
  `refund_amount` decimal(10,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `reviews`
--

CREATE TABLE `reviews` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `vendor_id` bigint(20) UNSIGNED DEFAULT NULL,
  `order_id` bigint(20) UNSIGNED DEFAULT NULL,
  `booking_id` bigint(20) UNSIGNED DEFAULT NULL,
  `worker_id` bigint(20) UNSIGNED DEFAULT NULL,
  `review_type` varchar(20) NOT NULL DEFAULT 'product',
  `rating` int(11) DEFAULT NULL,
  `review` text DEFAULT NULL,
  `vendor_reply` text DEFAULT NULL,
  `replied_at` timestamp NULL DEFAULT NULL,
  `image` varchar(255) DEFAULT NULL,
  `images` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`images`)),
  `status` tinyint(4) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `reward_points`
--

CREATE TABLE `reward_points` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `points` int(11) NOT NULL,
  `type` varchar(20) NOT NULL,
  `description` varchar(255) NOT NULL,
  `reference_type` varchar(255) DEFAULT NULL,
  `reference_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `roles`
--

CREATE TABLE `roles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `guard_name` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `roles`
--

INSERT INTO `roles` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'Super Admin', 'web', '2026-01-24 11:47:11', '2026-01-24 11:47:11'),
(2, 'Admin', 'web', '2026-01-24 11:47:11', '2026-01-24 11:47:11'),
(3, 'Vendor', 'web', '2026-01-24 11:47:11', '2026-01-24 11:47:11'),
(4, 'Vendor Staff', 'web', '2026-01-24 11:47:11', '2026-01-24 11:47:11'),
(5, 'Customer', 'web', '2026-01-24 11:47:11', '2026-01-24 11:47:11'),
(6, 'special_user', 'web', '2026-01-25 15:59:48', '2026-01-25 15:59:48'),
(7, 'Designer', 'web', '2026-01-27 12:07:59', '2026-01-27 12:07:59'),
(8, 'User', 'web', '2026-01-27 12:07:59', '2026-01-27 12:07:59'),
(9, 'Support', 'web', '2026-02-08 11:39:48', '2026-02-08 11:39:48'),
(10, 'Editor', 'web', '2026-02-08 11:39:48', '2026-02-08 11:39:48');

-- --------------------------------------------------------

--
-- Table structure for table `role_has_permissions`
--

CREATE TABLE `role_has_permissions` (
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `role_has_permissions`
--

INSERT INTO `role_has_permissions` (`permission_id`, `role_id`) VALUES
(1, 1),
(1, 2),
(1, 3),
(1, 4),
(1, 5),
(2, 1),
(2, 2),
(3, 1),
(3, 2),
(4, 1),
(4, 2),
(4, 3),
(4, 4),
(5, 1),
(5, 2),
(6, 1),
(6, 2),
(6, 3),
(6, 4),
(6, 5),
(7, 1),
(7, 2),
(8, 1),
(8, 3),
(9, 1),
(10, 1),
(11, 1),
(11, 3),
(11, 5),
(12, 1),
(13, 1),
(14, 1),
(14, 2),
(15, 1),
(15, 2),
(16, 1),
(17, 1),
(18, 7),
(19, 7),
(20, 7),
(21, 7),
(22, 7),
(23, 7),
(24, 7),
(25, 7),
(26, 7),
(27, 7),
(28, 7),
(29, 7),
(30, 7),
(31, 7),
(32, 7),
(33, 7),
(34, 7),
(33, 9),
(34, 9);

-- --------------------------------------------------------

--
-- Table structure for table `scheduled_messages`
--

CREATE TABLE `scheduled_messages` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `conversation_id` bigint(20) UNSIGNED NOT NULL,
  `body` text DEFAULT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'text',
  `media_path` varchar(255) DEFAULT NULL,
  `send_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `status` varchar(20) NOT NULL DEFAULT 'pending',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `search_analytics_daily`
--

CREATE TABLE `search_analytics_daily` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `normalized_keyword` varchar(255) NOT NULL,
  `date` date NOT NULL,
  `category_id` bigint(20) UNSIGNED DEFAULT NULL,
  `brand_id` bigint(20) UNSIGNED DEFAULT NULL,
  `search_count` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `cart_adds` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `orders_count` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `no_purchase_count` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `search_to_cart_ratio` decimal(8,4) NOT NULL DEFAULT 0.0000,
  `search_to_order_ratio` decimal(8,4) NOT NULL DEFAULT 0.0000,
  `conversion_rate` decimal(8,4) NOT NULL DEFAULT 0.0000,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `search_analytics_logs`
--

CREATE TABLE `search_analytics_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `keyword` varchar(255) NOT NULL,
  `normalized_keyword` varchar(255) NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `session_id` varchar(64) DEFAULT NULL,
  `category_id` bigint(20) UNSIGNED DEFAULT NULL,
  `brand_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_ids` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`product_ids`)),
  `result_count` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `led_to_cart` tinyint(1) NOT NULL DEFAULT 0,
  `led_to_order` tinyint(1) NOT NULL DEFAULT 0,
  `order_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `search_no_product_logs`
--

CREATE TABLE `search_no_product_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `keyword` varchar(255) NOT NULL,
  `normalized_keyword` varchar(255) NOT NULL,
  `search_count` int(10) UNSIGNED NOT NULL DEFAULT 1,
  `first_searched_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `last_searched_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `section_settings`
--

CREATE TABLE `section_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `section_name` varchar(255) NOT NULL,
  `order` int(11) NOT NULL DEFAULT 0,
  `is_enabled` tinyint(1) NOT NULL DEFAULT 1,
  `settings` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`settings`)),
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `section_settings`
--

INSERT INTO `section_settings` (`id`, `section_name`, `order`, `is_enabled`, `settings`, `created_at`, `updated_at`) VALUES
(1, 'hero', 1, 1, '{\"padding\":\"0\",\"bg_color\":\"#ffffff\"}', '2026-01-27 12:13:52', '2026-01-27 12:13:52'),
(2, 'trust_bar', 2, 1, '{\"padding\":\"50px 0\",\"bg_color\":\"#ffffff\"}', '2026-01-27 12:13:52', '2026-01-27 12:13:52'),
(3, 'categories', 3, 1, '{\"padding\":\"50px 0\",\"bg_color\":\"#ffffff\"}', '2026-01-27 12:13:52', '2026-01-27 12:13:52'),
(4, 'featured', 4, 1, '{\"padding\":\"50px 0\",\"bg_color\":\"#f8f9fa\"}', '2026-01-27 12:13:52', '2026-01-27 12:13:52'),
(5, 'new_arrivals', 5, 1, '{\"padding\":\"50px 0\",\"bg_color\":\"#ffffff\"}', '2026-01-27 12:13:52', '2026-01-27 12:13:52'),
(6, 'promo', 6, 1, '{\"padding\":\"50px 0\",\"bg_color\":\"#ffffff\"}', '2026-01-27 12:13:52', '2026-01-27 12:13:52'),
(7, 'vendors', 7, 1, '{\"padding\":\"50px 0\",\"bg_color\":\"#ffffff\"}', '2026-01-27 12:13:52', '2026-01-27 12:13:52'),
(8, 'all_products', 8, 1, '{\"padding\":\"50px 0\",\"bg_color\":\"#ffffff\"}', '2026-01-27 12:13:52', '2026-01-27 12:13:52');

-- --------------------------------------------------------

--
-- Table structure for table `seller_bank_accounts`
--

CREATE TABLE `seller_bank_accounts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `seller_profile_id` bigint(20) UNSIGNED NOT NULL,
  `account_holder_name` varchar(255) NOT NULL,
  `bank_name` varchar(255) NOT NULL,
  `account_number` varchar(255) NOT NULL,
  `ifsc_code` varchar(20) NOT NULL,
  `is_primary` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `seller_flash_sales`
--

CREATE TABLE `seller_flash_sales` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `seller_profile_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `starts_at` timestamp NULL DEFAULT NULL,
  `ends_at` timestamp NULL DEFAULT NULL,
  `discount_percentage` decimal(5,2) NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `seller_kyc_documents`
--

CREATE TABLE `seller_kyc_documents` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `seller_profile_id` bigint(20) UNSIGNED NOT NULL,
  `aadhaar_front` varchar(255) DEFAULT NULL,
  `aadhaar_back` varchar(255) DEFAULT NULL,
  `pan_card` varchar(255) DEFAULT NULL,
  `selfie_photo` varchar(255) DEFAULT NULL,
  `bank_proof` varchar(255) DEFAULT NULL,
  `bank_proof_type` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `seller_orders`
--

CREATE TABLE `seller_orders` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `seller_profile_id` bigint(20) UNSIGNED NOT NULL,
  `order_number` varchar(255) NOT NULL,
  `marketplace_order_id` bigint(20) UNSIGNED DEFAULT NULL,
  `customer_id` bigint(20) UNSIGNED DEFAULT NULL,
  `customer_name` varchar(255) DEFAULT NULL,
  `customer_email` varchar(255) DEFAULT NULL,
  `customer_mobile` varchar(255) DEFAULT NULL,
  `shipping_address` text DEFAULT NULL,
  `status` varchar(255) NOT NULL DEFAULT 'pending',
  `subtotal` decimal(12,2) NOT NULL DEFAULT 0.00,
  `commission` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL DEFAULT 0.00,
  `seller_earnings` decimal(12,2) NOT NULL DEFAULT 0.00,
  `invoice_path` varchar(255) DEFAULT NULL,
  `shipping_label_path` varchar(255) DEFAULT NULL,
  `tracking_number` varchar(255) DEFAULT NULL,
  `accepted_at` timestamp NULL DEFAULT NULL,
  `packed_at` timestamp NULL DEFAULT NULL,
  `shipped_at` timestamp NULL DEFAULT NULL,
  `delivered_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `seller_order_items`
--

CREATE TABLE `seller_order_items` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `seller_order_id` bigint(20) UNSIGNED NOT NULL,
  `seller_product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_name` varchar(255) NOT NULL,
  `sku` varchar(255) DEFAULT NULL,
  `quantity` int(10) UNSIGNED NOT NULL DEFAULT 1,
  `unit_price` decimal(12,2) NOT NULL,
  `total_price` decimal(12,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `seller_order_notes`
--

CREATE TABLE `seller_order_notes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `seller_order_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `note` text NOT NULL,
  `is_internal` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `seller_products`
--

CREATE TABLE `seller_products` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `seller_profile_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `slug` varchar(255) NOT NULL,
  `sku` varchar(255) DEFAULT NULL,
  `barcode` varchar(255) DEFAULT NULL,
  `brand` varchar(255) DEFAULT NULL,
  `category` varchar(255) DEFAULT NULL,
  `subcategory` varchar(255) DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `short_description` text DEFAULT NULL,
  `price` decimal(12,2) NOT NULL DEFAULT 0.00,
  `sale_price` decimal(12,2) DEFAULT NULL,
  `stock` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `weight` decimal(10,3) DEFAULT NULL,
  `length` decimal(10,2) DEFAULT NULL,
  `width` decimal(10,2) DEFAULT NULL,
  `height` decimal(10,2) DEFAULT NULL,
  `featured_image` varchar(255) DEFAULT NULL,
  `video_url` varchar(255) DEFAULT NULL,
  `meta_title` varchar(255) DEFAULT NULL,
  `meta_description` text DEFAULT NULL,
  `meta_keywords` varchar(255) DEFAULT NULL,
  `status` varchar(255) NOT NULL DEFAULT 'draft',
  `rejection_reason` text DEFAULT NULL,
  `low_stock_threshold` int(10) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `seller_product_images`
--

CREATE TABLE `seller_product_images` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `seller_product_id` bigint(20) UNSIGNED NOT NULL,
  `path` varchar(255) NOT NULL,
  `sort_order` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `seller_profiles`
--

CREATE TABLE `seller_profiles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `shop_name` varchar(255) NOT NULL,
  `slug` varchar(255) NOT NULL,
  `pan_number` varchar(20) NOT NULL,
  `kyc_status` varchar(255) NOT NULL DEFAULT 'pending',
  `kyc_rejection_reason` text DEFAULT NULL,
  `kyc_submitted_at` timestamp NULL DEFAULT NULL,
  `kyc_approved_at` timestamp NULL DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `product_count` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `seller_promotions`
--

CREATE TABLE `seller_promotions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `seller_profile_id` bigint(20) UNSIGNED NOT NULL,
  `seller_product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `type` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `rules` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`rules`)),
  `starts_at` timestamp NULL DEFAULT NULL,
  `ends_at` timestamp NULL DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `seller_settings`
--

CREATE TABLE `seller_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `seller_profile_id` bigint(20) UNSIGNED NOT NULL,
  `store_name` varchar(255) DEFAULT NULL,
  `store_logo` varchar(255) DEFAULT NULL,
  `store_banner` varchar(255) DEFAULT NULL,
  `store_description` text DEFAULT NULL,
  `store_address` text DEFAULT NULL,
  `facebook` varchar(255) DEFAULT NULL,
  `instagram` varchar(255) DEFAULT NULL,
  `youtube` varchar(255) DEFAULT NULL,
  `tiktok` varchar(255) DEFAULT NULL,
  `meta_title` varchar(255) DEFAULT NULL,
  `meta_description` text DEFAULT NULL,
  `meta_keywords` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `seller_wallets`
--

CREATE TABLE `seller_wallets` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `seller_profile_id` bigint(20) UNSIGNED NOT NULL,
  `available_balance` decimal(14,2) NOT NULL DEFAULT 0.00,
  `pending_balance` decimal(14,2) NOT NULL DEFAULT 0.00,
  `total_earned` decimal(14,2) NOT NULL DEFAULT 0.00,
  `total_withdrawn` decimal(14,2) NOT NULL DEFAULT 0.00,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `seo_metas`
--

CREATE TABLE `seo_metas` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `seoable_type` varchar(255) DEFAULT NULL,
  `seoable_id` bigint(20) UNSIGNED DEFAULT NULL,
  `url_path` varchar(255) DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `keywords` varchar(255) DEFAULT NULL,
  `canonical_url` varchar(255) DEFAULT NULL,
  `robots` varchar(255) NOT NULL DEFAULT 'index, follow',
  `og_image` varchar(255) DEFAULT NULL,
  `schema_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`schema_data`)),
  `is_indexable` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `services`
--

CREATE TABLE `services` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `category_id` bigint(20) UNSIGNED DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `slug` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `icon` varchar(255) DEFAULT NULL,
  `image` varchar(255) DEFAULT NULL,
  `base_price` decimal(10,2) NOT NULL DEFAULT 0.00,
  `price_type` varchar(20) NOT NULL DEFAULT 'fixed',
  `duration_minutes` int(10) UNSIGNED DEFAULT NULL,
  `is_emergency` tinyint(1) NOT NULL DEFAULT 0,
  `is_featured` tinyint(1) NOT NULL DEFAULT 0,
  `sort_order` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `service_booking_items`
--

CREATE TABLE `service_booking_items` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `service_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(150) NOT NULL,
  `price` decimal(10,2) NOT NULL DEFAULT 0.00,
  `image` varchar(255) DEFAULT NULL,
  `sort_order` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` varchar(255) NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `ip_address` varchar(45) DEFAULT NULL,
  `user_agent` text DEFAULT NULL,
  `payload` longtext NOT NULL,
  `last_activity` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `settings`
--

CREATE TABLE `settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `key` varchar(255) NOT NULL,
  `group` varchar(255) NOT NULL DEFAULT 'general',
  `value` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` (`id`, `key`, `group`, `value`, `created_at`, `updated_at`) VALUES
(1, 'site_name', 'general', 'Gletra', '2026-01-24 10:53:03', '2026-06-20 16:42:38'),
(2, 'contact_email', 'general', 'admin@gletra.com', '2026-01-24 10:53:03', '2026-01-24 10:53:03'),
(3, 'currency_symbol', 'general', '$', '2026-01-24 10:53:03', '2026-06-28 20:51:12'),
(4, 'commission_rate', 'general', '10', '2026-01-24 10:53:03', '2026-01-24 10:53:03'),
(5, 'tax_rate', 'general', '10', '2026-01-24 10:53:03', '2026-01-24 10:53:03'),
(6, 'footer_text', 'general', '© 2026 Gletra Multi-Vendor E-commerce. All rights reserved.', '2026-01-24 10:53:03', '2026-06-28 20:51:12'),
(7, 'shipping_model', 'shipping', 'flat', '2026-01-25 11:05:50', '2026-01-25 11:05:50'),
(8, 'flat_rate_amount', 'shipping', '10', '2026-01-25 11:05:50', '2026-01-25 11:05:50'),
(9, 'free_shipping_threshold', 'shipping', '199', '2026-01-25 11:05:50', '2026-07-04 13:59:20'),
(10, 'est_delivery_msg', 'shipping', 'Estimated delivery within 3-5 business days.', '2026-01-25 11:05:50', '2026-01-25 11:05:50'),
(11, 'delivery_slots_enabled', 'shipping', '1', '2026-01-27 12:53:16', '2026-01-27 12:53:16'),
(12, 'shiprocket_enabled', 'shipping', '1', '2026-01-27 12:53:16', '2026-01-27 12:53:16'),
(13, 'shiprocket_email', 'shipping', 'rajubarnala@gmail.com', '2026-01-27 12:53:16', '2026-02-09 20:39:34'),
(14, 'shiprocket_password', 'shipping', 'FQy4HArVdBbZ87AHrbfdhSXRgyE5NUbrh6GaL8enMUeh.eyJzdWIiOjk0NjYyMjAsInNvdXJjZSI6InNyLWF1dGgtaW50IiwiZXhwIjoxNzcxNTIzNzEyLCJqdGkiOiJJNzlSU1JpOFNaV05kMUZEIiwiaWF0IjoxNzcwNjU5NzEyLCJpc3MiOiJodHRwczovL3NyLWF1dGguc2hpcHJvY2parameter is either empty or invalid.ZiI6Mparameter is either empty or invalid.0YyI6MzYwLCJ2ZXJib3NlIjpmYWxzZSwidmVuZG9yX2lkIjowLCJ2ZW5kb3JfY29kZSI6IiJ9.2YAgzMz3fjGAI0q8gvQIDyNCv0HSVeCxJStwaLsKEW8', '2026-01-27 12:53:16', '2026-02-09 20:39:34'),
(15, 'return_policy_days', 'order', '5', '2026-01-27 12:54:16', '2026-06-20 17:18:42'),
(16, 'auto_cancel_hours', 'order', '48', '2026-01-27 12:54:16', '2026-01-27 12:54:16'),
(17, 'auto_invoice_gen', 'order', '1', '2026-01-27 12:54:16', '2026-01-27 12:54:16'),
(18, 'user_reg_enabled', 'user', '1', '2026-01-27 12:54:46', '2026-01-27 12:54:46'),
(19, 'otp_login_enabled', 'user', '1', '2026-01-27 12:54:46', '2026-01-27 12:54:46'),
(20, 'guest_checkout_enabled', 'user', '1', '2026-01-27 12:54:46', '2026-01-27 12:54:46'),
(21, 'signup_bonus', 'user', '0', '2026-01-27 12:54:46', '2026-01-27 12:54:46'),
(22, 'loyalty_points_rate', 'user', '1', '2026-01-27 12:54:46', '2026-01-27 12:54:46'),
(23, 'referral_enabled', 'user', '1', '2026-01-27 12:54:46', '2026-01-27 12:54:46'),
(24, 'email_notif_enabled', 'notification', '1', '2026-01-27 12:55:17', '2026-01-27 12:55:17'),
(25, 'sms_notif_enabled', 'notification', '1', '2026-01-27 12:55:17', '2026-01-27 12:55:17'),
(26, 'push_notif_enabled', 'notification', '1', '2026-01-27 12:55:17', '2026-01-27 12:55:17'),
(27, 'notify_order_placed', 'notification', '1', '2026-01-27 12:55:17', '2026-01-27 12:55:17'),
(28, 'notify_order_shipped', 'notification', '1', '2026-01-27 12:55:17', '2026-01-27 12:55:17'),
(29, 'admin_notify_new_order', 'notification', '1', '2026-01-27 12:55:17', '2026-01-27 12:55:17'),
(30, 'vendor_notify_new_order', 'notification', '1', '2026-01-27 12:55:17', '2026-01-27 12:55:17'),
(31, 'seo_meta_title', 'seo', 'Gletra - Best Multi-Vendor Ecommerce Platform', '2026-01-27 12:59:46', '2026-01-27 12:59:46'),
(32, 'seo_meta_desc', 'seo', 'Shop thousands of products from local vendors on Gletra. Quality service and guaranteed delivery.', '2026-01-27 12:59:46', '2026-01-27 12:59:46'),
(33, 'seo_meta_keywords', 'seo', 'ecommerce, multivendor, gletra, shopping,shipping,men,women,kids,home,fashion,jellwey', '2026-01-27 12:59:46', '2026-01-27 12:59:46'),
(34, 'seo_og_tags', 'seo', '1', '2026-01-27 12:59:46', '2026-01-27 12:59:46'),
(35, 'seo_robots_txt', 'seo', 'User-agent: *\r\nDisallow: /admin/\r\nDisallow: /vendor/', '2026-01-27 12:59:46', '2026-01-27 12:59:46'),
(36, 'site_url', 'general', 'http://127.0.0.1:8000', '2026-02-02 20:33:48', '2026-02-02 20:33:48'),
(37, 'admin_email', 'general', 'admin@gletra.com', '2026-02-02 20:33:48', '2026-02-02 20:33:48'),
(38, 'support_email', 'general', 'support@gletra.com', '2026-02-02 20:33:48', '2026-02-02 20:33:48'),
(39, 'support_phone', 'general', '+800-9041-823-725', '2026-02-02 20:33:48', '2026-02-02 20:33:48'),
(40, 'default_language', 'general', 'en', '2026-02-02 20:33:48', '2026-02-02 20:33:48'),
(41, 'timezone', 'general', 'UTC', '2026-02-02 20:33:48', '2026-02-02 20:33:48'),
(42, 'date_format', 'general', 'd M, Y', '2026-02-02 20:33:48', '2026-06-19 13:43:22'),
(43, 'site_enabled', 'general', '1', '2026-02-02 20:33:48', '2026-02-02 20:33:48'),
(44, 'social_links', 'site', '{\"facebook\":null,\"twitter\":null,\"instagram\":null,\"linkedin\":null}', '2026-02-02 20:34:20', '2026-02-02 20:34:20'),
(45, 'site_favicon', 'site', 'uploads/settings/PRu8w9VCAfzaiS4w79KaImX3W0bn5dDSvB7BNHls.png', '2026-02-02 20:34:20', '2026-02-02 20:34:20'),
(46, 'default_country', 'localization', 'IN', '2026-02-02 20:34:57', '2026-02-02 20:34:57'),
(47, 'default_state', 'localization', 'California', '2026-02-02 20:34:57', '2026-02-02 20:34:57'),
(48, 'default_city', 'localization', 'San Francisco', '2026-02-02 20:34:57', '2026-02-02 20:34:57'),
(49, 'direction', 'localization', 'ltr', '2026-02-02 20:34:57', '2026-02-02 20:34:57'),
(50, 'unit_system', 'localization', 'metric', '2026-02-02 20:34:57', '2026-02-02 20:34:57'),
(51, 'currency_code', 'currency', 'INR', '2026-02-02 20:37:56', '2026-02-02 20:37:56'),
(52, 'currency_placement', 'currency', 'before', '2026-02-02 20:37:56', '2026-02-02 20:37:56'),
(53, 'currency_decimal_separator', 'currency', '.', '2026-02-02 20:37:56', '2026-02-02 20:37:56'),
(54, 'currency_thousand_separator', 'currency', ',', '2026-02-02 20:37:56', '2026-02-02 20:37:56'),
(55, 'currency_decimal_digits', 'currency', '1', '2026-02-02 20:37:56', '2026-02-06 11:38:34'),
(56, 'watermark_opacity', 'media', '20', '2026-02-02 20:41:22', '2026-02-02 20:41:22'),
(57, 'watermark_image', 'media', 'uploads/settings/iohkMWuJ5lHaOEtZ521XNDARiPf5AvbslpnNIxk4.png', '2026-02-02 20:41:22', '2026-02-02 20:41:22'),
(58, 'flash_sale_title', 'promotions', 'Flash Sale!', '2026-02-09 04:18:21', '2026-02-09 04:18:21'),
(59, 'flash_sale_description', 'promotions', 'Limited period offers on premium sarees and ethnic wear.', '2026-02-09 04:18:21', '2026-02-09 04:18:21'),
(60, 'flash_sale_link', 'promotions', 'http://127.0.0.1:8000/shop', '2026-02-09 04:18:21', '2026-02-09 04:18:21'),
(61, 'flash_sale_button_text', 'promotions', 'GO TO SALE', '2026-02-09 04:18:21', '2026-02-09 04:18:21'),
(62, 'flash_sale_image', 'promotions', 'uploads/settings/xujvwTkzcGIXtJyWtuED3dLxNYZEX41y8ErvQOFv.jpg', '2026-02-09 04:18:22', '2026-02-09 04:18:22'),
(63, 'gletra_best_title', 'promotions', 'Gletra Best', '2026-02-09 04:18:44', '2026-02-09 04:18:44'),
(64, 'gletra_best_description', 'promotions', 'Curated collection of top-rated appliances and gadgets.', '2026-02-09 04:18:44', '2026-02-09 04:18:44'),
(65, 'gletra_best_link', 'promotions', 'http://127.0.0.1:8000/shop', '2026-02-09 04:18:44', '2026-02-09 04:18:44'),
(66, 'gletra_best_button_text', 'promotions', 'BROWSE ALL', '2026-02-09 04:18:44', '2026-02-09 04:18:44'),
(67, 'gletra_best_image', 'promotions', 'uploads/settings/iiKnFqatU1nypAwNroFhpYejxXZICx9xWbFbA15C.jpg', '2026-02-09 04:18:44', '2026-02-09 04:18:44'),
(68, 'source_protection', 'site', 'disabled', '2026-02-10 04:15:19', '2026-07-05 09:18:33'),
(69, 'own_product_commission_mode', 'commission', 'disabled', '2026-06-19 13:17:43', '2026-06-19 13:17:43'),
(70, 'own_product_commission_type', 'commission', 'percentage', '2026-06-19 13:17:43', '2026-06-19 13:17:43'),
(71, 'own_product_commission_value', 'commission', '0', '2026-06-19 13:17:43', '2026-06-19 13:17:43'),
(72, 'affiliate_commission_mode', 'commission', 'enabled', '2026-06-19 13:17:43', '2026-06-19 13:17:43'),
(73, 'affiliate_commission_type', 'commission', 'percentage', '2026-06-19 13:17:43', '2026-06-19 13:17:43'),
(74, 'affiliate_commission_value', 'commission', '5', '2026-06-19 13:17:43', '2026-06-19 13:17:43'),
(75, 'settlement_hold_days', 'commission', '5', '2026-06-19 13:17:43', '2026-06-19 13:17:43'),
(76, 'auto_payout_enabled', 'commission', 'disabled', '2026-06-19 13:17:43', '2026-06-19 13:17:43'),
(77, 'auto_payout_frequency', 'commission', 'weekly', '2026-06-19 13:17:43', '2026-06-19 13:17:43'),
(78, 'auto_payout_provider', 'commission', 'manual', '2026-06-19 13:17:43', '2026-06-19 13:17:43'),
(79, 'otp_delivery_enabled', 'order', '1', '2026-06-20 17:18:42', '2026-06-20 17:18:42'),
(80, 'maintenance_mode', 'maintenance', '0', '2026-06-20 17:19:16', '2026-06-27 23:48:22'),
(81, 'maintenance_message', 'maintenance', 'We are currently under maintenance for improvements. We will be back shortly!', '2026-06-20 17:19:16', '2026-06-20 17:19:16'),
(82, 'maintenance_ips', 'maintenance', '127.0.0.1', '2026-06-20 17:19:16', '2026-06-20 17:19:16'),
(83, 'minimum_order_amount', 'order', '100', '2026-07-04 13:59:20', '2026-07-04 13:59:20'),
(84, 'wallet_minimum_order_amount', 'wallet', '199', '2026-07-04 13:59:21', '2026-07-04 13:59:21');

-- --------------------------------------------------------

--
-- Table structure for table `shippings`
--

CREATE TABLE `shippings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `order_id` bigint(20) UNSIGNED DEFAULT NULL,
  `courier_name` varchar(100) DEFAULT NULL,
  `tracking_number` varchar(150) DEFAULT NULL,
  `shipping_status` varchar(50) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `shipping_rates`
--

CREATE TABLE `shipping_rates` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `shipping_zone_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `min_weight` decimal(10,2) NOT NULL DEFAULT 0.00,
  `max_weight` decimal(10,2) DEFAULT NULL,
  `rate` decimal(15,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `shipping_zones`
--

CREATE TABLE `shipping_zones` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `state_code` varchar(255) DEFAULT NULL,
  `country_code` varchar(2) NOT NULL DEFAULT 'IN',
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `site_settings`
--

CREATE TABLE `site_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `primary_color` varchar(255) NOT NULL DEFAULT '#4f46e5',
  `secondary_color` varchar(255) NOT NULL DEFAULT '#ec4899',
  `app_bg_color` varchar(255) NOT NULL DEFAULT '#f8f9fa',
  `primary_dark` varchar(255) NOT NULL DEFAULT '#1e1b4b',
  `primary_hover` varchar(255) NOT NULL DEFAULT '#4338ca',
  `accent_color` varchar(255) NOT NULL DEFAULT '#fb641b',
  `gradient_end_color` varchar(255) NOT NULL DEFAULT '#7c3aed',
  `text_color` varchar(255) NOT NULL DEFAULT '#1e293b',
  `text_muted` varchar(255) NOT NULL DEFAULT '#64748b',
  `link_color` varchar(255) NOT NULL DEFAULT '#4f46e5',
  `card_bg` varchar(255) NOT NULL DEFAULT '#ffffff',
  `border_color` varchar(255) NOT NULL DEFAULT '#e2e8f0',
  `header_bg` varchar(255) NOT NULL DEFAULT '#50113c',
  `footer_bg` varchar(255) NOT NULL DEFAULT '#0f172a',
  `success_color` varchar(255) NOT NULL DEFAULT '#10b981',
  `warning_color` varchar(255) NOT NULL DEFAULT '#f59e0b',
  `danger_color` varchar(255) NOT NULL DEFAULT '#ef4444',
  `info_color` varchar(255) NOT NULL DEFAULT '#3b82f6',
  `theme_color` varchar(255) NOT NULL DEFAULT '#4f46e5',
  `updated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `site_settings`
--

INSERT INTO `site_settings` (`id`, `primary_color`, `secondary_color`, `app_bg_color`, `primary_dark`, `primary_hover`, `accent_color`, `gradient_end_color`, `text_color`, `text_muted`, `link_color`, `card_bg`, `border_color`, `header_bg`, `footer_bg`, `success_color`, `warning_color`, `danger_color`, `info_color`, `theme_color`, `updated_by`, `created_at`, `updated_at`) VALUES
(1, '#0a2947', '#cc7700', '#f3f4f6', '#1e1b4b', '#4338ca', '#fb641b', '#7c3aed', '#1e293b', '#64748b', '#4f46e5', '#ffffff', '#e2e8f0', '#50113c', '#0f172a', '#10b981', '#f59e0b', '#ef4444', '#3b82f6', '#4f46e5', 1, '2026-02-01 19:20:33', '2026-07-07 11:16:53');

-- --------------------------------------------------------

--
-- Table structure for table `sku_counters`
--

CREATE TABLE `sku_counters` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `prefix` varchar(255) NOT NULL DEFAULT 'G',
  `current_value` bigint(20) UNSIGNED NOT NULL DEFAULT 100000,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `sliders`
--

CREATE TABLE `sliders` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `subtitle` varchar(255) DEFAULT NULL,
  `image_path` varchar(255) NOT NULL,
  `link_url` varchar(255) DEFAULT NULL,
  `order_priority` int(11) NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `page` varchar(20) NOT NULL DEFAULT 'home',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `starred_messages`
--

CREATE TABLE `starred_messages` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `message_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `states`
--

CREATE TABLE `states` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `country_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(100) NOT NULL,
  `code` varchar(10) DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `states`
--

INSERT INTO `states` (`id`, `country_id`, `name`, `code`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 1, 'Delhi', 'DL', 1, '2026-06-16 03:59:35', '2026-06-16 03:59:35', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `statuses`
--

CREATE TABLE `statuses` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'text',
  `content` text DEFAULT NULL,
  `media_path` varchar(255) DEFAULT NULL,
  `background_color` varchar(255) DEFAULT NULL,
  `text_color` varchar(20) DEFAULT NULL,
  `font_style` varchar(40) DEFAULT NULL,
  `privacy` varchar(20) NOT NULL DEFAULT 'contacts',
  `is_archived` tinyint(1) NOT NULL DEFAULT 0,
  `view_count` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `expires_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `media_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `statuses`
--

INSERT INTO `statuses` (`id`, `user_id`, `type`, `content`, `media_path`, `background_color`, `text_color`, `font_style`, `privacy`, `is_archived`, `view_count`, `expires_at`, `created_at`, `updated_at`, `media_id`) VALUES
(1, 1, 'text', 'hi', NULL, '#128C7E', '#ffffff', 'sans-serif', 'contacts', 0, 2, '2026-07-07 08:18:20', '2026-07-06 21:25:54', '2026-07-07 02:48:20', NULL),
(4, 27, 'video', NULL, 'chat/videos/2026/07/pEuZzuz3DOt0JDD4Hx8HudXeBMD20ckGEHRrgdXa.mp4', '#128C7E', '#ffffff', 'sans-serif', 'everyone', 0, 2, '2026-07-07 15:08:22', '2026-07-06 22:05:09', '2026-07-07 09:38:22', 6),
(6, 27, 'video', NULL, 'chat/videos/2026/07/3C1D7JbBIL911wKE9EgsxdOXUfa8DhRMB62VJGNB.mp4', '#128C7E', '#ffffff', 'sans-serif', 'everyone', 0, 2, '2026-07-07 15:08:22', '2026-07-06 22:49:54', '2026-07-07 09:38:22', 7),
(7, 27, 'audio', 'tumre liye', 'chat/audio/2026/07/TGOCcuVoQGVYr1rgS6MfVi0uNGdDrWkRv3PrtHHv.mp3', '#128C7E', '#ffffff', 'sans-serif', 'everyone', 0, 2, '2026-07-07 15:08:23', '2026-07-06 22:54:40', '2026-07-07 09:38:23', 8),
(8, 26, 'video', NULL, 'chat/videos/2026/07/NYCelD5tDKTmMgBMOfCil85zIAAHjR3KapTNqiTw.mp4', '#128C7E', '#ffffff', 'sans-serif', 'contacts', 0, 0, '2026-07-07 15:08:23', '2026-07-07 02:33:29', '2026-07-07 09:38:23', 9),
(9, 26, 'image', NULL, 'chat/images/2026/07/oF9QwlrqWRLBjqtnXH09LrfMgO4JvmRjZOknHoeU.jpg', '#128C7E', '#ffffff', 'sans-serif', 'contacts', 0, 0, '2026-07-07 15:08:23', '2026-07-07 08:42:46', '2026-07-07 09:38:23', 10);

-- --------------------------------------------------------

--
-- Table structure for table `status_archives`
--

CREATE TABLE `status_archives` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `archived_user_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `status_mutes`
--

CREATE TABLE `status_mutes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `muted_user_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `status_privacy_users`
--

CREATE TABLE `status_privacy_users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `status_reactions`
--

CREATE TABLE `status_reactions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `emoji` varchar(32) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `status_reactions`
--

INSERT INTO `status_reactions` (`id`, `status_id`, `user_id`, `emoji`, `created_at`, `updated_at`) VALUES
(3, 1, 27, '❤️', '2026-07-06 22:01:35', '2026-07-06 22:01:35'),
(5, 4, 1, '❤️', '2026-07-06 22:44:34', '2026-07-06 22:44:34'),
(6, 6, 1, '👍', '2026-07-06 22:51:05', '2026-07-06 22:51:05');

-- --------------------------------------------------------

--
-- Table structure for table `status_replies`
--

CREATE TABLE `status_replies` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL,
  `sender_id` bigint(20) UNSIGNED NOT NULL,
  `message` text DEFAULT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'text',
  `media_path` varchar(255) DEFAULT NULL,
  `sticker_id` bigint(20) UNSIGNED DEFAULT NULL,
  `gif_url` varchar(255) DEFAULT NULL,
  `message_id` bigint(20) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `status_replies`
--

INSERT INTO `status_replies` (`id`, `status_id`, `sender_id`, `message`, `type`, `media_path`, `sticker_id`, `gif_url`, `message_id`, `created_at`, `updated_at`) VALUES
(3, 4, 1, 'nice', 'text', NULL, NULL, NULL, 406, '2026-07-06 22:05:47', '2026-07-06 22:05:47');

-- --------------------------------------------------------

--
-- Table structure for table `status_views`
--

CREATE TABLE `status_views` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `status_id` bigint(20) UNSIGNED NOT NULL,
  `viewer_id` bigint(20) UNSIGNED NOT NULL,
  `viewed_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `status_views`
--

INSERT INTO `status_views` (`id`, `status_id`, `viewer_id`, `viewed_at`, `created_at`, `updated_at`) VALUES
(2, 1, 27, '2026-07-06 22:00:42', '2026-07-06 22:00:42', '2026-07-06 22:00:42'),
(4, 4, 1, '2026-07-06 22:05:37', '2026-07-06 22:05:37', '2026-07-06 22:05:37'),
(5, 6, 1, '2026-07-06 22:50:52', '2026-07-06 22:50:52', '2026-07-06 22:50:52'),
(6, 7, 1, '2026-07-06 22:58:43', '2026-07-06 22:58:43', '2026-07-06 22:58:43'),
(7, 4, 26, '2026-07-07 02:17:21', '2026-07-07 02:17:21', '2026-07-07 02:17:21'),
(8, 6, 26, '2026-07-07 02:17:39', '2026-07-07 02:17:39', '2026-07-07 02:17:39'),
(9, 7, 26, '2026-07-07 02:47:43', '2026-07-07 02:47:43', '2026-07-07 02:47:43'),
(10, 1, 26, '2026-07-07 02:48:20', '2026-07-07 02:48:20', '2026-07-07 02:48:20');

-- --------------------------------------------------------

--
-- Table structure for table `stickers`
--

CREATE TABLE `stickers` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `category` varchar(50) NOT NULL,
  `image_url` varchar(255) NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `media_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `store_followers`
--

CREATE TABLE `store_followers` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `vendor_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `subscriptions`
--

CREATE TABLE `subscriptions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `subscriber_type` varchar(30) NOT NULL,
  `subscriber_id` bigint(20) UNSIGNED NOT NULL,
  `membership_plan_id` bigint(20) UNSIGNED NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `starts_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `ends_at` timestamp NULL DEFAULT NULL,
  `cancelled_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `support_activity_logs`
--

CREATE TABLE `support_activity_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `action` varchar(80) NOT NULL,
  `subject_type` varchar(255) DEFAULT NULL,
  `subject_id` bigint(20) UNSIGNED DEFAULT NULL,
  `description` text NOT NULL,
  `metadata` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`metadata`)),
  `ip_address` varchar(45) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `support_replies`
--

CREATE TABLE `support_replies` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `support_ticket_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `message` text NOT NULL,
  `is_admin` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `support_tickets`
--

CREATE TABLE `support_tickets` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `assigned_to` bigint(20) UNSIGNED DEFAULT NULL,
  `order_id` bigint(20) UNSIGNED DEFAULT NULL,
  `subject` varchar(255) NOT NULL,
  `message` text NOT NULL,
  `status` varchar(255) NOT NULL DEFAULT 'open',
  `priority` varchar(255) NOT NULL DEFAULT 'medium',
  `category` varchar(255) NOT NULL DEFAULT 'general',
  `escalated_to_admin` tinyint(1) NOT NULL DEFAULT 0,
  `escalation_reason` text DEFAULT NULL,
  `escalated_at` timestamp NULL DEFAULT NULL,
  `escalated_by` bigint(20) UNSIGNED DEFAULT NULL,
  `internal_note` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `support_ticket_attachments`
--

CREATE TABLE `support_ticket_attachments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `support_ticket_id` bigint(20) UNSIGNED NOT NULL,
  `path` varchar(255) NOT NULL,
  `original_name` varchar(255) NOT NULL,
  `mime_type` varchar(255) DEFAULT NULL,
  `file_size` int(10) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `taxes`
--

CREATE TABLE `taxes` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `rate` decimal(5,2) NOT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'percentage',
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `theme_settings`
--

CREATE TABLE `theme_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `key` varchar(255) NOT NULL,
  `value` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `traffic_source_daily`
--

CREATE TABLE `traffic_source_daily` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `traffic_source` varchar(50) NOT NULL,
  `visitors` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `unique_visitors` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `orders` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `revenue` decimal(14,2) NOT NULL DEFAULT 0.00,
  `conversion_rate` decimal(8,4) NOT NULL DEFAULT 0.0000,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `traffic_source_logs`
--

CREATE TABLE `traffic_source_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `session_id` varchar(64) NOT NULL,
  `visitor_hash` varchar(64) NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `traffic_source` varchar(50) NOT NULL,
  `utm_source` varchar(100) DEFAULT NULL,
  `utm_medium` varchar(100) DEFAULT NULL,
  `utm_campaign` varchar(150) DEFAULT NULL,
  `referrer_domain` varchar(150) DEFAULT NULL,
  `order_id` bigint(20) UNSIGNED DEFAULT NULL,
  `revenue` decimal(14,2) NOT NULL DEFAULT 0.00,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `typings`
--

CREATE TABLE `typings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `conversation_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `typing` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `typings`
--

INSERT INTO `typings` (`id`, `conversation_id`, `user_id`, `typing`, `created_at`, `updated_at`) VALUES
(15, 14, 1, 0, '2026-07-06 20:47:47', '2026-07-06 20:47:51'),
(16, 15, 27, 0, '2026-07-06 21:47:42', '2026-07-06 21:47:48'),
(17, 17, 26, 0, '2026-07-07 08:47:17', '2026-07-07 08:47:25');

-- --------------------------------------------------------

--
-- Table structure for table `ui_settings`
--

CREATE TABLE `ui_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `key` varchar(255) NOT NULL,
  `value` text DEFAULT NULL,
  `group` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `email` varchar(150) DEFAULT NULL,
  `username` varchar(50) DEFAULT NULL,
  `wallet_balance` decimal(10,2) NOT NULL DEFAULT 0.00,
  `google_id` varchar(255) DEFAULT NULL,
  `referral_code` varchar(20) DEFAULT NULL,
  `affiliate_code` varchar(32) DEFAULT NULL,
  `mobile` varchar(20) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `mobile_verified` tinyint(4) NOT NULL DEFAULT 0,
  `gender` varchar(255) DEFAULT NULL,
  `dob` date DEFAULT NULL,
  `bio` text DEFAULT NULL,
  `status_message` varchar(255) DEFAULT NULL,
  `avatar` varchar(255) DEFAULT NULL,
  `cover_photo` varchar(255) DEFAULT NULL,
  `profile_image` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `login_otp` varchar(6) DEFAULT NULL,
  `otp_expires_at` timestamp NULL DEFAULT NULL,
  `whatsapp_otp` varchar(6) DEFAULT NULL,
  `last_login_ip` varchar(255) DEFAULT NULL,
  `last_login_at` timestamp NULL DEFAULT NULL,
  `failed_login_attempts` int(11) NOT NULL DEFAULT 0,
  `locked_until` timestamp NULL DEFAULT NULL,
  `role` enum('admin','designer','vendor','customer','vendor_staff','support','editor','worker','company_owner','company_staff','affiliate') DEFAULT 'customer',
  `admin_roles` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`admin_roles`)),
  `account_roles` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`account_roles`)),
  `vendor_id` bigint(20) UNSIGNED DEFAULT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `deactivated_at` timestamp NULL DEFAULT NULL,
  `chat_enabled` tinyint(1) NOT NULL DEFAULT 0,
  `call_enabled` tinyint(1) NOT NULL DEFAULT 0,
  `chat_password_hash` varchar(255) DEFAULT NULL,
  `chat_password_enabled` tinyint(1) NOT NULL DEFAULT 0,
  `chat_password_last_changed_at` timestamp NULL DEFAULT NULL,
  `chat_backup_code_hash` varchar(255) DEFAULT NULL,
  `chat_backup_code_used_at` timestamp NULL DEFAULT NULL,
  `chat_backup_code_last_generated_at` timestamp NULL DEFAULT NULL,
  `remember_token` varchar(100) DEFAULT NULL,
  `device_hash` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `referred_by` bigint(20) UNSIGNED DEFAULT NULL,
  `last_seen` timestamp NULL DEFAULT NULL,
  `is_online` tinyint(1) NOT NULL DEFAULT 0,
  `privacy_settings` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`privacy_settings`)),
  `qr_token` varchar(64) DEFAULT NULL,
  `is_admin` tinyint(1) NOT NULL DEFAULT 0,
  `suspended_at` timestamp NULL DEFAULT NULL,
  `two_factor_secret` varchar(255) DEFAULT NULL,
  `two_factor_enabled` tinyint(1) NOT NULL DEFAULT 0,
  `otp_code` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `name`, `email`, `username`, `wallet_balance`, `google_id`, `referral_code`, `affiliate_code`, `mobile`, `phone`, `mobile_verified`, `gender`, `dob`, `bio`, `status_message`, `avatar`, `cover_photo`, `profile_image`, `password`, `login_otp`, `otp_expires_at`, `whatsapp_otp`, `last_login_ip`, `last_login_at`, `failed_login_attempts`, `locked_until`, `role`, `admin_roles`, `account_roles`, `vendor_id`, `email_verified_at`, `status`, `deactivated_at`, `chat_enabled`, `call_enabled`, `chat_password_hash`, `chat_password_enabled`, `chat_password_last_changed_at`, `chat_backup_code_hash`, `chat_backup_code_used_at`, `chat_backup_code_last_generated_at`, `remember_token`, `device_hash`, `created_at`, `updated_at`, `referred_by`, `last_seen`, `is_online`, `privacy_settings`, `qr_token`, `is_admin`, `suspended_at`, `two_factor_secret`, `two_factor_enabled`, `otp_code`) VALUES
(1, 'Super Admin', 'admin@gletra.com', NULL, 0.00, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 'gletra/avatars/yXsespVntF6hnLDdd4nFpHnIQwBCJxcBYgeg1e7V.jpg', NULL, NULL, '$2y$10$tv3gyHX5OcepPula5cakqOwikrFba3YEUlmMnWmeqfSHmr/8dWXPe', NULL, NULL, NULL, '127.0.0.1', '2026-02-08 21:51:05', 0, NULL, 'admin', NULL, NULL, NULL, '2026-01-24 10:52:51', 1, NULL, 1, 1, NULL, 0, NULL, NULL, NULL, NULL, 'VV22jQcqtEn01EkiW0D5BcjTTvJgxoeX0jZM8LGILlKly7Upmhop9w6zayqg', NULL, '2026-01-24 10:52:51', '2026-07-07 12:26:23', NULL, '2026-07-07 12:26:23', 1, NULL, NULL, 0, NULL, NULL, 0, NULL),
(16, 'Support Agent', 'support@gletra.com', NULL, 0.00, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$wpZdsTSIkARga4mxTNDoEuDlryYECUTQuDEwV02zNP3IAjIezPO5a', NULL, NULL, NULL, NULL, NULL, 0, NULL, 'support', NULL, NULL, NULL, NULL, 1, NULL, 1, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-10 03:25:05', '2026-07-06 20:42:54', NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL),
(17, 'Content Editor', 'editor@gletra.com', NULL, 0.00, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$TanBeCeCxUQTJ83Km8lnJ.o/qt1DQ1NJwRmzZ5ed4EmYeMep6YVlO', NULL, NULL, NULL, NULL, NULL, 0, NULL, 'editor', NULL, NULL, NULL, NULL, 1, NULL, 1, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '2026-02-10 03:25:05', '2026-07-06 20:42:54', NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL),
(26, 'gletra site', 'gletrasite@gmail.com', NULL, 200.00, NULL, 'F0DQ9XOFHE', NULL, '9815011653', '9815011653', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$paWpCcU2oU4TX2DvohI4n.jdL2eM.T4iSDi0N/Po2v5GUspI3pPXq', NULL, NULL, NULL, NULL, NULL, 0, NULL, 'worker', NULL, '[\"customer\"]', NULL, NULL, 1, NULL, 1, 1, NULL, 0, NULL, NULL, NULL, NULL, 'KX3a51dngH1cjnu1MqHpLB3cMvSHUbmJpjve85kc3wvLRmP5lvJ54N7qIZHo', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36127.0.0.1', '2026-07-06 21:00:04', '2026-07-07 10:49:18', NULL, '2026-07-07 10:49:18', 1, NULL, NULL, 0, NULL, NULL, 0, NULL),
(27, 'Daksh', 'dakshchoudhary689@gmail.com', NULL, 0.00, NULL, 'JG7YVMN8KM', NULL, '9988776655', '9988776655', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$jz0BLdredi1MeDUNMd1DU.YMyQ3.tcC/eBSMzRMfqEnQXkVbRpkV6', NULL, NULL, NULL, NULL, NULL, 0, NULL, 'vendor', NULL, '[\"customer\",\"worker\"]', NULL, NULL, 1, NULL, 1, 1, NULL, 0, NULL, NULL, NULL, NULL, 'eltHSDd0Vi2i32qjBb3vSFPNJbODTPScqFloPDXnsqBwMv1WbL70XPuDfmtm', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36127.0.0.1', '2026-07-06 21:07:16', '2026-07-07 01:01:58', NULL, '2026-07-07 01:01:58', 1, NULL, NULL, 0, NULL, NULL, 0, NULL),
(28, 'bitlife store', 'bitlifestore@gmail.com', NULL, 100.00, NULL, 'U1H5RSY16Q', NULL, '987654321', '987654321', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '$2y$10$4/7rRo.D.hp42YjC25VmW.bt16XTwxPO28HWzI0Jv/lNDkAM76ZwK', NULL, NULL, NULL, NULL, NULL, 0, NULL, 'worker', NULL, '[\"customer\"]', NULL, NULL, 1, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, 'LDoY0RFZkHXgUFGaTG3hoZcuQRFVVuVDvC8BeDnFMLx61BmJqFcf2coxug4O', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36127.0.0.1', '2026-07-07 02:53:14', '2026-07-07 12:26:24', NULL, '2026-07-07 12:26:24', 1, NULL, NULL, 0, NULL, NULL, 0, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `user_addresses`
--

CREATE TABLE `user_addresses` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `name` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `phone` varchar(255) NOT NULL,
  `country` varchar(255) NOT NULL,
  `state` varchar(255) NOT NULL,
  `city` varchar(255) NOT NULL,
  `zip_code` varchar(255) NOT NULL,
  `address` text NOT NULL,
  `full_address` text DEFAULT NULL,
  `lat` decimal(10,7) DEFAULT NULL,
  `lng` decimal(10,7) DEFAULT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_devices`
--

CREATE TABLE `user_devices` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `device_name` varchar(255) NOT NULL,
  `device_type` varchar(30) NOT NULL DEFAULT 'web',
  `push_token` varchar(255) DEFAULT NULL,
  `ip_address` varchar(45) DEFAULT NULL,
  `user_agent` text DEFAULT NULL,
  `last_active_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_engagement_scores`
--

CREATE TABLE `user_engagement_scores` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `visitor_hash` varchar(64) DEFAULT NULL,
  `score` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
  `grade` varchar(30) NOT NULL DEFAULT 'inactive',
  `time_spent_seconds` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `pages_visited` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `searches` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `clicks` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `purchases` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `wishlist_actions` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `period` varchar(20) NOT NULL DEFAULT '30d',
  `computed_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_profile_files`
--

CREATE TABLE `user_profile_files` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(200) NOT NULL,
  `file_path` varchar(255) NOT NULL,
  `original_name` varchar(255) NOT NULL,
  `mime_type` varchar(120) DEFAULT NULL,
  `file_size` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `media_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_reports`
--

CREATE TABLE `user_reports` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `reporter_id` bigint(20) UNSIGNED NOT NULL,
  `reported_user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `reportable_type` varchar(255) DEFAULT NULL,
  `reportable_id` bigint(20) UNSIGNED DEFAULT NULL,
  `reason` varchar(255) NOT NULL,
  `details` text DEFAULT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'pending',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_restrictions`
--

CREATE TABLE `user_restrictions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `restricted_user_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_search_logs`
--

CREATE TABLE `user_search_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `session_id` varchar(64) NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `keyword` varchar(255) NOT NULL,
  `normalized_keyword` varchar(255) NOT NULL,
  `results_count` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `has_results` tinyint(1) NOT NULL DEFAULT 1,
  `clicked_product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `led_to_purchase` tinyint(1) NOT NULL DEFAULT 0,
  `order_id` bigint(20) UNSIGNED DEFAULT NULL,
  `category_id` bigint(20) UNSIGNED DEFAULT NULL,
  `brand_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_ids` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`product_ids`)),
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_sessions`
--

CREATE TABLE `user_sessions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `session_id` varchar(255) NOT NULL,
  `device_id` bigint(20) UNSIGNED DEFAULT NULL,
  `ip_address` varchar(45) DEFAULT NULL,
  `user_agent` text DEFAULT NULL,
  `last_activity_at` timestamp NULL DEFAULT NULL,
  `revoked_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `user_settings`
--

CREATE TABLE `user_settings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `dark_mode` tinyint(1) NOT NULL DEFAULT 1,
  `notifications_enabled` tinyint(1) NOT NULL DEFAULT 1,
  `message_sound_enabled` tinyint(1) NOT NULL DEFAULT 1,
  `chat_wallpaper` varchar(255) DEFAULT NULL,
  `theme_color` varchar(20) NOT NULL DEFAULT '#00a884',
  `font_size` enum('small','medium','large') NOT NULL DEFAULT 'medium',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `privacy` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`privacy`)),
  `chat` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`chat`)),
  `notifications` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`notifications`)),
  `storage` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`storage`)),
  `appearance` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`appearance`)),
  `status` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`status`)),
  `security` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`security`)),
  `screen` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`screen`)),
  `calls` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`calls`)),
  `screen_protection_enabled` tinyint(1) NOT NULL DEFAULT 0,
  `inactivity_redirect_enabled` tinyint(1) NOT NULL DEFAULT 0,
  `screen_off_redirect_enabled` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `user_settings`
--

INSERT INTO `user_settings` (`id`, `user_id`, `dark_mode`, `notifications_enabled`, `message_sound_enabled`, `chat_wallpaper`, `theme_color`, `font_size`, `created_at`, `updated_at`, `privacy`, `chat`, `notifications`, `storage`, `appearance`, `status`, `security`, `screen`, `calls`, `screen_protection_enabled`, `inactivity_redirect_enabled`, `screen_off_redirect_enabled`) VALUES
(18, 1, 1, 1, 1, NULL, '#00a884', 'medium', '2026-07-06 20:46:48', '2026-07-06 20:46:48', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0),
(19, 17, 1, 1, 1, NULL, '#00a884', 'medium', '2026-07-06 20:47:42', '2026-07-06 20:47:42', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0),
(20, 27, 1, 1, 1, NULL, '#00a884', 'medium', '2026-07-06 21:25:11', '2026-07-07 01:02:34', NULL, NULL, NULL, NULL, NULL, '{\"privacy\":\"only_share_with\",\"auto_delete_hours\":\"24\",\"privacy_user_ids\":[]}', NULL, '{\"screen_protection_enabled\":true,\"inactivity_redirect_enabled\":true,\"screen_off_redirect_enabled\":true}', NULL, 1, 1, 1),
(21, 26, 1, 1, 1, NULL, '#00a884', 'medium', '2026-07-06 21:55:22', '2026-07-07 02:07:56', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '{\"screen_protection_enabled\":true,\"screen_off_redirect_enabled\":false}', NULL, 1, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `variant_groups`
--

CREATE TABLE `variant_groups` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(100) NOT NULL,
  `slug` varchar(120) NOT NULL,
  `display_type` enum('swatch','button','dropdown','text') NOT NULL DEFAULT 'button',
  `sort_order` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `variant_images`
--

CREATE TABLE `variant_images` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `product_variant_id` bigint(20) UNSIGNED NOT NULL,
  `image_path` varchar(255) NOT NULL,
  `is_featured` tinyint(1) NOT NULL DEFAULT 0,
  `sort_order` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `variant_values`
--

CREATE TABLE `variant_values` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `variant_group_id` bigint(20) UNSIGNED NOT NULL,
  `value` varchar(150) NOT NULL,
  `slug` varchar(170) NOT NULL,
  `color_hex` varchar(7) DEFAULT NULL,
  `sort_order` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `vendors`
--

CREATE TABLE `vendors` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `shop_name` varchar(150) DEFAULT NULL,
  `state_code` varchar(5) DEFAULT NULL,
  `shiprocket_pickup_location` varchar(255) DEFAULT NULL,
  `pickup_pincode` varchar(10) DEFAULT NULL,
  `pickup_address` text DEFAULT NULL,
  `pickup_phone` varchar(20) DEFAULT NULL,
  `shop_slug` varchar(150) DEFAULT NULL,
  `logo` varchar(255) DEFAULT NULL,
  `banner` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `pan_number` varchar(50) DEFAULT NULL,
  `gst_number` varchar(50) DEFAULT NULL,
  `commission_rate` decimal(5,2) NOT NULL DEFAULT 0.00,
  `is_approved` tinyint(4) NOT NULL DEFAULT 0,
  `verification_level` tinyint(3) UNSIGNED NOT NULL DEFAULT 1,
  `seller_type` varchar(20) NOT NULL DEFAULT 'individual',
  `trust_score` smallint(5) UNSIGNED NOT NULL DEFAULT 10,
  `trust_tier` varchar(20) NOT NULL DEFAULT 'bronze',
  `rejected_at` timestamp NULL DEFAULT NULL,
  `rejection_reason` varchar(255) DEFAULT NULL,
  `kyc_status` varchar(255) NOT NULL DEFAULT 'pending',
  `kyc_document_type` varchar(255) DEFAULT NULL,
  `kyc_document_path` varchar(255) DEFAULT NULL,
  `kyc_rejection_reason` text DEFAULT NULL,
  `kyc_hold_reason` text DEFAULT NULL,
  `kyc_held_at` timestamp NULL DEFAULT NULL,
  `kyc_submitted_at` timestamp NULL DEFAULT NULL,
  `kyc_approved_at` timestamp NULL DEFAULT NULL,
  `setup_wizard_completed` tinyint(1) NOT NULL DEFAULT 0,
  `setup_wizard_step` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
  `bank_account_holder` varchar(255) DEFAULT NULL,
  `bank_name` varchar(255) DEFAULT NULL,
  `bank_account_number` varchar(255) DEFAULT NULL,
  `bank_ifsc` varchar(20) DEFAULT NULL,
  `bank_document_path` varchar(255) DEFAULT NULL,
  `bank_media_id` bigint(20) UNSIGNED DEFAULT NULL,
  `bank_verified` tinyint(1) NOT NULL DEFAULT 0,
  `bank_verified_at` timestamp NULL DEFAULT NULL,
  `first_withdrawal_completed` tinyint(1) NOT NULL DEFAULT 0,
  `first_withdrawal_at` timestamp NULL DEFAULT NULL,
  `product_limit_notified` tinyint(1) NOT NULL DEFAULT 0,
  `fraud_flags` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`fraud_flags`)),
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `is_verified` tinyint(1) NOT NULL DEFAULT 0,
  `verified_at` timestamp NULL DEFAULT NULL,
  `average_rating` decimal(3,2) NOT NULL DEFAULT 0.00,
  `rating_count` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `follower_count` int(10) UNSIGNED NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vendors`
--

INSERT INTO `vendors` (`id`, `user_id`, `shop_name`, `state_code`, `shiprocket_pickup_location`, `pickup_pincode`, `pickup_address`, `pickup_phone`, `shop_slug`, `logo`, `banner`, `description`, `pan_number`, `gst_number`, `commission_rate`, `is_approved`, `verification_level`, `seller_type`, `trust_score`, `trust_tier`, `rejected_at`, `rejection_reason`, `kyc_status`, `kyc_document_type`, `kyc_document_path`, `kyc_rejection_reason`, `kyc_hold_reason`, `kyc_held_at`, `kyc_submitted_at`, `kyc_approved_at`, `setup_wizard_completed`, `setup_wizard_step`, `bank_account_holder`, `bank_name`, `bank_account_number`, `bank_ifsc`, `bank_document_path`, `bank_media_id`, `bank_verified`, `bank_verified_at`, `first_withdrawal_completed`, `first_withdrawal_at`, `product_limit_notified`, `fraud_flags`, `created_at`, `updated_at`, `is_verified`, `verified_at`, `average_rating`, `rating_count`, `follower_count`) VALUES
(4, 27, 'Manu\'s Shop', NULL, NULL, NULL, NULL, NULL, 'manus-shop-2299', NULL, NULL, NULL, NULL, NULL, 0.00, 1, 1, 'individual', 10, 'bronze', NULL, NULL, 'not_submitted', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, 0, NULL, '2026-07-06 21:07:17', '2026-07-06 21:07:35', 0, NULL, 0.00, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `vendor_audit_logs`
--

CREATE TABLE `vendor_audit_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `vendor_id` bigint(20) UNSIGNED DEFAULT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `action` varchar(100) NOT NULL,
  `entity_type` varchar(50) DEFAULT NULL,
  `entity_id` bigint(20) UNSIGNED DEFAULT NULL,
  `old_values` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`old_values`)),
  `new_values` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`new_values`)),
  `ip_address` varchar(45) DEFAULT NULL,
  `user_agent` text DEFAULT NULL,
  `severity` varchar(20) NOT NULL DEFAULT 'info',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `vendor_audit_logs`
--

INSERT INTO `vendor_audit_logs` (`id`, `vendor_id`, `user_id`, `action`, `entity_type`, `entity_id`, `old_values`, `new_values`, `ip_address`, `user_agent`, `severity`, `created_at`, `updated_at`) VALUES
(4, 4, NULL, 'vendor_registered', NULL, NULL, NULL, '{\"shop_name\":\"Manu\'s Shop\"}', '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36', 'info', '2026-07-06 21:07:17', '2026-07-06 21:07:17');

-- --------------------------------------------------------

--
-- Table structure for table `vendor_kyc_documents`
--

CREATE TABLE `vendor_kyc_documents` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `vendor_id` bigint(20) UNSIGNED NOT NULL,
  `document_type` varchar(50) NOT NULL,
  `file_path` varchar(255) NOT NULL,
  `original_filename` varchar(255) DEFAULT NULL,
  `mime_type` varchar(100) DEFAULT NULL,
  `file_size` int(10) UNSIGNED DEFAULT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'pending',
  `rejection_reason` text DEFAULT NULL,
  `reviewed_by` bigint(20) UNSIGNED DEFAULT NULL,
  `reviewed_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `media_id` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `vendor_ratings`
--

CREATE TABLE `vendor_ratings` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `vendor_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `order_id` bigint(20) UNSIGNED DEFAULT NULL,
  `rating` tinyint(3) UNSIGNED NOT NULL,
  `review` text DEFAULT NULL,
  `is_approved` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `vendor_settlements`
--

CREATE TABLE `vendor_settlements` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `settlement_uid` varchar(36) NOT NULL,
  `vendor_id` bigint(20) UNSIGNED NOT NULL,
  `wallet_id` bigint(20) UNSIGNED NOT NULL,
  `gross_amount` decimal(12,2) NOT NULL,
  `platform_charges` decimal(12,2) NOT NULL DEFAULT 0.00,
  `net_amount` decimal(12,2) NOT NULL,
  `status` enum('pending','released','paid_out','failed') NOT NULL DEFAULT 'pending',
  `hold_until` timestamp NULL DEFAULT NULL,
  `released_at` timestamp NULL DEFAULT NULL,
  `paid_out_at` timestamp NULL DEFAULT NULL,
  `payout_provider` varchar(255) DEFAULT NULL,
  `payout_reference` varchar(255) DEFAULT NULL,
  `meta` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`meta`)),
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `vendor_settlement_items`
--

CREATE TABLE `vendor_settlement_items` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `vendor_settlement_id` bigint(20) UNSIGNED NOT NULL,
  `wallet_transaction_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `vendor_sliders`
--

CREATE TABLE `vendor_sliders` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `vendor_id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `subtitle` varchar(255) DEFAULT NULL,
  `image_path` varchar(255) NOT NULL,
  `link_url` varchar(255) DEFAULT NULL,
  `order_priority` int(11) NOT NULL DEFAULT 0,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `visitor_logs`
--

CREATE TABLE `visitor_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `session_id` varchar(64) NOT NULL,
  `visitor_hash` varchar(64) NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `is_returning` tinyint(1) NOT NULL DEFAULT 0,
  `is_guest` tinyint(1) NOT NULL DEFAULT 1,
  `traffic_source` varchar(50) NOT NULL DEFAULT 'unknown',
  `utm_source` varchar(100) DEFAULT NULL,
  `utm_medium` varchar(100) DEFAULT NULL,
  `utm_campaign` varchar(150) DEFAULT NULL,
  `utm_term` varchar(150) DEFAULT NULL,
  `utm_content` varchar(150) DEFAULT NULL,
  `referrer_url` varchar(500) DEFAULT NULL,
  `referrer_domain` varchar(150) DEFAULT NULL,
  `landing_page` varchar(500) DEFAULT NULL,
  `ip_hash` varchar(64) DEFAULT NULL,
  `country` varchar(100) DEFAULT NULL,
  `state` varchar(100) DEFAULT NULL,
  `city` varchar(100) DEFAULT NULL,
  `device_type` varchar(30) DEFAULT NULL,
  `device_os` varchar(50) DEFAULT NULL,
  `browser` varchar(50) DEFAULT NULL,
  `page_views` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `time_spent_seconds` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `first_seen_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `last_seen_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `visitor_logs`
--

INSERT INTO `visitor_logs` (`id`, `session_id`, `visitor_hash`, `user_id`, `is_returning`, `is_guest`, `traffic_source`, `utm_source`, `utm_medium`, `utm_campaign`, `utm_term`, `utm_content`, `referrer_url`, `referrer_domain`, `landing_page`, `ip_hash`, `country`, `state`, `city`, `device_type`, `device_os`, `browser`, `page_views`, `time_spent_seconds`, `first_seen_at`, `last_seen_at`, `created_at`, `updated_at`) VALUES
(248, 'd358d965-461b-4de9-8e48-b78306b17613', '3780a09f20aad0f81505f8394580cb33ddfa210e8265c1104f0f062ffb86001a', 3, 1, 0, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/user/dashboard', '127.0.0.1', 'http://127.0.0.1:8000/login', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Chrome', 251, 425045, '2026-07-06 20:43:07', '2026-07-07 06:17:50', '2026-07-06 20:43:07', '2026-07-07 06:17:50'),
(249, '461a01ad-3c02-4055-a8b4-c442fe0a78d3', '0ba509df5e8561cdaed4c4299a81967dc533fe0f45b6dce99e08106f77881f85', 6, 1, 0, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/gc/dashboard', '127.0.0.1', 'http://127.0.0.1:8000/login', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Chrome', 39, 2402, '2026-07-06 20:43:10', '2026-07-06 21:00:03', '2026-07-06 20:43:10', '2026-07-06 21:00:03'),
(250, 'fb171179-de84-421d-b776-96cd8a5c5ad3', 'e81126d3f8cbaf76ea570f51f79fa3b23f6ec1d0e6d9215f63aec18bab11afa5', 1, 1, 0, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/gc/dashboard', '127.0.0.1', 'http://127.0.0.1:8000', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Chrome', 71, 41, '2026-07-06 20:46:47', '2026-07-06 23:33:19', '2026-07-06 20:46:47', '2026-07-06 23:33:19'),
(251, 'fb171179-de84-421d-b776-96cd8a5c5ad3', 'bec04ae45059b2c637f9d156fc30e643e47f192759fe7542d4706709b0890c6f', 1, 1, 0, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/gc/dashboard', '127.0.0.1', 'http://127.0.0.1:8000', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'iphone', 'iOS', 'Safari', 19, 0, '2026-07-06 20:47:41', '2026-07-06 21:34:30', '2026-07-06 20:47:41', '2026-07-06 21:34:30'),
(252, '3d655b88-3a10-4042-b591-ca6b2081a9b1', '53c430efa2d239fb5ceafec857fd75d7d575fa157dae8f82dfa94a67bd9e866a', NULL, 0, 1, 'direct', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/login', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Other', 1, 0, '2026-07-06 20:54:33', '2026-07-06 20:54:33', '2026-07-06 20:54:33', '2026-07-06 20:54:33'),
(253, 'a3722129-eaec-46ab-87a4-d588e3226dfe', '53c430efa2d239fb5ceafec857fd75d7d575fa157dae8f82dfa94a67bd9e866a', NULL, 0, 1, 'direct', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/login', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Other', 1, 0, '2026-07-06 20:54:55', '2026-07-06 20:54:55', '2026-07-06 20:54:55', '2026-07-06 20:54:55'),
(254, '461a01ad-3c02-4055-a8b4-c442fe0a78d3', 'c99ebcb626b3625395b03f01c3bd98ec1097e424a715983ad21b6cdc88e043e0', 26, 1, 0, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/register', '127.0.0.1', 'http://127.0.0.1:8000/login', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Chrome', 24, 365, '2026-07-06 21:00:05', '2026-07-06 21:04:21', '2026-07-06 21:00:05', '2026-07-06 21:04:21'),
(255, '461a01ad-3c02-4055-a8b4-c442fe0a78d3', '7438e6a6549d580bfe40a1d22aff2fd8dcdbd59085f1bfe7d086dcd3015fe161', NULL, 1, 1, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/logout', '127.0.0.1', 'http://127.0.0.1:8000/login', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Chrome', 22, 286, '2026-07-06 21:02:14', '2026-07-06 21:07:15', '2026-07-06 21:02:14', '2026-07-06 21:07:15'),
(256, '461a01ad-3c02-4055-a8b4-c442fe0a78d3', 'a50b4a40c8a361daa087e0c3a400bd0449061c5f97b0a5b85db423a3fecd1711', 27, 1, 0, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/register?ref=F0DQ9XOFHE', '127.0.0.1', 'http://127.0.0.1:8000/login', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Chrome', 51, 203, '2026-07-06 21:07:25', '2026-07-06 23:02:23', '2026-07-06 21:07:25', '2026-07-06 23:02:23'),
(257, '461a01ad-3c02-4055-a8b4-c442fe0a78d3', '304685529966e48afae4bfb93202085ad6e8d571bca5f5e9dd53d4690e2ebce2', 27, 1, 0, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/gc/dashboard', '127.0.0.1', 'http://127.0.0.1:8000/login', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'iphone', 'iOS', 'Safari', 28, 0, '2026-07-06 23:07:04', '2026-07-07 01:02:27', '2026-07-06 23:07:04', '2026-07-07 01:02:27'),
(258, 'd26f2ba6-c734-4a6d-a34d-e1329a1f6626', 'a35dcae944e569e42b7401310937bedf0f494c58827fcf546768da08666feb18', 2, 1, 0, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/gc/dashboard/1', '127.0.0.1', 'http://127.0.0.1:8000', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Chrome', 15, 299, '2026-07-07 01:54:26', '2026-07-07 02:53:13', '2026-07-07 01:54:26', '2026-07-07 02:53:13'),
(259, '36db8eb4-b205-42ae-95af-111eb4f792cb', '7438e6a6549d580bfe40a1d22aff2fd8dcdbd59085f1bfe7d086dcd3015fe161', NULL, 1, 1, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/admin/users/26/edit', '127.0.0.1', 'http://127.0.0.1:8000/login', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Chrome', 12, 18, '2026-07-07 02:01:31', '2026-07-07 10:50:11', '2026-07-07 02:01:31', '2026-07-07 10:50:11'),
(260, '36db8eb4-b205-42ae-95af-111eb4f792cb', 'c99ebcb626b3625395b03f01c3bd98ec1097e424a715983ad21b6cdc88e043e0', 26, 1, 0, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/login', '127.0.0.1', 'http://127.0.0.1:8000/login', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Chrome', 232, 114129, '2026-07-07 02:02:06', '2026-07-07 10:49:59', '2026-07-07 02:02:06', '2026-07-07 10:49:59'),
(261, '36db8eb4-b205-42ae-95af-111eb4f792cb', 'e8d48a0320922aa0e53355553d125d88d81fe79de5b97fd3901a5b7d62ec4687', 26, 1, 0, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/user/dashboard', '127.0.0.1', 'http://127.0.0.1:8000/login', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'iphone', 'iOS', 'Safari', 169, 102370, '2026-07-07 02:08:41', '2026-07-07 10:38:13', '2026-07-07 02:08:41', '2026-07-07 10:38:13'),
(262, 'd26f2ba6-c734-4a6d-a34d-e1329a1f6626', 'cb31975ce392e5e88a9c8a277cb99b5f50e0cadecb1ea6765e6febe508f1f5b1', 28, 1, 0, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/register', '127.0.0.1', 'http://127.0.0.1:8000', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Chrome', 96, 22479, '2026-07-07 02:53:18', '2026-07-07 07:57:24', '2026-07-07 02:53:18', '2026-07-07 07:57:24'),
(263, 'd26f2ba6-c734-4a6d-a34d-e1329a1f6626', '09371779402fedac1abc755b0f2e5debdca2a58f3d2037f6d4df93288af6e513', 28, 1, 0, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/user/dashboard', '127.0.0.1', 'http://127.0.0.1:8000', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'android', 'Android', 'Chrome', 328, 24501, '2026-07-07 02:53:37', '2026-07-07 07:53:22', '2026-07-07 02:53:37', '2026-07-07 07:53:22'),
(264, '33a1c3bb-e621-42da-8ea7-14ac0bbebecc', '4994890b87c5a4755ddcbbcc7d44a354e8e37d6130ba72a41251b194b11c1b9d', NULL, 0, 1, 'direct', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/vendor', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Unknown', 'Other', 1, 0, '2026-07-07 06:23:35', '2026-07-07 06:23:35', '2026-07-07 06:23:35', '2026-07-07 06:23:35'),
(265, 'ddf19829-69c5-4199-9c0c-86fca7a1df87', '4994890b87c5a4755ddcbbcc7d44a354e8e37d6130ba72a41251b194b11c1b9d', NULL, 0, 1, 'direct', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/legal/terms', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Unknown', 'Other', 1, 0, '2026-07-07 06:57:15', '2026-07-07 06:57:15', '2026-07-07 06:57:15', '2026-07-07 06:57:15'),
(266, '7096ad8b-5823-4747-bb50-f0634ec02af6', '4994890b87c5a4755ddcbbcc7d44a354e8e37d6130ba72a41251b194b11c1b9d', NULL, 0, 1, 'direct', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/legal/terms-and-conditions', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Unknown', 'Other', 1, 0, '2026-07-07 06:58:33', '2026-07-07 06:58:33', '2026-07-07 06:58:33', '2026-07-07 06:58:33'),
(267, 'c4d11d4b-4f21-4609-9aa7-17ce94d5559f', '4994890b87c5a4755ddcbbcc7d44a354e8e37d6130ba72a41251b194b11c1b9d', NULL, 0, 1, 'direct', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/legal/terms', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Unknown', 'Other', 1, 0, '2026-07-07 06:58:37', '2026-07-07 06:58:37', '2026-07-07 06:58:37', '2026-07-07 06:58:37'),
(268, 'c3d1e2b5-1a75-41a7-98a5-4bbd99cc6380', '4994890b87c5a4755ddcbbcc7d44a354e8e37d6130ba72a41251b194b11c1b9d', NULL, 0, 1, 'direct', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/legal/terms', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Unknown', 'Other', 1, 0, '2026-07-07 06:59:10', '2026-07-07 06:59:10', '2026-07-07 06:59:10', '2026-07-07 06:59:10'),
(269, '6a70d737-a244-43f5-883c-0e2f843b1daf', '4994890b87c5a4755ddcbbcc7d44a354e8e37d6130ba72a41251b194b11c1b9d', NULL, 0, 1, 'direct', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/legal/terms', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Unknown', 'Other', 1, 0, '2026-07-07 06:59:12', '2026-07-07 06:59:12', '2026-07-07 06:59:12', '2026-07-07 06:59:12'),
(270, 'd69de1a2-5365-4559-8ed3-84a7b570842e', '53c430efa2d239fb5ceafec857fd75d7d575fa157dae8f82dfa94a67bd9e866a', NULL, 1, 1, 'direct', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/login', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Other', 2, 0, '2026-07-07 08:52:36', '2026-07-07 08:52:45', '2026-07-07 08:52:36', '2026-07-07 08:52:45'),
(271, 'd358d965-461b-4de9-8e48-b78306b17613', '84e1cc4f9a6ade4f6afd712f72a47473409f6b7f4c31fc98892b5780f21df443', NULL, 1, 1, 'direct', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'android', 'Android', 'Chrome', 37, 47494, '2026-07-07 08:57:17', '2026-07-07 10:52:54', '2026-07-07 08:57:17', '2026-07-07 10:52:54'),
(272, 'd358d965-461b-4de9-8e48-b78306b17613', '7438e6a6549d580bfe40a1d22aff2fd8dcdbd59085f1bfe7d086dcd3015fe161', NULL, 1, 1, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/', '127.0.0.1', 'http://127.0.0.1:8000', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Chrome', 27, 75298, '2026-07-07 09:39:48', '2026-07-07 12:25:14', '2026-07-07 09:39:48', '2026-07-07 12:25:14'),
(273, '36db8eb4-b205-42ae-95af-111eb4f792cb', 'bec04ae45059b2c637f9d156fc30e643e47f192759fe7542d4706709b0890c6f', 1, 1, 0, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/gc/dashboard', '127.0.0.1', 'http://127.0.0.1:8000/login', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'iphone', 'iOS', 'Safari', 20, 0, '2026-07-07 11:17:47', '2026-07-07 12:01:14', '2026-07-07 11:17:47', '2026-07-07 12:01:14'),
(274, '36db8eb4-b205-42ae-95af-111eb4f792cb', 'e81126d3f8cbaf76ea570f51f79fa3b23f6ec1d0e6d9215f63aec18bab11afa5', 1, 1, 0, 'unknown', NULL, NULL, NULL, NULL, NULL, 'http://127.0.0.1:8000/gc/dashboard', '127.0.0.1', 'http://127.0.0.1:8000/login', '12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0', 'UNKNOWN', NULL, NULL, 'desktop', 'Windows', 'Chrome', 12, 0, '2026-07-07 12:04:39', '2026-07-07 12:06:05', '2026-07-07 12:04:39', '2026-07-07 12:06:05');

-- --------------------------------------------------------

--
-- Table structure for table `wallets`
--

CREATE TABLE `wallets` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `owner_type` varchar(255) NOT NULL DEFAULT 'user',
  `owner_id` bigint(20) UNSIGNED DEFAULT NULL,
  `wallet_type` varchar(20) NOT NULL DEFAULT 'customer',
  `balance` decimal(10,2) NOT NULL DEFAULT 0.00,
  `pending_balance` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_earnings` decimal(12,2) NOT NULL DEFAULT 0.00,
  `affiliate_earnings` decimal(12,2) NOT NULL DEFAULT 0.00,
  `own_earnings` decimal(12,2) NOT NULL DEFAULT 0.00,
  `platform_charges` decimal(12,2) NOT NULL DEFAULT 0.00,
  `withdrawn_total` decimal(12,2) NOT NULL DEFAULT 0.00,
  `escrow_balance` decimal(12,2) NOT NULL DEFAULT 0.00,
  `reward_points` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `currency` char(3) NOT NULL DEFAULT 'INR',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `wallets`
--

INSERT INTO `wallets` (`id`, `user_id`, `owner_type`, `owner_id`, `wallet_type`, `balance`, `pending_balance`, `total_earnings`, `affiliate_earnings`, `own_earnings`, `platform_charges`, `withdrawn_total`, `escrow_balance`, `reward_points`, `currency`, `created_at`, `updated_at`, `deleted_at`) VALUES
(7, 26, 'user', 26, 'customer', 200.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0, 'INR', NULL, NULL, NULL),
(8, 27, 'user', NULL, 'customer', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0, 'INR', NULL, NULL, NULL),
(9, 28, 'user', 28, 'worker', 100.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0, 'INR', NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `wallet_transactions`
--

CREATE TABLE `wallet_transactions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `transaction_uid` varchar(36) DEFAULT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `vendor_id` bigint(20) UNSIGNED DEFAULT NULL,
  `wallet_id` bigint(20) UNSIGNED NOT NULL,
  `amount` decimal(12,2) NOT NULL,
  `type` enum('credit','debit') NOT NULL,
  `remark` varchar(255) DEFAULT NULL,
  `description` varchar(255) NOT NULL,
  `reference_type` varchar(255) DEFAULT NULL,
  `reference_id` bigint(20) UNSIGNED DEFAULT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'completed',
  `metadata` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`metadata`)),
  `idempotency_key` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `order_id` bigint(20) UNSIGNED DEFAULT NULL,
  `order_item_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED DEFAULT NULL,
  `product_name` varchar(255) DEFAULT NULL,
  `listing_type` enum('own','affiliate') DEFAULT NULL,
  `order_amount` decimal(12,2) DEFAULT NULL,
  `commission_amount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `platform_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `net_amount` decimal(12,2) DEFAULT NULL,
  `available_at` timestamp NULL DEFAULT NULL,
  `source` varchar(50) NOT NULL DEFAULT 'manual'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `wallet_transactions`
--

INSERT INTO `wallet_transactions` (`id`, `transaction_uid`, `user_id`, `vendor_id`, `wallet_id`, `amount`, `type`, `remark`, `description`, `reference_type`, `reference_id`, `status`, `metadata`, `idempotency_key`, `created_at`, `updated_at`, `order_id`, `order_item_id`, `product_id`, `product_name`, `listing_type`, `order_amount`, `commission_amount`, `platform_charge`, `net_amount`, `available_at`, `source`) VALUES
(6, NULL, 26, NULL, 7, 100.00, 'credit', 'Welcome bonus for new registration', 'Welcome bonus for new registration', 'signup_bonus', 26, 'completed', NULL, 'signup_bonus_user_26', '2026-07-06 21:00:04', '2026-07-06 21:00:04', NULL, NULL, NULL, NULL, NULL, NULL, 0.00, 0.00, NULL, NULL, 'manual'),
(7, NULL, 28, NULL, 9, 100.00, 'credit', 'Welcome bonus for new registration', 'Welcome bonus for new registration', 'signup_bonus', 28, 'completed', NULL, 'signup_bonus_user_28', '2026-07-07 02:53:16', '2026-07-07 02:53:16', NULL, NULL, NULL, NULL, NULL, NULL, 0.00, 0.00, NULL, NULL, 'manual'),
(8, NULL, 26, NULL, 7, 100.00, 'credit', 'Referral bonus for inviting bitlife store', 'Referral bonus for inviting bitlife store', 'referral_bonus', 2, 'completed', NULL, 'referral_bonus_2', '2026-07-07 02:53:16', '2026-07-07 02:53:16', NULL, NULL, NULL, NULL, NULL, NULL, 0.00, 0.00, NULL, NULL, 'manual');

-- --------------------------------------------------------

--
-- Table structure for table `wishlists`
--

CREATE TABLE `wishlists` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `withdrawals`
--

CREATE TABLE `withdrawals` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `wallet_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `amount` decimal(12,2) NOT NULL,
  `fee` decimal(10,2) NOT NULL DEFAULT 0.00,
  `net_amount` decimal(12,2) NOT NULL,
  `method` varchar(20) NOT NULL DEFAULT 'bank',
  `account_details` text NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'pending',
  `admin_note` text DEFAULT NULL,
  `processed_by` bigint(20) UNSIGNED DEFAULT NULL,
  `processed_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `workers`
--

CREATE TABLE `workers` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `company_id` bigint(20) UNSIGNED DEFAULT NULL,
  `display_name` varchar(255) NOT NULL,
  `bio` text DEFAULT NULL,
  `experience_years` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
  `hourly_rate` decimal(10,2) NOT NULL DEFAULT 0.00,
  `is_online` tinyint(1) NOT NULL DEFAULT 0,
  `is_available` tinyint(1) NOT NULL DEFAULT 1,
  `verification_status` varchar(20) NOT NULL DEFAULT 'pending',
  `verified_badge` tinyint(1) NOT NULL DEFAULT 0,
  `police_verified` tinyint(1) NOT NULL DEFAULT 0,
  `premium_verified` tinyint(1) NOT NULL DEFAULT 0,
  `avg_rating` decimal(3,2) NOT NULL DEFAULT 0.00,
  `total_jobs` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `service_radius_km` decimal(5,2) NOT NULL DEFAULT 10.00,
  `current_lat` decimal(10,7) DEFAULT NULL,
  `current_lng` decimal(10,7) DEFAULT NULL,
  `last_location_at` timestamp NULL DEFAULT NULL,
  `subscription_plan` varchar(20) NOT NULL DEFAULT 'free',
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `workers`
--

INSERT INTO `workers` (`id`, `user_id`, `company_id`, `display_name`, `bio`, `experience_years`, `hourly_rate`, `is_online`, `is_available`, `verification_status`, `verified_badge`, `police_verified`, `premium_verified`, `avg_rating`, `total_jobs`, `service_radius_km`, `current_lat`, `current_lng`, `last_location_at`, `subscription_plan`, `status`, `created_at`, `updated_at`, `deleted_at`) VALUES
(2, 28, NULL, 'bitlife store', NULL, 0, 299.00, 0, 1, 'pending', 0, 0, 0, 0.00, 0, 10.00, NULL, NULL, NULL, 'free', 1, '2026-07-07 04:18:14', '2026-07-07 04:18:14', NULL),
(3, 26, NULL, 'gletra site', NULL, 0, 299.00, 0, 1, 'pending', 0, 0, 0, 0.00, 0, 10.00, NULL, NULL, NULL, 'free', 0, '2026-07-07 06:52:50', '2026-07-07 06:52:50', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `worker_availability`
--

CREATE TABLE `worker_availability` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `worker_id` bigint(20) UNSIGNED NOT NULL,
  `day_of_week` tinyint(3) UNSIGNED NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `is_available` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `worker_locations`
--

CREATE TABLE `worker_locations` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `worker_id` bigint(20) UNSIGNED NOT NULL,
  `lat` decimal(10,7) NOT NULL,
  `lng` decimal(10,7) NOT NULL,
  `accuracy` decimal(8,2) DEFAULT NULL,
  `heading` decimal(6,2) DEFAULT NULL,
  `speed` decimal(8,2) DEFAULT NULL,
  `recorded_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `worker_service`
--

CREATE TABLE `worker_service` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `worker_id` bigint(20) UNSIGNED NOT NULL,
  `service_id` bigint(20) UNSIGNED NOT NULL,
  `custom_price` decimal(10,2) DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `account_deletion_requests`
--
ALTER TABLE `account_deletion_requests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `account_deletion_requests_user_id_foreign` (`user_id`),
  ADD KEY `account_deletion_requests_handled_by_foreign` (`handled_by`),
  ADD KEY `account_deletion_requests_status_requested_at_index` (`status`,`requested_at`);

--
-- Indexes for table `activity_logs`
--
ALTER TABLE `activity_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `activity_logs_user_id_foreign` (`user_id`);

--
-- Indexes for table `addresses`
--
ALTER TABLE `addresses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `addresses_city_id_foreign` (`city_id`),
  ADD KEY `addresses_state_id_foreign` (`state_id`),
  ADD KEY `addresses_country_id_foreign` (`country_id`),
  ADD KEY `addresses_user_id_is_default_index` (`user_id`,`is_default`);

--
-- Indexes for table `advertisements`
--
ALTER TABLE `advertisements`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `affiliates`
--
ALTER TABLE `affiliates`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `affiliates_code_unique` (`code`),
  ADD KEY `affiliates_user_id_foreign` (`user_id`);

--
-- Indexes for table `affiliate_commissions`
--
ALTER TABLE `affiliate_commissions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `affiliate_commissions_affiliate_id_foreign` (`affiliate_id`),
  ADD KEY `affiliate_commissions_order_id_foreign` (`order_id`);

--
-- Indexes for table `ai_recommendation_logs`
--
ALTER TABLE `ai_recommendation_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `ai_recommendation_logs_user_id_foreign` (`user_id`);

--
-- Indexes for table `analytics_events`
--
ALTER TABLE `analytics_events`
  ADD PRIMARY KEY (`id`),
  ADD KEY `analytics_events_event_type_index` (`event_type`),
  ADD KEY `analytics_events_product_id_index` (`product_id`),
  ADD KEY `analytics_events_vendor_id_index` (`vendor_id`),
  ADD KEY `analytics_events_user_id_index` (`user_id`),
  ADD KEY `analytics_events_category_id_index` (`category_id`),
  ADD KEY `analytics_events_brand_id_index` (`brand_id`),
  ADD KEY `analytics_events_order_id_index` (`order_id`),
  ADD KEY `analytics_events_session_id_index` (`session_id`),
  ADD KEY `analytics_events_visitor_hash_index` (`visitor_hash`),
  ADD KEY `analytics_events_keyword_index` (`keyword`),
  ADD KEY `analytics_events_created_at_index` (`created_at`);

--
-- Indexes for table `analytics_reports`
--
ALTER TABLE `analytics_reports`
  ADD PRIMARY KEY (`id`),
  ADD KEY `analytics_reports_report_type_index` (`report_type`);

--
-- Indexes for table `analytics_visitor_sessions`
--
ALTER TABLE `analytics_visitor_sessions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `analytics_visitor_sessions_session_id_unique` (`session_id`),
  ADD KEY `analytics_visitor_sessions_visitor_hash_index` (`visitor_hash`),
  ADD KEY `analytics_visitor_sessions_user_id_index` (`user_id`);

--
-- Indexes for table `app_notifications`
--
ALTER TABLE `app_notifications`
  ADD PRIMARY KEY (`id`),
  ADD KEY `app_notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`),
  ADD KEY `app_notifications_notifiable_type_notifiable_id_read_at_index` (`notifiable_type`,`notifiable_id`,`read_at`);

--
-- Indexes for table `attendance`
--
ALTER TABLE `attendance`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `attendance_worker_id_date_unique` (`worker_id`,`date`);

--
-- Indexes for table `attribute_definitions`
--
ALTER TABLE `attribute_definitions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `attribute_definitions_slug_unique` (`slug`);

--
-- Indexes for table `audit_logs`
--
ALTER TABLE `audit_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `audit_logs_user_id_foreign` (`user_id`),
  ADD KEY `audit_logs_action_created_at_index` (`action`,`created_at`);

--
-- Indexes for table `backup_code_logs`
--
ALTER TABLE `backup_code_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `backup_code_logs_user_id_foreign` (`user_id`);

--
-- Indexes for table `banners`
--
ALTER TABLE `banners`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `banner_performance_logs`
--
ALTER TABLE `banner_performance_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `banner_performance_logs_banner_id_index` (`banner_id`),
  ADD KEY `banner_performance_logs_slider_id_index` (`slider_id`),
  ADD KEY `banner_performance_logs_asset_type_index` (`asset_type`),
  ADD KEY `banner_performance_logs_event_type_index` (`event_type`),
  ADD KEY `banner_performance_logs_session_id_index` (`session_id`);

--
-- Indexes for table `blocked_users`
--
ALTER TABLE `blocked_users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `blocked_users_user_id_blocked_user_id_unique` (`user_id`,`blocked_user_id`),
  ADD KEY `blocked_users_blocked_user_id_foreign` (`blocked_user_id`);

--
-- Indexes for table `bookings`
--
ALTER TABLE `bookings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bookings_uuid_unique` (`uuid`),
  ADD KEY `bookings_company_id_foreign` (`company_id`),
  ADD KEY `bookings_service_id_foreign` (`service_id`),
  ADD KEY `bookings_address_id_foreign` (`address_id`),
  ADD KEY `bookings_coupon_id_foreign` (`coupon_id`),
  ADD KEY `bookings_cancelled_by_foreign` (`cancelled_by`),
  ADD KEY `bookings_customer_id_status_index` (`customer_id`,`status`),
  ADD KEY `bookings_worker_id_status_index` (`worker_id`,`status`),
  ADD KEY `bookings_status_is_emergency_index` (`status`,`is_emergency`),
  ADD KEY `bookings_scheduled_at_index` (`scheduled_at`);

--
-- Indexes for table `booking_attachments`
--
ALTER TABLE `booking_attachments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `booking_attachments_booking_id_type_index` (`booking_id`,`type`);

--
-- Indexes for table `booking_statuses`
--
ALTER TABLE `booking_statuses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `booking_statuses_changed_by_foreign` (`changed_by`),
  ADD KEY `booking_statuses_booking_id_created_at_index` (`booking_id`,`created_at`);

--
-- Indexes for table `booking_worker_alerts`
--
ALTER TABLE `booking_worker_alerts`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `booking_worker_alerts_booking_id_worker_id_unique` (`booking_id`,`worker_id`),
  ADD KEY `booking_worker_alerts_worker_id_foreign` (`worker_id`);

--
-- Indexes for table `brands`
--
ALTER TABLE `brands`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `brands_slug_unique` (`slug`);

--
-- Indexes for table `brand_analytics_daily`
--
ALTER TABLE `brand_analytics_daily`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `brand_analytics_daily_brand_id_date_unique` (`brand_id`,`date`),
  ADD KEY `brand_analytics_daily_brand_id_index` (`brand_id`),
  ADD KEY `brand_analytics_daily_date_index` (`date`);

--
-- Indexes for table `browser_analytics_daily`
--
ALTER TABLE `browser_analytics_daily`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `browser_analytics_daily_date_browser_unique` (`date`,`browser`),
  ADD KEY `browser_analytics_daily_date_index` (`date`);

--
-- Indexes for table `calls`
--
ALTER TABLE `calls`
  ADD PRIMARY KEY (`id`),
  ADD KEY `calls_initiator_id_foreign` (`initiator_id`),
  ADD KEY `calls_callable_type_callable_id_index` (`callable_type`,`callable_id`),
  ADD KEY `calls_status_created_at_index` (`status`,`created_at`);

--
-- Indexes for table `call_favorites`
--
ALTER TABLE `call_favorites`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `call_favorites_user_id_favorite_user_id_unique` (`user_id`,`favorite_user_id`),
  ADD KEY `call_favorites_favorite_user_id_foreign` (`favorite_user_id`);

--
-- Indexes for table `call_logs`
--
ALTER TABLE `call_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `call_logs_user_id_foreign` (`user_id`),
  ADD KEY `call_logs_call_id_created_at_index` (`call_id`,`created_at`);

--
-- Indexes for table `call_notifications`
--
ALTER TABLE `call_notifications`
  ADD PRIMARY KEY (`id`),
  ADD KEY `call_notifications_sender_id_foreign` (`sender_id`),
  ADD KEY `call_notifications_receiver_id_is_read_created_at_index` (`receiver_id`,`is_read`,`created_at`),
  ADD KEY `call_notifications_call_id_foreign` (`call_id`);

--
-- Indexes for table `call_participants`
--
ALTER TABLE `call_participants`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `call_participants_call_id_user_id_unique` (`call_id`,`user_id`),
  ADD KEY `call_participants_user_id_foreign` (`user_id`);

--
-- Indexes for table `carts`
--
ALTER TABLE `carts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `carts_user_id_foreign` (`user_id`),
  ADD KEY `carts_product_id_foreign` (`product_id`),
  ADD KEY `carts_variant_id_foreign` (`variant_id`),
  ADD KEY `carts_session_id_index` (`session_id`);

--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `categories_parent_slug_unique` (`parent_id`,`slug`),
  ADD KEY `categories_parent_id_foreign` (`parent_id`),
  ADD KEY `categories_domain_status_index` (`domain`,`status`),
  ADD KEY `categories_created_by_foreign` (`created_by`),
  ADD KEY `categories_updated_by_foreign` (`updated_by`),
  ADD KEY `categories_status_level_index` (`status`,`level`),
  ADD KEY `categories_display_order_index` (`display_order`);

--
-- Indexes for table `category_analytics_daily`
--
ALTER TABLE `category_analytics_daily`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `category_analytics_daily_category_id_date_unique` (`category_id`,`date`),
  ADD KEY `category_analytics_daily_category_id_index` (`category_id`),
  ADD KEY `category_analytics_daily_date_index` (`date`);

--
-- Indexes for table `category_attributes`
--
ALTER TABLE `category_attributes`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `category_attr_unique` (`category_id`,`attribute_definition_id`),
  ADD KEY `category_attributes_attribute_definition_id_foreign` (`attribute_definition_id`);

--
-- Indexes for table `category_filter`
--
ALTER TABLE `category_filter`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `category_filter_unique` (`category_id`,`filter_definition_id`),
  ADD KEY `category_filter_filter_definition_id_foreign` (`filter_definition_id`);

--
-- Indexes for table `channels`
--
ALTER TABLE `channels`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `channels_slug_unique` (`slug`),
  ADD KEY `channels_owner_id_foreign` (`owner_id`);

--
-- Indexes for table `channel_comments`
--
ALTER TABLE `channel_comments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `channel_comments_channel_post_id_foreign` (`channel_post_id`),
  ADD KEY `channel_comments_user_id_foreign` (`user_id`);

--
-- Indexes for table `channel_followers`
--
ALTER TABLE `channel_followers`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `channel_followers_channel_id_user_id_unique` (`channel_id`,`user_id`),
  ADD KEY `channel_followers_user_id_foreign` (`user_id`);

--
-- Indexes for table `channel_posts`
--
ALTER TABLE `channel_posts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `channel_posts_author_id_foreign` (`author_id`),
  ADD KEY `channel_posts_channel_id_created_at_index` (`channel_id`,`created_at`);

--
-- Indexes for table `channel_reactions`
--
ALTER TABLE `channel_reactions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `channel_reactions_channel_post_id_user_id_unique` (`channel_post_id`,`user_id`),
  ADD KEY `channel_reactions_user_id_foreign` (`user_id`);

--
-- Indexes for table `chats`
--
ALTER TABLE `chats`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `chat_audit_logs`
--
ALTER TABLE `chat_audit_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `chat_audit_logs_admin_id_foreign` (`admin_id`);

--
-- Indexes for table `chat_conversations`
--
ALTER TABLE `chat_conversations`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `chat_conversations_user_one_id_user_two_id_unique` (`user_one_id`,`user_two_id`),
  ADD KEY `chat_conversations_user_two_id_foreign` (`user_two_id`);

--
-- Indexes for table `chat_messages`
--
ALTER TABLE `chat_messages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `chat_messages_conversation_id_foreign` (`conversation_id`),
  ADD KEY `chat_messages_sender_id_foreign` (`sender_id`);

--
-- Indexes for table `chat_password_requests`
--
ALTER TABLE `chat_password_requests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `chat_password_requests_user_id_foreign` (`user_id`),
  ADD KEY `chat_password_requests_handled_by_admin_foreign` (`handled_by_admin`);

--
-- Indexes for table `cities`
--
ALTER TABLE `cities`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cities_country_id_foreign` (`country_id`),
  ADD KEY `cities_state_id_status_index` (`state_id`,`status`);

--
-- Indexes for table `communities`
--
ALTER TABLE `communities`
  ADD PRIMARY KEY (`id`),
  ADD KEY `communities_owner_id_foreign` (`owner_id`);

--
-- Indexes for table `community_groups`
--
ALTER TABLE `community_groups`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `community_groups_community_id_group_id_unique` (`community_id`,`group_id`),
  ADD KEY `community_groups_group_id_foreign` (`group_id`);

--
-- Indexes for table `companies`
--
ALTER TABLE `companies`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `companies_slug_unique` (`slug`),
  ADD KEY `companies_owner_id_foreign` (`owner_id`),
  ADD KEY `companies_verification_status_status_index` (`verification_status`,`status`);

--
-- Indexes for table `company_staff`
--
ALTER TABLE `company_staff`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `company_staff_company_id_user_id_unique` (`company_id`,`user_id`),
  ADD KEY `company_staff_user_id_foreign` (`user_id`);

--
-- Indexes for table `contact_messages`
--
ALTER TABLE `contact_messages`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `conversations`
--
ALTER TABLE `conversations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `conversations_user_one_foreign` (`user_one_id`),
  ADD KEY `conversations_user_two_foreign` (`user_two_id`),
  ADD KEY `conversations_last_message_at_index` (`last_message_at`);

--
-- Indexes for table `countries`
--
ALTER TABLE `countries`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `countries_iso2_unique` (`iso2`);

--
-- Indexes for table `coupons`
--
ALTER TABLE `coupons`
  ADD PRIMARY KEY (`id`),
  ADD KEY `coupons_vendor_id_foreign` (`vendor_id`);

--
-- Indexes for table `currencies`
--
ALTER TABLE `currencies`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `currencies_code_unique` (`code`);

--
-- Indexes for table `customer_journey_logs`
--
ALTER TABLE `customer_journey_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `customer_journey_logs_session_id_step_order_index` (`session_id`,`step_order`),
  ADD KEY `customer_journey_logs_session_id_index` (`session_id`),
  ADD KEY `customer_journey_logs_user_id_index` (`user_id`),
  ADD KEY `customer_journey_logs_step_type_index` (`step_type`),
  ADD KEY `customer_journey_logs_product_id_index` (`product_id`),
  ADD KEY `customer_journey_logs_category_id_index` (`category_id`);

--
-- Indexes for table `delivery_assignments`
--
ALTER TABLE `delivery_assignments`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `delivery_assignments_order_id_unique` (`order_id`),
  ADD KEY `delivery_assignments_delivery_partner_id_foreign` (`delivery_partner_id`);

--
-- Indexes for table `device_analytics_daily`
--
ALTER TABLE `device_analytics_daily`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `device_analytics_daily_date_device_type_unique` (`date`,`device_type`),
  ADD KEY `device_analytics_daily_date_index` (`date`);

--
-- Indexes for table `disputes`
--
ALTER TABLE `disputes`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `disputes_booking_id_unique` (`booking_id`),
  ADD KEY `disputes_raised_by_foreign` (`raised_by`),
  ADD KEY `disputes_resolved_by_foreign` (`resolved_by`),
  ADD KEY `disputes_status_index` (`status`);

--
-- Indexes for table `escrow_holds`
--
ALTER TABLE `escrow_holds`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `escrow_holds_booking_id_unique` (`booking_id`),
  ADD KEY `escrow_holds_customer_wallet_id_foreign` (`customer_wallet_id`),
  ADD KEY `escrow_holds_status_index` (`status`);

--
-- Indexes for table `favorites`
--
ALTER TABLE `favorites`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `favorites_user_id_worker_id_unique` (`user_id`,`worker_id`),
  ADD KEY `favorites_worker_id_foreign` (`worker_id`);

--
-- Indexes for table `feature_toggles`
--
ALTER TABLE `feature_toggles`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `feature_toggles_key_unique` (`key`);

--
-- Indexes for table `filter_definitions`
--
ALTER TABLE `filter_definitions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `filter_definitions_slug_unique` (`slug`);

--
-- Indexes for table `followers`
--
ALTER TABLE `followers`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `followers_follower_id_following_id_unique` (`follower_id`,`following_id`),
  ADD KEY `followers_following_id_status_index` (`following_id`,`status`),
  ADD KEY `followers_follower_id_status_index` (`follower_id`,`status`),
  ADD KEY `followers_accepted_at_index` (`accepted_at`);

--
-- Indexes for table `fraud_alerts`
--
ALTER TABLE `fraud_alerts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `fraud_alerts_user_id_foreign` (`user_id`),
  ADD KEY `fraud_alerts_order_id_foreign` (`order_id`);

--
-- Indexes for table `funnel_dropoff_daily`
--
ALTER TABLE `funnel_dropoff_daily`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `funnel_dropoff_daily_date_dropoff_type_unique` (`date`,`dropoff_type`),
  ADD KEY `funnel_dropoff_daily_date_index` (`date`);

--
-- Indexes for table `gc_blocked_users`
--
ALTER TABLE `gc_blocked_users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `gc_blocked_users_blocker_id_blocked_id_unique` (`blocker_id`,`blocked_id`),
  ADD KEY `gc_blocked_users_blocked_id_foreign` (`blocked_id`);

--
-- Indexes for table `gc_calls`
--
ALTER TABLE `gc_calls`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gc_chats`
--
ALTER TABLE `gc_chats`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gc_chat_participants`
--
ALTER TABLE `gc_chat_participants`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `gc_chat_participants_chat_id_user_id_unique` (`chat_id`,`user_id`);

--
-- Indexes for table `gc_chat_reports`
--
ALTER TABLE `gc_chat_reports`
  ADD PRIMARY KEY (`id`),
  ADD KEY `gc_chat_reports_reporter_id_foreign` (`reporter_id`),
  ADD KEY `gc_chat_reports_reported_user_id_foreign` (`reported_user_id`),
  ADD KEY `gc_chat_reports_message_id_foreign` (`message_id`);

--
-- Indexes for table `gc_chat_user_settings`
--
ALTER TABLE `gc_chat_user_settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `gc_chat_user_settings_user_id_chat_id_unique` (`user_id`,`chat_id`),
  ADD KEY `gc_chat_user_settings_chat_id_foreign` (`chat_id`);

--
-- Indexes for table `gc_group_calls`
--
ALTER TABLE `gc_group_calls`
  ADD PRIMARY KEY (`id`),
  ADD KEY `gc_group_calls_chat_id_foreign` (`chat_id`);

--
-- Indexes for table `gc_group_call_participants`
--
ALTER TABLE `gc_group_call_participants`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `gc_group_call_participants_group_call_id_user_id_unique` (`group_call_id`,`user_id`);

--
-- Indexes for table `gc_media_cache`
--
ALTER TABLE `gc_media_cache`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `gc_media_cache_url_hash_unique` (`url_hash`);

--
-- Indexes for table `gc_messages`
--
ALTER TABLE `gc_messages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `gc_messages_delivered_at_index` (`delivered_at`),
  ADD KEY `gc_messages_seen_at_index` (`seen_at`),
  ADD KEY `gc_messages_scheduled_at_index` (`scheduled_at`),
  ADD KEY `gc_messages_disappears_at_index` (`disappears_at`),
  ADD KEY `gc_messages_chat_id_created_at_index` (`chat_id`,`created_at`);

--
-- Indexes for table `gc_message_hides`
--
ALTER TABLE `gc_message_hides`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `gc_message_hides_user_id_message_id_unique` (`user_id`,`message_id`),
  ADD KEY `gc_message_hides_message_id_foreign` (`message_id`);

--
-- Indexes for table `gc_message_mentions`
--
ALTER TABLE `gc_message_mentions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `gc_message_mentions_message_id_user_id_unique` (`message_id`,`user_id`);

--
-- Indexes for table `gc_message_reactions`
--
ALTER TABLE `gc_message_reactions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `gc_message_reactions_message_id_user_id_unique` (`message_id`,`user_id`),
  ADD KEY `gc_message_reactions_user_id_foreign` (`user_id`);

--
-- Indexes for table `gc_polls`
--
ALTER TABLE `gc_polls`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `gc_polls_message_id_unique` (`message_id`);

--
-- Indexes for table `gc_poll_options`
--
ALTER TABLE `gc_poll_options`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gc_poll_votes`
--
ALTER TABLE `gc_poll_votes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gc_starred_messages`
--
ALTER TABLE `gc_starred_messages`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gc_status_reactions`
--
ALTER TABLE `gc_status_reactions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gc_status_updates`
--
ALTER TABLE `gc_status_updates`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gc_status_views`
--
ALTER TABLE `gc_status_views`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gc_user_status`
--
ALTER TABLE `gc_user_status`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gift_cards`
--
ALTER TABLE `gift_cards`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gift_card_transactions`
--
ALTER TABLE `gift_card_transactions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gletra_call_logs`
--
ALTER TABLE `gletra_call_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gletra_chats`
--
ALTER TABLE `gletra_chats`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gletra_conversations`
--
ALTER TABLE `gletra_conversations`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gletra_messages`
--
ALTER TABLE `gletra_messages`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `gletra_sync_events`
--
ALTER TABLE `gletra_sync_events`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `glm_audit_logs`
--
ALTER TABLE `glm_audit_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `glm_buttons`
--
ALTER TABLE `glm_buttons`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `glm_forms`
--
ALTER TABLE `glm_forms`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `glm_form_fields`
--
ALTER TABLE `glm_form_fields`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `glm_menus`
--
ALTER TABLE `glm_menus`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `glm_menu_items`
--
ALTER TABLE `glm_menu_items`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `glm_pages`
--
ALTER TABLE `glm_pages`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `glm_widgets`
--
ALTER TABLE `glm_widgets`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `groups`
--
ALTER TABLE `groups`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `group_invite_links`
--
ALTER TABLE `group_invite_links`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `group_members`
--
ALTER TABLE `group_members`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `group_messages`
--
ALTER TABLE `group_messages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `group_messages_media_id_foreign` (`media_id`);

--
-- Indexes for table `heatmap_click_logs`
--
ALTER TABLE `heatmap_click_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `inventory_movements`
--
ALTER TABLE `inventory_movements`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `invoices`
--
ALTER TABLE `invoices`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `kyc_documents`
--
ALTER TABLE `kyc_documents`
  ADD PRIMARY KEY (`id`),
  ADD KEY `kyc_documents_media_id_foreign` (`media_id`);

--
-- Indexes for table `languages`
--
ALTER TABLE `languages`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `layout_settings`
--
ALTER TABLE `layout_settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `leave_requests`
--
ALTER TABLE `leave_requests`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `legacy_calls`
--
ALTER TABLE `legacy_calls`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `legacy_call_logs`
--
ALTER TABLE `legacy_call_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `location_analytics_daily`
--
ALTER TABLE `location_analytics_daily`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `login_histories`
--
ALTER TABLE `login_histories`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `loyalty_point_transactions`
--
ALTER TABLE `loyalty_point_transactions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `media_files`
--
ALTER TABLE `media_files`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `media_files_uuid_unique` (`uuid`),
  ADD KEY `media_files_owner_type_owner_id_index` (`owner_type`,`owner_id`),
  ADD KEY `media_files_context_collection_index` (`context`,`collection`),
  ADD KEY `media_files_uploaded_by_index` (`uploaded_by`),
  ADD KEY `media_files_owner_collection_index` (`owner_type`,`owner_id`,`collection`);

--
-- Indexes for table `membership_plans`
--
ALTER TABLE `membership_plans`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `messages`
--
ALTER TABLE `messages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `messages_media_id_foreign` (`media_id`),
  ADD KEY `messages_thumbnail_media_id_foreign` (`thumbnail_media_id`);

--
-- Indexes for table `message_hides`
--
ALTER TABLE `message_hides`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `message_reactions`
--
ALTER TABLE `message_reactions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `newsletter_subscribers`
--
ALTER TABLE `newsletter_subscribers`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `order_items`
--
ALTER TABLE `order_items`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `order_return_requests`
--
ALTER TABLE `order_return_requests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `order_return_requests_replacement_order_id_foreign` (`replacement_order_id`);

--
-- Indexes for table `order_trackings`
--
ALTER TABLE `order_trackings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `otps`
--
ALTER TABLE `otps`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `package_scan_logs`
--
ALTER TABLE `package_scan_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `package_scan_logs_scanned_by_foreign` (`scanned_by`),
  ADD KEY `package_scan_logs_order_id_action_index` (`order_id`,`action`),
  ADD KEY `package_scan_logs_scan_value_index` (`scan_value`);

--
-- Indexes for table `page_view_logs`
--
ALTER TABLE `page_view_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `payments`
--
ALTER TABLE `payments`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `payouts`
--
ALTER TABLE `payouts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `paytm_transactions`
--
ALTER TABLE `paytm_transactions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `pinned_messages`
--
ALTER TABLE `pinned_messages`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `platform_audit_logs`
--
ALTER TABLE `platform_audit_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `policies`
--
ALTER TABLE `policies`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `policy_faqs`
--
ALTER TABLE `policy_faqs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `policy_sections`
--
ALTER TABLE `policy_sections`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `price_change_requests`
--
ALTER TABLE `price_change_requests`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `price_history_logs`
--
ALTER TABLE `price_history_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `products`
--
ALTER TABLE `products`
  ADD PRIMARY KEY (`id`),
  ADD KEY `products_product_type_id_foreign` (`product_type_id`);

--
-- Indexes for table `product_analytics_daily`
--
ALTER TABLE `product_analytics_daily`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_analytics_insights`
--
ALTER TABLE `product_analytics_insights`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_analytics_recommendations`
--
ALTER TABLE `product_analytics_recommendations`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_answers`
--
ALTER TABLE `product_answers`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_attributes`
--
ALTER TABLE `product_attributes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_attribute_product`
--
ALTER TABLE `product_attribute_product`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_attribute_values`
--
ALTER TABLE `product_attribute_values`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_comparisons`
--
ALTER TABLE `product_comparisons`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_galleries`
--
ALTER TABLE `product_galleries`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_health_scores`
--
ALTER TABLE `product_health_scores`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_images`
--
ALTER TABLE `product_images`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_questions`
--
ALTER TABLE `product_questions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_tags`
--
ALTER TABLE `product_tags`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_types`
--
ALTER TABLE `product_types`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `product_types_category_id_slug_unique` (`category_id`,`slug`),
  ADD KEY `product_types_category_id_status_display_order_index` (`category_id`,`status`,`display_order`);

--
-- Indexes for table `product_updates`
--
ALTER TABLE `product_updates`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_variants`
--
ALTER TABLE `product_variants`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_variant_values`
--
ALTER TABLE `product_variant_values`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `product_view_logs`
--
ALTER TABLE `product_view_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `promotional_campaigns`
--
ALTER TABLE `promotional_campaigns`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `push_notification_devices`
--
ALTER TABLE `push_notification_devices`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `push_subscriptions`
--
ALTER TABLE `push_subscriptions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `ratings`
--
ALTER TABLE `ratings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `recently_vieweds`
--
ALTER TABLE `recently_vieweds`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `reels`
--
ALTER TABLE `reels`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `reel_comments`
--
ALTER TABLE `reel_comments`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `reel_likes`
--
ALTER TABLE `reel_likes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `referrals`
--
ALTER TABLE `referrals`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `refund_requests`
--
ALTER TABLE `refund_requests`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `related_products`
--
ALTER TABLE `related_products`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `return_requests`
--
ALTER TABLE `return_requests`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `reviews`
--
ALTER TABLE `reviews`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `reward_points`
--
ALTER TABLE `reward_points`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `scheduled_messages`
--
ALTER TABLE `scheduled_messages`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `search_analytics_daily`
--
ALTER TABLE `search_analytics_daily`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `search_analytics_logs`
--
ALTER TABLE `search_analytics_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `search_no_product_logs`
--
ALTER TABLE `search_no_product_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `section_settings`
--
ALTER TABLE `section_settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `seller_bank_accounts`
--
ALTER TABLE `seller_bank_accounts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `seller_flash_sales`
--
ALTER TABLE `seller_flash_sales`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `seller_kyc_documents`
--
ALTER TABLE `seller_kyc_documents`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `seller_orders`
--
ALTER TABLE `seller_orders`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `seller_order_items`
--
ALTER TABLE `seller_order_items`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `seller_order_notes`
--
ALTER TABLE `seller_order_notes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `seller_products`
--
ALTER TABLE `seller_products`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `seller_product_images`
--
ALTER TABLE `seller_product_images`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `seller_profiles`
--
ALTER TABLE `seller_profiles`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `seller_promotions`
--
ALTER TABLE `seller_promotions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `seller_settings`
--
ALTER TABLE `seller_settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `seller_wallets`
--
ALTER TABLE `seller_wallets`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `seo_metas`
--
ALTER TABLE `seo_metas`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `services`
--
ALTER TABLE `services`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `service_booking_items`
--
ALTER TABLE `service_booking_items`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `shippings`
--
ALTER TABLE `shippings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `shipping_rates`
--
ALTER TABLE `shipping_rates`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `shipping_zones`
--
ALTER TABLE `shipping_zones`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `site_settings`
--
ALTER TABLE `site_settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sku_counters`
--
ALTER TABLE `sku_counters`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sliders`
--
ALTER TABLE `sliders`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `starred_messages`
--
ALTER TABLE `starred_messages`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `states`
--
ALTER TABLE `states`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `statuses`
--
ALTER TABLE `statuses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `statuses_user_id_expires_at_index` (`user_id`,`expires_at`),
  ADD KEY `statuses_media_id_foreign` (`media_id`);

--
-- Indexes for table `status_archives`
--
ALTER TABLE `status_archives`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `status_archives_user_id_archived_user_id_unique` (`user_id`,`archived_user_id`),
  ADD KEY `status_archives_archived_user_id_foreign` (`archived_user_id`);

--
-- Indexes for table `status_mutes`
--
ALTER TABLE `status_mutes`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `status_mutes_user_id_muted_user_id_unique` (`user_id`,`muted_user_id`),
  ADD KEY `status_mutes_muted_user_id_foreign` (`muted_user_id`);

--
-- Indexes for table `status_privacy_users`
--
ALTER TABLE `status_privacy_users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `status_privacy_users_status_id_user_id_unique` (`status_id`,`user_id`),
  ADD KEY `status_privacy_users_user_id_foreign` (`user_id`);

--
-- Indexes for table `status_reactions`
--
ALTER TABLE `status_reactions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `status_reactions_status_id_user_id_unique` (`status_id`,`user_id`),
  ADD KEY `status_reactions_user_id_foreign` (`user_id`);

--
-- Indexes for table `status_replies`
--
ALTER TABLE `status_replies`
  ADD PRIMARY KEY (`id`),
  ADD KEY `status_replies_sender_id_foreign` (`sender_id`),
  ADD KEY `status_replies_sticker_id_foreign` (`sticker_id`),
  ADD KEY `status_replies_message_id_foreign` (`message_id`),
  ADD KEY `status_replies_status_id_created_at_index` (`status_id`,`created_at`);

--
-- Indexes for table `status_views`
--
ALTER TABLE `status_views`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `status_views_status_id_viewer_id_unique` (`status_id`,`viewer_id`),
  ADD KEY `status_views_viewer_id_foreign` (`viewer_id`);

--
-- Indexes for table `stickers`
--
ALTER TABLE `stickers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stickers_media_id_foreign` (`media_id`);

--
-- Indexes for table `store_followers`
--
ALTER TABLE `store_followers`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `subscriptions`
--
ALTER TABLE `subscriptions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `support_activity_logs`
--
ALTER TABLE `support_activity_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `support_replies`
--
ALTER TABLE `support_replies`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `support_tickets`
--
ALTER TABLE `support_tickets`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `support_ticket_attachments`
--
ALTER TABLE `support_ticket_attachments`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `taxes`
--
ALTER TABLE `taxes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `theme_settings`
--
ALTER TABLE `theme_settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `traffic_source_daily`
--
ALTER TABLE `traffic_source_daily`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `traffic_source_logs`
--
ALTER TABLE `traffic_source_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `typings`
--
ALTER TABLE `typings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `ui_settings`
--
ALTER TABLE `ui_settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user_addresses`
--
ALTER TABLE `user_addresses`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user_devices`
--
ALTER TABLE `user_devices`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user_engagement_scores`
--
ALTER TABLE `user_engagement_scores`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user_profile_files`
--
ALTER TABLE `user_profile_files`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_profile_files_user_id_created_at_index` (`user_id`,`created_at`),
  ADD KEY `user_profile_files_media_id_foreign` (`media_id`);

--
-- Indexes for table `user_reports`
--
ALTER TABLE `user_reports`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user_restrictions`
--
ALTER TABLE `user_restrictions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user_search_logs`
--
ALTER TABLE `user_search_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user_sessions`
--
ALTER TABLE `user_sessions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user_settings`
--
ALTER TABLE `user_settings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `variant_groups`
--
ALTER TABLE `variant_groups`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `variant_images`
--
ALTER TABLE `variant_images`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `variant_values`
--
ALTER TABLE `variant_values`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `vendors`
--
ALTER TABLE `vendors`
  ADD PRIMARY KEY (`id`),
  ADD KEY `vendors_bank_media_id_foreign` (`bank_media_id`);

--
-- Indexes for table `vendor_audit_logs`
--
ALTER TABLE `vendor_audit_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `vendor_kyc_documents`
--
ALTER TABLE `vendor_kyc_documents`
  ADD PRIMARY KEY (`id`),
  ADD KEY `vendor_kyc_documents_media_id_foreign` (`media_id`);

--
-- Indexes for table `vendor_ratings`
--
ALTER TABLE `vendor_ratings`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `vendor_settlements`
--
ALTER TABLE `vendor_settlements`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `vendor_settlement_items`
--
ALTER TABLE `vendor_settlement_items`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `vendor_sliders`
--
ALTER TABLE `vendor_sliders`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `visitor_logs`
--
ALTER TABLE `visitor_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `wallets`
--
ALTER TABLE `wallets`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `wallet_transactions`
--
ALTER TABLE `wallet_transactions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `wishlists`
--
ALTER TABLE `wishlists`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `withdrawals`
--
ALTER TABLE `withdrawals`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `workers`
--
ALTER TABLE `workers`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `worker_availability`
--
ALTER TABLE `worker_availability`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `worker_locations`
--
ALTER TABLE `worker_locations`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `worker_service`
--
ALTER TABLE `worker_service`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `account_deletion_requests`
--
ALTER TABLE `account_deletion_requests`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `activity_logs`
--
ALTER TABLE `activity_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;

--
-- AUTO_INCREMENT for table `addresses`
--
ALTER TABLE `addresses`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `advertisements`
--
ALTER TABLE `advertisements`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `affiliates`
--
ALTER TABLE `affiliates`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `affiliate_commissions`
--
ALTER TABLE `affiliate_commissions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ai_recommendation_logs`
--
ALTER TABLE `ai_recommendation_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `analytics_events`
--
ALTER TABLE `analytics_events`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=180;

--
-- AUTO_INCREMENT for table `analytics_reports`
--
ALTER TABLE `analytics_reports`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `analytics_visitor_sessions`
--
ALTER TABLE `analytics_visitor_sessions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `attendance`
--
ALTER TABLE `attendance`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `attribute_definitions`
--
ALTER TABLE `attribute_definitions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;

--
-- AUTO_INCREMENT for table `audit_logs`
--
ALTER TABLE `audit_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `backup_code_logs`
--
ALTER TABLE `backup_code_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `banners`
--
ALTER TABLE `banners`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `banner_performance_logs`
--
ALTER TABLE `banner_performance_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=518;

--
-- AUTO_INCREMENT for table `blocked_users`
--
ALTER TABLE `blocked_users`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `bookings`
--
ALTER TABLE `bookings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `booking_attachments`
--
ALTER TABLE `booking_attachments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `booking_statuses`
--
ALTER TABLE `booking_statuses`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `booking_worker_alerts`
--
ALTER TABLE `booking_worker_alerts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `brands`
--
ALTER TABLE `brands`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `brand_analytics_daily`
--
ALTER TABLE `brand_analytics_daily`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `browser_analytics_daily`
--
ALTER TABLE `browser_analytics_daily`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `calls`
--
ALTER TABLE `calls`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;

--
-- AUTO_INCREMENT for table `call_favorites`
--
ALTER TABLE `call_favorites`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `call_logs`
--
ALTER TABLE `call_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=87;

--
-- AUTO_INCREMENT for table `call_notifications`
--
ALTER TABLE `call_notifications`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=89;

--
-- AUTO_INCREMENT for table `call_participants`
--
ALTER TABLE `call_participants`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=76;

--
-- AUTO_INCREMENT for table `carts`
--
ALTER TABLE `carts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2118;

--
-- AUTO_INCREMENT for table `category_analytics_daily`
--
ALTER TABLE `category_analytics_daily`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `category_attributes`
--
ALTER TABLE `category_attributes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `category_filter`
--
ALTER TABLE `category_filter`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `channels`
--
ALTER TABLE `channels`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `channel_comments`
--
ALTER TABLE `channel_comments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `channel_followers`
--
ALTER TABLE `channel_followers`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `channel_posts`
--
ALTER TABLE `channel_posts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `channel_reactions`
--
ALTER TABLE `channel_reactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `chats`
--
ALTER TABLE `chats`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `chat_audit_logs`
--
ALTER TABLE `chat_audit_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=57;

--
-- AUTO_INCREMENT for table `chat_conversations`
--
ALTER TABLE `chat_conversations`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `chat_messages`
--
ALTER TABLE `chat_messages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `chat_password_requests`
--
ALTER TABLE `chat_password_requests`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `cities`
--
ALTER TABLE `cities`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `communities`
--
ALTER TABLE `communities`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `community_groups`
--
ALTER TABLE `community_groups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `companies`
--
ALTER TABLE `companies`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `company_staff`
--
ALTER TABLE `company_staff`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `contact_messages`
--
ALTER TABLE `contact_messages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `conversations`
--
ALTER TABLE `conversations`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `countries`
--
ALTER TABLE `countries`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `coupons`
--
ALTER TABLE `coupons`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `currencies`
--
ALTER TABLE `currencies`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `customer_journey_logs`
--
ALTER TABLE `customer_journey_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8813;

--
-- AUTO_INCREMENT for table `delivery_assignments`
--
ALTER TABLE `delivery_assignments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `device_analytics_daily`
--
ALTER TABLE `device_analytics_daily`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `disputes`
--
ALTER TABLE `disputes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `escrow_holds`
--
ALTER TABLE `escrow_holds`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `favorites`
--
ALTER TABLE `favorites`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `feature_toggles`
--
ALTER TABLE `feature_toggles`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `filter_definitions`
--
ALTER TABLE `filter_definitions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `followers`
--
ALTER TABLE `followers`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `fraud_alerts`
--
ALTER TABLE `fraud_alerts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `funnel_dropoff_daily`
--
ALTER TABLE `funnel_dropoff_daily`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `gc_blocked_users`
--
ALTER TABLE `gc_blocked_users`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gc_calls`
--
ALTER TABLE `gc_calls`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `gc_chats`
--
ALTER TABLE `gc_chats`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `gc_chat_participants`
--
ALTER TABLE `gc_chat_participants`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gc_chat_reports`
--
ALTER TABLE `gc_chat_reports`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gc_chat_user_settings`
--
ALTER TABLE `gc_chat_user_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `gc_group_calls`
--
ALTER TABLE `gc_group_calls`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gc_group_call_participants`
--
ALTER TABLE `gc_group_call_participants`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gc_media_cache`
--
ALTER TABLE `gc_media_cache`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `gc_messages`
--
ALTER TABLE `gc_messages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=81;

--
-- AUTO_INCREMENT for table `gc_message_hides`
--
ALTER TABLE `gc_message_hides`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `gc_message_mentions`
--
ALTER TABLE `gc_message_mentions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gc_message_reactions`
--
ALTER TABLE `gc_message_reactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gc_polls`
--
ALTER TABLE `gc_polls`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gc_poll_options`
--
ALTER TABLE `gc_poll_options`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gc_poll_votes`
--
ALTER TABLE `gc_poll_votes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gc_starred_messages`
--
ALTER TABLE `gc_starred_messages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `gc_status_reactions`
--
ALTER TABLE `gc_status_reactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gc_status_updates`
--
ALTER TABLE `gc_status_updates`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gc_status_views`
--
ALTER TABLE `gc_status_views`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gc_user_status`
--
ALTER TABLE `gc_user_status`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `gift_cards`
--
ALTER TABLE `gift_cards`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gift_card_transactions`
--
ALTER TABLE `gift_card_transactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gletra_call_logs`
--
ALTER TABLE `gletra_call_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gletra_chats`
--
ALTER TABLE `gletra_chats`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gletra_conversations`
--
ALTER TABLE `gletra_conversations`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gletra_messages`
--
ALTER TABLE `gletra_messages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `gletra_sync_events`
--
ALTER TABLE `gletra_sync_events`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `glm_audit_logs`
--
ALTER TABLE `glm_audit_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `glm_buttons`
--
ALTER TABLE `glm_buttons`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `glm_forms`
--
ALTER TABLE `glm_forms`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `glm_form_fields`
--
ALTER TABLE `glm_form_fields`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `glm_menus`
--
ALTER TABLE `glm_menus`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `glm_menu_items`
--
ALTER TABLE `glm_menu_items`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `glm_pages`
--
ALTER TABLE `glm_pages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `glm_widgets`
--
ALTER TABLE `glm_widgets`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `groups`
--
ALTER TABLE `groups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `group_invite_links`
--
ALTER TABLE `group_invite_links`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `group_members`
--
ALTER TABLE `group_members`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `group_messages`
--
ALTER TABLE `group_messages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `heatmap_click_logs`
--
ALTER TABLE `heatmap_click_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=751;

--
-- AUTO_INCREMENT for table `inventory_movements`
--
ALTER TABLE `inventory_movements`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `invoices`
--
ALTER TABLE `invoices`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `kyc_documents`
--
ALTER TABLE `kyc_documents`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `languages`
--
ALTER TABLE `languages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `layout_settings`
--
ALTER TABLE `layout_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `leave_requests`
--
ALTER TABLE `leave_requests`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `legacy_calls`
--
ALTER TABLE `legacy_calls`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `legacy_call_logs`
--
ALTER TABLE `legacy_call_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `location_analytics_daily`
--
ALTER TABLE `location_analytics_daily`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `login_histories`
--
ALTER TABLE `login_histories`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `loyalty_point_transactions`
--
ALTER TABLE `loyalty_point_transactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `media_files`
--
ALTER TABLE `media_files`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `membership_plans`
--
ALTER TABLE `membership_plans`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `messages`
--
ALTER TABLE `messages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=416;

--
-- AUTO_INCREMENT for table `message_hides`
--
ALTER TABLE `message_hides`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;

--
-- AUTO_INCREMENT for table `message_reactions`
--
ALTER TABLE `message_reactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=224;

--
-- AUTO_INCREMENT for table `newsletter_subscribers`
--
ALTER TABLE `newsletter_subscribers`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT for table `order_items`
--
ALTER TABLE `order_items`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

--
-- AUTO_INCREMENT for table `order_return_requests`
--
ALTER TABLE `order_return_requests`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `order_trackings`
--
ALTER TABLE `order_trackings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `otps`
--
ALTER TABLE `otps`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `package_scan_logs`
--
ALTER TABLE `package_scan_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `page_view_logs`
--
ALTER TABLE `page_view_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8757;

--
-- AUTO_INCREMENT for table `payments`
--
ALTER TABLE `payments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `payouts`
--
ALTER TABLE `payouts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `paytm_transactions`
--
ALTER TABLE `paytm_transactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;

--
-- AUTO_INCREMENT for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `pinned_messages`
--
ALTER TABLE `pinned_messages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `platform_audit_logs`
--
ALTER TABLE `platform_audit_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `policies`
--
ALTER TABLE `policies`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;

--
-- AUTO_INCREMENT for table `policy_faqs`
--
ALTER TABLE `policy_faqs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=556;

--
-- AUTO_INCREMENT for table `policy_sections`
--
ALTER TABLE `policy_sections`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=989;

--
-- AUTO_INCREMENT for table `price_change_requests`
--
ALTER TABLE `price_change_requests`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `price_history_logs`
--
ALTER TABLE `price_history_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;

--
-- AUTO_INCREMENT for table `product_analytics_daily`
--
ALTER TABLE `product_analytics_daily`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `product_analytics_insights`
--
ALTER TABLE `product_analytics_insights`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `product_analytics_recommendations`
--
ALTER TABLE `product_analytics_recommendations`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_answers`
--
ALTER TABLE `product_answers`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_attributes`
--
ALTER TABLE `product_attributes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_attribute_product`
--
ALTER TABLE `product_attribute_product`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_attribute_values`
--
ALTER TABLE `product_attribute_values`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_comparisons`
--
ALTER TABLE `product_comparisons`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_galleries`
--
ALTER TABLE `product_galleries`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;

--
-- AUTO_INCREMENT for table `product_health_scores`
--
ALTER TABLE `product_health_scores`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- AUTO_INCREMENT for table `product_images`
--
ALTER TABLE `product_images`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `product_questions`
--
ALTER TABLE `product_questions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_tags`
--
ALTER TABLE `product_tags`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_types`
--
ALTER TABLE `product_types`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=497;

--
-- AUTO_INCREMENT for table `product_updates`
--
ALTER TABLE `product_updates`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `product_variants`
--
ALTER TABLE `product_variants`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_variant_values`
--
ALTER TABLE `product_variant_values`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_view_logs`
--
ALTER TABLE `product_view_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=57;

--
-- AUTO_INCREMENT for table `promotional_campaigns`
--
ALTER TABLE `promotional_campaigns`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `push_notification_devices`
--
ALTER TABLE `push_notification_devices`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `push_subscriptions`
--
ALTER TABLE `push_subscriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;

--
-- AUTO_INCREMENT for table `ratings`
--
ALTER TABLE `ratings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `recently_vieweds`
--
ALTER TABLE `recently_vieweds`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;

--
-- AUTO_INCREMENT for table `reels`
--
ALTER TABLE `reels`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `reel_comments`
--
ALTER TABLE `reel_comments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `reel_likes`
--
ALTER TABLE `reel_likes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `referrals`
--
ALTER TABLE `referrals`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `refund_requests`
--
ALTER TABLE `refund_requests`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `related_products`
--
ALTER TABLE `related_products`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `return_requests`
--
ALTER TABLE `return_requests`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `reviews`
--
ALTER TABLE `reviews`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `reward_points`
--
ALTER TABLE `reward_points`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `scheduled_messages`
--
ALTER TABLE `scheduled_messages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `search_analytics_daily`
--
ALTER TABLE `search_analytics_daily`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT for table `search_analytics_logs`
--
ALTER TABLE `search_analytics_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;

--
-- AUTO_INCREMENT for table `search_no_product_logs`
--
ALTER TABLE `search_no_product_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `section_settings`
--
ALTER TABLE `section_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `seller_bank_accounts`
--
ALTER TABLE `seller_bank_accounts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `seller_flash_sales`
--
ALTER TABLE `seller_flash_sales`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `seller_kyc_documents`
--
ALTER TABLE `seller_kyc_documents`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `seller_orders`
--
ALTER TABLE `seller_orders`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `seller_order_items`
--
ALTER TABLE `seller_order_items`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `seller_order_notes`
--
ALTER TABLE `seller_order_notes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `seller_products`
--
ALTER TABLE `seller_products`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `seller_product_images`
--
ALTER TABLE `seller_product_images`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `seller_profiles`
--
ALTER TABLE `seller_profiles`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `seller_promotions`
--
ALTER TABLE `seller_promotions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `seller_settings`
--
ALTER TABLE `seller_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `seller_wallets`
--
ALTER TABLE `seller_wallets`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `seo_metas`
--
ALTER TABLE `seo_metas`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2126;

--
-- AUTO_INCREMENT for table `services`
--
ALTER TABLE `services`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `service_booking_items`
--
ALTER TABLE `service_booking_items`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=85;

--
-- AUTO_INCREMENT for table `shippings`
--
ALTER TABLE `shippings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `shipping_rates`
--
ALTER TABLE `shipping_rates`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `shipping_zones`
--
ALTER TABLE `shipping_zones`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `site_settings`
--
ALTER TABLE `site_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `sku_counters`
--
ALTER TABLE `sku_counters`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `sliders`
--
ALTER TABLE `sliders`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `starred_messages`
--
ALTER TABLE `starred_messages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `states`
--
ALTER TABLE `states`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `statuses`
--
ALTER TABLE `statuses`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `status_archives`
--
ALTER TABLE `status_archives`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `status_mutes`
--
ALTER TABLE `status_mutes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `status_privacy_users`
--
ALTER TABLE `status_privacy_users`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `status_reactions`
--
ALTER TABLE `status_reactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `status_replies`
--
ALTER TABLE `status_replies`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `status_views`
--
ALTER TABLE `status_views`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `stickers`
--
ALTER TABLE `stickers`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `store_followers`
--
ALTER TABLE `store_followers`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `subscriptions`
--
ALTER TABLE `subscriptions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `support_activity_logs`
--
ALTER TABLE `support_activity_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `support_replies`
--
ALTER TABLE `support_replies`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `support_tickets`
--
ALTER TABLE `support_tickets`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `support_ticket_attachments`
--
ALTER TABLE `support_ticket_attachments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `taxes`
--
ALTER TABLE `taxes`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `theme_settings`
--
ALTER TABLE `theme_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `traffic_source_daily`
--
ALTER TABLE `traffic_source_daily`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `traffic_source_logs`
--
ALTER TABLE `traffic_source_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `typings`
--
ALTER TABLE `typings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `ui_settings`
--
ALTER TABLE `ui_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `user_addresses`
--
ALTER TABLE `user_addresses`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `user_devices`
--
ALTER TABLE `user_devices`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `user_engagement_scores`
--
ALTER TABLE `user_engagement_scores`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `user_profile_files`
--
ALTER TABLE `user_profile_files`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `user_reports`
--
ALTER TABLE `user_reports`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `user_restrictions`
--
ALTER TABLE `user_restrictions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `user_search_logs`
--
ALTER TABLE `user_search_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;

--
-- AUTO_INCREMENT for table `user_sessions`
--
ALTER TABLE `user_sessions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `user_settings`
--
ALTER TABLE `user_settings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT for table `variant_groups`
--
ALTER TABLE `variant_groups`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `variant_images`
--
ALTER TABLE `variant_images`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `variant_values`
--
ALTER TABLE `variant_values`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;

--
-- AUTO_INCREMENT for table `vendors`
--
ALTER TABLE `vendors`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `vendor_audit_logs`
--
ALTER TABLE `vendor_audit_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `vendor_kyc_documents`
--
ALTER TABLE `vendor_kyc_documents`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `vendor_ratings`
--
ALTER TABLE `vendor_ratings`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `vendor_settlements`
--
ALTER TABLE `vendor_settlements`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `vendor_settlement_items`
--
ALTER TABLE `vendor_settlement_items`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `vendor_sliders`
--
ALTER TABLE `vendor_sliders`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `visitor_logs`
--
ALTER TABLE `visitor_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=275;

--
-- AUTO_INCREMENT for table `wallets`
--
ALTER TABLE `wallets`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `wallet_transactions`
--
ALTER TABLE `wallet_transactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `wishlists`
--
ALTER TABLE `wishlists`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;

--
-- AUTO_INCREMENT for table `withdrawals`
--
ALTER TABLE `withdrawals`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `workers`
--
ALTER TABLE `workers`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `worker_availability`
--
ALTER TABLE `worker_availability`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `worker_locations`
--
ALTER TABLE `worker_locations`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `worker_service`
--
ALTER TABLE `worker_service`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `categories`
--
ALTER TABLE `categories`
  ADD CONSTRAINT `categories_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `categories_updated_by_foreign` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `category_attributes`
--
ALTER TABLE `category_attributes`
  ADD CONSTRAINT `category_attributes_attribute_definition_id_foreign` FOREIGN KEY (`attribute_definition_id`) REFERENCES `attribute_definitions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `category_attributes_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `category_filter`
--
ALTER TABLE `category_filter`
  ADD CONSTRAINT `category_filter_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `category_filter_filter_definition_id_foreign` FOREIGN KEY (`filter_definition_id`) REFERENCES `filter_definitions` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `group_messages`
--
ALTER TABLE `group_messages`
  ADD CONSTRAINT `group_messages_media_id_foreign` FOREIGN KEY (`media_id`) REFERENCES `media_files` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `kyc_documents`
--
ALTER TABLE `kyc_documents`
  ADD CONSTRAINT `kyc_documents_media_id_foreign` FOREIGN KEY (`media_id`) REFERENCES `media_files` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `media_files`
--
ALTER TABLE `media_files`
  ADD CONSTRAINT `media_files_uploaded_by_foreign` FOREIGN KEY (`uploaded_by`) REFERENCES `users` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `messages`
--
ALTER TABLE `messages`
  ADD CONSTRAINT `messages_media_id_foreign` FOREIGN KEY (`media_id`) REFERENCES `media_files` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `messages_thumbnail_media_id_foreign` FOREIGN KEY (`thumbnail_media_id`) REFERENCES `media_files` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `order_return_requests`
--
ALTER TABLE `order_return_requests`
  ADD CONSTRAINT `order_return_requests_replacement_order_id_foreign` FOREIGN KEY (`replacement_order_id`) REFERENCES `orders` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `package_scan_logs`
--
ALTER TABLE `package_scan_logs`
  ADD CONSTRAINT `package_scan_logs_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `package_scan_logs_scanned_by_foreign` FOREIGN KEY (`scanned_by`) REFERENCES `users` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `products`
--
ALTER TABLE `products`
  ADD CONSTRAINT `products_product_type_id_foreign` FOREIGN KEY (`product_type_id`) REFERENCES `product_types` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `product_types`
--
ALTER TABLE `product_types`
  ADD CONSTRAINT `product_types_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `statuses`
--
ALTER TABLE `statuses`
  ADD CONSTRAINT `statuses_media_id_foreign` FOREIGN KEY (`media_id`) REFERENCES `media_files` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `statuses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `status_archives`
--
ALTER TABLE `status_archives`
  ADD CONSTRAINT `status_archives_archived_user_id_foreign` FOREIGN KEY (`archived_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `status_archives_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `status_mutes`
--
ALTER TABLE `status_mutes`
  ADD CONSTRAINT `status_mutes_muted_user_id_foreign` FOREIGN KEY (`muted_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `status_mutes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `status_privacy_users`
--
ALTER TABLE `status_privacy_users`
  ADD CONSTRAINT `status_privacy_users_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `status_privacy_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `status_reactions`
--
ALTER TABLE `status_reactions`
  ADD CONSTRAINT `status_reactions_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `status_reactions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `status_replies`
--
ALTER TABLE `status_replies`
  ADD CONSTRAINT `status_replies_message_id_foreign` FOREIGN KEY (`message_id`) REFERENCES `messages` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `status_replies_sender_id_foreign` FOREIGN KEY (`sender_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `status_replies_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `status_replies_sticker_id_foreign` FOREIGN KEY (`sticker_id`) REFERENCES `stickers` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `status_views`
--
ALTER TABLE `status_views`
  ADD CONSTRAINT `status_views_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `status_views_viewer_id_foreign` FOREIGN KEY (`viewer_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `stickers`
--
ALTER TABLE `stickers`
  ADD CONSTRAINT `stickers_media_id_foreign` FOREIGN KEY (`media_id`) REFERENCES `media_files` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `user_profile_files`
--
ALTER TABLE `user_profile_files`
  ADD CONSTRAINT `user_profile_files_media_id_foreign` FOREIGN KEY (`media_id`) REFERENCES `media_files` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `user_profile_files_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `vendors`
--
ALTER TABLE `vendors`
  ADD CONSTRAINT `vendors_bank_media_id_foreign` FOREIGN KEY (`bank_media_id`) REFERENCES `media_files` (`id`) ON DELETE SET NULL;

--
-- Constraints for table `vendor_kyc_documents`
--
ALTER TABLE `vendor_kyc_documents`
  ADD CONSTRAINT `vendor_kyc_documents_media_id_foreign` FOREIGN KEY (`media_id`) REFERENCES `media_files` (`id`) ON DELETE SET NULL;
COMMIT;

