Initial commit: Open sourcing all of the Maple Open Technologies code.

This commit is contained in:
Bartlomiej Mika 2025-12-02 14:33:08 -05:00
commit 755d54a99d
2010 changed files with 448675 additions and 0 deletions

View file

@ -0,0 +1,32 @@
CREATE TABLE IF NOT EXISTS maplepress.sites_by_id (
tenant_id UUID,
id UUID,
site_url TEXT,
domain TEXT,
api_key_hash TEXT,
api_key_prefix TEXT,
api_key_last_four TEXT,
status TEXT,
is_verified BOOLEAN,
verification_token TEXT,
search_index_name TEXT,
total_pages_indexed BIGINT,
last_indexed_at TIMESTAMP,
plugin_version TEXT,
-- Usage tracking (for billing) - no limits/quotas
storage_used_bytes BIGINT,
search_requests_count BIGINT,
monthly_pages_indexed BIGINT,
last_reset_at TIMESTAMP,
language TEXT,
timezone TEXT,
notes TEXT,
created_at TIMESTAMP,
updated_at TIMESTAMP,
-- CWE-359: IP address tracking for GDPR compliance (90-day retention)
created_from_ip_address TEXT,
created_from_ip_timestamp TIMESTAMP,
modified_from_ip_address TEXT,
modified_from_ip_timestamp TIMESTAMP,
PRIMARY KEY ((tenant_id, id))
);