UserDict.php 528 B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. use Illuminate\Database\Eloquent\Model;
  5. class UserDict extends Model
  6. {
  7. use HasFactory;
  8. protected $primaryKey = 'id';
  9. public $incrementing = false;
  10. protected $casts = [
  11. 'id' => 'string'
  12. ];
  13. protected $fillable = ['id','word','type','grammar',
  14. 'parent','mean','note','factors',
  15. 'factor_mean','source','create_time',
  16. 'creator_id','dict_id'];
  17. }