| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- namespace App\Models;
- use DateTimeInterface;
- use Illuminate\Database\Eloquent\Model;
- /**
- * 购物车表
- *
- * @property int $id 购物车表
- * @property int|null $m_id 用户id
- * @property int|null $shop_id 店铺id
- * @property int|null $goods_id 商品id
- * @property int|null $category_id 分类id
- * @property int|null $number 商品购买数量
- * @property \Illuminate\Support\Carbon|null $created_at
- * @property \Illuminate\Support\Carbon|null $updated_at
- * @method static \Illuminate\Database\Eloquent\Builder|Shopping newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|Shopping newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|Shopping query()
- * @method static \Illuminate\Database\Eloquent\Builder|Shopping whereCategoryId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Shopping whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Shopping whereGoodsId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Shopping whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Shopping whereMId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Shopping whereNumber($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Shopping whereShopId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Shopping whereUpdatedAt($value)
- * @mixin \Eloquent
- */
- class Shopping extends Model
- {
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected $table = 'shopping';
- /**
- * The primary key associated with the table.
- *
- * @var string
- */
- protected $primaryKey = 'id';
- /**
- * Indicates if the model should be timestamped.
- *
- * @var bool
- */
- public $timestamps = true;
- /**
- * 不能被批量赋值的属性
- *
- * @var array
- */
- protected $guarded = ['id', 'updated_at', 'created_at'];
- }
|