Files
OMS/app/archive/dbschema/order_selling_agent.php
2026-01-04 17:22:44 +08:00

225 lines
6.8 KiB
PHP

<?php
/**
* Copyright 2026 ShopeX (https://www.shopex.cn)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
$db['order_selling_agent'] = array(
'columns' => array(
'selling_agent_id' => array(
'type' => 'int unsigned',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'label' => '代销人ID',
'editable' => false,
),
'order_id' => array(
'type' => 'int unsigned',
'required' => true,
'default' => 0,
'editable' => false,
'label' => '订单ID',
),
'uname' => array(
'type' => 'varchar(50)',
'label' => '用户名',
'sdfpath' => 'member_info/uname',
'is_title' => true,
'width' => 75,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'searchtype' => 'has',
'filtertype' => 'normal',
'filterdefault' => 'true',
),
'level' => array(
'type' => 'varchar(20)',
'label' => '等级',
'width' => 75,
'sdfpath' => 'member_info/level',
'editable' => false,
),
'name' => array(
'type' => 'varchar(50)',
'label' => '姓名',
'width' => 75,
'sdfpath' => 'member_info/name',
'editable' => false,
),
'birthday' => array(
'label' => '出生日期',
'type' => 'varchar(20)',
'sdfpath' => 'member_info/birthday',
'width' => 30,
'editable' => false,
),
'sex' => array(
'type' => array(
'female' => '女',
'male' => '男',
),
'sdfpath' => 'member_info/sex',
'default' => 'female',
'label' => '性别',
'width' => 30,
'editable' => false,
),
'email' => array(
'type' => 'varchar(60)',
'label' => 'E-mail',
'width' => 110,
'sdfpath' => 'member_info/email',
'editable' => false,
),
'area' => array(
'label' => '地区',
'width' => 110,
'type' => 'region',
'sdfpath' => 'member_info/area',
'editable' => false,
),
'addr' => array(
'type' => 'varchar(255)',
'label' => '地址',
'sdfpath' => 'member_info/addr',
'width' => 110,
'editable' => false,
),
'zip' => array(
'type' => 'varchar(10)',
'label' => '邮编',
'width' => 110,
'sdfpath' => 'member_info/zip',
'editable' => true,
'filtertype' => 'normal',
'in_list' => true,
),
'mobile' => array(
'type' => 'varchar(20)',
'label' => '手机',
'width' => 75,
'sdfpath' => 'member_info/mobile',
'editable' => false,
),
'tel' => array(
'type' => 'varchar(30)',
'label' => '固定电话',
'width' => 110,
'sdfpath' => 'member_info/tel',
'editable' => false,
),
'qq' => array(
'type' => 'varchar(30)',
'label' => 'qq',
'width' => 110,
'sdfpath' => 'member_info/qq',
'editable' => false,
),
'website_name' => array(
'type' => 'varchar(50)',
'label' => '网站名称',
'width' => 110,
'sdfpath' => 'website/name',
'editable' => false,
),
'website_domain' => array(
'type' => 'varchar(255)',
'label' => '网站域名',
'sdfpath' => 'website/domain',
'editable' => false,
),
'website_logo' => array(
'type' => 'text',
'label' => '网站LOGO',
'sdfpath' => 'website/logo',
'editable' => false,
),
'addon' => array(
'type' => 'serialize',
'label' => '附加字段',
'editable' => false,
),
'seller_name' => array(
'type' => 'varchar(50)',
'label' => '卖家姓名',
'sdfpath' => 'seller/seller_name',
'editable' => false,
),
'seller_mobile' => array(
'type' => 'varchar(30)',
'label' => '卖家电话号码',
'sdfpath' => 'seller/seller_mobile',
'editable' => false,
),
'seller_phone' => array(
'type' => 'varchar(20)',
'label' => '卖家手机号码',
'sdfpath' => 'seller/seller_phone',
'editable' => false,
),
'seller_zip' => array(
'type' => 'varchar(10)',
'label' => '卖家的邮编',
'sdfpath' => 'seller/seller_zip',
'editable' => false,
),
'seller_area' => array(
'type' => 'region',
'label' => '卖家所在地区',
'sdfpath' => 'seller/seller_area',
'editable' => false,
),
'seller_address' => array(
'type' => 'varchar(255)',
'label' => '卖家详细地址',
'sdfpath' => 'seller/seller_address',
'editable' => false,
),
'print_status' => array(
'type' => array(
0 => '否',
1 => '是'
),
'default' => '0',
'required' => true,
'label' => '打印前端发货人信息',
),
'archive_time' => array(
'type' => 'int unsigned',
'label' => '归档时间',
'width' => 130,
'editable' => false,
'in_list' => true,
'filtertype' => 'time',
'filterdefault' => true,
),
),
'index' => array(
'ind_order_id' => array(
'columns' => array(
0 => 'order_id',
),
),
'ind_archive_time' => array(
'columns' => array(
0 => 'archive_time',
),
),
),
'comment' => '归档订单代销扩展结构',
'engine' => 'innodb',
'version' => '$Rev: $',
);