Files
OMS/app/desktop/dbschema/flow.php
2025-12-28 23:13:25 +08:00

105 lines
2.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
$db['flow']=array (
'columns' =>
array (
'flow_id' =>
array (
'label' => app::get('desktop')->_('序号'),
'type' => 'number',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'editable' => false,
'in_list' => true,
'default_in_list' => true,
),
'flow_from' =>
array (
'label' => app::get('desktop')->_('发送者'),
'type' =>
array (
'user' => app::get('desktop')->_('管理员'),
'system' => app::get('desktop')->_('系统'),
'internet' => app::get('desktop')->_('站外'),
'user' => app::get('desktop')->_('用户'),
),
'default' => 'system',
'required' => true,
'in_list' => true,
),
'from_id' =>
array (
'type' => 'number',
'default' => 0,
'editable' => false,
'comment' => '发送者id',
),
'subject' =>
array (
'label' => app::get('desktop')->_('消息标题'),
'type' => 'varchar(50)',
'required' => true,
'default' => '',
'editable' => false,
'in_list' => true,
'is_title' => true,
),
'flow_desc' =>
array (
'label' => app::get('desktop')->_('消息描述'),
'type' => 'varchar(100)',
'required' => true,
'default' => '',
'editable' => false,
'in_list' => true,
),
'body' =>
array (
'label' => app::get('desktop')->_('内容本体'),
'type' => 'text',
'required' => true,
'default' => '',
'editable' => false,
'in_list' => true,
),
'flow_ip' =>
array (
'type' => 'varchar(20)',
'default' => '',
'required' => true,
'editable' => false,
'comment' => 'ip',
),
'send_mode'=>array(
'type'=>array(
'direct'=>app::get('desktop')->_('直送'),
'broadcast'=>app::get('desktop')->_('广播'),
'fetch'=>app::get('desktop')->_('收取'),
),
'default' => 'direct',
'required' => true,
),
'flow_type' =>
array (
'type' => 'varchar(32)',
'default' => 'default',
'required' => true,
'editable' => false,
'comment' => '消息类型',
),
'send_time'=>array(
'type'=>'time',
'required' => true,
'comment' => '发送时间',
)
),
'comment' => app::get('desktop')->_('信息表'),
'version' => '$Rev$',
);