DomainPools.php 335 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Elton
  5. * Date: 2019/3/29
  6. * Time: 13:41
  7. */
  8. namespace app\common\model;
  9. use think\Model;
  10. class DomainPools extends Model
  11. {
  12. protected $table = 'domain_pools';
  13. // TRUNCATE table
  14. public function trucateDomainPools()
  15. {
  16. $this->query("TRUNCATE {$this->table}");
  17. }
  18. }