280 lines
13 KiB
SQL
280 lines
13 KiB
SQL
-- ==============================================================================
|
|
-- AGHATIS STUDIO - DATABASE SCHEMA & SEED DATA
|
|
-- Database engine: PostgreSQL / MySQL / SQLite compatible (Standard ANSI SQL)
|
|
-- Description: Schema and dataset matching Aghatis Studio frontend portfolio
|
|
-- ==============================================================================
|
|
|
|
-- 1. CREATE DATABASE
|
|
-- (Jalankan perintah ini jika database belum dibuat di DBMS Anda)
|
|
-- CREATE DATABASE aghatis_studio_db;
|
|
-- \c aghatis_studio_db; -- Untuk PostgreSQL
|
|
-- USE aghatis_studio_db; -- Untuk MySQL
|
|
|
|
-- ------------------------------------------------------------------------------
|
|
-- 2. TABLE: tracks (Operational Core Focus Tracks)
|
|
-- ------------------------------------------------------------------------------
|
|
CREATE TABLE IF NOT EXISTS tracks (
|
|
id VARCHAR(50) PRIMARY KEY,
|
|
track_number VARCHAR(10) NOT NULL,
|
|
title VARCHAR(100) NOT NULL,
|
|
category VARCHAR(100) NOT NULL,
|
|
tagline VARCHAR(255) NOT NULL,
|
|
description TEXT NOT NULL,
|
|
stack JSON NOT NULL,
|
|
principles JSON NOT NULL,
|
|
accent_color VARCHAR(100) NOT NULL,
|
|
pill_border VARCHAR(150) NOT NULL,
|
|
glow_color VARCHAR(100) NOT NULL,
|
|
order_index INT DEFAULT 0,
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
|
|
-- ------------------------------------------------------------------------------
|
|
-- 3. TABLE: projects (Portfolio / Original IP Fleet)
|
|
-- ------------------------------------------------------------------------------
|
|
CREATE TABLE IF NOT EXISTS projects (
|
|
id VARCHAR(50) PRIMARY KEY,
|
|
title VARCHAR(150) NOT NULL,
|
|
category VARCHAR(50) NOT NULL, -- 'software', 'games', 'lab'
|
|
category_label VARCHAR(100) NOT NULL, -- e.g. 'Tactical Flight RPG', 'Creative Shader Pipeline'
|
|
tagline VARCHAR(255) NOT NULL,
|
|
status VARCHAR(50) NOT NULL, -- 'In Active Dev', 'Private Alpha', etc.
|
|
status_type VARCHAR(50) NOT NULL, -- 'active', 'alpha', 'prototype', 'upcoming'
|
|
release_target VARCHAR(100) NOT NULL, -- 'Alpha 2027', 'Beta Q3 2027', etc.
|
|
description TEXT NOT NULL,
|
|
long_description TEXT NOT NULL,
|
|
features JSON NOT NULL, -- Array of feature strings
|
|
stack JSON NOT NULL, -- Array of technology strings
|
|
accent_gradient VARCHAR(150) NOT NULL,
|
|
border_glow VARCHAR(150) NOT NULL,
|
|
icon_name VARCHAR(50) NOT NULL, -- 'Gamepad2', 'Terminal', 'FlaskConical'
|
|
order_index INT DEFAULT 0,
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
|
|
-- ------------------------------------------------------------------------------
|
|
-- 4. SEED DATA: tracks
|
|
-- ------------------------------------------------------------------------------
|
|
INSERT IGNORE INTO tracks (
|
|
id, track_number, title, category, tagline, description,
|
|
stack, principles, accent_color, pill_border, glow_color, order_index
|
|
) VALUES
|
|
(
|
|
'software',
|
|
'01',
|
|
'Software Products',
|
|
'CREATIVE & DEVELOPER TOOLS',
|
|
'High-performance utilities engineered for creators, coders, and deep-focus thinkers.',
|
|
'We build standalone software tools that respect user attention and privacy. Our software stack emphasizes local-first execution, instantaneous boot times, minimal memory footprints, and fluid spatial aesthetics.',
|
|
'["Rust", "TypeScript", "WebGPU", "Local-First SQLite", "Tauri", "Custom GLSL"]',
|
|
'["Zero telemetry bloat or intrusive subscription traps", "Deterministic local-first file system workflows", "Sub-16ms latency interface responsiveness", "Minimalist spatial design inspired by cockpit HUDs"]',
|
|
'from-cyan-500 to-blue-600',
|
|
'border-cyan-500/30 text-cyan-400 bg-cyan-500/10',
|
|
'rgba(56, 189, 248, 0.15)',
|
|
1
|
|
),
|
|
(
|
|
'games',
|
|
'02',
|
|
'Original Games',
|
|
'ATMOSPHERIC & INDIE TITLES',
|
|
'Evocative, mechanics-first game experiences set in interstellar and surreal realities.',
|
|
'Our games emphasize tactile physics, memorable soundscapes, and evocative storytelling. We reject predatory monetization and live-service treadmills—focusing exclusively on handcrafted, complete experiences that respect the player''s time.',
|
|
'["Godot Engine", "Custom C++ GDExtension", "Bespoke Shaders", "FMOD / WebAudio", "Procreate / Blender"]',
|
|
'["Uncompromising, single-purchase complete artistic vision", "Kinetic, physics-grounded flight and orbital mechanics", "Original dynamic synthesizer soundtracks and reactive foley", "Rich speculative sci-fi lore and evocative environmental narrative"]',
|
|
'from-purple-500 to-pink-600',
|
|
'border-purple-500/30 text-purple-400 bg-purple-500/10',
|
|
'rgba(168, 85, 247, 0.15)',
|
|
2
|
|
),
|
|
(
|
|
'lab',
|
|
'03',
|
|
'Experimental Lab',
|
|
'CREATIVE COMPUTING & R&D',
|
|
'Unconstrained research in procedural systems, audio synthesis, and algorithmic art.',
|
|
'The Aghatis Lab is our continuous skunkworks playground. Here we prototype procedural cosmos generators, WebAudio modular synths, chaotic attractor simulations, and emergent artificial life models that inform our core products.',
|
|
'["Three.js / R3F", "GLSL Compute", "Web Audio API", "WebAssembly", "Generative Math"]',
|
|
'["Rapid computational sketches without commercial pressure", "Algorithmic exploration of celestial mathematics & fractals", "Open prototypes released to the creative technology community", "Direct R&D incubator for upcoming software & game mechanics"]',
|
|
'from-emerald-500 to-cyan-500',
|
|
'border-emerald-500/30 text-emerald-400 bg-emerald-500/10',
|
|
'rgba(16, 185, 129, 0.15)',
|
|
3
|
|
);
|
|
|
|
-- ------------------------------------------------------------------------------
|
|
-- 5. SEED DATA: projects (Matching Portfolio.tsx Data)
|
|
-- ------------------------------------------------------------------------------
|
|
INSERT IGNORE INTO projects (
|
|
id, title, category, category_label, tagline, status, status_type,
|
|
release_target, description, long_description, features, stack,
|
|
accent_gradient, border_glow, icon_name, order_index
|
|
) VALUES
|
|
(
|
|
'aetheria',
|
|
'Aetheria: Chrono Drift',
|
|
'games',
|
|
'Tactical Flight RPG',
|
|
'Atmospheric spaceflight RPG driven by Newtonian physics & relativistic time mechanics.',
|
|
'In Active Dev',
|
|
'active',
|
|
'Alpha 2027',
|
|
'Pilot handcrafted atmospheric ships through uncharted cosmic sectors. Engage in tactical orbital maneuvers where time dilates with engine velocity.',
|
|
'Aetheria is our flagship narrative sci-fi title. Designed without live-service grind or predatory mechanics, it centers on contemplative space exploration, deep Newtonian flight kinematics, and an original interactive dark-ambient synth score.',
|
|
'[
|
|
"True orbital mechanics and gravitational slingshots",
|
|
"Non-linear stellar narrative with faction autonomy",
|
|
"Zero-compromise single-player standalone artistic experience",
|
|
"Procedurally synthesized nebula volumetric rendering"
|
|
]',
|
|
'["Godot 4.3", "C++ GDExtension", "Bespoke GLSL", "FMOD Sound Engine"]',
|
|
'from-cyan-500/20 via-blue-600/10 to-transparent',
|
|
'hover:border-cyan-400/50 hover:shadow-[0_0_30px_rgba(56,189,248,0.25)]',
|
|
'Gamepad2',
|
|
1
|
|
),
|
|
(
|
|
'nebulaflow',
|
|
'NebulaFlow',
|
|
'software',
|
|
'Creative Shader Pipeline',
|
|
'Node-based real-time GPU shader workbench & procedural VFX engine.',
|
|
'Private Alpha',
|
|
'alpha',
|
|
'Beta Q3 2027',
|
|
'A high-performance visual coding environment for creative coders, game devs, and technical artists compiling directly to WGSL and GLSL.',
|
|
'NebulaFlow re-imagines real-time shader generation. Designed with a lightweight Rust core and a distraction-free spatial interface, it compiles visual nodes directly into native shaders at 120 FPS with instantaneous hot-reloading.',
|
|
'[
|
|
"Instant compilation to WGSL, GLSL, and Metal Shading Language",
|
|
"Deterministic local-first project workspace without cloud locks",
|
|
"Live audio-reactive parameter modulation via WebAudio / ASIO",
|
|
"Integrated raymarching and compute shader node library"
|
|
]',
|
|
'["Rust", "WebGPU", "Tauri", "TypeScript", "WGSL"]',
|
|
'from-purple-500/20 via-indigo-600/10 to-transparent',
|
|
'hover:border-purple-400/50 hover:shadow-[0_0_30px_rgba(168,85,247,0.25)]',
|
|
'Terminal',
|
|
2
|
|
),
|
|
(
|
|
'voidwalker',
|
|
'Voidwalker OS',
|
|
'software',
|
|
'Spatial Workstation',
|
|
'Distraction-free spatial terminal and local knowledge workstation for intense focus.',
|
|
'Prototype',
|
|
'prototype',
|
|
'Q4 2027',
|
|
'An experimental desktop environment stripping away notification clutter in favor of an ergonomic cosmic workspace and local neural indexing.',
|
|
'Voidwalker replaces chaotic desktop windows with an infinite 2.5D orbital plane. Crafted for independent developers and creative writers who demand absolute cognitive quiet.',
|
|
'[
|
|
"Local-first vector indexing over personal markdown & codebases",
|
|
"Orbital workspace clustering with keyboard-centric navigation",
|
|
"Sub-10ms input latency with custom GPU text rendering engine",
|
|
"Zero tracking, zero analytics, zero telemetry overhead"
|
|
]',
|
|
'["Rust", "SQLite", "Vulkan / Metal", "Tree-Sitter"]',
|
|
'from-indigo-500/20 via-sky-600/10 to-transparent',
|
|
'hover:border-indigo-400/50 hover:shadow-[0_0_30px_rgba(99,102,241,0.25)]',
|
|
'Terminal',
|
|
3
|
|
),
|
|
(
|
|
'singularity-pulse',
|
|
'Singularity Pulse',
|
|
'games',
|
|
'Kinetic Rhythm-Strategy',
|
|
'Orbital rhythm defense game where celestial gravitational waves dictate combat tempo.',
|
|
'Playable Slice',
|
|
'prototype',
|
|
'2027',
|
|
'Defend dying binary stars from quantum anomalies by aligning resonant frequencies in time with an escalating electronic pulse.',
|
|
'Built at the intersection of rhythm gaming and orbital physics, Singularity Pulse challenges players to synchronize defensive shields with gravitational wave oscillations in real-time.',
|
|
'[
|
|
"Dynamic sound-reactive procedural enemy generation",
|
|
"Precise sub-millisecond input synchronization",
|
|
"Full support for analog sticks, arcade sticks, and MIDI input",
|
|
"Minimalist wireframe vector aesthetic inspired by 80s arcade radars"
|
|
]',
|
|
'["Godot", "WebAudio", "Procedural GLSL"]',
|
|
'from-pink-500/20 via-rose-600/10 to-transparent',
|
|
'hover:border-pink-400/50 hover:shadow-[0_0_30px_rgba(244,63,94,0.25)]',
|
|
'Gamepad2',
|
|
4
|
|
),
|
|
(
|
|
'chromasynth',
|
|
'ChromaSynth Lab',
|
|
'lab',
|
|
'Spatial Sound Synthesis',
|
|
'WebGPU audio-reactive 3D synthesis tool exploring geometric resonance.',
|
|
'Public Experiment',
|
|
'alpha',
|
|
'Live Now',
|
|
'A browser-based generative instrument generating real-time higher-dimensional geometric manifolds modulated by live microphone and MIDI input.',
|
|
'ChromaSynth began as a weekend exploration in our experimental lab. It treats polyphonic audio frequencies as physical forces that deform complex geometric meshes in real time.',
|
|
'[
|
|
"Modular 8-oscillator additive & FM synthesis engine",
|
|
"Real-time 4D hypercube and manifold geometry projection",
|
|
"Exportable high-res WebM / MP4 video stems for VJs",
|
|
"Open-source computational code released for researchers"
|
|
]',
|
|
'["Three.js", "Web Audio API", "GLSL Compute", "WebAssembly"]',
|
|
'from-emerald-500/20 via-teal-600/10 to-transparent',
|
|
'hover:border-emerald-400/50 hover:shadow-[0_0_30px_rgba(16,185,129,0.25)]',
|
|
'FlaskConical',
|
|
5
|
|
),
|
|
(
|
|
'event-horizon',
|
|
'Project Event Horizon',
|
|
'lab',
|
|
'Procedural Cosmos R&D',
|
|
'Compute-shader planetary terrain synthesis & atmospheric Rayleigh scattering.',
|
|
'R&D Prototype',
|
|
'prototype',
|
|
'Continuous R&D',
|
|
'Algorithmic generation of continental scale geological plates, biome micro-climates, and photorealistic atmospheric scattering.',
|
|
'The technological foundation for our future game worlds. Event Horizon runs entirely on GPU compute shaders to generate planet-scale terrain down to individual pebbles seamlessly.',
|
|
'[
|
|
"Seamless transition from interplanetary orbit down to surface level",
|
|
"Physical simulation of tectonic drift and erosion patterns",
|
|
"Atmospheric volumetric cloud synthesis using 3D Worley noise",
|
|
"Powers the underlying engine for upcoming Aghatis game titles"
|
|
]',
|
|
'["WGSL Compute", "Rust", "WebGPU"]',
|
|
'from-amber-500/20 via-orange-600/10 to-transparent',
|
|
'hover:border-amber-400/50 hover:shadow-[0_0_30px_rgba(245,158,11,0.25)]',
|
|
'FlaskConical',
|
|
6
|
|
);
|
|
|
|
-- ==============================================================================
|
|
-- 3. ADMIN USERS TABLE
|
|
-- ==============================================================================
|
|
|
|
CREATE TABLE IF NOT EXISTS admin_users (
|
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
|
username VARCHAR(50) UNIQUE NOT NULL,
|
|
password_hash VARCHAR(255) NOT NULL,
|
|
full_name VARCHAR(100) DEFAULT 'Aghatis Admin',
|
|
role VARCHAR(50) DEFAULT 'admin',
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
|
);
|
|
|
|
-- Seed Initial Admin User:
|
|
-- Username: Aghatis
|
|
-- Password: @Arya654321 (stored as secure bcrypt hash)
|
|
INSERT INTO admin_users (username, password_hash, full_name, role)
|
|
VALUES (
|
|
'Aghatis',
|
|
'$2b$10$O6c/yR.Nx5sNpvBUAHsIOOR8QWsUXFxj7vlspfFaEw3Zii2iUaRMm',
|
|
'Aghatis Commander',
|
|
'superadmin'
|
|
)
|
|
ON DUPLICATE KEY UPDATE
|
|
password_hash = VALUES(password_hash),
|
|
updated_at = CURRENT_TIMESTAMP;
|