| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- namespace App\Models;
- use DateTimeInterface;
- use Illuminate\Database\Eloquent\Model;
- /**
- * 购物车详情表
- *
- * @property int $id
- * @property int|null $shopping_id 购物车id
- * @property int|null $goods_id 商品id
- * @property int|null $goods_spec_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|ShoppingDetail newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|ShoppingDetail newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|ShoppingDetail query()
- * @method static \Illuminate\Database\Eloquent\Builder|ShoppingDetail whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|ShoppingDetail whereGoodsId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|ShoppingDetail whereGoodsSpecId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|ShoppingDetail whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|ShoppingDetail whereNumber($value)
- * @method static \Illuminate\Database\Eloquent\Builder|ShoppingDetail whereShoppingId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|ShoppingDetail whereUpdatedAt($value)
- * @mixin \Eloquent
- */
- class ShoppingDetail extends Model
- {
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected $table = 'shopping_details';
- /**
- * 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'];
- }
|