{"table_name":"clientoctopus_payments","full_table_name":"wp_clientoctopus_payments","description":"Stores clientoctopus payments data created by this plugin.","detection_method":"static","confidence":"medium","create_sql":"CREATE TABLE wp_clientoctopus_payments ( id INT NOT NULL AUTO_INCREMENT, proposal_id INT NOT NULL, client_id INT DEFAULT NULL, owner_id INT NOT NULL, amount DECIMAL(12,2) NOT NULL, currency VARCHAR(3) NOT NULL DEFAULT 'GBP', deposit_pct TINYINT UNSIGNED NOT NULL DEFAULT 100, stripe_session_id VARCHAR(255) DEFAULT NULL, stripe_payment_intent_id VARCHAR(255) DEFAULT NULL, stripe_customer_id VARCHAR(255) DEFAULT NULL, status ENUM('pending','processing','completed','failed','refunded') NOT NULL DEFAULT 'pending', created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, completed_at DATETIME DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY stripe_session_id (stripe_session_id), KEY proposal_id (proposal_id), KEY owner_id (owner_id), KEY status (status), KEY proposal_status (proposal_id, status) ) $charset_collate;\" );","columns":[{"name":"id","type":"INT","nullable":false,"primary_key":true},{"name":"proposal_id","type":"INT","nullable":false,"primary_key":false},{"name":"client_id","type":"INT","nullable":true,"primary_key":false},{"name":"owner_id","type":"INT","nullable":false,"primary_key":false},{"name":"amount","type":"DECIMAL(12,2)","nullable":false,"primary_key":false},{"name":"currency","type":"VARCHAR(3)","nullable":false,"primary_key":false},{"name":"deposit_pct","type":"TINYINT UNSIGNED","nullable":false,"primary_key":false},{"name":"stripe_session_id","type":"VARCHAR(255)","nullable":true,"primary_key":false},{"name":"stripe_payment_intent_id","type":"VARCHAR(255)","nullable":true,"primary_key":false},{"name":"stripe_customer_id","type":"VARCHAR(255)","nullable":true,"primary_key":false},{"name":"status","type":"ENUM('pending','processing','completed','failed','refunded')","nullable":false,"primary_key":false},{"name":"created_at","type":"DATETIME","nullable":true,"primary_key":false},{"name":"updated_at","type":"DATETIME","nullable":true,"primary_key":false},{"name":"completed_at","type":"DATETIME","nullable":true,"primary_key":false}],"plugin":{"slug":"clientoctopus","name":"Client Octopus","active_installs":0,"version":"1.4.1","wp_org_url":"https://wordpress.org/plugins/clientoctopus/"}}