12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\cxinv\model;
- use think\model\concern\SoftDelete;
- class ProductsCombind extends Base
- {
- use SoftDelete;
- protected $schema = [
- 'id' =>'bigint',
- 'parent_id' =>'bigint',
- 'child_id' =>'bigint',
- 'child_num' =>'int',
- 'create_time' =>'datetime',
- 'delete_time' =>'datetime',
- ];
- protected $createTime = 'create_time';
- protected $updateTime = false;
- protected $deleteTime = 'delete_time';
- public function Products(){
- return $this->hasOne('FinancialProducts','id','child_id');
- }
- public static function CombindAddStock($pid,$num){
- }
- }
|