統計
| ブランチ: | リビジョン:

pictcode / pictcode.sql @ 7bb44905

履歴 | 表示 | アノテート | ダウンロード (5.198 KB)

1 7bb44905 hasse
-- MySQL dump 10.13  Distrib 5.1.69, for redhat-linux-gnu (x86_64)
2
--
3
-- Host: localhost    Database: ccc
4
-- ------------------------------------------------------
5
-- Server version        5.1.69-log
6
7
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10
/*!40101 SET NAMES utf8 */;
11
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12
/*!40103 SET TIME_ZONE='+00:00' */;
13
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17
18
CREATE DATABASE IF NOT EXISTS `pictcode` DEFAULT CHARACTER SET utf8;
19
20
USE `pictcode`;
21
22
--
23
-- Table structure for table `cake_sessions`
24
--
25

26
DROP TABLE IF EXISTS `cake_sessions`;
27
/*!40101 SET @saved_cs_client     = @@character_set_client */;
28
/*!40101 SET character_set_client = utf8 */;
29
CREATE TABLE `cake_sessions` (
30
  `id` varchar(255) NOT NULL DEFAULT '',
31
  `data` text,
32
  `expires` int(11) DEFAULT NULL,
33
  PRIMARY KEY (`id`)
34
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
35
/*!40101 SET character_set_client = @saved_cs_client */;
36
37
38
39
--
40
-- Table structure for table `categories`
41
--
42

43
DROP TABLE IF EXISTS `categories`;
44
/*!40101 SET @saved_cs_client     = @@character_set_client */;
45
/*!40101 SET character_set_client = utf8 */;
46
CREATE TABLE `categories` (
47
  `id` int(11) NOT NULL AUTO_INCREMENT,
48
  `category_type` tinyint(4) NOT NULL,
49
  `name` varchar(255) NOT NULL,
50
  `image_file_name` varchar(255) DEFAULT NULL,
51
  `sort_order` int(11) DEFAULT NULL,
52
  `status` tinyint(4) DEFAULT NULL,
53
  `created` datetime NOT NULL,
54
  `updated` datetime DEFAULT NULL,
55
  PRIMARY KEY (`id`)
56
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
57
/*!40101 SET character_set_client = @saved_cs_client */;
58
59
60
--
61
-- Table structure for table `programs`
62
--
63

64
DROP TABLE IF EXISTS `programs`;
65
/*!40101 SET @saved_cs_client     = @@character_set_client */;
66
/*!40101 SET character_set_client = utf8 */;
67
CREATE TABLE `programs` (
68
  `id` int(11) NOT NULL AUTO_INCREMENT,
69
  `user_id` int(11) DEFAULT NULL,
70
  `pict_code` varchar(255) DEFAULT NULL,
71
  `title` varchar(255) DEFAULT NULL,
72
  `description` mediumtext DEFAULT NULL,
73
  `data` mediumtext DEFAULT NULL,
74
  `status` tinyint(4) DEFAULT NULL,
75
  `view_count` int(11) DEFAULT 0,
76
  `created` datetime NOT NULL,
77
  `updated` datetime DEFAULT NULL,
78
  PRIMARY KEY (`id`),
79
  KEY `user_id` (`user_id`),
80
  KEY `title` (`title`)
81
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
82
/*!40101 SET character_set_client = @saved_cs_client */;
83
84
--
85
-- Table structure for table `images`
86
--
87

88
DROP TABLE IF EXISTS `images`;
89
/*!40101 SET @saved_cs_client     = @@character_set_client */;
90
/*!40101 SET character_set_client = utf8 */;
91
CREATE TABLE `images` (
92
  `id` int(11) NOT NULL AUTO_INCREMENT,
93
  `category_id` int(11) DEFAULT NULL,
94
  `image_type` tinyint(4) NOT NULL,
95
  `name` varchar(255) NOT NULL,
96
  `image_file_name` varchar(255) DEFAULT NULL,
97
  `sort_order` int(11) DEFAULT NULL,
98
  `status` tinyint(4) DEFAULT NULL,
99
  `created` datetime NOT NULL,
100
  `updated` datetime DEFAULT NULL,
101
  PRIMARY KEY (`id`),
102
  KEY `category_id` (`category_id`),
103
  KEY `image_type` (`image_type`)
104
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
105
/*!40101 SET character_set_client = @saved_cs_client */;
106
107
--
108
-- Table structure for table `sounds`
109
--
110

111
DROP TABLE IF EXISTS `sounds`;
112
/*!40101 SET @saved_cs_client     = @@character_set_client */;
113
/*!40101 SET character_set_client = utf8 */;
114
CREATE TABLE `sounds` (
115
  `id` int(11) NOT NULL AUTO_INCREMENT,
116
  `category_id` int(11) DEFAULT NULL,
117
  `sound_type` tinyint(4) NOT NULL,
118
  `name` varchar(255) NOT NULL,
119
  `sound_file_name` varchar(255) DEFAULT NULL,
120
  `sort_order` int(11) DEFAULT NULL,
121
  `status` tinyint(4) DEFAULT NULL,
122
  `created` datetime NOT NULL,
123
  `updated` datetime DEFAULT NULL,
124
  PRIMARY KEY (`id`),
125
  KEY `category_id` (`category_id`),
126
  KEY `sound_type` (`sound_type`)
127
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
128
/*!40101 SET character_set_client = @saved_cs_client */;
129
130
--
131
-- Table structure for table `users`
132
--
133

134
DROP TABLE IF EXISTS `users`;
135
/*!40101 SET @saved_cs_client     = @@character_set_client */;
136
/*!40101 SET character_set_client = utf8 */;
137
CREATE TABLE `users` (
138
  `id` int(11) NOT NULL AUTO_INCREMENT,
139
  `login_id` varchar(32) NOT NULL,
140
  `email` varchar(255) NOT NULL,
141
  `password` varchar(64) NOT NULL,
142
  `user_flg` tinyint(4) DEFAULT NULL,
143
  `status` tinyint(4) NOT NULL DEFAULT '1',
144
  `created` datetime NOT NULL,
145
  `updated` datetime DEFAULT NULL,
146
  PRIMARY KEY (`id`)
147
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
148
/*!40101 SET character_set_client = @saved_cs_client */;
149
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
150
151
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
152
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
153
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
154
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
155
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
156
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
157
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
158
159
-- Dump completed on 2016-02-05 17:21:54