UserActionModel.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace App\Models\Log;
  3. use App\Models\Model;
  4. use Illuminate\Support\Facades\Config;
  5. /**
  6. * App\Models\Log\UserActionModel
  7. *
  8. * @property int $id
  9. * @property int|null $uid 用户
  10. * @property string|null $appid appid
  11. * @property string|null $action 行为
  12. * @property int|null $created_at 创建时间
  13. * @property string|null $extra 附加
  14. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Log\UserActionModel newModelQuery()
  15. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Log\UserActionModel newQuery()
  16. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Log\UserActionModel query()
  17. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Log\UserActionModel whereAction($value)
  18. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Log\UserActionModel whereAppid($value)
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Log\UserActionModel whereCreatedAt($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Log\UserActionModel whereExtra($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Log\UserActionModel whereId($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Log\UserActionModel whereUid($value)
  23. * @mixin \Eloquent
  24. */
  25. class UserActionModel extends Model
  26. {
  27. protected $connection = "mysql_datalog";
  28. protected $table = "user_action";
  29. protected $dateFormat = 'U';
  30. public const UPDATED_AT = null;
  31. public $fillable = [
  32. 'appid',
  33. 'uid',
  34. 'tuid',
  35. 'action',
  36. 'field',
  37. 'extra'
  38. ];
  39. }