<?php
declare(strict_types=1);

namespace app\common\model;

/**
 * 产品兼容性模型
 * @mixin \think\Model
 */
class ProductCompatBaseModel extends BaseModel
{
    // 表名
    protected $name = "product_compat";

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

    // 字段信息
    protected $schema = [
        "id"              => "int",
        "language_id"     => "int",
        "type_id"         => "int",
        "part_id"         => "int",
        "model"           => "string",
        "brand_name"      => "string",
        "level_name"      => "string",
        "spec_name"       => "string",
        "series_name"     => "string",
        "capacity"        => "string",
        "frequency"       => "string",
        "sort"            => "int",
        "disabled"        => "int",
        "created_at"      => "datetime",
        "updated_at"      => "datetime",
        "deleted_at"      => "datetime",
    ];
}
