mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
116 lines
2.5 KiB
PHP
116 lines
2.5 KiB
PHP
<?php
|
||
/**
|
||
* Copyright 2012-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['operation_log']=array (
|
||
'columns' =>
|
||
array (
|
||
'log_id' =>
|
||
array (
|
||
'type' => 'int unsigned',
|
||
'pkey' => true,
|
||
'extra' => 'auto_increment',
|
||
'editable' => false,
|
||
),
|
||
'obj_id' =>
|
||
array (
|
||
'type' => 'varchar(50)',
|
||
'required' => true,
|
||
'editable' => false,
|
||
'comment' => '操作对象主键',
|
||
),
|
||
'obj_name' =>
|
||
array (
|
||
'type' => 'varchar(200)',
|
||
'editable' => false,
|
||
'comment' => '操作对象含义字段(dbschema中的is_title=true字段值)',
|
||
),
|
||
'obj_type' =>
|
||
array (
|
||
'type' => 'varchar(50)',
|
||
'required' => true,
|
||
'editable' => false,
|
||
),
|
||
'operation' =>
|
||
array (
|
||
'type' => 'varchar(50)',
|
||
'editable' => false,
|
||
'required' => true,
|
||
'label' => '操作名'
|
||
),
|
||
'op_id' =>
|
||
array (
|
||
'type' => 'table:account@pam',
|
||
'editable' => false,
|
||
'required' => true,
|
||
),
|
||
'op_name' =>
|
||
array (
|
||
'type' => 'varchar(30)',
|
||
'editable' => false,
|
||
),
|
||
'operate_time' =>
|
||
array (
|
||
'type' => 'time',
|
||
'required' => true,
|
||
'editable' => false,
|
||
),
|
||
'memo' =>
|
||
array (
|
||
'type' => 'text',
|
||
'editable' => false,
|
||
),
|
||
'ip' =>
|
||
array (
|
||
'type' => 'varchar(15)',
|
||
'editable' => false,
|
||
),
|
||
),
|
||
'index' =>
|
||
array (
|
||
'ind_obj_id' =>
|
||
array (
|
||
'columns' =>
|
||
array (
|
||
0 => 'obj_id',
|
||
),
|
||
),
|
||
'ind_obj_type' =>
|
||
array (
|
||
'columns' =>
|
||
array (
|
||
0 => 'obj_type',
|
||
),
|
||
),
|
||
'ind_op_name' =>
|
||
array (
|
||
'columns' =>
|
||
array (
|
||
0 => 'op_name',
|
||
),
|
||
),
|
||
'ind_operate_time' =>
|
||
array (
|
||
'columns' =>
|
||
array (
|
||
0 => 'operate_time',
|
||
),
|
||
),
|
||
),
|
||
'comment' => '操作员记录表',
|
||
'engine' => 'innodb',
|
||
'version' => '$Rev: $',
|
||
); |