Sentence.php 730 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. use Illuminate\Database\Eloquent\Model;
  5. use Illuminate\Database\Eloquent\SoftDeletes;
  6. class Sentence extends Model
  7. {
  8. use HasFactory;
  9. use SoftDeletes;
  10. protected $fillable = ['id','uid','book_id',
  11. 'paragraph','word_start','word_end',
  12. 'channel_uid','editor_uid','content','content_type',
  13. 'strlen','status','create_time','modify_time','language'];
  14. protected $primaryKey = 'uid';
  15. protected $casts = [
  16. 'uid' => 'string'
  17. ];
  18. protected $dates = [
  19. 'created_at',
  20. 'updated_at',
  21. 'deleted_at',
  22. 'fork_at'
  23. ];
  24. }