| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <?php
- namespace App\Models\Main;
- use DateTimeInterface;
- use Illuminate\Database\Eloquent\Model;
- /**
- * App\Models\Main\MainShopSet
- *
- * @property int $id
- * @property int $shop_id 店铺ID
- * @property float $discount 折扣比列
- * @property float $province_num 省级返佣比列
- * @property float $city_num 市级返佣比列
- * @property float $area_num 区级返佣比列
- * @property float $sales_num 分销商返佣比列
- * @property float $shop_num 店铺返佣比列
- * @property float $member_num 会员公益豆获取比列
- * @property float $purchases_num 进货金获取比列
- * @property \Illuminate\Support\Carbon|null $created_at
- * @property \Illuminate\Support\Carbon|null $updated_at
- * @property int|null $fans_num 粉丝最大数量
- * @property float|null $member_cash 会员返现比列
- * @property float $service_num 交易手续费
- * @property string|null $performance 业绩
- * @property int|null $is_bean 是否启用分销提成转化振合豆 0否1是
- * @property int|null $is_cancel 是否超时取消
- * @property int|null $cancel_time 取消的时间
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet query()
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereAreaNum($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereCancelTime($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereCityNum($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereDiscount($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereFansNum($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereIsBean($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereIsCancel($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereMemberCash($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereMemberNum($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet wherePerformance($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereProvinceNum($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet wherePurchasesNum($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereSalesNum($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereServiceNum($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereShopId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereShopNum($value)
- * @method static \Illuminate\Database\Eloquent\Builder|MainShopSet whereUpdatedAt($value)
- * @mixin \Eloquent
- */
- class MainShopSet extends Model
- {
- protected $connection = 'mysqlTwo';
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected $table = 'shop_sets';
- /**
- * 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'];
- /**
- * 为数组 / JSON 序列化准备日期。
- *
- * @param DateTimeInterface $date
- * @return string
- */
- protected function serializeDate(DateTimeInterface $date)
- {
- return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
- }
- }
|