|
@@ -9,6 +9,7 @@ use Exception;
|
|
|
* @property int $id
|
|
* @property int $id
|
|
|
* @property int $supplier_id
|
|
* @property int $supplier_id
|
|
|
* @property string $name
|
|
* @property string $name
|
|
|
|
|
+ * @property string $sku
|
|
|
* @property int $type
|
|
* @property int $type
|
|
|
* @property string $price
|
|
* @property string $price
|
|
|
* @property string $dts_created
|
|
* @property string $dts_created
|
|
@@ -20,7 +21,7 @@ class Product extends Model {
|
|
|
|
|
|
|
|
protected static $table = "product";
|
|
protected static $table = "product";
|
|
|
protected static $idField = "id";
|
|
protected static $idField = "id";
|
|
|
- protected static $fillableFields = ["supplier_id", "name", "type", "price", "dts_created", "dts_updated", "dts_deleted"];
|
|
|
|
|
|
|
+ protected static $fillableFields = ["supplier_id", "name", "type", "sku", "price", "dts_created", "dts_updated", "dts_deleted"];
|
|
|
|
|
|
|
|
public const TYPE_MACHINE = 1;
|
|
public const TYPE_MACHINE = 1;
|
|
|
public const TYPE_SPARE_PART = 2;
|
|
public const TYPE_SPARE_PART = 2;
|