PHP Classes

File: schema/tables.sql

Recommend this page to a friend!
  Classes of Roni   EZ PHP RBAC   schema/tables.sql   Download  
File: schema/tables.sql
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: EZ PHP RBAC
Manages the accesses features by users and roles
Author: By
Last change:
Date: 2 years ago
Size: 3,056 bytes
 

Contents

Class file image Download
/* SQLyog Ultimate v9.62 MySQL - 5.1.41 : Database - ezrbac ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; /*Table structure for table `system_users` */ DROP TABLE IF EXISTS `system_users`; CREATE TABLE `system_users` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `email` varchar(254) DEFAULT NULL, `password` varchar(160) DEFAULT NULL, `salt` varchar(160) DEFAULT NULL, `user_role_id` int(10) DEFAULT NULL, `last_login` datetime DEFAULT '0000-00-00 00:00:00', `last_login_ip` varchar(64) DEFAULT NULL, `reset_request_code` varchar(128) DEFAULT NULL, `reset_request_time` datetime DEFAULT NULL, `reset_request_ip` varchar(64) DEFAULT NULL, `verification_status` tinyint(1) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*Table structure for table `user_access_map` */ /*Table structure for table `user_access_map` */ DROP TABLE IF EXISTS `user_access_map`; CREATE TABLE `user_access_map` ( `user_role_id` int(10) NOT NULL, `controller` varchar(255) NOT NULL, `permission` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`user_role_id`,`controller`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*Table structure for table `user_autologin` */ DROP TABLE IF EXISTS `user_autologin`; CREATE TABLE `user_autologin` ( `key_id` char(32) COLLATE utf8_bin NOT NULL, `user_id` int(11) NOT NULL DEFAULT '0', `user_agent` varchar(150) COLLATE utf8_bin NOT NULL, `last_ip` varchar(40) COLLATE utf8_bin NOT NULL, `last_login` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`key_id`,`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*Table structure for table `user_role` */ DROP TABLE IF EXISTS `user_role`; CREATE TABLE `user_role` ( `id` int(5) unsigned NOT NULL AUTO_INCREMENT, `role_name` varchar(50) DEFAULT NULL, `default_access` varchar(10) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*Table structure for table `user_meta` */ DROP TABLE IF EXISTS `user_meta`; CREATE TABLE `user_meta` ( `user_id` bigint(20) unsigned NOT NULL, `first_name` varchar(100) DEFAULT NULL, `last_name` varchar(100) DEFAULT NULL, `phone` varchar(100) DEFAULT NULL, PRIMARY KEY (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;