Files
OMS/app/pam/dbschema/account.php
2026-01-04 19:08:31 +08:00

53 lines
1.9 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['account'] = array(
'columns'=>array(
'account_id'=>array('type'=>'number','pkey'=>true,'extra' => 'auto_increment',),
'account_type'=>array('type'=>'varchar(30)','comment'=>'账户类型'),
'login_name'=>array(
'type'=>'varchar(100)',
'is_title'=>true,
'required' => true,
'in_list'=>true,
'default_in_list'=>true,
'label'=>'用户名',
),
'login_password'=>array('type'=>'varchar(64)','required' => true,'comment'=>'登录密码'),
'times'=>array('type'=>'tinyint','required' => false,'comment'=>'失败次数'),
'login_time'=>array('type'=>'time','required' => false,'comment'=>'登录时间'),
'disabled'=>array('type'=>'bool','default'=>'false'),
'createtime'=>array('type'=>'time','comment'=>'创建时间'),
'is_hash256' => array(
'type' => [
'0' => '否',
'1' => '是',
],
'label' => '是否hash加密',
'default' => '1',
'in_list' => true,
'default_in_list' => true,
),
),
'index' => array (
'account' => array ('columns' => array ('account_type','login_name'),'prefix' => 'UNIQUE'),
),
'engine' => 'innodb',
'comment' => '授权用户表',
);