-
Notifications
You must be signed in to change notification settings - Fork 0
/
web_develop.sql
145 lines (115 loc) · 3.83 KB
/
web_develop.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
-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 16, 2016 at 03:30 PM
-- Server version: 5.6.17
-- PHP Version: 5.6.28
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 utf8 */;
--
-- Database: `web_develop`
--
-- --------------------------------------------------------
--
-- Table structure for table `admins`
--
CREATE TABLE IF NOT EXISTS `admins` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`email` varchar(255) NOT NULL,
`passwd` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `admins`
--
INSERT INTO `admins` (`id`, `email`, `passwd`) VALUES
(1, '[email protected]', '$2y$10$G0MYcFO16Mez1ARAEZbxgujog.LlVpr.nxcAK2OKNsnzEwvUKtpMW');
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE IF NOT EXISTS `comments` (
`id` int(100) NOT NULL AUTO_INCREMENT,
`news_id` int(100) NOT NULL,
`content` text NOT NULL,
`author` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
--
-- Dumping data for table `comments`
--
INSERT INTO `comments` (`id`, `news_id`, `content`, `author`) VALUES
(1, 1, 'adsfasf', '11'),
(2, 1, 'asdfasdfadf', '11'),
(3, 1, 'adsfasf', '11'),
(4, 1, 'asdfasdfadf', '11'),
(5, 1, 'asdfasdgfsdfdf', '11'),
(6, 1, 'asdfafadsfsav', '11'),
(7, 1, 'asdfgdssfadf', '11'),
(8, 1, 'adsfasdfasdf', '11'),
(9, 1, 'dfasdf', 'qq');
-- --------------------------------------------------------
--
-- Table structure for table `news`
--
CREATE TABLE IF NOT EXISTS `news` (
`id` int(100) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`content` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `news`
--
INSERT INTO `news` (`id`, `title`, `content`) VALUES
(1, 'the ajax content', 'this is the test news'),
(2, 'the ajax', 'this is the ajax content '),
(3, 'the ajax', 'this is the ajax content ');
-- --------------------------------------------------------
--
-- Table structure for table `works`
--
CREATE TABLE IF NOT EXISTS `works` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT 'NOT NULL',
`link` varchar(150) NOT NULL,
`overview` text NOT NULL,
`cover_image` varchar(200) NOT NULL,
`position` tinyint(1) NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=64 ;
--
-- Dumping data for table `works`
--
INSERT INTO `works` (`id`, `name`, `link`, `overview`, `cover_image`, `position`, `status`) VALUES
(62, 'asfsdsfasdfewerwer', 'sdfsadff', 'sdfewrewrw', '108127.jpeg', 3, 0),
(63, 'dsafasdf', 'asdf', 'sdfasdfasdf', '107083.jpeg', 2, 0);
-- --------------------------------------------------------
--
-- Table structure for table `work_image`
--
CREATE TABLE IF NOT EXISTS `work_image` (
`id` int(255) NOT NULL AUTO_INCREMENT,
`work_id` int(100) NOT NULL,
`image` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
`position` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;
--
-- Dumping data for table `work_image`
--
INSERT INTO `work_image` (`id`, `work_id`, `image`, `position`) VALUES
(16, 61, '108127.jpeg', 0),
(17, 62, '108244.jpeg', 0),
(18, 63, '108133.jpeg', 0),
(19, 63, '108249.jpeg', 0);
/*!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 */;