{"slug":"arc-advance-review-copy","name":"ARC — Advance Review Copy","description":"Recruit and manage ARC readers for your books. Readers sign in with Amazon, download your ebook, and post verified reviews.","author":"unjacketed","active_installs":0,"version":"0.1.0","wp_org_url":"https://wordpress.org/plugins/arc-advance-review-copy/","is_closed":false,"cleanup":{"has_uninstall_hook":false,"drops_tables_on_uninstall":false,"deletes_options_on_uninstall":false},"tables":[{"table_name":"arcadrec_books","full_table_name":"wp_arcadrec_books","description":"Stores arcadrec books data created by this plugin.","detection_method":"static","confidence":"medium","columns":[{"name":"id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":true},{"name":"title","type":"VARCHAR(255)","nullable":false,"primary_key":false},{"name":"description","type":"LONGTEXT","nullable":false,"primary_key":false},{"name":"release_date","type":"DATE","nullable":true,"primary_key":false},{"name":"page_id","type":"BIGINT UNSIGNED","nullable":true,"primary_key":false},{"name":"pdf_path","type":"VARCHAR(512)","nullable":false,"primary_key":false},{"name":"epub_path","type":"VARCHAR(512)","nullable":false,"primary_key":false},{"name":"questions","type":"JSON","nullable":true,"primary_key":false},{"name":"min_ratio","type":"DECIMAL(4,3)","nullable":false,"primary_key":false},{"name":"from_name","type":"VARCHAR(255)","nullable":false,"primary_key":false},{"name":"from_email","type":"VARCHAR(255)","nullable":false,"primary_key":false},{"name":"published","type":"TINYINT(1)","nullable":false,"primary_key":false},{"name":"release_sent","type":"TINYINT(1)","nullable":false,"primary_key":false},{"name":"amazon_url","type":"TEXT","nullable":false,"primary_key":false},{"name":"created_at","type":"DATETIME","nullable":false,"primary_key":false}],"create_sql":"CREATE TABLE IF NOT EXISTS wp_arcadrec_books ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, title VARCHAR(255) NOT NULL DEFAULT '', description LONGTEXT NOT NULL DEFAULT '', release_date DATE DEFAULT NULL, page_id BIGINT UNSIGNED DEFAULT NULL, pdf_path VARCHAR(512) NOT NULL DEFAULT '', epub_path VARCHAR(512) NOT NULL DEFAULT '', questions JSON DEFAULT NULL, min_ratio DECIMAL(4,3) NOT NULL DEFAULT 0, from_name VARCHAR(255) NOT NULL DEFAULT '', from_email VARCHAR(255) NOT NULL DEFAULT '', published TINYINT(1) NOT NULL DEFAULT 0, release_sent TINYINT(1) NOT NULL DEFAULT 0, amazon_url TEXT NOT NULL DEFAULT '', created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) ) $c;\" );"},{"table_name":"arcadrec_meta","full_table_name":"wp_arcadrec_meta","description":"Stores additional metadata (key-value pairs) for arcadrec records.","detection_method":"static","confidence":"medium","columns":[{"name":"id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":true},{"name":"arcadrec_id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":false},{"name":"meta_key","type":"VARCHAR(100)","nullable":false,"primary_key":false},{"name":"meta_value","type":"LONGTEXT","nullable":true,"primary_key":false}],"create_sql":"CREATE TABLE IF NOT EXISTS wp_arcadrec_meta ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, arcadrec_id BIGINT UNSIGNED NOT NULL, meta_key VARCHAR(100) NOT NULL, meta_value LONGTEXT, PRIMARY KEY (id), UNIQUE KEY arcadrec_key (arcadrec_id, meta_key) ) $c;\" );"},{"table_name":"arcadrec_reservations","full_table_name":"wp_arcadrec_reservations","description":"Stores arcadrec reservations data created by this plugin.","detection_method":"static","confidence":"medium","columns":[{"name":"id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":true},{"name":"arcadrec_id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":false},{"name":"amazon_user_id","type":"VARCHAR(255)","nullable":false,"primary_key":false},{"name":"expires_at","type":"DATETIME","nullable":false,"primary_key":false}],"create_sql":"CREATE TABLE IF NOT EXISTS wp_arcadrec_reservations ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, arcadrec_id BIGINT UNSIGNED NOT NULL, amazon_user_id VARCHAR(255) NOT NULL, expires_at DATETIME NOT NULL, PRIMARY KEY (id), UNIQUE KEY arcadrec_user (arcadrec_id, amazon_user_id) ) $c;\" );"},{"table_name":"arcadrec_templates","full_table_name":"wp_arcadrec_templates","description":"Stores arcadrec templates data created by this plugin.","detection_method":"static","confidence":"medium","columns":[{"name":"id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":true},{"name":"arcadrec_id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":false},{"name":"type","type":"VARCHAR(32)","nullable":false,"primary_key":false},{"name":"subject","type":"VARCHAR(255)","nullable":false,"primary_key":false},{"name":"body","type":"LONGTEXT","nullable":false,"primary_key":false}],"create_sql":"CREATE TABLE IF NOT EXISTS wp_arcadrec_templates ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, arcadrec_id BIGINT UNSIGNED NOT NULL, type VARCHAR(32) NOT NULL, subject VARCHAR(255) NOT NULL DEFAULT '', body LONGTEXT NOT NULL DEFAULT '', PRIMARY KEY (id), UNIQUE KEY arcadrec_type (arcadrec_id, type) ) $c;\" );"},{"table_name":"arcadrec_users","full_table_name":"wp_arcadrec_users","description":"Stores arcadrec users data created by this plugin.","detection_method":"static","confidence":"medium","columns":[{"name":"id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":true},{"name":"arcadrec_id","type":"BIGINT UNSIGNED","nullable":false,"primary_key":false},{"name":"amazon_user_id","type":"VARCHAR(255)","nullable":false,"primary_key":false},{"name":"amazon_display_name","type":"VARCHAR(255)","nullable":false,"primary_key":false},{"name":"first_name","type":"VARCHAR(100)","nullable":false,"primary_key":false},{"name":"last_name","type":"VARCHAR(100)","nullable":false,"primary_key":false},{"name":"email","type":"VARCHAR(255)","nullable":false,"primary_key":false},{"name":"reviewer_url","type":"VARCHAR(512)","nullable":false,"primary_key":false},{"name":"answers","type":"JSON","nullable":true,"primary_key":false},{"name":"download_token","type":"VARCHAR(64)","nullable":false,"primary_key":false},{"name":"download_count","type":"INT UNSIGNED","nullable":false,"primary_key":false},{"name":"pdf_downloaded_at","type":"DATETIME","nullable":true,"primary_key":false},{"name":"epub_downloaded_at","type":"DATETIME","nullable":true,"primary_key":false},{"name":"banned","type":"TINYINT(1)","nullable":false,"primary_key":false},{"name":"ban_reason","type":"TEXT","nullable":true,"primary_key":false},{"name":"paused","type":"TINYINT(1)","nullable":false,"primary_key":false},{"name":"flags","type":"JSON","nullable":true,"primary_key":false},{"name":"review_confirmed","type":"TINYINT(1)","nullable":false,"primary_key":false},{"name":"review_confirmed_at","type":"DATETIME","nullable":true,"primary_key":false},{"name":"thankyou_sent","type":"TINYINT(1)","nullable":false,"primary_key":false},{"name":"reminder_count","type":"INT UNSIGNED","nullable":false,"primary_key":false},{"name":"reminder_token","type":"VARCHAR(64)","nullable":false,"primary_key":false},{"name":"is_imported","type":"TINYINT(1)","nullable":false,"primary_key":false},{"name":"street_team_categories","type":"JSON","nullable":true,"primary_key":false},{"name":"wp_user_id","type":"BIGINT UNSIGNED","nullable":true,"primary_key":false},{"name":"signed_up_at","type":"DATETIME","nullable":false,"primary_key":false}],"create_sql":"CREATE TABLE IF NOT EXISTS wp_arcadrec_users ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, arcadrec_id BIGINT UNSIGNED NOT NULL, amazon_user_id VARCHAR(255) NOT NULL DEFAULT '', amazon_display_name VARCHAR(255) NOT NULL DEFAULT '', first_name VARCHAR(100) NOT NULL DEFAULT '', last_name VARCHAR(100) NOT NULL DEFAULT '', email VARCHAR(255) NOT NULL DEFAULT '', reviewer_url VARCHAR(512) NOT NULL DEFAULT '', answers JSON DEFAULT NULL, download_token VARCHAR(64) NOT NULL DEFAULT '', download_count INT UNSIGNED NOT NULL DEFAULT 0, pdf_downloaded_at DATETIME DEFAULT NULL, epub_downloaded_at DATETIME DEFAULT NULL, banned TINYINT(1) NOT NULL DEFAULT 0, ban_reason TEXT DEFAULT NULL, paused TINYINT(1) NOT NULL DEFAULT 0, flags JSON DEFAULT NULL, review_confirmed TINYINT(1) NOT NULL DEFAULT 0, review_confirmed_at DATETIME DEFAULT NULL, thankyou_sent TINYINT(1) NOT NULL DEFAULT 0, reminder_count INT UNSIGNED NOT NULL DEFAULT 0, reminder_token VARCHAR(64) NOT NULL DEFAULT '', is_imported TINYINT(1) NOT NULL DEFAULT 0, street_team_categories JSON DEFAULT NULL, wp_user_id BIGINT UNSIGNED DEFAULT NULL, signed_up_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), UNIQUE KEY token (download_token), KEY arcadrec_amazon (arcadrec_id, amazon_user_id) ) $c;\" );"}],"table_count":5}