RecordTable.php 522 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class RecordTable extends Model
  5. {
  6. protected $table = "record_table"; //指定表
  7. const CREATED_AT = null;
  8. const UPDATED_AT = null;
  9. protected $dateFormat = 'U';
  10. protected $guarded = [];
  11. const type_one = 1;
  12. const type_two = 2;
  13. const type_three = 3;
  14. public static $type = [
  15. self::type_one => "领料申请单",
  16. self::type_two => "产成品入库单",
  17. self::type_three => "发货单",
  18. ];
  19. }