monorepo/cloud/maplepress-backend/migrations/004_create_tenants_by_slug.up.cql

13 lines
409 B
SQL

CREATE TABLE IF NOT EXISTS maplepress.tenants_by_slug (
slug TEXT PRIMARY KEY,
id UUID,
name TEXT,
status 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
);