cqp 2 недель назад
Родитель
Сommit
691a4f72cd
1 измененных файлов с 22 добавлено и 0 удалено
  1. 22 0
      app/Model/CustomerAccessFlat.php

+ 22 - 0
app/Model/CustomerAccessFlat.php

@@ -0,0 +1,22 @@
+<?php
+
+namespace App\Model;
+
+use Illuminate\Database\Eloquent\Model;
+
+class CustomerAccessFlat extends Model
+{
+    protected $guarded = [];
+    protected $table = "customer_access_flat"; //指定表
+    const CREATED_AT = null;
+    const UPDATED_AT = null;
+    protected $dateFormat = 'U';
+    const type_one = 1; // 人
+    const type_two = 2; // 部门
+    const type_three = 3; // 公司
+    public static $type = [
+        self::type_one,
+        self::type_two,
+        self::type_three,
+    ];
+}