-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdatabase.sql
160 lines (150 loc) · 8.96 KB
/
database.sql
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
DROP DATABASE IF EXISTS social_messenger;
CREATE DATABASE IF NOT EXISTS social_messenger;
USE social_messenger;
CREATE TABLE IF NOT EXISTS users (
id INT AUTO_INCREMENT PRIMARY KEY,
full_name VARCHAR(30) NOT NULL,
email VARCHAR(150) NOT NULL UNIQUE,
username VARCHAR(30) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL,
profile_picture VARCHAR(255) DEFAULT 'default.png',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE IF NOT EXISTS messages (
id INT AUTO_INCREMENT PRIMARY KEY,
sender_id INT NOT NULL,
receiver_id INT NOT NULL,
content TEXT NOT NULL,
status ENUM('unread', 'read') DEFAULT 'unread',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (sender_id) REFERENCES users(id) ON DELETE CASCADE,
FOREIGN KEY (receiver_id) REFERENCES users(id) ON DELETE CASCADE
);
CREATE TABLE IF NOT EXISTS block_users (
id INT AUTO_INCREMENT PRIMARY KEY,
blocked_by INT NOT NULL,
blocked_user INT NOT NULL,
FOREIGN KEY (blocked_by) REFERENCES users(id) ON DELETE CASCADE,
FOREIGN KEY (blocked_user) REFERENCES users(id) ON DELETE CASCADE,
UNIQUE (blocked_by, blocked_user)
);
-- Default password: 1
INSERT INTO
`users` (
`full_name`,
`email`,
`username`,
`password`,
`profile_picture`
)
VALUES
(
'Iqbolshoh Ilhomjonov',
'iqbolshoh',
'a12ee744fc24c11f9587f34caf342a86bfd148089befc49542eb95bd3c68e331',
'c7380cd60cacb65ec9a12b56c70999d3.jpg'
),
(
'client User',
'client',
'65c2a32982abe41b1e6ff888d351ee6b7ade33affd4a595667ea7db910aecaa8',
'588223e26ce06bd4c1e7970f1dca11f6.jpg'
),
(
'User Three',
'user_3',
'65c2a32982abe41b1e6ff888d351ee6b7ade33affd4a595667ea7db910aecaa8',
'default.png'
),
(
'User Four',
'user_4',
'65c2a32982abe41b1e6ff888d351ee6b7ade33affd4a595667ea7db910aecaa8',
'default.png'
),
(
'User Five',
'user_5',
'65c2a32982abe41b1e6ff888d351ee6b7ade33affd4a595667ea7db910aecaa8',
'default.png'
),
(
'User Six',
'user_6',
'65c2a32982abe41b1e6ff888d351ee6b7ade33affd4a595667ea7db910aecaa8',
'default.png'
),
(
'User Seven',
'user_7',
'65c2a32982abe41b1e6ff888d351ee6b7ade33affd4a595667ea7db910aecaa8',
'default.png'
);
INSERT INTO messages (sender_id, receiver_id, content, status)
VALUES
(2, 1, "Hello!", "read"),
(2, 1, "Iqbolshoh, how are you?", "read"),
(2, 1, "Can you help me with creating a website?", "read"),
(1, 2, "Hello! Of course, what kind of website do you need? Is it for your business or a personal blog?", "read"),
(2, 1, "I need a website for my business. I want to open an online store.", "read"),
(1, 2, "Great! There are many possibilities for an online store. What kind of products will you be selling?", "read"),
(2, 1, "I will be selling clothing. A variety of items, including men's, women's, and children's clothing.", "read"),
(1, 2, "Nice! What design and features do you want for the site?", "read"),
(2, 1, "I prefer a minimalist design. The site should have a homepage, store, promotions, and product categories.", "read"),
(1, 2, "Got it. We also need to add payment systems and delivery functions to the site.", "read"),
(2, 1, "Yes, payment systems and delivery options are necessary. I also need to add pricing and promotions for the products.", "read"),
(1, 2, "What other features would you like to add? Would you need filters or a search system?", "read"),
(2, 1, "Filters and a search system are very important. We need to filter products by type, price, and brand.", "read"),
(1, 2, "Great. Can you provide more details about the design? What about the colors and the overall look?", "read"),
(2, 1, "The colors should be in muted tones, mostly white, black, and gray. It should be simple and easy to read.", "read"),
(1, 2, "Understood. Would you like to apply your personal branding to the site? For example, a logo or brand colors?", "read"),
(2, 1, "Yes, definitely. A logo and brand colors are needed to create the identity of my business.", "read"),
(1, 2, "Great! What other pages do you need? A contact page or customer reviews page?", "read"),
(2, 1, "Yes, I need a contact page and a customer reviews page. It will make the site more trustworthy.", "read"),
(1, 2, "Do you need login and registration pages?", "read"),
(2, 1, "Yes, of course. Users should be able to create accounts and track their orders.", "read"),
(1, 2, "One more question: Would you like to make the site mobile-responsive?", "read"),
(2, 1, "Yes, the site must be mobile-friendly. A lot of users access websites from their phones.", "read"),
(1, 2, "Great! How much time do you need to create the site?", "read"),
(2, 1, "I need to create the site as soon as possible. How long does it usually take?", "read"),
(1, 2, "If we are only creating the homepage and the store, it will take 2-3 weeks, but with all additional features, it could take a month.", "read"),
(2, 1, "Got it, that's good. How do you price your services?", "read"),
(1, 2, "Our services are high quality, and our prices are competitive. We offer great value for the service we provide.", "read"),
(2, 1, "How do you set the prices?", "read"),
(1, 2, "The prices vary depending on the complexity of the project. Standard packages start from $500, but prices can change for special requirements.", "read"),
(2, 1, "How can I make the payment?", "read"),
(1, 2, "You can make the payment through bank transfer, PayPal, or Stripe.", "read"),
(2, 1, "Great. What services are currently offered?", "read"),
(1, 2, "We are continuously improving our services. We offer website creation, SEO, marketing, and additional services as well.", "read"),
(2, 1, "Thanks for introducing your services. If I have more questions, I’ll definitely reach out.", "read"),
(1, 2, "Of course, feel free to contact us with any questions. We are always ready to help.", "read"),
(2, 1, "Thanks! I look forward to working with you.", "read"),
(1, 2, "I’ll be waiting! If you need anything else, you can contact us.", "read"),
(2, 1, "Thanks, I’ll get back to you soon.", "read"),
(1, 2, "I’ll be waiting. Let me know if you need anything.", "read"),
(2, 1, "We should consider all the possibilities when creating the site. Can we discuss good strategies and marketing techniques?", "read"),
(1, 2, "Of course! Marketing is very important for an online store. We can boost it through SEO and social media.", "read"),
(2, 1, "I’d like to learn more about SEO. How can we get the site ranked higher?", "read"),
(1, 2, "To optimize the site for SEO, it’s important to choose the right content, improve the speed, and adjust button texts.", "read"),
(2, 1, "Okay, what should we focus on in terms of content? How should we write product descriptions?", "read"),
(1, 2, "Product descriptions should be engaging and clear. We need to understand user needs and create good content.", "read"),
(2, 1, "What about other marketing techniques? Do you recommend specific social media ads?", "read"),
(1, 2, "Targeted ads on social media are very effective. You can reach the right audience and create engaging visual content.", "read"),
(2, 1, "I’d like to learn more about targeted ads. How does that work?", "read"),
(1, 2, "Targeted ads are shown based on users’ interests, age group, and location. This ensures maximum effectiveness.", "read"),
(2, 1, "That’s very interesting. So we only target our audience, right?", "read"),
(1, 2, "Exactly. This helps save the advertising budget.", "read"),
(2, 1, "Thank you for all the useful advice. Which platform would you recommend for creating the site?", "read"),
(1, 2, "If you want to create a simple site, WordPress or Shopify are great options. For more custom needs, you can use Laravel or Node.js.", "read"),
(2, 1, "That’s right, I prefer Laravel. It’s very powerful and flexible.", "read"),
(1, 2, "Yes, Laravel is a very strong framework. It will be an ideal choice for you!", "read"),
(2, 1, "I really appreciate your help. I might have more questions later.", "read"),
(1, 2, "Of course, I’m always ready to help. I look forward to you continuing to use my services.", "read"),
(1, 2, "If you have any more questions or need assistance, feel free to contact me anytime. I'm always ready to help. You can reach me through the following channels:\n\nInstagram: @iqbolshoh_777\nTelegram: @iqbolshoh_777\nX: @iqbolshoh_777\nTikTok: @iqbolshoh_777\nYouTube: @iqbolshoh_777\nEmail: [email protected]\nWebsite: iqbolshoh.uz", "read");