| 12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace Longyi\RewardPoints\Models;
- use Illuminate\Database\Eloquent\Model;
- class RewardPointCustomerSign extends Model
- {
- protected $table = 'mw_reward_point_customer_sign';
- protected $primaryKey = 'id';
- protected $fillable = [
- 'customer_id',
- 'sign_date',
- 'count_date',
- 'point',
- 'code'
- ];
- protected $casts = [
- 'count_date' => 'integer',
- 'point' => 'integer'
- ];
- protected $dates = ['created', 'updated'];
- public function customer()
- {
- return $this->belongsTo(Customer::class, 'customer_id');
- }
- }
|