<script setup>
import { model, q } from "#imports";
const props = defineProps({
  id: String
});
const columns = model("UserLog").columns(
  {
    userlog_id: true,
    login_dt: true,
    last_access_time: true,
    logout_dt: true,
    result: true,
    user_agent: true
  }
);
const onRequestData = async (req) => {
  req.loadObjects("UserLog", { user_id: props.id });
};
</script>

<template>
    <l-table row-key="userlog_id" sort-by="userlog_id:desc" :columns="columns" @request-data="onRequestData" />
</template>
