<script setup>
import { model } from "#imports";
const props = defineProps({
  id: String
});
const columns = model("APIKey").columns({
  apikey_id: true,
  name: true,
  created_time: true
});
const onRequestData = async (req) => {
  req.loadObjects("APIKey", { user_id: props.id });
};
</script>

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