mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
108 lines
2.6 KiB
PHP
108 lines
2.6 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
|
||
$db['image']=array (
|
||
'columns' =>
|
||
array (
|
||
'image_id' =>
|
||
array (
|
||
'type' => 'char(32)',
|
||
'label'=>app::get('image')->_('图片Id'),
|
||
'required' => true,
|
||
'pkey' => true,
|
||
'width'=>250,
|
||
'in_list'=>true,
|
||
'default_in_list'=>false,
|
||
),
|
||
'storage'=>array(
|
||
'label'=>app::get('image')->_('存储引擎'),
|
||
'type' => 'varchar(50)',
|
||
'default' => 'filesystem',
|
||
'required' => true,
|
||
'in_list'=>true,
|
||
'width'=>100,
|
||
'default_in_list'=>false,
|
||
),
|
||
'image_name'=>array(
|
||
'label'=>app::get('image')->_('图片名称'),
|
||
'type' => 'varchar(50)',
|
||
'required' => false,
|
||
'width'=>100,
|
||
'default_in_list'=>true,
|
||
),
|
||
'ident'=>array(
|
||
'type' => 'varchar(200)',
|
||
'required' => true,
|
||
'comment' => '标识符',
|
||
),
|
||
'url'=>array(
|
||
'label'=>app::get('image')->_('网址'),
|
||
'type'=>'varchar(500)',
|
||
'required' => true,
|
||
'width'=>300,
|
||
'in_list'=>false,
|
||
'comment' => '网址',
|
||
),
|
||
'l_ident'=>array(
|
||
'type' => 'varchar(200)',
|
||
'comment' => '大图标识符',
|
||
),
|
||
'l_url'=>array(
|
||
'type' => 'varchar(500)',
|
||
'comment' => '大图url',
|
||
),
|
||
'm_ident'=>array(
|
||
'type' => 'varchar(200)',
|
||
'comment' => '中图标识符',
|
||
),
|
||
'm_url'=>array(
|
||
'type' => 'varchar(500)',
|
||
'comment' => '中图url',
|
||
),
|
||
's_ident'=>array(
|
||
'type' => 'varchar(200)',
|
||
'comment' => '小图标识符',
|
||
),
|
||
's_url'=>array(
|
||
'type' => 'varchar(500)',
|
||
'comment' => '小图url',
|
||
),
|
||
'width'=>array(
|
||
'label'=>app::get('image')->_('宽度'),
|
||
'type' => 'number',
|
||
'in_list'=>true,
|
||
'default_in_list'=>false,
|
||
),
|
||
'height'=>array(
|
||
'label'=>app::get('image')->_('高度'),
|
||
'type' => 'number',
|
||
'in_list'=>true,
|
||
'default_in_list'=>false,
|
||
),
|
||
'watermark'=>array(
|
||
'type'=>'bool',
|
||
'default' => 'false',
|
||
'label'=>app::get('image')->_('有水印'),
|
||
'in_list'=>true,
|
||
'default_in_list'=>true,
|
||
),
|
||
'last_modified' => array (
|
||
'label'=>app::get('image')->_('更新时间'),
|
||
'type' => 'last_modify',
|
||
'width'=>180,
|
||
'required' => true,
|
||
'default' => 0,
|
||
'editable' => false,
|
||
'in_list'=>true,
|
||
'default_in_list'=>true,
|
||
),
|
||
),
|
||
'comment' => '图片库表',
|
||
'engine' => 'innodb',
|
||
'version' => '$Rev: 40912 $',
|
||
);
|