123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace App\Models\UserModels;
- use App\Models\Traits\Timestamp;
- use Illuminate\Database\Eloquent\Model;
- class WxSignup extends Model
- {
- use Timestamp;
- /**
- * 表名。
- *
- * @var string
- */
- protected $table = 'wx_signups';
- /**
- * 与表关联的主键。
- *
- * @var string
- */
- protected $primaryKey = 'id';
- /**
- * 是否主动维护时间戳
- *
- * @var bool
- */
- public $timestamps = true;
- /**
- * 不能被批量赋值的属性
- *
- * @var array
- */
- protected $guarded = ['id', 'updated_at', 'created_at'];
- }
|