Construction.php 579 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Construction extends Model
  5. {
  6. protected $table = "construction"; //指定表
  7. const CREATED_AT = 'crt_time';
  8. const UPDATED_AT = 'upd_time';
  9. protected $dateFormat = 'U';
  10. const Model_type_one = 1; // 总部安装
  11. const Model_type_two = 2; // 分社网点安装
  12. public static $model_type = [
  13. self::Model_type_one,
  14. self::Model_type_two,
  15. ];
  16. public static $prefix = [
  17. self::Model_type_one => 'WO0.',
  18. self::Model_type_two => 'T9SH.',
  19. ];
  20. }