Merchant.php 766 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | saiadmin [ saiadmin快速开发框架 ]
  4. // +----------------------------------------------------------------------
  5. namespace plugin\saiadmin\app\model\merchant;
  6. use plugin\saiadmin\basic\think\BaseModel;
  7. /**
  8. * 商户模型
  9. */
  10. class Merchant extends BaseModel
  11. {
  12. protected $pk = 'id';
  13. protected $table = 'sa_merchant';
  14. protected $hidden = ['password', 'delete_time'];
  15. protected $type = [
  16. 'products' => 'json',
  17. 'permissions' => 'json',
  18. 'distributed' => 'integer',
  19. 'status' => 'integer',
  20. 'parent_merchant_id' => 'integer',
  21. 'withdraw_update_mode' => 'integer',
  22. 'withdraw_update_day' => 'integer',
  23. ];
  24. }