User.php 660 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Models\User;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. use Illuminate\Database\Eloquent\Model;
  5. class User extends Model
  6. {
  7. use HasFactory;
  8. protected $table = 'users';
  9. /**
  10. * 可批量赋值属性
  11. *
  12. * @var array
  13. */
  14. protected $fillable = [
  15. 'openid', 'unionid', 'head_img', 'distribution_channel_id', 'register_ip', 'send_order_id', 'from_uid', 'balance',
  16. 'charge_balance', 'reward_balance', 'sex', 'country', 'city', 'province', 'nickname', 'is_new', 'vip_limit_date',
  17. 'invite_code', 'session_key', 'bind_time', 'token', 'alipay_username', 'alipay_account'
  18. ];
  19. }