<?php
declare (strict_types = 1);

namespace app\common\model;

/**
 * 产品 - 关联产品模型
 * @mixin \think\Model
 */
class ProductRelatedBaseModel extends BaseModel
{
    // 表名
    protected $name = 'product_related';

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

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