]>
jfr.im git - z_archive/KronOS.git/blob - dump.sql
1 -- MySQL dump 10.13 Distrib 5.5.27, for debian-linux-gnu (x86_64)
3 -- Host: localhost Database: dime_wos
4 -- ------------------------------------------------------
5 -- Server version 5.5.27-1~dotdeb.0
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 */;
19 -- Table structure for table `apps`
22 DROP TABLE IF EXISTS `apps`
;
23 /*!40101 SET @saved_cs_client = @@character_set_client */;
24 /*!40101 SET character_set_client = utf8 */;
26 `aid`
int(10) unsigned
NOT NULL AUTO_INCREMENT
,
27 `appname`
varchar(100) NOT NULL,
28 `parent`
int(10) unsigned
NOT NULL,
29 `filename`
varchar(100) NOT NULL,
30 `
access`
enum('user','operator','manager') NOT NULL DEFAULT 'user',
32 UNIQUE KEY `appname`
(`appname`
)
33 ) ENGINE
=InnoDB
DEFAULT CHARSET
=latin1
;
34 /*!40101 SET character_set_client = @saved_cs_client */;
37 -- Dumping data for table `apps`
40 LOCK TABLES `apps`
WRITE;
41 /*!40000 ALTER TABLE `apps` DISABLE KEYS */;
42 /*!40000 ALTER TABLE `apps` ENABLE KEYS */;
46 -- Table structure for table `categories`
49 DROP TABLE IF EXISTS `categories`
;
50 /*!40101 SET @saved_cs_client = @@character_set_client */;
51 /*!40101 SET character_set_client = utf8 */;
52 CREATE TABLE `categories`
(
53 `cid`
int(10) unsigned
NOT NULL AUTO_INCREMENT
,
54 `catname`
varchar(100) NOT NULL,
56 UNIQUE KEY `catname`
(`catname`
)
57 ) ENGINE
=InnoDB
DEFAULT CHARSET
=latin1
;
58 /*!40101 SET character_set_client = @saved_cs_client */;
61 -- Dumping data for table `categories`
64 LOCK TABLES `categories`
WRITE;
65 /*!40000 ALTER TABLE `categories` DISABLE KEYS */;
66 /*!40000 ALTER TABLE `categories` ENABLE KEYS */;
70 -- Table structure for table `session_apps`
73 DROP TABLE IF EXISTS `session_apps`
;
74 /*!40101 SET @saved_cs_client = @@character_set_client */;
75 /*!40101 SET character_set_client = utf8 */;
76 CREATE TABLE `session_apps`
(
77 `iid`
bigint(20) unsigned
NOT NULL AUTO_INCREMENT
,
78 `sid`
int(10) unsigned
NOT NULL,
79 `aid`
int(10) unsigned
NOT NULL,
81 ) ENGINE
=InnoDB
DEFAULT CHARSET
=latin1
;
82 /*!40101 SET character_set_client = @saved_cs_client */;
85 -- Dumping data for table `session_apps`
88 LOCK TABLES `session_apps`
WRITE;
89 /*!40000 ALTER TABLE `session_apps` DISABLE KEYS */;
90 /*!40000 ALTER TABLE `session_apps` ENABLE KEYS */;
94 -- Table structure for table `sessions`
97 DROP TABLE IF EXISTS `sessions`
;
98 /*!40101 SET @saved_cs_client = @@character_set_client */;
99 /*!40101 SET character_set_client = utf8 */;
100 CREATE TABLE `sessions`
(
101 `sid`
int(10) unsigned
NOT NULL AUTO_INCREMENT
,
102 `uid`
int(10) unsigned
NOT NULL,
103 `started`
timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
104 `
last`
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
105 `lockip`
text NOT NULL,
107 ) ENGINE
=InnoDB
DEFAULT CHARSET
=latin1
;
108 /*!40101 SET character_set_client = @saved_cs_client */;
111 -- Dumping data for table `sessions`
114 LOCK TABLES `sessions`
WRITE;
115 /*!40000 ALTER TABLE `sessions` DISABLE KEYS */;
116 /*!40000 ALTER TABLE `sessions` ENABLE KEYS */;
120 -- Table structure for table `users`
123 DROP TABLE IF EXISTS `users`
;
124 /*!40101 SET @saved_cs_client = @@character_set_client */;
125 /*!40101 SET character_set_client = utf8 */;
126 CREATE TABLE `users`
(
127 `uid`
int(10) unsigned
NOT NULL AUTO_INCREMENT
,
128 `username`
varchar(15) NOT NULL,
129 `
password`
char(40) NOT NULL,
130 `salt`
char(5) NOT NULL,
131 `display_name`
varchar(100) NOT NULL,
132 `
level`
enum('user','operator','manager') NOT NULL DEFAULT 'user',
134 ) ENGINE
=InnoDB
DEFAULT CHARSET
=latin1
;
135 /*!40101 SET character_set_client = @saved_cs_client */;
138 -- Dumping data for table `users`
141 LOCK TABLES `users`
WRITE;
142 /*!40000 ALTER TABLE `users` DISABLE KEYS */;
143 /*!40000 ALTER TABLE `users` ENABLE KEYS */;
145 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
147 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
148 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
149 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
150 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
151 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
152 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
153 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
155 -- Dump completed on 2012-10-11 11:19:30