Corp.php 608B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: guanxl
  5. * Date: 2018/3/19
  6. * Time: 18:43
  7. */
  8. namespace App\Models;
  9. use Illuminate\Database\Eloquent\Model;
  10. class Corp extends Model
  11. {
  12. protected $table = "agh_corps";
  13. protected $primaryKey = "corp_id";
  14. protected $dateFormat = 'U';
  15. const CREATED_AT = "create_time";
  16. const UPDATED_AT = "update_time";
  17. public $fillable = [
  18. "corp_id",
  19. "corp_name",
  20. "contact_address",
  21. "contact_phone",
  22. "contact_email",
  23. "corp_short_name",
  24. "source_id",
  25. "qy_corp_id",
  26. "source_type"
  27. ];
  28. }