CustomerSupply.php 949 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace App\Model;
  3. class CustomerSupply extends UseScopeBaseModel
  4. {
  5. protected $guarded = [];
  6. protected $table = "customer_supply"; //指定表
  7. const CREATED_AT = 'crt_time';
  8. const UPDATED_AT = 'upd_time';
  9. const employee_column = "crt_id";
  10. public static $field = ['title','id','code','type','crt_time','account','crt_id','status','password'];
  11. protected $dateFormat = 'U';
  12. const status_one = 1;
  13. const status_two = 2;
  14. const status_three = 3;
  15. const status_four = 4;
  16. const status_five = 5;
  17. public static $status_name = [
  18. self::status_one => '拿下',
  19. self::status_two => '接洽',
  20. self::status_three => '风险',
  21. self::status_four => '核心',
  22. self::status_five => '放弃',
  23. ];
  24. const type_one = 1;
  25. const type_two = 2;
  26. public static $type_name = [
  27. self::type_one => '客户',
  28. self::type_two => '供应商',
  29. ];
  30. }