12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace App\Models;
- use App\Models\BaseModel;
- /**
- * @description 新品列表
- * @author system;
- * @version 1.0
- * @date 2018-12-20 10:09:42
- *
- */
- class FurnitureNewgoodsBookingModel extends BaseModel
- {
- /**
- * 数据表名
- *
- * @var string
- *
- */
- protected $table = 'furniture_newgoods_booking';
- /**
- * 主键
- */
- protected $primaryKey = 'id';
- //分页
- protected $perPage = PAGE_NUMS;
- /**
- * 可以被集体附值的表的字段
- *
- * @var string
- */
- protected $fillable = [
- 'user_id',
- 'newgoods_id',
- 'phone',
- 'receiver_name',
- 'receiver_address',
- 'receiver_remark',
- 'store_id'
- ];
- public function user(){
- return $this->belongsTo('App\Models\AlbumUserModel', 'user_id')->withDefault();
- }
- }
|