--
-- Host: localhost    Database: kosjrunyon
-- ------------------------------------------------------


--
-- Table structure for table `apps`
--

CREATE TABLE `apps` (
  `aid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `appname` varchar(100) NOT NULL,
  `classname` varchar(100) NOT NULL,
  `parent` int(10) unsigned NOT NULL,
  `filename` varchar(100) NOT NULL,
  `access` enum('user','operator','manager') NOT NULL DEFAULT 'user',
  PRIMARY KEY (`aid`),
  UNIQUE KEY `appname` (`appname`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `apps`
--

INSERT INTO `apps` VALUES (1,'App Zone','App_Zone',2,'appzone.php','manager'),(2,'User Manager','User_Manager',2,'users.php','operator'),(3,'App Settings','App_Settings_Manager',2,'appsetup.php','operator');

--
-- Table structure for table `categories`
--

CREATE TABLE `categories` (
  `cid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `catname` varchar(100) NOT NULL,
  PRIMARY KEY (`cid`),
  UNIQUE KEY `catname` (`catname`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `categories`
--

INSERT INTO `categories` VALUES (1,'System'),(2,'Administration');

--
-- Table structure for table `session_apps`
--

CREATE TABLE `session_apps` (
  `iid` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `sid` int(10) unsigned NOT NULL,
  `aid` int(10) unsigned NOT NULL,
  PRIMARY KEY (`iid`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `session_apps`
--


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `sid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `uid` int(10) unsigned NOT NULL,
  `started` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `last` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `lockip` text NOT NULL,
  PRIMARY KEY (`sid`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `sessions`
--



