Sentence.php 626 B

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