curios2-upgrade: curios3-tracking-structure.txt

File curios3-tracking-structure.txt, 2.5 kB (added by thomas, 1 year ago)
Line 
1 -- phpMyAdmin SQL Dump
2 -- version 2.11.5.2
3 -- http://www.phpmyadmin.net
4 --
5 -- Host: localhost
6 -- Generation Time: Apr 27, 2009 at 10:03 AM
7 -- Server version: 5.0.32
8 -- PHP Version: 5.2.0-8+etch13
9
10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
11
12 --
13 -- Database: `curios_tracking`
14 --
15
16 -- --------------------------------------------------------
17
18 --
19 -- Table structure for table `item`
20 --
21
22 CREATE TABLE IF NOT EXISTS `item` (
23   `id` int(10) unsigned NOT NULL auto_increment,
24   `user_id` int(10) unsigned NOT NULL default '0',
25   `item_id` int(10) unsigned NOT NULL default '0',
26   `action` varchar(10) NOT NULL default '',
27   `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
28   `info` varchar(255) NOT NULL default '',
29   PRIMARY KEY  (`id`),
30   KEY `user_id` (`user_id`,`item_id`,`action`,`timestamp`)
31 ) ENGINE=MyISAM  DEFAULT CHARSET=latin1;
32
33 -- --------------------------------------------------------
34
35 --
36 -- Table structure for table `login`
37 --
38
39 CREATE TABLE IF NOT EXISTS `login` (
40   `id` int(10) unsigned NOT NULL auto_increment,
41   `ip` varchar(39) NOT NULL default '',
42   `user_id` int(10) unsigned NOT NULL default '0',
43   `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
44   `browser` varchar(255) NOT NULL default '',
45   PRIMARY KEY  (`id`),
46   KEY `timestamp` (`timestamp`)
47 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
48
49 -- --------------------------------------------------------
50
51 --
52 -- Table structure for table `section`
53 --
54
55 CREATE TABLE IF NOT EXISTS `section` (
56   `id` int(10) unsigned NOT NULL auto_increment,
57   `user_id` int(10) unsigned NOT NULL default '0',
58   `section_id` int(10) unsigned NOT NULL default '0',
59   `action` varchar(10) NOT NULL default '',
60   `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
61   `info` varchar(255) NOT NULL default '',
62   PRIMARY KEY  (`id`),
63   KEY `user_id` (`user_id`,`section_id`,`action`,`timestamp`)
64 ) ENGINE=MyISAM  DEFAULT CHARSET=latin1;
65
66 -- --------------------------------------------------------
67
68 --
69 -- Table structure for table `task`
70 --
71
72 CREATE TABLE IF NOT EXISTS `task` (
73   `id` int(10) unsigned NOT NULL auto_increment,
74   `user_id` int(10) unsigned NOT NULL default '0',
75   `task_id` int(10) unsigned NOT NULL default '0',
76   `action` varchar(10) NOT NULL default '',
77   `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
78   `info` varchar(255) NOT NULL default '',
79   PRIMARY KEY  (`id`),
80   KEY `user_id` (`user_id`,`task_id`,`action`,`timestamp`)
81 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;