RoomMessageModel.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace App\Models\Goodnight;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * App\Models\Goodnight\RoomMessageModel
  6. *
  7. * @property int $id
  8. * @property int $uid
  9. * @property int $room_id 房间ID
  10. * @property string|null $type 消息类型
  11. * @property string $content 内容
  12. * @property \Illuminate\Support\Carbon $created_at
  13. * @property \Illuminate\Support\Carbon $updated_at
  14. * @property int $read_at
  15. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\RoomMessageModel newModelQuery()
  16. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\RoomMessageModel newQuery()
  17. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\RoomMessageModel query()
  18. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\RoomMessageModel whereContent($value)
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\RoomMessageModel whereCreatedAt($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\RoomMessageModel whereId($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\RoomMessageModel whereReadAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\RoomMessageModel whereRoomId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\RoomMessageModel whereType($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\RoomMessageModel whereUid($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\RoomMessageModel whereUpdatedAt($value)
  26. * @mixin \Eloquent
  27. */
  28. class RoomMessageModel extends Model
  29. {
  30. //
  31. protected $table = 'kdgx_goodnight_room_messages';
  32. protected $dateFormat = "U";
  33. protected $fillable = ['uid', 'room_id', 'type', 'content'];
  34. }