-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata_table.sql
114 lines (95 loc) · 3.56 KB
/
data_table.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
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: db:3306
-- Generation Time: Feb 25, 2024 at 12:14 AM
-- Server version: 8.3.0
-- PHP Version: 8.2.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION; -- Fixed typo here
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `avnduboi`
--
-- --------------------------------------------------------
--
-- Table structure for table `challenge`
--
CREATE TABLE `challenge` (
`id` int NOT NULL,
`TYPE` varchar(255) NOT NULL,
`value` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `challenge`
--
ALTER TABLE `challenge`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `challenge`
--
ALTER TABLE `challenge`
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
--
-- Insert default values into `challenge`
--
INSERT INTO `challenge` (`TYPE`, `value`, `username`, `date`) VALUES
('veritee', 'What is your biggest fear?', 'system', CURRENT_TIMESTAMP),
('action', 'Do 10 push-ups.', 'system', CURRENT_TIMESTAMP),
('veritee', 'What is your biggest dream?', 'system', CURRENT_TIMESTAMP),
('action', 'Sing a song in front of everyone.', 'system', CURRENT_TIMESTAMP),
('veritee', 'What is your biggest regret?', 'system', CURRENT_TIMESTAMP),
('action', 'Imitate an animal of your choice for 30 seconds.', 'system', CURRENT_TIMESTAMP),
('veritee', 'What is the craziest thing you have ever done?', 'system', CURRENT_TIMESTAMP),
('action', 'Send an embarrassing message to the last person you texted.', 'system', CURRENT_TIMESTAMP),
('veritee', 'What secret have you never told anyone?', 'system', CURRENT_TIMESTAMP),
('action', 'Wear your clothes backwards for a day.', 'system', CURRENT_TIMESTAMP),
('veritee', 'What is your greatest talent?', 'system', CURRENT_TIMESTAMP),
('action', 'Dress up as your favorite superhero for a day.', 'system', CURRENT_TIMESTAMP),
('veritee', 'What is your favorite book?', 'system', CURRENT_TIMESTAMP),
('action', 'Share an interesting fact about yourself.', 'system', CURRENT_TIMESTAMP),
('veritee', 'What are three words that describe you?', 'system', CURRENT_TIMESTAMP),
('action', 'Do a dance for 30 seconds.', 'system', CURRENT_TIMESTAMP),
('veritee', 'What is your favorite movie?', 'system', CURRENT_TIMESTAMP),
('action', 'Tell a joke that makes everyone laugh.', 'system', CURRENT_TIMESTAMP);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- Create table for users
CREATE TABLE `users` (
`id` int NOT NULL,
`email` varchar(255) NOT NULL,
`status_verif` int NOT NULL DEFAULT '0',
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`token` varchar(255) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
COMMIT;