{"slug":"800website-loyalty-rewards","name":"800Website Loyalty Rewards for WooCommerce","description":"A complete loyalty rewards system with points earning, redemption, staff scanner, and customer app for WooCommerce.","author":"Mo Ka","active_installs":0,"version":"1.0.0","wp_org_url":"https://wordpress.org/plugins/800website-loyalty-rewards/","is_closed":false,"cleanup":{"has_uninstall_hook":true,"drops_tables_on_uninstall":true,"deletes_options_on_uninstall":false},"tables":[{"table_name":"lrwc_pending_points","full_table_name":"wp_lrwc_pending_points","description":"Stores lrwc pending points data created by this plugin.","detection_method":"static","confidence":"high","columns":[{"name":"id","type":"BIGINT UNSIGNED","nullable":true,"primary_key":true},{"name":"customer_id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":false},{"name":"staff_id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":false},{"name":"invoice_number","type":"VARCHAR(100)","nullable":false,"primary_key":false},{"name":"bill_amount","type":"DECIMAL(15,2)","nullable":false,"primary_key":false},{"name":"points","type":"BIGINT","nullable":false,"primary_key":false},{"name":"status","type":"VARCHAR(20)","nullable":true,"primary_key":false},{"name":"admin_id","type":"BIGINT UNSIGNED","nullable":true,"primary_key":false},{"name":"admin_note","type":"TEXT","nullable":true,"primary_key":false},{"name":"created_at","type":"DATETIME","nullable":true,"primary_key":false},{"name":"processed_at","type":"DATETIME","nullable":true,"primary_key":false}],"create_sql":"CREATE TABLE IF NOT EXISTS wp_lrwc_pending_points ( id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, customer_id BIGINT UNSIGNED NOT NULL, staff_id BIGINT UNSIGNED NOT NULL, invoice_number VARCHAR(100) NOT NULL, bill_amount DECIMAL(15,2) NOT NULL, points BIGINT NOT NULL, status VARCHAR(20) DEFAULT 'pending', admin_id BIGINT UNSIGNED, admin_note TEXT, created_at DATETIME DEFAULT CURRENT_TIMESTAMP, processed_at DATETIME, INDEX idx_customer (customer_id), INDEX idx_staff (staff_id), INDEX idx_status (status), INDEX idx_invoice (invoice_number) ) $charset\");"},{"table_name":"lrwc_redemptions","full_table_name":"wp_lrwc_redemptions","description":"Stores lrwc redemptions data created by this plugin.","detection_method":"static","confidence":"high","columns":[{"name":"id","type":"BIGINT UNSIGNED","nullable":true,"primary_key":true},{"name":"customer_id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":false},{"name":"staff_id","type":"BIGINT UNSIGNED","nullable":true,"primary_key":false},{"name":"product_id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":false},{"name":"points_used","type":"BIGINT","nullable":false,"primary_key":false},{"name":"status","type":"VARCHAR(20)","nullable":true,"primary_key":false},{"name":"code","type":"VARCHAR(50)","nullable":true,"primary_key":false},{"name":"created_at","type":"DATETIME","nullable":true,"primary_key":false},{"name":"redeemed_at","type":"DATETIME","nullable":true,"primary_key":false}],"create_sql":"CREATE TABLE IF NOT EXISTS wp_lrwc_redemptions ( id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, customer_id BIGINT UNSIGNED NOT NULL, staff_id BIGINT UNSIGNED, product_id BIGINT UNSIGNED NOT NULL, points_used BIGINT NOT NULL, status VARCHAR(20) DEFAULT 'pending', code VARCHAR(50), created_at DATETIME DEFAULT CURRENT_TIMESTAMP, redeemed_at DATETIME, INDEX idx_customer (customer_id), INDEX idx_status (status), INDEX idx_code (code) ) $charset\");"},{"table_name":"lrwc_staff","full_table_name":"wp_lrwc_staff","description":"Stores lrwc staff data created by this plugin.","detection_method":"static","confidence":"high","columns":[{"name":"id","type":"BIGINT UNSIGNED","nullable":true,"primary_key":true},{"name":"user_id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":false},{"name":"pin","type":"VARCHAR(10)","nullable":true,"primary_key":false},{"name":"role","type":"VARCHAR(20)","nullable":true,"primary_key":false},{"name":"status","type":"VARCHAR(20)","nullable":true,"primary_key":false},{"name":"created_at","type":"DATETIME","nullable":true,"primary_key":false}],"create_sql":"CREATE TABLE IF NOT EXISTS wp_lrwc_staff ( id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, user_id BIGINT UNSIGNED NOT NULL, pin VARCHAR(10), role VARCHAR(20) DEFAULT 'cashier', status VARCHAR(20) DEFAULT 'active', created_at DATETIME DEFAULT CURRENT_TIMESTAMP, UNIQUE KEY (user_id) ) $charset\");"},{"table_name":"lrwc_transactions","full_table_name":"wp_lrwc_transactions","description":"Stores lrwc transactions data created by this plugin.","detection_method":"static","confidence":"high","columns":[{"name":"id","type":"BIGINT UNSIGNED","nullable":true,"primary_key":true},{"name":"customer_id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":false},{"name":"staff_id","type":"BIGINT UNSIGNED","nullable":true,"primary_key":false},{"name":"type","type":"VARCHAR(20)","nullable":false,"primary_key":false},{"name":"points","type":"BIGINT","nullable":false,"primary_key":false},{"name":"order_id","type":"BIGINT UNSIGNED","nullable":true,"primary_key":false},{"name":"product_id","type":"BIGINT UNSIGNED","nullable":true,"primary_key":false},{"name":"note","type":"TEXT","nullable":true,"primary_key":false},{"name":"created_at","type":"DATETIME","nullable":true,"primary_key":false}],"create_sql":"CREATE TABLE IF NOT EXISTS wp_lrwc_transactions ( id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, customer_id BIGINT UNSIGNED NOT NULL, staff_id BIGINT UNSIGNED, type VARCHAR(20) NOT NULL, points BIGINT NOT NULL, order_id BIGINT UNSIGNED, product_id BIGINT UNSIGNED, note TEXT, created_at DATETIME DEFAULT CURRENT_TIMESTAMP, INDEX idx_customer (customer_id), INDEX idx_type (type), INDEX idx_created (created_at), INDEX idx_customer_type (customer_id, type) ) $charset\");"},{"table_name":"wc_orders_meta","full_table_name":"wp_wc_orders_meta","description":"Stores additional metadata (key-value pairs) for wc orders records.","detection_method":"static","confidence":"high","columns":[],"create_sql":null}],"table_count":5}