FollowUpRecord.php 746 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class FollowUpRecord extends Model
  5. {
  6. protected $table = "follow_up_record"; //指定表
  7. const CREATED_AT = 'crt_time';
  8. const UPDATED_AT = 'upd_time';
  9. protected $dateFormat = 'U';
  10. const type_one = 'customer';
  11. const type_two = 'sales_order';
  12. public static $type = [
  13. self::type_one => '客户跟进记录',
  14. self::type_two => '合同跟进记录',
  15. ];
  16. const follow_type_zero = 0;
  17. const follow_type_one = 1;
  18. const follow_type_two = 2;
  19. public static $follow_type = [
  20. self::follow_type_zero => '跟进中',
  21. self::follow_type_one => '联系不上',
  22. self::follow_type_two => '无意向',
  23. ];
  24. }