-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDVSN.sql
More file actions
executable file
·28 lines (23 loc) · 915 Bytes
/
DVSN.sql
File metadata and controls
executable file
·28 lines (23 loc) · 915 Bytes
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
/* DVSN SQL */
CREATE TABLE IF NOT EXISTS `dvsn_feed` (
`id` int(11) NOT NULL,
`title` varchar(32) NOT NULL,
`contents` text NOT NULL,
`by` varchar(16) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `dvsn_user` (
`id` int(11) NOT NULL,
`firstname` varchar(32) NOT NULL,
`lastname` varchar(64) NOT NULL,
`username` varchar(16) NOT NULL,
`password` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`image` text NOT NULL,
`ip` varchar(255) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
INSERT INTO `dvsn_user` (`id`, `firstname`, `lastname`, `username`, `password`, `email`, `image`, `ip`) VALUES
(1, 'John', 'Doe', 'John123', '924f96322231b95f18fc4c03bc30c48f', 'john.doe@example.com', 'mountain.jpeg', '192.168.0.1\r\n');
ALTER TABLE `dvsn_feed`
ADD PRIMARY KEY (`id`);
ALTER TABLE `dvsn_user`
ADD PRIMARY KEY (`id`);