monorepo/cloud/infrastructure/development/cassandra/init-scripts/01-create-keyspaces.cql

30 lines
717 B
SQL

-- Maple Infrastructure - Keyspace Initialization
-- This creates keyspaces for all Maple projects with replication factor 3
-- MaplePress Backend
CREATE KEYSPACE IF NOT EXISTS maplepress
WITH REPLICATION = {
'class': 'SimpleStrategy',
'replication_factor': 3
}
AND DURABLE_WRITES = true;
-- MapleFile Backend
CREATE KEYSPACE IF NOT EXISTS maplefile
WITH REPLICATION = {
'class': 'SimpleStrategy',
'replication_factor': 3
}
AND DURABLE_WRITES = true;
-- Future projects can be added here
-- Example:
-- CREATE KEYSPACE IF NOT EXISTS mapleanalytics
-- WITH REPLICATION = {
-- 'class': 'SimpleStrategy',
-- 'replication_factor': 1
-- };
-- Verify keyspaces were created
DESCRIBE KEYSPACES;