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

64 lines
1.3 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['image_attach']=array (
'columns' =>
array (
'attach_id' => array (
'type' => 'number',
'required' => true,
'editable' => false,
'pkey'=>true,
'extra' => 'auto_increment',
),
'target_id' => array (
'type' => 'number',
'required' => true,
'default' => 0,
'editable' => false,
'comment' => '目标id',
),
'target_type' => array (
'type' => 'varchar(20)',
'required' => true,
'default' => 0,
'editable' => false,
'comment' => '目标类型',
),
'image_id' => array (
'type' => 'table:image',
'required' => true,
'default' => 0,
'editable' => false,
'comment' => '图片id',
),
'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,
),
),
'index' =>
array (
'index_1' =>
array (
'columns' =>
array (
0 => 'target_id',
1 => 'target_type',
),
),
),
'comment' => '图片附件',
'version' => '$Rev$',
);