-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvine.sql
166 lines (139 loc) · 4.06 KB
/
vine.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
160
161
162
163
164
165
166
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Gegenereerd op: 06 aug 2024 om 12:11
-- Serverversie: 10.4.32-MariaDB
-- PHP-versie: 8.2.12
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: `vine`
--
-- --------------------------------------------------------
--
-- Tabelstructuur voor tabel `accounts`
--
CREATE TABLE `accounts` (
`id` int(11) NOT NULL,
`sid` text NOT NULL,
`color` text DEFAULT '0x33ccbf',
`username` text NOT NULL,
`phone` text DEFAULT NULL,
`email` text DEFAULT NULL,
`followingc` int(11) NOT NULL DEFAULT 0,
`followersc` int(11) NOT NULL DEFAULT 0,
`verified` int(11) NOT NULL DEFAULT 0,
`description` text DEFAULT NULL,
`picture` text DEFAULT NULL,
`likec` int(11) NOT NULL DEFAULT 0,
`postc` int(11) NOT NULL DEFAULT 0,
`vphone` int(11) NOT NULL DEFAULT 0,
`vemail` int(11) NOT NULL DEFAULT 0,
`following` int(11) NOT NULL DEFAULT 0,
`location` text DEFAULT NULL,
`twitterid` text DEFAULT NULL,
`facebookid` text DEFAULT NULL,
`twittercon` int(11) NOT NULL DEFAULT 0,
`facebookcon` int(11) NOT NULL DEFAULT 0,
`suspended` int(11) NOT NULL DEFAULT 0,
`banned` int(11) NOT NULL DEFAULT 0,
`loopc` int(11) NOT NULL DEFAULT 0,
`passwordHash` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Tabelstructuur voor tabel `notifications`
--
CREATE TABLE `notifications` (
`id` int(11) NOT NULL,
`receipient` int(11) NOT NULL DEFAULT 0,
`receipientAll` text NOT NULL DEFAULT 'n',
`message` text NOT NULL DEFAULT 'No Message content.',
`created` date NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Tabelstructuur voor tabel `tags`
--
CREATE TABLE `tags` (
`id` int(11) NOT NULL,
`name` text NOT NULL,
`postc` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- --------------------------------------------------------
--
-- Tabelstructuur voor tabel `vines`
--
CREATE TABLE `vines` (
`id` int(11) NOT NULL,
`description` text DEFAULT NULL,
`commentc` int(11) NOT NULL DEFAULT 0,
`likec` int(11) NOT NULL DEFAULT 0,
`revinec` int(11) NOT NULL DEFAULT 0,
`loopc` int(11) NOT NULL DEFAULT 0,
`uploaderId` text NOT NULL,
`thumbnailUrl` text NOT NULL,
`videodef` text NOT NULL,
`videoh264` text NOT NULL,
`videor2` text NOT NULL,
`loopvelo` text NOT NULL DEFAULT '0.0',
`loopfire` int(11) NOT NULL DEFAULT 0,
`created` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Indexen voor geëxporteerde tabellen
--
--
-- Indexen voor tabel `accounts`
--
ALTER TABLE `accounts`
ADD PRIMARY KEY (`id`);
--
-- Indexen voor tabel `notifications`
--
ALTER TABLE `notifications`
ADD PRIMARY KEY (`id`);
--
-- Indexen voor tabel `tags`
--
ALTER TABLE `tags`
ADD PRIMARY KEY (`id`);
--
-- Indexen voor tabel `vines`
--
ALTER TABLE `vines`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT voor geëxporteerde tabellen
--
--
-- AUTO_INCREMENT voor een tabel `accounts`
--
ALTER TABLE `accounts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT voor een tabel `notifications`
--
ALTER TABLE `notifications`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT voor een tabel `tags`
--
ALTER TABLE `tags`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT voor een tabel `vines`
--
ALTER TABLE `vines`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
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 */;