BookingList.php 979 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class BookingList extends Model
  5. {
  6. protected $table = "booking_list"; //指定表
  7. const CREATED_AT = 'crt_time';
  8. const UPDATED_AT = 'upd_time';
  9. protected $dateFormat = 'U';
  10. const STATE_ZERO = 0;//未确认
  11. const STATE_ONE = 1;//已确认
  12. public static $name = [
  13. self::STATE_ZERO => '未确认',
  14. self::STATE_ONE => '已确认',
  15. ];
  16. const type_one = 1; // 收款
  17. const type_two = 2; // 坏账
  18. const type_three = 3; // 退款
  19. const type_four = 4; // 补收
  20. public static $model_type = [
  21. self::type_one => '收款',
  22. self::type_two => '坏账',
  23. self::type_three => '退款',
  24. self::type_four => '补收',
  25. ];
  26. const data_type_one = 1; // 合同
  27. const data_type_two = 2; // 采购
  28. public static $data_type = [
  29. self::data_type_one => '合同',
  30. self::data_type_two => '采购',
  31. ];
  32. }