<?php
declare (strict_types = 1);

namespace app\common\model;

/**
 * 产品sku模型
 * @mixin \think\Model
 */
class ProductSkuBaseModel extends BaseModel
{
    // 表名
    protected $name = 'product_sku';

    // 主键
    protected $pk = 'id';

    // 字段信息
    protected $schema = [
        'id'          => 'int',
        'product_id'  => 'int',
        'sku'         => 'string',
        'main_image'  => 'string',
        'photo_album' => 'json',
        'sort'        => 'int',
        'created_at'  => 'datetime',
        'updated_at'  => 'datetime'
    ];
}
