yhm_passport.sql 2.2 KB
/*
 Navicat Premium Data Transfer

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 50704
 Source Host           : 127.0.0.1
 Source Database       : yhm_passport

 Target Server Type    : MySQL
 Target Server Version : 50704
 File Encoding         : utf-8

 Date: 07/15/2014 13:35:09 PM
*/

SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
--  Table structure for `system_seting`
-- ----------------------------
DROP TABLE IF EXISTS `system_seting`;
CREATE TABLE `system_seting` (
  `uid` int(11) unsigned NOT NULL DEFAULT '0',
  `message_notice` enum('Y','N') DEFAULT 'Y',
  `orders_notice` enum('Y','N') NOT NULL DEFAULT 'N',
  `system_notice` enum('Y','N') DEFAULT NULL,
  `notice_begin_time` time DEFAULT NULL,
  `notice_end_time` time DEFAULT NULL,
  PRIMARY KEY (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- ----------------------------
--  Table structure for `user_auth`
-- ----------------------------
DROP TABLE IF EXISTS `user_auth`;
CREATE TABLE `user_auth` (
  `uid` int(11) NOT NULL,
  `profile` varchar(100) NOT NULL,
  `profile_type` tinyint(3) unsigned DEFAULT '1',
  `profile_source` varchar(100) DEFAULT NULL,
  `create_time` int(10) unsigned NOT NULL DEFAULT '0',
  `update_time` int(10) unsigned NOT NULL DEFAULT '0',
  `status` tinyint(3) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`uid`,`profile`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- ----------------------------
--  Table structure for `user_profile`
-- ----------------------------
DROP TABLE IF EXISTS `user_profile`;
CREATE TABLE `user_profile` (
  `uid` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `password` varchar(100) DEFAULT NULL,
  `nikename` varchar(50) DEFAULT NULL,
  `signature` varchar(100) DEFAULT NULL,
  `gender` enum('1','2','3') DEFAULT NULL,
  `birthday` date NOT NULL DEFAULT '0000-00-00',
  `head_ico` varchar(255) DEFAULT NULL,
  `code_address` int(6) unsigned NOT NULL DEFAULT '0',
  `full_address` varchar(255) DEFAULT NULL,
  `zip_code` varchar(10) DEFAULT NULL,
  `create_time` int(10) unsigned NOT NULL DEFAULT '0',
  `status` tinyint(3) unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

SET FOREIGN_KEY_CHECKS = 1;