mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
88 lines
3.0 KiB
PHP
88 lines
3.0 KiB
PHP
<?php
|
|
|
|
namespace app\admin\scheme;
|
|
|
|
use app\common\scheme\BaseScheme;
|
|
use app\common\scheme\attribute\Table;
|
|
use app\common\scheme\attribute\Field;
|
|
use app\common\scheme\attribute\Component;
|
|
use app\common\scheme\attribute\Index;
|
|
|
|
#[Table(name: 'ul_mall_goods', comment: '商品列表')]
|
|
#[Index(columns: ['cate_id'], name: 'cate_id', type: 'NORMAL')]
|
|
#[Index(columns: ['delete_time'], name: 'delete_time', type: 'NORMAL')]
|
|
class MallGoods extends BaseScheme
|
|
{
|
|
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
|
|
public $id;
|
|
|
|
#[Field(type: 'bigint', length: 11, comment: '分类ID', unsigned: true)]
|
|
public $cate_id;
|
|
|
|
#[Field(type: 'char', length: 20, precision: 20, default: '', comment: '商品名称')]
|
|
public $title;
|
|
|
|
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: '商品标签')]
|
|
public $tag;
|
|
|
|
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '商品logo')]
|
|
#[Component(type: 'image', options: [])]
|
|
public $logo;
|
|
|
|
#[Field(type: 'text', comment: '商品图片')]
|
|
#[Component(type: 'images', options: [])]
|
|
public $images;
|
|
|
|
#[Field(type: 'text', comment: '商品描述')]
|
|
#[Component(type: 'editor', options: [])]
|
|
public $describe;
|
|
|
|
#[Field(type: 'text', comment: '商品属性')]
|
|
public $property;
|
|
|
|
#[Field(type: 'decimal', length: 8, precision: 8, scale: 2, default: '0.00', comment: '市场价')]
|
|
public $market_price;
|
|
|
|
#[Field(type: 'decimal', length: 8, precision: 8, scale: 2, default: '0.00', comment: '折扣价')]
|
|
public $discount_price;
|
|
|
|
#[Field(type: 'int', length: 11, default: '0', comment: '销量', unsigned: true)]
|
|
public $sales;
|
|
|
|
#[Field(type: 'int', length: 11, default: '0', comment: '虚拟销量', unsigned: true)]
|
|
public $virtual_sales;
|
|
|
|
#[Field(type: 'int', length: 11, default: '0', comment: '库存', unsigned: true)]
|
|
public $stock;
|
|
|
|
#[Field(type: 'int', length: 11, default: '0', comment: '总库存', unsigned: true)]
|
|
public $total_stock;
|
|
|
|
#[Field(type: 'int', length: 11, default: '100', comment: '排序', unsigned: true)]
|
|
public $sort;
|
|
|
|
#[Field(type: 'int', length: 11, default: '0', comment: '状态', unsigned: true)]
|
|
#[Component(type: 'radio', options: ['正常', '禁用'])]
|
|
public $status;
|
|
|
|
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '备注说明')]
|
|
public $remark;
|
|
|
|
#[Field(type: 'int', length: 11, default: '0', comment: '创建时间', unsigned: true)]
|
|
public $create_time;
|
|
|
|
#[Field(type: 'int', length: 11, default: '0', unsigned: true)]
|
|
public $update_time;
|
|
|
|
#[Field(type: 'int', length: 11, default: '0', unsigned: true)]
|
|
public $delete_time;
|
|
|
|
#[Field(length: 100, precision: 100, nullable: false, default: '')]
|
|
public $license;
|
|
|
|
#[Field(length: 100, precision: 100, nullable: false, default: '')]
|
|
public $license_name;
|
|
|
|
#[Field(type: 'text', comment: '属性(静态字段)')]
|
|
public $property_static;
|
|
} |