release: SnapCAD Studio 1.0.10 (desktop menuler, macOS kisayollari, YakNet SSO)
Build and Push Docker Images / build (push) Canceled after 0s
Desktop Release / Build linux desktop (push) Canceled after 0s
Desktop Release / Build windows desktop (push) Canceled after 0s
Desktop Release / Attach packages to release (push) Canceled after 0s
Desktop Release / Build macos desktop (push) Canceled after 0s
CI / Typecheck and unit tests (push) Canceled after 0s

This commit is contained in:
Enes Yakıştır
2026-11-12 10:12:35 +03:00
parent d5cc023856
commit ee28672e23
81 changed files with 10729 additions and 821 deletions
+21
View File
@@ -126,6 +126,27 @@ if (!function_exists('snapcad_apply_schema')) {
prefs_json MEDIUMTEXT NOT NULL,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS snapcad_desktop_tokens (
id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
user_id BIGINT UNSIGNED NOT NULL,
user_name VARCHAR(255) NOT NULL,
user_email VARCHAR(255) DEFAULT NULL,
user_avatar VARCHAR(512) DEFAULT NULL,
token_hash CHAR(64) DEFAULT NULL,
exchange_code_hash CHAR(64) DEFAULT NULL,
nonce_hash CHAR(64) DEFAULT NULL,
device_label VARCHAR(120) DEFAULT 'SnapCAD Masaüstü',
exchange_expires_at DATETIME DEFAULT NULL,
expires_at DATETIME NOT NULL,
last_used_at DATETIME DEFAULT NULL,
revoked_at DATETIME DEFAULT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
UNIQUE KEY uq_token_hash (token_hash),
UNIQUE KEY uq_exchange_code_hash (exchange_code_hash),
INDEX idx_user_revoked (user_id, revoked_at),
INDEX idx_expires_at (expires_at)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
");
// Geriye dönük şema güncellemeleri. Sütun varsa DDL çalıştırılmaz.