-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.sql
More file actions
94 lines (80 loc) · 2.7 KB
/
database.sql
File metadata and controls
94 lines (80 loc) · 2.7 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
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
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Nov 08, 2024 at 08:35 AM
-- Server version: 8.0.39-0ubuntu0.22.04.1
-- PHP Version: 8.2.18
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
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: `social_network`
--
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
DROP TABLE IF EXISTS `comments`;
CREATE TABLE IF NOT EXISTS `comments` (
`user_id` int DEFAULT NULL,
`id` int NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `posts`
--
DROP TABLE IF EXISTS `posts`;
CREATE TABLE IF NOT EXISTS `posts` (
`user_id` int DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`description` text,
`content` text,
`image` varchar(255) DEFAULT NULL,
`posted_at` date DEFAULT NULL,
`id` int NOT NULL AUTO_INCREMENT,
`comments_blocked` tinyint DEFAULT NULL,
`modified_at` date DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`username` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`password` text,
`confirmation_token` varchar(255) DEFAULT NULL,
`status` varchar(255) DEFAULT NULL,
`confirmed_at` date DEFAULT NULL,
`id` int NOT NULL AUTO_INCREMENT,
`remember_token` varchar(255) DEFAULT NULL,
`reset_token` varchar(255) DEFAULT NULL,
`reset_at` date DEFAULT NULL,
`modified_at` date DEFAULT NULL,
`born_at` date DEFAULT NULL,
`avatar` varchar(255) DEFAULT NULL,
`admin_request` tinyint DEFAULT NULL,
`banned` tinyint DEFAULT NULL,
`banned_till` date DEFAULT NULL,
`remove_admin` tinyint DEFAULT NULL,
`warnings` int DEFAULT NULL,
`warned_till` date DEFAULT NULL,
`muted` tinyint DEFAULT NULL,
`muted_till` date DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!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 */;