feat: SketchUp klasik arayuzu, kisayollar, VCB olcu kutusu ve YakNet 3B bilesen havuzu
Build and Push Docker Images / build (push) Canceled after 0s
CI / Typecheck and unit tests (push) Canceled after 0s

This commit is contained in:
Enes Yakıştır
2026-11-10 19:13:46 +03:00
parent e7b6db9db6
commit dc09b61779
16 changed files with 6655 additions and 488 deletions
+25
View File
@@ -101,6 +101,31 @@ if (!function_exists('snapcad_apply_schema')) {
window_start DATETIME NOT NULL,
INDEX idx_rate_window (window_start)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS snapcad_shared_components (
id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
component_uid VARCHAR(64) NOT NULL,
user_id BIGINT UNSIGNED NOT NULL,
author_name VARCHAR(255) NOT NULL DEFAULT 'YakNet Kullanıcısı',
title VARCHAR(255) NOT NULL DEFAULT 'Adsız Bileşen',
category VARCHAR(120) NOT NULL DEFAULT 'Genel 3B Bileşen',
description TEXT DEFAULT NULL,
shapes_json LONGTEXT NOT NULL,
shapes_count INT NOT NULL DEFAULT 1,
is_public TINYINT(1) NOT NULL DEFAULT 1,
downloads_count INT UNSIGNED NOT NULL DEFAULT 0,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
UNIQUE KEY uq_component_uid (component_uid),
INDEX idx_comp_public_updated (is_public, updated_at),
INDEX idx_comp_user (user_id, updated_at)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS snapcad_user_prefs (
user_id BIGINT UNSIGNED NOT NULL PRIMARY KEY,
prefs_json MEDIUMTEXT NOT NULL,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
");
// Geriye dönük şema güncellemeleri. Sütun varsa DDL çalıştırılmaz.