<?php

require_once __DIR__ . '/../config/database.php';

$workspace_id = bin2hex(random_bytes(16));

$sql = "INSERT INTO workspaces (workspace_id) VALUES (:workspace_id)";
$stmt = $pdo->prepare($sql);
$stmt->execute(['workspace_id' => $workspace_id]);

echo "Workspace created: " . $workspace_id;