-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb.sql
More file actions
46 lines (40 loc) · 1.6 KB
/
db.sql
File metadata and controls
46 lines (40 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
-- Veritabanı oluşturma
CREATE DATABASE IF NOT EXISTS aydinayd_database;
USE aydinayd_database;
-- Sosyal medya bağlantıları tablosu
CREATE TABLE social_links (
id INT AUTO_INCREMENT PRIMARY KEY,
platform_name VARCHAR(50) NOT NULL,
url VARCHAR(255) NOT NULL,
icon_class VARCHAR(50) NOT NULL
);
-- Örnek sosyal medya bağlantıları
INSERT INTO social_links (platform_name, url, icon_class) VALUES
('Instagram', 'https://www.instagram.com', 'fab fa-instagram'),
('Facebook', 'https://www.facebook.com', 'fab fa-facebook-f'),
('Twitter', 'https://www.twitter.com', 'fab fa-twitter'),
('Email', 'mailto:example@example.com', 'fas fa-envelope');
-- İçerik blokları tablosu
CREATE TABLE content_blocks (
id INT AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(100) NOT NULL,
description TEXT NOT NULL,
block_class VARCHAR(50) NOT NULL
);
-- Örnek içerik blokları
INSERT INTO content_blocks (title, description, block_class) VALUES
('Art live stream', 'Catch me on Twitch every Saturday as I make art live', 'art-stream'),
('Tutorials', 'Videos to guide and to inspire you create', 'tutorials'),
('Top picks + recos', 'Materials I stand by and would love for you to try', 'top-picks');
-- Galeri tablosu
CREATE TABLE gallery_items (
id INT AUTO_INCREMENT PRIMARY KEY,
image_url VARCHAR(255) NOT NULL,
alt_text VARCHAR(100) NOT NULL,
caption VARCHAR(50) NOT NULL
);
-- Örnek galeri öğeleri
INSERT INTO gallery_items (image_url, alt_text, caption) VALUES
('placeholder-art.jpg', 'Art', 'art'),
('placeholder-inspo.jpg', 'Inspo', 'inspo'),
('placeholder-fashion.jpg', 'Fashion', 'fashion');