init
This commit is contained in:
6
src/data/bftvufgrc.php
Normal file
6
src/data/bftvufgrc.php
Normal file
File diff suppressed because one or more lines are too long
4
src/data/conf/.htaccess
Normal file
4
src/data/conf/.htaccess
Normal file
@@ -0,0 +1,4 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteCond % !^$
|
||||
RewriteRule ^.*\.(php|php3|php4|php5|php7|pht|phtml|asp|aspx|jsp|exe) - [F]
|
||||
</IfModule>
|
||||
1
src/data/conf/lang_enable_num.txt
Normal file
1
src/data/conf/lang_enable_num.txt
Normal file
@@ -0,0 +1 @@
|
||||
1
|
||||
0
src/data/conf/md5list2.txt
Normal file
0
src/data/conf/md5list2.txt
Normal file
6763
src/data/conf/pinyin.dat
Normal file
6763
src/data/conf/pinyin.dat
Normal file
File diff suppressed because it is too large
Load Diff
1
src/data/conf/version.txt
Normal file
1
src/data/conf/version.txt
Normal file
@@ -0,0 +1 @@
|
||||
v1.5.3
|
||||
1
src/data/conf/version_security.txt
Normal file
1
src/data/conf/version_security.txt
Normal file
@@ -0,0 +1 @@
|
||||
v1.0.0
|
||||
1
src/data/conf/version_themeshop.txt
Normal file
1
src/data/conf/version_themeshop.txt
Normal file
@@ -0,0 +1 @@
|
||||
v1.0.7
|
||||
1
src/data/conf/version_themeusers.txt
Normal file
1
src/data/conf/version_themeusers.txt
Normal file
@@ -0,0 +1 @@
|
||||
v1.0.9
|
||||
3
src/data/model/application/Kefphr.php
Normal file
3
src/data/model/application/Kefphr.php
Normal file
File diff suppressed because one or more lines are too long
30
src/data/model/application/common/model/CustomModel.php
Normal file
30
src/data/model/application/common/model/CustomModel.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* 易优CMS
|
||||
* ============================================================================
|
||||
* 版权所有 2016-2028 海南赞赞网络科技有限公司,并保留所有权利。
|
||||
* 网站地址: http://www.eyoucms.com
|
||||
* ----------------------------------------------------------------------------
|
||||
* 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷.
|
||||
* ============================================================================
|
||||
* Author: 陈风任 <491085389@qq.com>
|
||||
* Date: 2019-1-7
|
||||
*/
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
use think\Db;
|
||||
use think\Model;
|
||||
|
||||
/**
|
||||
* 数据库模型
|
||||
*/
|
||||
class CustomModel extends Model
|
||||
{
|
||||
//初始化
|
||||
protected function initialize()
|
||||
{
|
||||
// 需要调用`Model`的`initialize`方法
|
||||
parent::initialize();
|
||||
}
|
||||
}
|
||||
92
src/data/model/application/home/controller/CustomModel.php
Normal file
92
src/data/model/application/home/controller/CustomModel.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
/**
|
||||
* 易优CMS
|
||||
* ============================================================================
|
||||
* 版权所有 2016-2028 海南赞赞网络科技有限公司,并保留所有权利。
|
||||
* 网站地址: http://www.eyoucms.com
|
||||
* ----------------------------------------------------------------------------
|
||||
* 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷.
|
||||
* ============================================================================
|
||||
* Author: 小虎哥 <1105415366@qq.com>
|
||||
* Date: 2018-4-3
|
||||
*/
|
||||
|
||||
namespace app\home\controller;
|
||||
|
||||
class CustomModel extends Base
|
||||
{
|
||||
// 模型标识
|
||||
public $nid = 'custommodel';
|
||||
// 模型ID
|
||||
public $channeltype = '';
|
||||
|
||||
public function _initialize() {
|
||||
parent::_initialize();
|
||||
$channeltype_list = config('global.channeltype_list');
|
||||
$this->channeltype = $channeltype_list[$this->nid];
|
||||
}
|
||||
|
||||
public function lists($tid)
|
||||
{
|
||||
$tid_tmp = $tid;
|
||||
$seo_pseudo = config('ey_config.seo_pseudo');
|
||||
if (empty($tid)) {
|
||||
$map = array(
|
||||
'channeltype' => $this->channeltype,
|
||||
'parent_id' => 0,
|
||||
'is_hidden' => 0,
|
||||
'status' => 1,
|
||||
);
|
||||
} else {
|
||||
if (3 == $seo_pseudo) {
|
||||
$map = array('dirname'=>$tid);
|
||||
} else {
|
||||
if (!is_numeric($tid) || strval(intval($tid)) !== strval($tid)) {
|
||||
abort(404,'页面不存在');
|
||||
}
|
||||
$map = array('id'=>$tid);
|
||||
}
|
||||
}
|
||||
$map['lang'] = $this->home_lang; // 多语言
|
||||
$row = M('arctype')->field('id,dirname')->where($map)->order('sort_order asc')->limit(1)->find();
|
||||
$tid = !empty($row['id']) ? intval($row['id']) : 0;
|
||||
$dirname = !empty($row['dirname']) ? $row['dirname'] : '';
|
||||
|
||||
/*301重定向到新的伪静态格式*/
|
||||
$this->jumpRewriteFormat($tid, $dirname, 'lists');
|
||||
/*--end*/
|
||||
|
||||
if (3 == $seo_pseudo) {
|
||||
$tid = $dirname;
|
||||
} else {
|
||||
$tid = $tid_tmp;
|
||||
}
|
||||
|
||||
return action('home/Lists/index', $tid);
|
||||
}
|
||||
|
||||
public function view($aid)
|
||||
{
|
||||
$result = model('CustomModel')->getInfo($aid);
|
||||
if (empty($result)) {
|
||||
abort(404,'页面不存在');
|
||||
} elseif ($result['arcrank'] == -1) {
|
||||
$this->success('待审核稿件,你没有权限阅读!');
|
||||
exit;
|
||||
}
|
||||
// 外部链接跳转
|
||||
if ($result['is_jump'] == 1) {
|
||||
header('Location: '.$result['jumplinks']);
|
||||
exit;
|
||||
}
|
||||
/*--end*/
|
||||
|
||||
$tid = $result['typeid'];
|
||||
$arctypeInfo = model('Arctype')->getInfo($tid);
|
||||
/*301重定向到新的伪静态格式*/
|
||||
$this->jumpRewriteFormat($aid, $arctypeInfo['dirname'], 'view');
|
||||
/*--end*/
|
||||
|
||||
return action('home/View/index', $aid);
|
||||
}
|
||||
}
|
||||
75
src/data/model/application/home/model/CustomModel.php
Normal file
75
src/data/model/application/home/model/CustomModel.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/**
|
||||
* 易优CMS
|
||||
* ============================================================================
|
||||
* 版权所有 2016-2028 海南赞赞网络科技有限公司,并保留所有权利。
|
||||
* 网站地址: http://www.eyoucms.com
|
||||
* ----------------------------------------------------------------------------
|
||||
* 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷.
|
||||
* ============================================================================
|
||||
* Author: 陈风任 <491085389@qq.com>
|
||||
* Date: 2019-1-7
|
||||
*/
|
||||
|
||||
namespace app\home\model;
|
||||
|
||||
use think\Model;
|
||||
use think\Page;
|
||||
use think\Db;
|
||||
|
||||
/**
|
||||
* 文章
|
||||
*/
|
||||
class CustomModel extends Model
|
||||
{
|
||||
//初始化
|
||||
protected function initialize()
|
||||
{
|
||||
// 需要调用`Model`的`initialize`方法
|
||||
parent::initialize();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取单条记录
|
||||
* @author wengxianhu by 2017-7-26
|
||||
*/
|
||||
public function getInfo($aid, $field = '', $isshowbody = true)
|
||||
{
|
||||
$data = array();
|
||||
if (!empty($field)) {
|
||||
$field_arr = explode(',', $field);
|
||||
foreach ($field_arr as $key => $val) {
|
||||
$val = trim($val);
|
||||
if (preg_match('/^([a-z]+)\./i', $val) == 0) {
|
||||
array_push($data, 'a.'.$val);
|
||||
} else {
|
||||
array_push($data, $val);
|
||||
}
|
||||
}
|
||||
$field = implode(',', $data);
|
||||
}
|
||||
|
||||
$result = array();
|
||||
if ($isshowbody) {
|
||||
$field = !empty($field) ? $field : 'b.*, a.*';
|
||||
$result = db('archives')->field($field)
|
||||
->alias('a')
|
||||
->join('__CUSTOMMODEL_CONTENT__ b', 'b.aid = a.aid', 'LEFT')
|
||||
->find($aid);
|
||||
} else {
|
||||
$field = !empty($field) ? $field : 'a.*';
|
||||
$result = db('archives')->field($field)
|
||||
->alias('a')
|
||||
->find($aid);
|
||||
}
|
||||
|
||||
// 文章TAG标签
|
||||
if (!empty($result)) {
|
||||
$typeid = isset($result['typeid']) ? $result['typeid'] : 0;
|
||||
$tags = model('Taglist')->getListByAid($aid, $typeid);
|
||||
$result['tags'] = $tags;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
9
src/data/model/custom_model_path/index.html
Normal file
9
src/data/model/custom_model_path/index.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
10
src/data/model/custom_model_path/recruit.filelist.txt
Normal file
10
src/data/model/custom_model_path/recruit.filelist.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
application/admin/controller/Recruit.php
|
||||
|
||||
application/admin/model/Recruit.php
|
||||
|
||||
application/admin/template/recruit/add.htm
|
||||
|
||||
application/admin/template/recruit/edit.htm
|
||||
|
||||
application/admin/template/recruit/index.htm
|
||||
|
||||
49
src/data/model/template/pc/lists_custommodel.htm
Normal file
49
src/data/model/template/pc/lists_custommodel.htm
Normal file
@@ -0,0 +1,49 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{$eyou.field.seo_title}</title>
|
||||
<meta name="renderer" content="webkit" />
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=0,minimal-ui" />
|
||||
<meta name="description" content="{$eyou.field.seo_description}" />
|
||||
<meta name="keywords" content="{$eyou.field.seo_keywords}" />
|
||||
<link href="{eyou:global name='web_cmspath' /}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="https://www.eyoucms.com/skin/css/model-style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<header>
|
||||
<div class="description">
|
||||
<h1>{eyou:global name='web_name' /}</h1>
|
||||
<h2></h2>
|
||||
<nav>
|
||||
<div class="bitcron_nav_container">
|
||||
<div class="bitcron_nav">
|
||||
<div class="mixed_site_nav_wrap site_nav_wrap">
|
||||
<ul class="mixed_site_nav site_nav sm sm-base">
|
||||
<li><a href="/" class="active current">首页</a></li>
|
||||
{eyou:channel type='top' currentstyle='selected'}
|
||||
<li><a href="{$field.typeurl}" class="{$field.currentstyle}">{$field.typename}</a></li>
|
||||
{/eyou:channel}
|
||||
</ul>
|
||||
<div class="clear clear_nav_inline_end"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear clear_nav_end">
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
<main>
|
||||
<!-- #download# -->
|
||||
<!-- #single# -->
|
||||
<!-- #guestbook# -->
|
||||
<!-- #media# -->
|
||||
<!-- #list# -->
|
||||
</main>
|
||||
</div>
|
||||
<footer><span>{eyou:global name='web_copyright' /}</span></footer>
|
||||
</body>
|
||||
</html>
|
||||
78
src/data/model/template/pc/view_custommodel.htm
Normal file
78
src/data/model/template/pc/view_custommodel.htm
Normal file
@@ -0,0 +1,78 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{$eyou.field.seo_title}</title>
|
||||
<meta name="renderer" content="webkit" />
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=0,minimal-ui" />
|
||||
<meta name="description" content="{$eyou.field.seo_description}" />
|
||||
<meta name="keywords" content="{$eyou.field.seo_keywords}" />
|
||||
<link href="{eyou:global name='web_cmspath' /}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
<link rel="stylesheet" type="text/css" href="https://www.eyoucms.com/skin/css/model-style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<header>
|
||||
<div class="description">
|
||||
<h1>{eyou:global name='web_name' /}</h1>
|
||||
<h2></h2>
|
||||
<nav>
|
||||
<div class="bitcron_nav_container">
|
||||
<div class="bitcron_nav">
|
||||
<div class="mixed_site_nav_wrap site_nav_wrap">
|
||||
<ul class="mixed_site_nav site_nav sm sm-base">
|
||||
<li><a href="/" class="active current">首页</a></li>
|
||||
{eyou:channel type='top' currentstyle='selected'}
|
||||
<li><a href="{$field.typeurl}" class="{$field.currentstyle}">{$field.typename}</a></li>
|
||||
{/eyou:channel}
|
||||
</ul>
|
||||
<div class="clear clear_nav_inline_end"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear clear_nav_end">
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
<main>
|
||||
<article class="content">
|
||||
<h1>{$eyou.field.title}</h1>
|
||||
<div class="meta">
|
||||
<span class="item"><time>{$eyou.field.add_time|MyDate='Y-m-d H:i:s',###}</time></span>
|
||||
<span class="item">{eyou:arcclick /} °C</span>
|
||||
<span>{$eyou.field.author}</span>
|
||||
</div>
|
||||
<div class="post">
|
||||
<!-- #product# -->
|
||||
<!-- #images# -->
|
||||
<!-- #download# -->
|
||||
<!-- #media# -->
|
||||
<!-- #content# -->
|
||||
<!-- #special# -->
|
||||
</div>
|
||||
</article>
|
||||
<section class="pager">
|
||||
<p>
|
||||
上一篇:
|
||||
{eyou:prenext get='pre'}
|
||||
<a href="{$field.arcurl}" title="{$field.title}">{$field.title|html_msubstr=###,0,20}</a>
|
||||
{eyou:else /}
|
||||
没有了
|
||||
{/eyou:prenext}
|
||||
</p>
|
||||
<p>
|
||||
下一篇:
|
||||
{eyou:prenext get='next'}
|
||||
<a href="{$field.arcurl}" title="{$field.title}">{$field.title|html_msubstr=###,0,20}</a>
|
||||
{eyou:else /}
|
||||
没有了
|
||||
{/eyou:prenext}
|
||||
</p>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
<footer><span>{eyou:global name='web_copyright' /}</span></footer>
|
||||
</body>
|
||||
</html>
|
||||
1
src/data/schema/.htaccess
Normal file
1
src/data/schema/.htaccess
Normal file
@@ -0,0 +1 @@
|
||||
deny from all
|
||||
201
src/data/schema/ey_ad.php
Normal file
201
src/data/schema/ey_ad.php
Normal file
@@ -0,0 +1,201 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'pid' =>
|
||||
array (
|
||||
'name' => 'pid',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'media_type' =>
|
||||
array (
|
||||
'name' => 'media_type',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(60)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'links' =>
|
||||
array (
|
||||
'name' => 'links',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'litpic' =>
|
||||
array (
|
||||
'name' => 'litpic',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'start_time' =>
|
||||
array (
|
||||
'name' => 'start_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'end_time' =>
|
||||
array (
|
||||
'name' => 'end_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'intro' =>
|
||||
array (
|
||||
'name' => 'intro',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'link_man' =>
|
||||
array (
|
||||
'name' => 'link_man',
|
||||
'type' => 'varchar(60)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'link_email' =>
|
||||
array (
|
||||
'name' => 'link_email',
|
||||
'type' => 'varchar(60)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'link_phone' =>
|
||||
array (
|
||||
'name' => 'link_phone',
|
||||
'type' => 'varchar(60)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'click' =>
|
||||
array (
|
||||
'name' => 'click',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'bgcolor' =>
|
||||
array (
|
||||
'name' => 'bgcolor',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'target' =>
|
||||
array (
|
||||
'name' => 'target',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'admin_id' =>
|
||||
array (
|
||||
'name' => 'admin_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
111
src/data/schema/ey_ad_position.php
Normal file
111
src/data/schema/ey_ad_position.php
Normal file
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(60)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'type' =>
|
||||
array (
|
||||
'name' => 'type',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'width' =>
|
||||
array (
|
||||
'name' => 'width',
|
||||
'type' => 'smallint(5) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'height' =>
|
||||
array (
|
||||
'name' => 'height',
|
||||
'type' => 'smallint(5) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'intro' =>
|
||||
array (
|
||||
'name' => 'intro',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'admin_id' =>
|
||||
array (
|
||||
'name' => 'admin_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
174
src/data/schema/ey_admin.php
Normal file
174
src/data/schema/ey_admin.php
Normal file
@@ -0,0 +1,174 @@
|
||||
<?php
|
||||
return array (
|
||||
'admin_id' =>
|
||||
array (
|
||||
'name' => 'admin_id',
|
||||
'type' => 'smallint(5) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'user_name' =>
|
||||
array (
|
||||
'name' => 'user_name',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pen_name' =>
|
||||
array (
|
||||
'name' => 'pen_name',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'true_name' =>
|
||||
array (
|
||||
'name' => 'true_name',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'mobile' =>
|
||||
array (
|
||||
'name' => 'mobile',
|
||||
'type' => 'varchar(11)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'email' =>
|
||||
array (
|
||||
'name' => 'email',
|
||||
'type' => 'varchar(60)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'password' =>
|
||||
array (
|
||||
'name' => 'password',
|
||||
'type' => 'varchar(32)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'head_pic' =>
|
||||
array (
|
||||
'name' => 'head_pic',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'last_login' =>
|
||||
array (
|
||||
'name' => 'last_login',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'last_ip' =>
|
||||
array (
|
||||
'name' => 'last_ip',
|
||||
'type' => 'varchar(15)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'login_cnt' =>
|
||||
array (
|
||||
'name' => 'login_cnt',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'session_id' =>
|
||||
array (
|
||||
'name' => 'session_id',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'parent_id' =>
|
||||
array (
|
||||
'name' => 'parent_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'role_id' =>
|
||||
array (
|
||||
'name' => 'role_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '-1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'mark_lang' =>
|
||||
array (
|
||||
'name' => 'mark_lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'syn_users_id' =>
|
||||
array (
|
||||
'name' => 'syn_users_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
57
src/data/schema/ey_admin_log.php
Normal file
57
src/data/schema/ey_admin_log.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
return array (
|
||||
'log_id' =>
|
||||
array (
|
||||
'name' => 'log_id',
|
||||
'type' => 'bigint(16) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'admin_id' =>
|
||||
array (
|
||||
'name' => 'admin_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '-1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'log_info' =>
|
||||
array (
|
||||
'name' => 'log_info',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'log_ip' =>
|
||||
array (
|
||||
'name' => 'log_ip',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'log_url' =>
|
||||
array (
|
||||
'name' => 'log_url',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'log_time' =>
|
||||
array (
|
||||
'name' => 'log_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
408
src/data/schema/ey_archives.php
Normal file
408
src/data/schema/ey_archives.php
Normal file
@@ -0,0 +1,408 @@
|
||||
<?php
|
||||
return array (
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'typeid' =>
|
||||
array (
|
||||
'name' => 'typeid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'channel' =>
|
||||
array (
|
||||
'name' => 'channel',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_b' =>
|
||||
array (
|
||||
'name' => 'is_b',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'litpic' =>
|
||||
array (
|
||||
'name' => 'litpic',
|
||||
'type' => 'varchar(250)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_head' =>
|
||||
array (
|
||||
'name' => 'is_head',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_special' =>
|
||||
array (
|
||||
'name' => 'is_special',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_top' =>
|
||||
array (
|
||||
'name' => 'is_top',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_recom' =>
|
||||
array (
|
||||
'name' => 'is_recom',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_jump' =>
|
||||
array (
|
||||
'name' => 'is_jump',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_litpic' =>
|
||||
array (
|
||||
'name' => 'is_litpic',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_roll' =>
|
||||
array (
|
||||
'name' => 'is_roll',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_slide' =>
|
||||
array (
|
||||
'name' => 'is_slide',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_diyattr' =>
|
||||
array (
|
||||
'name' => 'is_diyattr',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'author' =>
|
||||
array (
|
||||
'name' => 'author',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'click' =>
|
||||
array (
|
||||
'name' => 'click',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'arcrank' =>
|
||||
array (
|
||||
'name' => 'arcrank',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'jumplinks' =>
|
||||
array (
|
||||
'name' => 'jumplinks',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ismake' =>
|
||||
array (
|
||||
'name' => 'ismake',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'seo_title' =>
|
||||
array (
|
||||
'name' => 'seo_title',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'seo_keywords' =>
|
||||
array (
|
||||
'name' => 'seo_keywords',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'seo_description' =>
|
||||
array (
|
||||
'name' => 'seo_description',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attrlist_id' =>
|
||||
array (
|
||||
'name' => 'attrlist_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_price' =>
|
||||
array (
|
||||
'name' => 'users_price',
|
||||
'type' => 'decimal(10,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_free' =>
|
||||
array (
|
||||
'name' => 'users_free',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'old_price' =>
|
||||
array (
|
||||
'name' => 'old_price',
|
||||
'type' => 'decimal(10,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sales_num' =>
|
||||
array (
|
||||
'name' => 'sales_num',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'stock_count' =>
|
||||
array (
|
||||
'name' => 'stock_count',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'stock_show' =>
|
||||
array (
|
||||
'name' => 'stock_show',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'prom_type' =>
|
||||
array (
|
||||
'name' => 'prom_type',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'tempview' =>
|
||||
array (
|
||||
'name' => 'tempview',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'admin_id' =>
|
||||
array (
|
||||
'name' => 'admin_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'arc_level_id' =>
|
||||
array (
|
||||
'name' => 'arc_level_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'del_method' =>
|
||||
array (
|
||||
'name' => 'del_method',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'joinaid' =>
|
||||
array (
|
||||
'name' => 'joinaid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'downcount' =>
|
||||
array (
|
||||
'name' => 'downcount',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'htmlfilename' =>
|
||||
array (
|
||||
'name' => 'htmlfilename',
|
||||
'type' => 'varchar(250)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
84
src/data/schema/ey_archives_flag.php
Normal file
84
src/data/schema/ey_archives_flag.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'flag_name' =>
|
||||
array (
|
||||
'name' => 'flag_name',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'flag_attr' =>
|
||||
array (
|
||||
'name' => 'flag_attr',
|
||||
'type' => 'varchar(10)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'flag_fieldname' =>
|
||||
array (
|
||||
'name' => 'flag_fieldname',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
111
src/data/schema/ey_arcmulti.php
Normal file
111
src/data/schema/ey_arcmulti.php
Normal file
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'mediumint(8) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'tagid' =>
|
||||
array (
|
||||
'name' => 'tagid',
|
||||
'type' => 'varchar(60)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'tagname' =>
|
||||
array (
|
||||
'name' => 'tagname',
|
||||
'type' => 'varchar(60)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'innertext' =>
|
||||
array (
|
||||
'name' => 'innertext',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pagesize' =>
|
||||
array (
|
||||
'name' => 'pagesize',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'querysql' =>
|
||||
array (
|
||||
'name' => 'querysql',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ordersql' =>
|
||||
array (
|
||||
'name' => 'ordersql',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'addfieldsSql' =>
|
||||
array (
|
||||
'name' => 'addfieldsSql',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'addtableName' =>
|
||||
array (
|
||||
'name' => 'addtableName',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attstr' =>
|
||||
array (
|
||||
'name' => 'attstr',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
57
src/data/schema/ey_arcrank.php
Normal file
57
src/data/schema/ey_arcrank.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'smallint(5) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'rank' =>
|
||||
array (
|
||||
'name' => 'rank',
|
||||
'type' => 'smallint(6)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'char(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
264
src/data/schema/ey_arctype.php
Normal file
264
src/data/schema/ey_arctype.php
Normal file
@@ -0,0 +1,264 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'channeltype' =>
|
||||
array (
|
||||
'name' => 'channeltype',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'current_channel' =>
|
||||
array (
|
||||
'name' => 'current_channel',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'parent_id' =>
|
||||
array (
|
||||
'name' => 'parent_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'topid' =>
|
||||
array (
|
||||
'name' => 'topid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'typename' =>
|
||||
array (
|
||||
'name' => 'typename',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'dirname' =>
|
||||
array (
|
||||
'name' => 'dirname',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'dirpath' =>
|
||||
array (
|
||||
'name' => 'dirpath',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'englist_name' =>
|
||||
array (
|
||||
'name' => 'englist_name',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'grade' =>
|
||||
array (
|
||||
'name' => 'grade',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'typelink' =>
|
||||
array (
|
||||
'name' => 'typelink',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'litpic' =>
|
||||
array (
|
||||
'name' => 'litpic',
|
||||
'type' => 'varchar(250)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'templist' =>
|
||||
array (
|
||||
'name' => 'templist',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'tempview' =>
|
||||
array (
|
||||
'name' => 'tempview',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'seo_title' =>
|
||||
array (
|
||||
'name' => 'seo_title',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'seo_keywords' =>
|
||||
array (
|
||||
'name' => 'seo_keywords',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'seo_description' =>
|
||||
array (
|
||||
'name' => 'seo_description',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_hidden' =>
|
||||
array (
|
||||
'name' => 'is_hidden',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_part' =>
|
||||
array (
|
||||
'name' => 'is_part',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'admin_id' =>
|
||||
array (
|
||||
'name' => 'admin_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'del_method' =>
|
||||
array (
|
||||
'name' => 'del_method',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_release' =>
|
||||
array (
|
||||
'name' => 'is_release',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'weapp_code' =>
|
||||
array (
|
||||
'name' => 'weapp_code',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
48
src/data/schema/ey_article_content.php
Normal file
48
src/data/schema/ey_article_content.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'content' =>
|
||||
array (
|
||||
'name' => 'content',
|
||||
'type' => 'longtext',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
183
src/data/schema/ey_ask.php
Normal file
183
src/data/schema/ey_ask.php
Normal file
@@ -0,0 +1,183 @@
|
||||
<?php
|
||||
return array (
|
||||
'ask_id' =>
|
||||
array (
|
||||
'name' => 'ask_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'type_id' =>
|
||||
array (
|
||||
'name' => 'type_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ask_title' =>
|
||||
array (
|
||||
'name' => 'ask_title',
|
||||
'type' => 'varchar(80)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_recom' =>
|
||||
array (
|
||||
'name' => 'is_recom',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'click' =>
|
||||
array (
|
||||
'name' => 'click',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'replies' =>
|
||||
array (
|
||||
'name' => 'replies',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'content' =>
|
||||
array (
|
||||
'name' => 'content',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'url' =>
|
||||
array (
|
||||
'name' => 'url',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_ip' =>
|
||||
array (
|
||||
'name' => 'users_ip',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_review' =>
|
||||
array (
|
||||
'name' => 'is_review',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'follow' =>
|
||||
array (
|
||||
'name' => 'follow',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'solve_time' =>
|
||||
array (
|
||||
'name' => 'solve_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'bestanswer_id' =>
|
||||
array (
|
||||
'name' => 'bestanswer_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '100',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'money' =>
|
||||
array (
|
||||
'name' => 'money',
|
||||
'type' => 'decimal(8,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
156
src/data/schema/ey_ask_answer.php
Normal file
156
src/data/schema/ey_ask_answer.php
Normal file
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
return array (
|
||||
'answer_id' =>
|
||||
array (
|
||||
'name' => 'answer_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'ask_id' =>
|
||||
array (
|
||||
'name' => 'ask_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_bestanswer' =>
|
||||
array (
|
||||
'name' => 'is_bestanswer',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_review' =>
|
||||
array (
|
||||
'name' => 'is_review',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'type_id' =>
|
||||
array (
|
||||
'name' => 'type_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'username' =>
|
||||
array (
|
||||
'name' => 'username',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'click_like' =>
|
||||
array (
|
||||
'name' => 'click_like',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_ip' =>
|
||||
array (
|
||||
'name' => 'users_ip',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'content' =>
|
||||
array (
|
||||
'name' => 'content',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ifcheck' =>
|
||||
array (
|
||||
'name' => 'ifcheck',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'answer_pid' =>
|
||||
array (
|
||||
'name' => 'answer_pid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'at_users_id' =>
|
||||
array (
|
||||
'name' => 'at_users_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'at_answer_id' =>
|
||||
array (
|
||||
'name' => 'at_answer_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
75
src/data/schema/ey_ask_answer_like.php
Normal file
75
src/data/schema/ey_ask_answer_like.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
return array (
|
||||
'like_id' =>
|
||||
array (
|
||||
'name' => 'like_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'ask_id' =>
|
||||
array (
|
||||
'name' => 'ask_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'answer_id' =>
|
||||
array (
|
||||
'name' => 'answer_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'click_like' =>
|
||||
array (
|
||||
'name' => 'click_like',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_ip' =>
|
||||
array (
|
||||
'name' => 'users_ip',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
39
src/data/schema/ey_ask_score_level.php
Normal file
39
src/data/schema/ey_ask_score_level.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'varchar(55)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'min' =>
|
||||
array (
|
||||
'name' => 'min',
|
||||
'type' => 'mediumint(8)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'max' =>
|
||||
array (
|
||||
'name' => 'max',
|
||||
'type' => 'mediumint(8)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
84
src/data/schema/ey_ask_type.php
Normal file
84
src/data/schema/ey_ask_type.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
return array (
|
||||
'type_id' =>
|
||||
array (
|
||||
'name' => 'type_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'type_name' =>
|
||||
array (
|
||||
'name' => 'type_name',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'parent_id' =>
|
||||
array (
|
||||
'name' => 'parent_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'seo_title' =>
|
||||
array (
|
||||
'name' => 'seo_title',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'seo_keywords' =>
|
||||
array (
|
||||
'name' => 'seo_keywords',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'seo_description' =>
|
||||
array (
|
||||
'name' => 'seo_description',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '100',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
156
src/data/schema/ey_auth_role.php
Normal file
156
src/data/schema/ey_auth_role.php
Normal file
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pid' =>
|
||||
array (
|
||||
'name' => 'pid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'remark' =>
|
||||
array (
|
||||
'name' => 'remark',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'grade' =>
|
||||
array (
|
||||
'name' => 'grade',
|
||||
'type' => 'smallint(5) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'language' =>
|
||||
array (
|
||||
'name' => 'language',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'online_update' =>
|
||||
array (
|
||||
'name' => 'online_update',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'only_oneself' =>
|
||||
array (
|
||||
'name' => 'only_oneself',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'check_oneself' =>
|
||||
array (
|
||||
'name' => 'check_oneself',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'cud' =>
|
||||
array (
|
||||
'name' => 'cud',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'permission' =>
|
||||
array (
|
||||
'name' => 'permission',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'built_in' =>
|
||||
array (
|
||||
'name' => 'built_in',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'admin_id' =>
|
||||
array (
|
||||
'name' => 'admin_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
48
src/data/schema/ey_casevideo.php
Normal file
48
src/data/schema/ey_casevideo.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'video' =>
|
||||
array (
|
||||
'name' => 'video',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'createtime' =>
|
||||
array (
|
||||
'name' => 'createtime',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'admin_id' =>
|
||||
array (
|
||||
'name' => 'admin_id',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
192
src/data/schema/ey_channelfield.php
Normal file
192
src/data/schema/ey_channelfield.php
Normal file
@@ -0,0 +1,192 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'varchar(32)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'channel_id' =>
|
||||
array (
|
||||
'name' => 'channel_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(32)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'dtype' =>
|
||||
array (
|
||||
'name' => 'dtype',
|
||||
'type' => 'varchar(32)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'define' =>
|
||||
array (
|
||||
'name' => 'define',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'maxlength' =>
|
||||
array (
|
||||
'name' => 'maxlength',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'dfvalue' =>
|
||||
array (
|
||||
'name' => 'dfvalue',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'dfvalue_unit' =>
|
||||
array (
|
||||
'name' => 'dfvalue_unit',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'remark' =>
|
||||
array (
|
||||
'name' => 'remark',
|
||||
'type' => 'varchar(256)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_screening' =>
|
||||
array (
|
||||
'name' => 'is_screening',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_release' =>
|
||||
array (
|
||||
'name' => 'is_release',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ifeditable' =>
|
||||
array (
|
||||
'name' => 'ifeditable',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ifrequire' =>
|
||||
array (
|
||||
'name' => 'ifrequire',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ifsystem' =>
|
||||
array (
|
||||
'name' => 'ifsystem',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ifmain' =>
|
||||
array (
|
||||
'name' => 'ifmain',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ifcontrol' =>
|
||||
array (
|
||||
'name' => 'ifcontrol',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(5)',
|
||||
'notnull' => false,
|
||||
'default' => '100',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
48
src/data/schema/ey_channelfield_bind.php
Normal file
48
src/data/schema/ey_channelfield_bind.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'typeid' =>
|
||||
array (
|
||||
'name' => 'typeid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'field_id' =>
|
||||
array (
|
||||
'name' => 'field_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
57
src/data/schema/ey_channelfield_log.php
Normal file
57
src/data/schema/ey_channelfield_log.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'channel_id' =>
|
||||
array (
|
||||
'name' => 'channel_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'dtype' =>
|
||||
array (
|
||||
'name' => 'dtype',
|
||||
'type' => 'varchar(32)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
147
src/data/schema/ey_channeltype.php
Normal file
147
src/data/schema/ey_channeltype.php
Normal file
@@ -0,0 +1,147 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'nid' =>
|
||||
array (
|
||||
'name' => 'nid',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ntitle' =>
|
||||
array (
|
||||
'name' => 'ntitle',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'table' =>
|
||||
array (
|
||||
'name' => 'table',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ctl_name' =>
|
||||
array (
|
||||
'name' => 'ctl_name',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ifsystem' =>
|
||||
array (
|
||||
'name' => 'ifsystem',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_repeat_title' =>
|
||||
array (
|
||||
'name' => 'is_repeat_title',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_release' =>
|
||||
array (
|
||||
'name' => 'is_release',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_litpic_users_release' =>
|
||||
array (
|
||||
'name' => 'is_litpic_users_release',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'data' =>
|
||||
array (
|
||||
'name' => 'data',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'smallint(6)',
|
||||
'notnull' => false,
|
||||
'default' => '50',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
48
src/data/schema/ey_common_pic.php
Normal file
48
src/data/schema/ey_common_pic.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'pic_path' =>
|
||||
array (
|
||||
'name' => 'pic_path',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
75
src/data/schema/ey_config.php
Normal file
75
src/data/schema/ey_config.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'value' =>
|
||||
array (
|
||||
'name' => 'value',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'inc_type' =>
|
||||
array (
|
||||
'name' => 'inc_type',
|
||||
'type' => 'varchar(64)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'desc' =>
|
||||
array (
|
||||
'name' => 'desc',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
75
src/data/schema/ey_config_attribute.php
Normal file
75
src/data/schema/ey_config_attribute.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
return array (
|
||||
'attr_id' =>
|
||||
array (
|
||||
'name' => 'attr_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'inc_type' =>
|
||||
array (
|
||||
'name' => 'inc_type',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_name' =>
|
||||
array (
|
||||
'name' => 'attr_name',
|
||||
'type' => 'varchar(60)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_var_name' =>
|
||||
array (
|
||||
'name' => 'attr_var_name',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_input_type' =>
|
||||
array (
|
||||
'name' => 'attr_input_type',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
111
src/data/schema/ey_diyminipro.php
Normal file
111
src/data/schema/ey_diyminipro.php
Normal file
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
return array (
|
||||
'mini_id' =>
|
||||
array (
|
||||
'name' => 'mini_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'categoryid' =>
|
||||
array (
|
||||
'name' => 'categoryid',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'litpic' =>
|
||||
array (
|
||||
'name' => 'litpic',
|
||||
'type' => 'varchar(250)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'component' =>
|
||||
array (
|
||||
'name' => 'component',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'cloud_id' =>
|
||||
array (
|
||||
'name' => 'cloud_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'config' =>
|
||||
array (
|
||||
'name' => 'config',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(10)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
111
src/data/schema/ey_diyminipro_page.php
Normal file
111
src/data/schema/ey_diyminipro_page.php
Normal file
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
return array (
|
||||
'page_id' =>
|
||||
array (
|
||||
'name' => 'page_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'page_type' =>
|
||||
array (
|
||||
'name' => 'page_type',
|
||||
'type' => 'tinyint(3)',
|
||||
'notnull' => false,
|
||||
'default' => '-1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'page_name' =>
|
||||
array (
|
||||
'name' => 'page_name',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'page_data' =>
|
||||
array (
|
||||
'name' => 'page_data',
|
||||
'type' => 'longtext',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'mini_id' =>
|
||||
array (
|
||||
'name' => 'mini_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_home' =>
|
||||
array (
|
||||
'name' => 'is_home',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_system' =>
|
||||
array (
|
||||
'name' => 'is_system',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_show' =>
|
||||
array (
|
||||
'name' => 'is_show',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(3) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(10)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_diyminipro_setting.php
Normal file
66
src/data/schema/ey_diyminipro_setting.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'varchar(60)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'value' =>
|
||||
array (
|
||||
'name' => 'value',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'mini_id' =>
|
||||
array (
|
||||
'name' => 'mini_id',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(10)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
75
src/data/schema/ey_download_attr_field.php
Normal file
75
src/data/schema/ey_download_attr_field.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
return array (
|
||||
'field_id' =>
|
||||
array (
|
||||
'name' => 'field_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'field_name' =>
|
||||
array (
|
||||
'name' => 'field_name',
|
||||
'type' => 'varchar(32)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'field_title' =>
|
||||
array (
|
||||
'name' => 'field_title',
|
||||
'type' => 'varchar(32)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'field_use' =>
|
||||
array (
|
||||
'name' => 'field_use',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'smallint(5)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
48
src/data/schema/ey_download_content.php
Normal file
48
src/data/schema/ey_download_content.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'content' =>
|
||||
array (
|
||||
'name' => 'content',
|
||||
'type' => 'longtext',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
156
src/data/schema/ey_download_file.php
Normal file
156
src/data/schema/ey_download_file.php
Normal file
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
return array (
|
||||
'file_id' =>
|
||||
array (
|
||||
'name' => 'file_id',
|
||||
'type' => 'mediumint(8) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'mediumint(8) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_url' =>
|
||||
array (
|
||||
'name' => 'file_url',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'extract_code' =>
|
||||
array (
|
||||
'name' => 'extract_code',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_size' =>
|
||||
array (
|
||||
'name' => 'file_size',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_ext' =>
|
||||
array (
|
||||
'name' => 'file_ext',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_name' =>
|
||||
array (
|
||||
'name' => 'file_name',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'server_name' =>
|
||||
array (
|
||||
'name' => 'server_name',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_mime' =>
|
||||
array (
|
||||
'name' => 'file_mime',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'uhash' =>
|
||||
array (
|
||||
'name' => 'uhash',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'md5file' =>
|
||||
array (
|
||||
'name' => 'md5file',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_remote' =>
|
||||
array (
|
||||
'name' => 'is_remote',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'downcount' =>
|
||||
array (
|
||||
'name' => 'downcount',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'smallint(5)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_download_log.php
Normal file
66
src/data/schema/ey_download_log.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'log_id' =>
|
||||
array (
|
||||
'name' => 'log_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_id' =>
|
||||
array (
|
||||
'name' => 'file_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ip' =>
|
||||
array (
|
||||
'name' => 'ip',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
57
src/data/schema/ey_field_type.php
Normal file
57
src/data/schema/ey_field_type.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
return array (
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'varchar(32)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => true,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(64)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ifoption' =>
|
||||
array (
|
||||
'name' => 'ifoption',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
84
src/data/schema/ey_guestbook.php
Normal file
84
src/data/schema/ey_guestbook.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
return array (
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'typeid' =>
|
||||
array (
|
||||
'name' => 'typeid',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'channel' =>
|
||||
array (
|
||||
'name' => 'channel',
|
||||
'type' => 'smallint(5)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'md5data' =>
|
||||
array (
|
||||
'name' => 'md5data',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ip' =>
|
||||
array (
|
||||
'name' => 'ip',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_read' =>
|
||||
array (
|
||||
'name' => 'is_read',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_guestbook_attr.php
Normal file
66
src/data/schema/ey_guestbook_attr.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'guest_attr_id' =>
|
||||
array (
|
||||
'name' => 'guest_attr_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'mediumint(8) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_id' =>
|
||||
array (
|
||||
'name' => 'attr_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_value' =>
|
||||
array (
|
||||
'name' => 'attr_value',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
120
src/data/schema/ey_guestbook_attribute.php
Normal file
120
src/data/schema/ey_guestbook_attribute.php
Normal file
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
return array (
|
||||
'attr_id' =>
|
||||
array (
|
||||
'name' => 'attr_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'attr_name' =>
|
||||
array (
|
||||
'name' => 'attr_name',
|
||||
'type' => 'varchar(60)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'typeid' =>
|
||||
array (
|
||||
'name' => 'typeid',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_input_type' =>
|
||||
array (
|
||||
'name' => 'attr_input_type',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_values' =>
|
||||
array (
|
||||
'name' => 'attr_values',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_showlist' =>
|
||||
array (
|
||||
'name' => 'is_showlist',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'required' =>
|
||||
array (
|
||||
'name' => 'required',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'validate_type' =>
|
||||
array (
|
||||
'name' => 'validate_type',
|
||||
'type' => 'smallint(5)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_hooks.php
Normal file
66
src/data/schema/ey_hooks.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'description' =>
|
||||
array (
|
||||
'name' => 'description',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'module' =>
|
||||
array (
|
||||
'name' => 'module',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
48
src/data/schema/ey_images_content.php
Normal file
48
src/data/schema/ey_images_content.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'content' =>
|
||||
array (
|
||||
'name' => 'content',
|
||||
'type' => 'longtext',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
111
src/data/schema/ey_images_upload.php
Normal file
111
src/data/schema/ey_images_upload.php
Normal file
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
return array (
|
||||
'img_id' =>
|
||||
array (
|
||||
'name' => 'img_id',
|
||||
'type' => 'mediumint(8) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'mediumint(8) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'image_url' =>
|
||||
array (
|
||||
'name' => 'image_url',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'intro' =>
|
||||
array (
|
||||
'name' => 'intro',
|
||||
'type' => 'varchar(2000)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'width' =>
|
||||
array (
|
||||
'name' => 'width',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'height' =>
|
||||
array (
|
||||
'name' => 'height',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'filesize' =>
|
||||
array (
|
||||
'name' => 'filesize',
|
||||
'type' => 'mediumint(8) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'mime' =>
|
||||
array (
|
||||
'name' => 'mime',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'smallint(5)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
111
src/data/schema/ey_language.php
Normal file
111
src/data/schema/ey_language.php
Normal file
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'mark' =>
|
||||
array (
|
||||
'name' => 'mark',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'url' =>
|
||||
array (
|
||||
'name' => 'url',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'target' =>
|
||||
array (
|
||||
'name' => 'target',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_home_default' =>
|
||||
array (
|
||||
'name' => 'is_home_default',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_admin_default' =>
|
||||
array (
|
||||
'name' => 'is_admin_default',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'syn_pack_id' =>
|
||||
array (
|
||||
'name' => 'syn_pack_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_language_attr.php
Normal file
66
src/data/schema/ey_language_attr.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'attr_name' =>
|
||||
array (
|
||||
'name' => 'attr_name',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_value' =>
|
||||
array (
|
||||
'name' => 'attr_value',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_group' =>
|
||||
array (
|
||||
'name' => 'attr_group',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_language_attribute.php
Normal file
66
src/data/schema/ey_language_attribute.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'attr_id' =>
|
||||
array (
|
||||
'name' => 'attr_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'attr_title' =>
|
||||
array (
|
||||
'name' => 'attr_title',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_name' =>
|
||||
array (
|
||||
'name' => 'attr_name',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_group' =>
|
||||
array (
|
||||
'name' => 'attr_group',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
75
src/data/schema/ey_language_mark.php
Normal file
75
src/data/schema/ey_language_mark.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'cn_title' =>
|
||||
array (
|
||||
'name' => 'cn_title',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'mark' =>
|
||||
array (
|
||||
'name' => 'mark',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pinyin' =>
|
||||
array (
|
||||
'name' => 'pinyin',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
75
src/data/schema/ey_language_pack.php
Normal file
75
src/data/schema/ey_language_pack.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'value' =>
|
||||
array (
|
||||
'name' => 'value',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_syn' =>
|
||||
array (
|
||||
'name' => 'is_syn',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
138
src/data/schema/ey_links.php
Normal file
138
src/data/schema/ey_links.php
Normal file
@@ -0,0 +1,138 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'typeid' =>
|
||||
array (
|
||||
'name' => 'typeid',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'groupid' =>
|
||||
array (
|
||||
'name' => 'groupid',
|
||||
'type' => 'tinyint(2) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'url' =>
|
||||
array (
|
||||
'name' => 'url',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'logo' =>
|
||||
array (
|
||||
'name' => 'logo',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'target' =>
|
||||
array (
|
||||
'name' => 'target',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'email' =>
|
||||
array (
|
||||
'name' => 'email',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'intro' =>
|
||||
array (
|
||||
'name' => 'intro',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'delete_time' =>
|
||||
array (
|
||||
'name' => 'delete_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_links_group.php
Normal file
66
src/data/schema/ey_links_group.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'group_name' =>
|
||||
array (
|
||||
'name' => 'group_name',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(2) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
84
src/data/schema/ey_media_content.php
Normal file
84
src/data/schema/ey_media_content.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'content' =>
|
||||
array (
|
||||
'name' => 'content',
|
||||
'type' => 'longtext',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'courseware' =>
|
||||
array (
|
||||
'name' => 'courseware',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'courseware_free' =>
|
||||
array (
|
||||
'name' => 'courseware_free',
|
||||
'type' => 'enum(\'免费\',\'收费\')',
|
||||
'notnull' => false,
|
||||
'default' => '免费',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'total_duration' =>
|
||||
array (
|
||||
'name' => 'total_duration',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'total_video' =>
|
||||
array (
|
||||
'name' => 'total_video',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
165
src/data/schema/ey_media_file.php
Normal file
165
src/data/schema/ey_media_file.php
Normal file
@@ -0,0 +1,165 @@
|
||||
<?php
|
||||
return array (
|
||||
'file_id' =>
|
||||
array (
|
||||
'name' => 'file_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_name' =>
|
||||
array (
|
||||
'name' => 'file_name',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_title' =>
|
||||
array (
|
||||
'name' => 'file_title',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_url' =>
|
||||
array (
|
||||
'name' => 'file_url',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_time' =>
|
||||
array (
|
||||
'name' => 'file_time',
|
||||
'type' => 'int(8)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_ext' =>
|
||||
array (
|
||||
'name' => 'file_ext',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_size' =>
|
||||
array (
|
||||
'name' => 'file_size',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_mime' =>
|
||||
array (
|
||||
'name' => 'file_mime',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'uhash' =>
|
||||
array (
|
||||
'name' => 'uhash',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'md5file' =>
|
||||
array (
|
||||
'name' => 'md5file',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_remote' =>
|
||||
array (
|
||||
'name' => 'is_remote',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'playcount' =>
|
||||
array (
|
||||
'name' => 'playcount',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'gratis' =>
|
||||
array (
|
||||
'name' => 'gratis',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'smallint(5)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_media_log.php
Normal file
66
src/data/schema/ey_media_log.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'log_id' =>
|
||||
array (
|
||||
'name' => 'log_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_id' =>
|
||||
array (
|
||||
'name' => 'file_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ip' =>
|
||||
array (
|
||||
'name' => 'ip',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
147
src/data/schema/ey_media_order.php
Normal file
147
src/data/schema/ey_media_order.php
Normal file
@@ -0,0 +1,147 @@
|
||||
<?php
|
||||
return array (
|
||||
'order_id' =>
|
||||
array (
|
||||
'name' => 'order_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'order_code' =>
|
||||
array (
|
||||
'name' => 'order_code',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'mobile' =>
|
||||
array (
|
||||
'name' => 'mobile',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'order_status' =>
|
||||
array (
|
||||
'name' => 'order_status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'order_amount' =>
|
||||
array (
|
||||
'name' => 'order_amount',
|
||||
'type' => 'decimal(10,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pay_time' =>
|
||||
array (
|
||||
'name' => 'pay_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pay_name' =>
|
||||
array (
|
||||
'name' => 'pay_name',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'wechat_pay_type' =>
|
||||
array (
|
||||
'name' => 'wechat_pay_type',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pay_details' =>
|
||||
array (
|
||||
'name' => 'pay_details',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_id' =>
|
||||
array (
|
||||
'name' => 'product_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_name' =>
|
||||
array (
|
||||
'name' => 'product_name',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_litpic' =>
|
||||
array (
|
||||
'name' => 'product_litpic',
|
||||
'type' => 'varchar(500)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_media_play_record.php
Normal file
66
src/data/schema/ey_media_play_record.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'file_id' =>
|
||||
array (
|
||||
'name' => 'file_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'play_time' =>
|
||||
array (
|
||||
'name' => 'play_time',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
93
src/data/schema/ey_pay_api_config.php
Normal file
93
src/data/schema/ey_pay_api_config.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
return array (
|
||||
'pay_id' =>
|
||||
array (
|
||||
'name' => 'pay_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'pay_name' =>
|
||||
array (
|
||||
'name' => 'pay_name',
|
||||
'type' => 'varchar(64)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pay_mark' =>
|
||||
array (
|
||||
'name' => 'pay_mark',
|
||||
'type' => 'varchar(64)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pay_info' =>
|
||||
array (
|
||||
'name' => 'pay_info',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pay_terminal' =>
|
||||
array (
|
||||
'name' => 'pay_terminal',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'system_built' =>
|
||||
array (
|
||||
'name' => 'system_built',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_platform.php
Normal file
66
src/data/schema/ey_platform.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'logo' =>
|
||||
array (
|
||||
'name' => 'logo',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'desc' =>
|
||||
array (
|
||||
'name' => 'desc',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'createtime' =>
|
||||
array (
|
||||
'name' => 'createtime',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'admin_id' =>
|
||||
array (
|
||||
'name' => 'admin_id',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'link' =>
|
||||
array (
|
||||
'name' => 'link',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort' =>
|
||||
array (
|
||||
'name' => 'sort',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_product_attr.php
Normal file
66
src/data/schema/ey_product_attr.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'product_attr_id' =>
|
||||
array (
|
||||
'name' => 'product_attr_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'mediumint(8) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_id' =>
|
||||
array (
|
||||
'name' => 'attr_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_value' =>
|
||||
array (
|
||||
'name' => 'attr_value',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_price' =>
|
||||
array (
|
||||
'name' => 'attr_price',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
102
src/data/schema/ey_product_attribute.php
Normal file
102
src/data/schema/ey_product_attribute.php
Normal file
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
return array (
|
||||
'attr_id' =>
|
||||
array (
|
||||
'name' => 'attr_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'attr_name' =>
|
||||
array (
|
||||
'name' => 'attr_name',
|
||||
'type' => 'varchar(60)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'typeid' =>
|
||||
array (
|
||||
'name' => 'typeid',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_index' =>
|
||||
array (
|
||||
'name' => 'attr_index',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_input_type' =>
|
||||
array (
|
||||
'name' => 'attr_input_type',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'attr_values' =>
|
||||
array (
|
||||
'name' => 'attr_values',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
48
src/data/schema/ey_product_content.php
Normal file
48
src/data/schema/ey_product_content.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'content' =>
|
||||
array (
|
||||
'name' => 'content',
|
||||
'type' => 'longtext',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
111
src/data/schema/ey_product_img.php
Normal file
111
src/data/schema/ey_product_img.php
Normal file
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
return array (
|
||||
'img_id' =>
|
||||
array (
|
||||
'name' => 'img_id',
|
||||
'type' => 'mediumint(8) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'mediumint(8) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'image_url' =>
|
||||
array (
|
||||
'name' => 'image_url',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'intro' =>
|
||||
array (
|
||||
'name' => 'intro',
|
||||
'type' => 'varchar(2000)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'width' =>
|
||||
array (
|
||||
'name' => 'width',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'height' =>
|
||||
array (
|
||||
'name' => 'height',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'filesize' =>
|
||||
array (
|
||||
'name' => 'filesize',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'mime' =>
|
||||
array (
|
||||
'name' => 'mime',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'smallint(5)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
84
src/data/schema/ey_product_netdisk.php
Normal file
84
src/data/schema/ey_product_netdisk.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
return array (
|
||||
'nd_id' =>
|
||||
array (
|
||||
'name' => 'nd_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'netdisk_url' =>
|
||||
array (
|
||||
'name' => 'netdisk_url',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'netdisk_pwd' =>
|
||||
array (
|
||||
'name' => 'netdisk_pwd',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'unzip_pwd' =>
|
||||
array (
|
||||
'name' => 'unzip_pwd',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'text_content' =>
|
||||
array (
|
||||
'name' => 'text_content',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(10)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
93
src/data/schema/ey_product_spec_data.php
Normal file
93
src/data/schema/ey_product_spec_data.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
return array (
|
||||
'spec_id' =>
|
||||
array (
|
||||
'name' => 'spec_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'spec_mark_id' =>
|
||||
array (
|
||||
'name' => 'spec_mark_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'spec_name' =>
|
||||
array (
|
||||
'name' => 'spec_name',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'spec_value_id' =>
|
||||
array (
|
||||
'name' => 'spec_value_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'spec_value' =>
|
||||
array (
|
||||
'name' => 'spec_value',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'spec_is_select' =>
|
||||
array (
|
||||
'name' => 'spec_is_select',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
84
src/data/schema/ey_product_spec_preset.php
Normal file
84
src/data/schema/ey_product_spec_preset.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
return array (
|
||||
'preset_id' =>
|
||||
array (
|
||||
'name' => 'preset_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'preset_mark_id' =>
|
||||
array (
|
||||
'name' => 'preset_mark_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'preset_name' =>
|
||||
array (
|
||||
'name' => 'preset_name',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'preset_value' =>
|
||||
array (
|
||||
'name' => 'preset_value',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'spec_sync' =>
|
||||
array (
|
||||
'name' => 'spec_sync',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '100',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
120
src/data/schema/ey_product_spec_value.php
Normal file
120
src/data/schema/ey_product_spec_value.php
Normal file
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
return array (
|
||||
'value_id' =>
|
||||
array (
|
||||
'name' => 'value_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'spec_value_id' =>
|
||||
array (
|
||||
'name' => 'spec_value_id',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'spec_price' =>
|
||||
array (
|
||||
'name' => 'spec_price',
|
||||
'type' => 'decimal(10,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'spec_stock' =>
|
||||
array (
|
||||
'name' => 'spec_stock',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'spec_sales_num' =>
|
||||
array (
|
||||
'name' => 'spec_sales_num',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'seckill_price' =>
|
||||
array (
|
||||
'name' => 'seckill_price',
|
||||
'type' => 'decimal(10,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'seckill_stock' =>
|
||||
array (
|
||||
'name' => 'seckill_stock',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'seckill_sales_num' =>
|
||||
array (
|
||||
'name' => 'seckill_sales_num',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_seckill' =>
|
||||
array (
|
||||
'name' => 'is_seckill',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
84
src/data/schema/ey_project.php
Normal file
84
src/data/schema/ey_project.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'enterprise' =>
|
||||
array (
|
||||
'name' => 'enterprise',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'filing' =>
|
||||
array (
|
||||
'name' => 'filing',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sid' =>
|
||||
array (
|
||||
'name' => 'sid',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'limitationdate' =>
|
||||
array (
|
||||
'name' => 'limitationdate',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'qrcode' =>
|
||||
array (
|
||||
'name' => 'qrcode',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'createtime' =>
|
||||
array (
|
||||
'name' => 'createtime',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pwd' =>
|
||||
array (
|
||||
'name' => 'pwd',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
120
src/data/schema/ey_quickentry.php
Normal file
120
src/data/schema/ey_quickentry.php
Normal file
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'title' =>
|
||||
array (
|
||||
'name' => 'title',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'laytext' =>
|
||||
array (
|
||||
'name' => 'laytext',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'type' =>
|
||||
array (
|
||||
'name' => 'type',
|
||||
'type' => 'smallint(5)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'controller' =>
|
||||
array (
|
||||
'name' => 'controller',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'action' =>
|
||||
array (
|
||||
'name' => 'action',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'vars' =>
|
||||
array (
|
||||
'name' => 'vars',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'groups' =>
|
||||
array (
|
||||
'name' => 'groups',
|
||||
'type' => 'smallint(5)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'checked' =>
|
||||
array (
|
||||
'name' => 'checked',
|
||||
'type' => 'tinyint(4)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
102
src/data/schema/ey_recruit_content.php
Normal file
102
src/data/schema/ey_recruit_content.php
Normal file
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'gzdd' =>
|
||||
array (
|
||||
'name' => 'gzdd',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'xlyq' =>
|
||||
array (
|
||||
'name' => 'xlyq',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'xzdy' =>
|
||||
array (
|
||||
'name' => 'xzdy',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'gzxz' =>
|
||||
array (
|
||||
'name' => 'gzxz',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'gznx' =>
|
||||
array (
|
||||
'name' => 'gznx',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'zprs' =>
|
||||
array (
|
||||
'name' => 'zprs',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'nnxq' =>
|
||||
array (
|
||||
'name' => 'nnxq',
|
||||
'type' => 'longtext',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
48
src/data/schema/ey_region.php
Normal file
48
src/data/schema/ey_region.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'varchar(32)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'level' =>
|
||||
array (
|
||||
'name' => 'level',
|
||||
'type' => 'tinyint(4)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'parent_id' =>
|
||||
array (
|
||||
'name' => 'parent_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'initial' =>
|
||||
array (
|
||||
'name' => 'initial',
|
||||
'type' => 'varchar(5)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_search_word.php
Normal file
66
src/data/schema/ey_search_word.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'word' =>
|
||||
array (
|
||||
'name' => 'word',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'searchNum' =>
|
||||
array (
|
||||
'name' => 'searchNum',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
48
src/data/schema/ey_service.php
Normal file
48
src/data/schema/ey_service.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'centre' =>
|
||||
array (
|
||||
'name' => 'centre',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'createtime' =>
|
||||
array (
|
||||
'name' => 'createtime',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'qrcode' =>
|
||||
array (
|
||||
'name' => 'qrcode',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
57
src/data/schema/ey_setting.php
Normal file
57
src/data/schema/ey_setting.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'name' =>
|
||||
array (
|
||||
'name' => 'name',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'value' =>
|
||||
array (
|
||||
'name' => 'value',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'inc_type' =>
|
||||
array (
|
||||
'name' => 'inc_type',
|
||||
'type' => 'varchar(64)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_sharp_active.php
Normal file
66
src/data/schema/ey_sharp_active.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'active_id' =>
|
||||
array (
|
||||
'name' => 'active_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'active_date' =>
|
||||
array (
|
||||
'name' => 'active_date',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(3) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(3) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
84
src/data/schema/ey_sharp_active_goods.php
Normal file
84
src/data/schema/ey_sharp_active_goods.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
return array (
|
||||
'id' =>
|
||||
array (
|
||||
'name' => 'id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'active_id' =>
|
||||
array (
|
||||
'name' => 'active_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'active_time_id' =>
|
||||
array (
|
||||
'name' => 'active_time_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sharp_goods_id' =>
|
||||
array (
|
||||
'name' => 'sharp_goods_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sales_actual' =>
|
||||
array (
|
||||
'name' => 'sales_actual',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_sharp_active_time.php
Normal file
66
src/data/schema/ey_sharp_active_time.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'active_time_id' =>
|
||||
array (
|
||||
'name' => 'active_time_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'active_id' =>
|
||||
array (
|
||||
'name' => 'active_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'active_time' =>
|
||||
array (
|
||||
'name' => 'active_time',
|
||||
'type' => 'tinyint(3) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(3) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
120
src/data/schema/ey_sharp_goods.php
Normal file
120
src/data/schema/ey_sharp_goods.php
Normal file
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
return array (
|
||||
'sharp_goods_id' =>
|
||||
array (
|
||||
'name' => 'sharp_goods_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'aid' =>
|
||||
array (
|
||||
'name' => 'aid',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'limit' =>
|
||||
array (
|
||||
'name' => 'limit',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'seckill_stock' =>
|
||||
array (
|
||||
'name' => 'seckill_stock',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'seckill_price' =>
|
||||
array (
|
||||
'name' => 'seckill_price',
|
||||
'type' => 'decimal(10,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sales' =>
|
||||
array (
|
||||
'name' => 'sales',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '100',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(3) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(3) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_sku' =>
|
||||
array (
|
||||
'name' => 'is_sku',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
39
src/data/schema/ey_sharp_setting.php
Normal file
39
src/data/schema/ey_sharp_setting.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
return array (
|
||||
'key' =>
|
||||
array (
|
||||
'name' => 'key',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => true,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'describe' =>
|
||||
array (
|
||||
'name' => 'describe',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'values' =>
|
||||
array (
|
||||
'name' => 'values',
|
||||
'type' => 'mediumtext',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
129
src/data/schema/ey_shop_address.php
Normal file
129
src/data/schema/ey_shop_address.php
Normal file
@@ -0,0 +1,129 @@
|
||||
<?php
|
||||
return array (
|
||||
'addr_id' =>
|
||||
array (
|
||||
'name' => 'addr_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'consignee' =>
|
||||
array (
|
||||
'name' => 'consignee',
|
||||
'type' => 'varchar(60)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'country' =>
|
||||
array (
|
||||
'name' => 'country',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'province' =>
|
||||
array (
|
||||
'name' => 'province',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'city' =>
|
||||
array (
|
||||
'name' => 'city',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'district' =>
|
||||
array (
|
||||
'name' => 'district',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'address' =>
|
||||
array (
|
||||
'name' => 'address',
|
||||
'type' => 'varchar(500)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'zipcode' =>
|
||||
array (
|
||||
'name' => 'zipcode',
|
||||
'type' => 'varchar(10)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'mobile' =>
|
||||
array (
|
||||
'name' => 'mobile',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_default' =>
|
||||
array (
|
||||
'name' => 'is_default',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
84
src/data/schema/ey_shop_cart.php
Normal file
84
src/data/schema/ey_shop_cart.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
return array (
|
||||
'cart_id' =>
|
||||
array (
|
||||
'name' => 'cart_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_id' =>
|
||||
array (
|
||||
'name' => 'product_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_num' =>
|
||||
array (
|
||||
'name' => 'product_num',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'spec_value_id' =>
|
||||
array (
|
||||
'name' => 'spec_value_id',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'selected' =>
|
||||
array (
|
||||
'name' => 'selected',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
228
src/data/schema/ey_shop_coupon.php
Normal file
228
src/data/schema/ey_shop_coupon.php
Normal file
@@ -0,0 +1,228 @@
|
||||
<?php
|
||||
return array (
|
||||
'coupon_id' =>
|
||||
array (
|
||||
'name' => 'coupon_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'coupon_code' =>
|
||||
array (
|
||||
'name' => 'coupon_code',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'coupon_name' =>
|
||||
array (
|
||||
'name' => 'coupon_name',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'coupon_color' =>
|
||||
array (
|
||||
'name' => 'coupon_color',
|
||||
'type' => 'varchar(25)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'coupon_form' =>
|
||||
array (
|
||||
'name' => 'coupon_form',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'coupon_type' =>
|
||||
array (
|
||||
'name' => 'coupon_type',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_id' =>
|
||||
array (
|
||||
'name' => 'product_id',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'arctype_id' =>
|
||||
array (
|
||||
'name' => 'arctype_id',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'coupon_price' =>
|
||||
array (
|
||||
'name' => 'coupon_price',
|
||||
'type' => 'decimal(10,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'conditions_use' =>
|
||||
array (
|
||||
'name' => 'conditions_use',
|
||||
'type' => 'varchar(10)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'coupon_stock' =>
|
||||
array (
|
||||
'name' => 'coupon_stock',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'redeem_points' =>
|
||||
array (
|
||||
'name' => 'redeem_points',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'redeem_authority' =>
|
||||
array (
|
||||
'name' => 'redeem_authority',
|
||||
'type' => 'varchar(10)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'valid_days' =>
|
||||
array (
|
||||
'name' => 'valid_days',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'start_date' =>
|
||||
array (
|
||||
'name' => 'start_date',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'end_date' =>
|
||||
array (
|
||||
'name' => 'end_date',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '100',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'use_type' =>
|
||||
array (
|
||||
'name' => 'use_type',
|
||||
'type' => 'int(1)',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'use_start_time' =>
|
||||
array (
|
||||
'name' => 'use_start_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'use_end_time' =>
|
||||
array (
|
||||
'name' => 'use_end_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_del' =>
|
||||
array (
|
||||
'name' => 'is_del',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
120
src/data/schema/ey_shop_coupon_use.php
Normal file
120
src/data/schema/ey_shop_coupon_use.php
Normal file
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
return array (
|
||||
'use_id' =>
|
||||
array (
|
||||
'name' => 'use_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'coupon_id' =>
|
||||
array (
|
||||
'name' => 'coupon_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'coupon_code' =>
|
||||
array (
|
||||
'name' => 'coupon_code',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'get_ip' =>
|
||||
array (
|
||||
'name' => 'get_ip',
|
||||
'type' => 'varchar(15)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'get_time' =>
|
||||
array (
|
||||
'name' => 'get_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'use_status' =>
|
||||
array (
|
||||
'name' => 'use_status',
|
||||
'type' => 'tinyint(4) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'use_time' =>
|
||||
array (
|
||||
'name' => 'use_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'start_time' =>
|
||||
array (
|
||||
'name' => 'start_time',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'end_time' =>
|
||||
array (
|
||||
'name' => 'end_time',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
66
src/data/schema/ey_shop_express.php
Normal file
66
src/data/schema/ey_shop_express.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
return array (
|
||||
'express_id' =>
|
||||
array (
|
||||
'name' => 'express_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'express_code' =>
|
||||
array (
|
||||
'name' => 'express_code',
|
||||
'type' => 'varchar(32)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'express_name' =>
|
||||
array (
|
||||
'name' => 'express_name',
|
||||
'type' => 'varchar(32)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'express_lnitials' =>
|
||||
array (
|
||||
'name' => 'express_lnitials',
|
||||
'type' => 'varchar(5)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'sort_order' =>
|
||||
array (
|
||||
'name' => 'sort_order',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
363
src/data/schema/ey_shop_order.php
Normal file
363
src/data/schema/ey_shop_order.php
Normal file
@@ -0,0 +1,363 @@
|
||||
<?php
|
||||
return array (
|
||||
'order_id' =>
|
||||
array (
|
||||
'name' => 'order_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'order_code' =>
|
||||
array (
|
||||
'name' => 'order_code',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'order_status' =>
|
||||
array (
|
||||
'name' => 'order_status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'payment_method' =>
|
||||
array (
|
||||
'name' => 'payment_method',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pay_time' =>
|
||||
array (
|
||||
'name' => 'pay_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pay_name' =>
|
||||
array (
|
||||
'name' => 'pay_name',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'wechat_pay_type' =>
|
||||
array (
|
||||
'name' => 'wechat_pay_type',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pay_details' =>
|
||||
array (
|
||||
'name' => 'pay_details',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'express_order' =>
|
||||
array (
|
||||
'name' => 'express_order',
|
||||
'type' => 'varchar(32)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'express_name' =>
|
||||
array (
|
||||
'name' => 'express_name',
|
||||
'type' => 'varchar(32)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'express_code' =>
|
||||
array (
|
||||
'name' => 'express_code',
|
||||
'type' => 'varchar(32)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'express_time' =>
|
||||
array (
|
||||
'name' => 'express_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'consignee' =>
|
||||
array (
|
||||
'name' => 'consignee',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'confirm_time' =>
|
||||
array (
|
||||
'name' => 'confirm_time',
|
||||
'type' => 'int(11)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'shipping_fee' =>
|
||||
array (
|
||||
'name' => 'shipping_fee',
|
||||
'type' => 'decimal(10,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'order_total_amount' =>
|
||||
array (
|
||||
'name' => 'order_total_amount',
|
||||
'type' => 'decimal(10,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'order_amount' =>
|
||||
array (
|
||||
'name' => 'order_amount',
|
||||
'type' => 'decimal(10,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'order_total_num' =>
|
||||
array (
|
||||
'name' => 'order_total_num',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'country' =>
|
||||
array (
|
||||
'name' => 'country',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'province' =>
|
||||
array (
|
||||
'name' => 'province',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'city' =>
|
||||
array (
|
||||
'name' => 'city',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'district' =>
|
||||
array (
|
||||
'name' => 'district',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'address' =>
|
||||
array (
|
||||
'name' => 'address',
|
||||
'type' => 'varchar(500)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'mobile' =>
|
||||
array (
|
||||
'name' => 'mobile',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'prom_type' =>
|
||||
array (
|
||||
'name' => 'prom_type',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'virtual_delivery' =>
|
||||
array (
|
||||
'name' => 'virtual_delivery',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'admin_note' =>
|
||||
array (
|
||||
'name' => 'admin_note',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_comment' =>
|
||||
array (
|
||||
'name' => 'is_comment',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'user_note' =>
|
||||
array (
|
||||
'name' => 'user_note',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'group' =>
|
||||
array (
|
||||
'name' => 'group',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'order_md5' =>
|
||||
array (
|
||||
'name' => 'order_md5',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'order_source' =>
|
||||
array (
|
||||
'name' => 'order_source',
|
||||
'type' => 'tinyint(3)',
|
||||
'notnull' => false,
|
||||
'default' => '10',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'order_source_id' =>
|
||||
array (
|
||||
'name' => 'order_source_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'coupon_id' =>
|
||||
array (
|
||||
'name' => 'coupon_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'use_id' =>
|
||||
array (
|
||||
'name' => 'use_id',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'coupon_price' =>
|
||||
array (
|
||||
'name' => 'coupon_price',
|
||||
'type' => 'decimal(10,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
147
src/data/schema/ey_shop_order_comment.php
Normal file
147
src/data/schema/ey_shop_order_comment.php
Normal file
@@ -0,0 +1,147 @@
|
||||
<?php
|
||||
return array (
|
||||
'comment_id' =>
|
||||
array (
|
||||
'name' => 'comment_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'order_id' =>
|
||||
array (
|
||||
'name' => 'order_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'order_code' =>
|
||||
array (
|
||||
'name' => 'order_code',
|
||||
'type' => 'varchar(50)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'details_id' =>
|
||||
array (
|
||||
'name' => 'details_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_id' =>
|
||||
array (
|
||||
'name' => 'product_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'total_score' =>
|
||||
array (
|
||||
'name' => 'total_score',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'content' =>
|
||||
array (
|
||||
'name' => 'content',
|
||||
'type' => 'varchar(1000)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'upload_img' =>
|
||||
array (
|
||||
'name' => 'upload_img',
|
||||
'type' => 'varchar(3000)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'admin_reply' =>
|
||||
array (
|
||||
'name' => 'admin_reply',
|
||||
'type' => 'varchar(1000)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'ip_address' =>
|
||||
array (
|
||||
'name' => 'ip_address',
|
||||
'type' => 'varchar(15)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_show' =>
|
||||
array (
|
||||
'name' => 'is_show',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_anonymous' =>
|
||||
array (
|
||||
'name' => 'is_anonymous',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
138
src/data/schema/ey_shop_order_details.php
Normal file
138
src/data/schema/ey_shop_order_details.php
Normal file
@@ -0,0 +1,138 @@
|
||||
<?php
|
||||
return array (
|
||||
'details_id' =>
|
||||
array (
|
||||
'name' => 'details_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'order_id' =>
|
||||
array (
|
||||
'name' => 'order_id',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_id' =>
|
||||
array (
|
||||
'name' => 'product_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_name' =>
|
||||
array (
|
||||
'name' => 'product_name',
|
||||
'type' => 'varchar(100)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'num' =>
|
||||
array (
|
||||
'name' => 'num',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'data' =>
|
||||
array (
|
||||
'name' => 'data',
|
||||
'type' => 'text',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_price' =>
|
||||
array (
|
||||
'name' => 'product_price',
|
||||
'type' => 'decimal(10,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'prom_type' =>
|
||||
array (
|
||||
'name' => 'prom_type',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'litpic' =>
|
||||
array (
|
||||
'name' => 'litpic',
|
||||
'type' => 'varchar(500)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'apply_service' =>
|
||||
array (
|
||||
'name' => 'apply_service',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'is_comment' =>
|
||||
array (
|
||||
'name' => 'is_comment',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
111
src/data/schema/ey_shop_order_log.php
Normal file
111
src/data/schema/ey_shop_order_log.php
Normal file
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
return array (
|
||||
'action_id' =>
|
||||
array (
|
||||
'name' => 'action_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'order_id' =>
|
||||
array (
|
||||
'name' => 'order_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'action_user' =>
|
||||
array (
|
||||
'name' => 'action_user',
|
||||
'type' => 'int(10)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'order_status' =>
|
||||
array (
|
||||
'name' => 'order_status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'express_status' =>
|
||||
array (
|
||||
'name' => 'express_status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'pay_status' =>
|
||||
array (
|
||||
'name' => 'pay_status',
|
||||
'type' => 'tinyint(1)',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'action_desc' =>
|
||||
array (
|
||||
'name' => 'action_desc',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'action_note' =>
|
||||
array (
|
||||
'name' => 'action_note',
|
||||
'type' => 'varchar(255)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
237
src/data/schema/ey_shop_order_service.php
Normal file
237
src/data/schema/ey_shop_order_service.php
Normal file
@@ -0,0 +1,237 @@
|
||||
<?php
|
||||
return array (
|
||||
'service_id' =>
|
||||
array (
|
||||
'name' => 'service_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => NULL,
|
||||
'primary' => true,
|
||||
'autoinc' => true,
|
||||
),
|
||||
'service_type' =>
|
||||
array (
|
||||
'name' => 'service_type',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_id' =>
|
||||
array (
|
||||
'name' => 'users_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'order_id' =>
|
||||
array (
|
||||
'name' => 'order_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'order_code' =>
|
||||
array (
|
||||
'name' => 'order_code',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'details_id' =>
|
||||
array (
|
||||
'name' => 'details_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_id' =>
|
||||
array (
|
||||
'name' => 'product_id',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_name' =>
|
||||
array (
|
||||
'name' => 'product_name',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_spec' =>
|
||||
array (
|
||||
'name' => 'product_spec',
|
||||
'type' => 'varchar(200)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_num' =>
|
||||
array (
|
||||
'name' => 'product_num',
|
||||
'type' => 'int(10) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'product_img' =>
|
||||
array (
|
||||
'name' => 'product_img',
|
||||
'type' => 'varchar(500)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'content' =>
|
||||
array (
|
||||
'name' => 'content',
|
||||
'type' => 'varchar(500)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'upload_img' =>
|
||||
array (
|
||||
'name' => 'upload_img',
|
||||
'type' => 'varchar(3000)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'address' =>
|
||||
array (
|
||||
'name' => 'address',
|
||||
'type' => 'varchar(500)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'consignee' =>
|
||||
array (
|
||||
'name' => 'consignee',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'mobile' =>
|
||||
array (
|
||||
'name' => 'mobile',
|
||||
'type' => 'varchar(20)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'refund_price' =>
|
||||
array (
|
||||
'name' => 'refund_price',
|
||||
'type' => 'decimal(10,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'refund_balance' =>
|
||||
array (
|
||||
'name' => 'refund_balance',
|
||||
'type' => 'decimal(10,2)',
|
||||
'notnull' => false,
|
||||
'default' => '0.00',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'refund_code' =>
|
||||
array (
|
||||
'name' => 'refund_code',
|
||||
'type' => 'varchar(40)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'status' =>
|
||||
array (
|
||||
'name' => 'status',
|
||||
'type' => 'tinyint(1) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '1',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'users_delivery' =>
|
||||
array (
|
||||
'name' => 'users_delivery',
|
||||
'type' => 'varchar(500)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'admin_delivery' =>
|
||||
array (
|
||||
'name' => 'admin_delivery',
|
||||
'type' => 'varchar(500)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'admin_note' =>
|
||||
array (
|
||||
'name' => 'admin_note',
|
||||
'type' => 'varchar(1000)',
|
||||
'notnull' => false,
|
||||
'default' => '',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'lang' =>
|
||||
array (
|
||||
'name' => 'lang',
|
||||
'type' => 'varchar(30)',
|
||||
'notnull' => false,
|
||||
'default' => 'cn',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'add_time' =>
|
||||
array (
|
||||
'name' => 'add_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
'update_time' =>
|
||||
array (
|
||||
'name' => 'update_time',
|
||||
'type' => 'int(11) unsigned',
|
||||
'notnull' => false,
|
||||
'default' => '0',
|
||||
'primary' => false,
|
||||
'autoinc' => false,
|
||||
),
|
||||
);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user