-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathschema.sql
More file actions
57 lines (48 loc) · 1.81 KB
/
schema.sql
File metadata and controls
57 lines (48 loc) · 1.81 KB
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
-- phpMyAdmin SQL Dump
-- version 3.4.5deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 09, 2012 at 07:30 PM
-- Server version: 5.1.61
-- PHP Version: 5.3.6-13ubuntu3.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `osjs`
--
-- --------------------------------------------------------
--
-- Table structure for table `session`
--
CREATE TABLE IF NOT EXISTS `session` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`session_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`session_data` text COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`modified_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`privilege` int(3) NOT NULL DEFAULT '0',
`real_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`last_session_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`last_session` text COLLATE utf8_unicode_ci,
`last_registry` text COLLATE utf8_unicode_ci,
`last_login` timestamp NULL DEFAULT NULL,
`last_logout` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`modified_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`heartbeat_at` timestamp NULL DEFAULT NULL,
`logged_in` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ;