mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-17 15:36:50 +00:00
Show Applications & Delete Applications
This commit is contained in:
parent
9b822ad328
commit
c27713ba27
23
app/api/applications/delete/route.ts
Normal file
23
app/api/applications/delete/route.ts
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
import { NextResponse, NextRequest } from "next/server";
|
||||||
|
import { PrismaClient } from '@/lib/generated/prisma'
|
||||||
|
|
||||||
|
const prisma = new PrismaClient();
|
||||||
|
|
||||||
|
export async function POST(request: NextRequest) {
|
||||||
|
try {
|
||||||
|
const body = await request.json();
|
||||||
|
const id = Number(body.id);
|
||||||
|
|
||||||
|
if (!id) {
|
||||||
|
return NextResponse.json({ error: "Missing ID" }, { status: 400 });
|
||||||
|
}
|
||||||
|
|
||||||
|
await prisma.application.delete({
|
||||||
|
where: { id: id }
|
||||||
|
});
|
||||||
|
|
||||||
|
return NextResponse.json({ success: true });
|
||||||
|
} catch (error: any) {
|
||||||
|
return NextResponse.json({ error: error.message }, { status: 500 });
|
||||||
|
}
|
||||||
|
}
|
||||||
33
app/api/applications/get/route.ts
Normal file
33
app/api/applications/get/route.ts
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
import { NextResponse, NextRequest } from "next/server";
|
||||||
|
import { PrismaClient } from '@/lib/generated/prisma'
|
||||||
|
|
||||||
|
interface GetRequest {
|
||||||
|
page: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
const prisma = new PrismaClient();
|
||||||
|
const ITEMS_PER_PAGE = 5;
|
||||||
|
|
||||||
|
export async function POST(request: NextRequest) {
|
||||||
|
try {
|
||||||
|
const body: GetRequest = await request.json();
|
||||||
|
const page = Math.max(1, body.page || 1);
|
||||||
|
|
||||||
|
const applications = await prisma.application.findMany({
|
||||||
|
skip: (page - 1) * ITEMS_PER_PAGE,
|
||||||
|
take: ITEMS_PER_PAGE,
|
||||||
|
orderBy: { name: 'asc' }
|
||||||
|
});
|
||||||
|
|
||||||
|
// Gesamtanzahl für Seitenberechnung
|
||||||
|
const totalCount = await prisma.application.count();
|
||||||
|
const maxPage = Math.ceil(totalCount / ITEMS_PER_PAGE);
|
||||||
|
|
||||||
|
return NextResponse.json({
|
||||||
|
applications,
|
||||||
|
maxPage
|
||||||
|
});
|
||||||
|
} catch (error: any) {
|
||||||
|
return NextResponse.json({ error: error.message }, { status: 500 });
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -16,7 +16,7 @@ import {
|
|||||||
SidebarTrigger,
|
SidebarTrigger,
|
||||||
} from "@/components/ui/sidebar"
|
} from "@/components/ui/sidebar"
|
||||||
import { Button } from "@/components/ui/button"
|
import { Button } from "@/components/ui/button"
|
||||||
import { Plus, Link, Home } from "lucide-react" // Importiere Icons
|
import { Plus, Link, Home, Trash2 } from "lucide-react" // Importiere Icons
|
||||||
import {
|
import {
|
||||||
Card,
|
Card,
|
||||||
CardContent,
|
CardContent,
|
||||||
@ -32,7 +32,8 @@ import {
|
|||||||
PaginationItem,
|
PaginationItem,
|
||||||
PaginationLink,
|
PaginationLink,
|
||||||
PaginationNext,
|
PaginationNext,
|
||||||
PaginationPrevious, } from "@/components/ui/pagination"
|
PaginationPrevious,
|
||||||
|
} from "@/components/ui/pagination"
|
||||||
import {
|
import {
|
||||||
AlertDialog,
|
AlertDialog,
|
||||||
AlertDialogAction,
|
AlertDialogAction,
|
||||||
@ -48,7 +49,7 @@ import { Input } from "@/components/ui/input"
|
|||||||
import { Label } from "@/components/ui/label"
|
import { Label } from "@/components/ui/label"
|
||||||
import { Textarea } from "@/components/ui/textarea"
|
import { Textarea } from "@/components/ui/textarea"
|
||||||
|
|
||||||
import { useState } from "react";
|
import { useState, useEffect } from "react";
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
export default function Dashboard() {
|
export default function Dashboard() {
|
||||||
@ -58,9 +59,46 @@ export default function Dashboard() {
|
|||||||
const [publicURL, setPublicURL] = useState("");
|
const [publicURL, setPublicURL] = useState("");
|
||||||
const [localURL, setLocalURL] = useState("");
|
const [localURL, setLocalURL] = useState("");
|
||||||
|
|
||||||
|
const [currentPage, setCurrentPage] = useState(1);
|
||||||
|
const [maxPage, setMaxPage] = useState(1);
|
||||||
|
const [applications, setApplications] = useState([]);
|
||||||
|
|
||||||
const add = async () => {
|
const add = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await axios.post('/api/applications/add', { name, description, icon, publicURL, localURL });
|
const response = await axios.post('/api/applications/add', { name, description, icon, publicURL, localURL });
|
||||||
|
// Nach erfolgreichem Hinzufügen kannst du auch die Liste neu laden:
|
||||||
|
getApplications();
|
||||||
|
} catch (error: any) {
|
||||||
|
console.log(error.response.data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const getApplications = async () => {
|
||||||
|
try {
|
||||||
|
const response = await axios.post('/api/applications/get', { page: currentPage });
|
||||||
|
setApplications(response.data.applications);
|
||||||
|
setMaxPage(response.data.maxPage);
|
||||||
|
} catch (error: any) {
|
||||||
|
console.log(error.response);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
getApplications();
|
||||||
|
}, [currentPage]);
|
||||||
|
|
||||||
|
const handlePrevious = () => {
|
||||||
|
setCurrentPage(prev => Math.max(1, prev - 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
const handleNext = () => {
|
||||||
|
setCurrentPage(prev => Math.min(maxPage, prev + 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
const deleteApplication = async (id: number) => {
|
||||||
|
try {
|
||||||
|
await axios.post('/api/applications/delete', { id });
|
||||||
|
getApplications();
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
console.log(error.response.data);
|
console.log(error.response.data);
|
||||||
}
|
}
|
||||||
@ -104,28 +142,28 @@ export default function Dashboard() {
|
|||||||
<AlertDialogHeader>
|
<AlertDialogHeader>
|
||||||
<AlertDialogTitle>Add an application</AlertDialogTitle>
|
<AlertDialogTitle>Add an application</AlertDialogTitle>
|
||||||
<AlertDialogDescription>
|
<AlertDialogDescription>
|
||||||
<p className="space-y-4 pt-4">
|
<div className="space-y-4 pt-4">
|
||||||
<div className="grid w-full items-center gap-1.5">
|
<div className="grid w-full items-center gap-1.5">
|
||||||
<Label htmlFor="picture">Name</Label>
|
<Label htmlFor="name">Name</Label>
|
||||||
<Input id="name" type="text" placeholder="e.g. Portainer" onChange={(e) => setName(e.target.value)}/>
|
<Input id="name" type="text" placeholder="e.g. Portainer" onChange={(e) => setName(e.target.value)}/>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid w-full items-center gap-1.5">
|
<div className="grid w-full items-center gap-1.5">
|
||||||
<Label htmlFor="picture">Description <span className="text-stone-600">(optional)</span></Label>
|
<Label htmlFor="description">Description <span className="text-stone-600">(optional)</span></Label>
|
||||||
<Textarea id="description" placeholder="e.g. Protainer is a self-hosted, open-source platform for managing Docker containers and services via an intuitive web interface." onChange={(e) => setDescription(e.target.value)}/>
|
<Textarea id="description" placeholder="e.g. Portainer is a self-hosted, open-source platform for managing Docker containers." onChange={(e) => setDescription(e.target.value)}/>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid w-full items-center gap-1.5">
|
<div className="grid w-full items-center gap-1.5">
|
||||||
<Label htmlFor="picture">Icon</Label>
|
<Label htmlFor="icon">Icon</Label>
|
||||||
<Input id="name" type="text" placeholder="e.g. https://www.portainer.io/hubfs/portainer-logo-black.svg" onChange={(e) => setIcon(e.target.value)}/>
|
<Input id="icon" type="text" placeholder="e.g. https://www.portainer.io/hubfs/portainer-logo-black.svg" onChange={(e) => setIcon(e.target.value)}/>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid w-full items-center gap-1.5">
|
<div className="grid w-full items-center gap-1.5">
|
||||||
<Label htmlFor="picture">Public URL</Label>
|
<Label htmlFor="publicURL">Public URL</Label>
|
||||||
<Input id="name" type="text" placeholder="e.g. https://portainer.lastname.com" onChange={(e) => setPublicURL(e.target.value)}/>
|
<Input id="publicURL" type="text" placeholder="e.g. https://portainer.lastname.com" onChange={(e) => setPublicURL(e.target.value)}/>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid w-full items-center gap-1.5">
|
<div className="grid w-full items-center gap-1.5">
|
||||||
<Label htmlFor="picture">Local URL <span className="text-stone-600">(optional)</span></Label>
|
<Label htmlFor="localURL">Local URL <span className="text-stone-600">(optional)</span></Label>
|
||||||
<Input id="name" type="text" placeholder="e.g. hhtp://localhost:3000" onChange={(e) => setLocalURL(e.target.value)}/>
|
<Input id="localURL" type="text" placeholder="e.g. http://localhost:3000" onChange={(e) => setLocalURL(e.target.value)}/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</p>
|
|
||||||
</AlertDialogDescription>
|
</AlertDialogDescription>
|
||||||
</AlertDialogHeader>
|
</AlertDialogHeader>
|
||||||
<AlertDialogFooter>
|
<AlertDialogFooter>
|
||||||
@ -136,42 +174,80 @@ export default function Dashboard() {
|
|||||||
</AlertDialog>
|
</AlertDialog>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<Card className="w-full">
|
{applications.map((app) => (
|
||||||
|
<Card key={app.id} className="w-full mb-4">
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<div className="flex items-center justify-between w-full">
|
<div className="flex items-center justify-between w-full">
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<div className="bg-gray-300 w-16 h-16 flex-shrink-0 flex items-center justify-center rounded-md">
|
<div className="w-16 h-16 flex-shrink-0 flex items-center justify-center rounded-md">
|
||||||
|
{app.icon ? (
|
||||||
|
<img src={app.icon} alt={app.name} className="w-full h-full object-contain rounded-md" />
|
||||||
|
) : (
|
||||||
<span className="text-gray-500 text-xs">Image</span>
|
<span className="text-gray-500 text-xs">Image</span>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="ml-4">
|
<div className="ml-4">
|
||||||
<CardTitle>Project Name</CardTitle>
|
<CardTitle className="text-2xl font-bold">{app.name}</CardTitle>
|
||||||
<CardDescription>Project Name Description</CardDescription>
|
<CardDescription className="text-md">{app.description}</CardDescription>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col items-end justify-start space-y-2 w-[250px]">
|
<div className="flex flex-col items-end justify-start space-y-2 w-[270px]">
|
||||||
<Button variant="outline" className="gap-2 w-full">
|
<div className="flex items-center gap-2 w-full">
|
||||||
|
<div className="flex flex-col space-y-2 flex-grow">
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
className="gap-2 w-full"
|
||||||
|
onClick={() => window.open(app.publicURL, "_blank")}
|
||||||
|
>
|
||||||
<Link className="h-4 w-4" />
|
<Link className="h-4 w-4" />
|
||||||
Open Public URL
|
Open Public URL
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="outline" className="gap-2 w-full">
|
{app.localURL && (
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
className="gap-2 w-full"
|
||||||
|
onClick={() => window.open(app.localURL, "_blank")}
|
||||||
|
>
|
||||||
<Home className="h-4 w-4" />
|
<Home className="h-4 w-4" />
|
||||||
Open Local URL
|
Open Local URL
|
||||||
</Button>
|
</Button>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<Button
|
||||||
|
variant="destructive"
|
||||||
|
size="icon"
|
||||||
|
className="h-[72px] w-10"
|
||||||
|
onClick={() => deleteApplication(app.id)}
|
||||||
|
>
|
||||||
|
<Trash2 className="h-4 w-4" />
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
</Card>
|
</Card>
|
||||||
|
))}
|
||||||
<div className="pt-4">
|
<div className="pt-4">
|
||||||
<Pagination>
|
<Pagination>
|
||||||
<PaginationContent>
|
<PaginationContent>
|
||||||
<PaginationItem>
|
<PaginationItem>
|
||||||
<PaginationPrevious href="#" />
|
<PaginationPrevious
|
||||||
|
href="#"
|
||||||
|
onClick={handlePrevious}
|
||||||
|
isActive={currentPage > 1}
|
||||||
|
/>
|
||||||
</PaginationItem>
|
</PaginationItem>
|
||||||
|
|
||||||
<PaginationItem>
|
<PaginationItem>
|
||||||
<PaginationLink href="#">1</PaginationLink>
|
<PaginationLink isActive>{currentPage}</PaginationLink>
|
||||||
</PaginationItem>
|
</PaginationItem>
|
||||||
|
|
||||||
<PaginationItem>
|
<PaginationItem>
|
||||||
<PaginationNext href="#" />
|
<PaginationNext
|
||||||
|
href="#"
|
||||||
|
onClick={handleNext}
|
||||||
|
isActive={currentPage < maxPage}
|
||||||
|
/>
|
||||||
</PaginationItem>
|
</PaginationItem>
|
||||||
</PaginationContent>
|
</PaginationContent>
|
||||||
</Pagination>
|
</Pagination>
|
||||||
|
|||||||
@ -95,7 +95,8 @@ exports.Prisma.ApplicationScalarFieldEnum = {
|
|||||||
description: 'description',
|
description: 'description',
|
||||||
icon: 'icon',
|
icon: 'icon',
|
||||||
publicURL: 'publicURL',
|
publicURL: 'publicURL',
|
||||||
localURL: 'localURL'
|
localURL: 'localURL',
|
||||||
|
createdAt: 'createdAt'
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.Prisma.SortOrder = {
|
exports.Prisma.SortOrder = {
|
||||||
@ -156,22 +157,21 @@ const config = {
|
|||||||
"db"
|
"db"
|
||||||
],
|
],
|
||||||
"activeProvider": "postgresql",
|
"activeProvider": "postgresql",
|
||||||
"postinstall": false,
|
|
||||||
"inlineDatasources": {
|
"inlineDatasources": {
|
||||||
"db": {
|
"db": {
|
||||||
"url": {
|
"url": {
|
||||||
"fromEnvVar": "DATABASE_URL",
|
"fromEnvVar": "DATABASE_URL",
|
||||||
"value": null
|
"value": "postgresql://neondb_owner:npg_YQTAU0fB4eIr@ep-plain-bar-a2mke00k-pooler.eu-central-1.aws.neon.tech/neondb?sslmode=require&schema=public"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../lib/generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel application {\n id Int @id @default(autoincrement())\n name String\n description String?\n icon String\n publicURL String\n localURL String?\n}\n",
|
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../lib/generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel application {\n id Int @id @default(autoincrement())\n name String\n description String?\n icon String\n publicURL String\n localURL String?\n createdAt DateTime @default(now())\n}\n",
|
||||||
"inlineSchemaHash": "ba111bf7db830816deaa667f901c92ede10158f08d21c3b53512f9d4deb3f120",
|
"inlineSchemaHash": "a88ccb95a95cecea3377921cba4acd0f6f61b3cb7a62a3305def44cbec42c555",
|
||||||
"copyEngine": true
|
"copyEngine": true
|
||||||
}
|
}
|
||||||
config.dirname = '/'
|
config.dirname = '/'
|
||||||
|
|
||||||
config.runtimeDataModel = JSON.parse("{\"models\":{\"application\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"publicURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"localURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}")
|
config.runtimeDataModel = JSON.parse("{\"models\":{\"application\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"publicURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"localURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}")
|
||||||
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
||||||
config.engineWasm = undefined
|
config.engineWasm = undefined
|
||||||
config.compilerWasm = undefined
|
config.compilerWasm = undefined
|
||||||
|
|||||||
@ -123,7 +123,8 @@ exports.Prisma.ApplicationScalarFieldEnum = {
|
|||||||
description: 'description',
|
description: 'description',
|
||||||
icon: 'icon',
|
icon: 'icon',
|
||||||
publicURL: 'publicURL',
|
publicURL: 'publicURL',
|
||||||
localURL: 'localURL'
|
localURL: 'localURL',
|
||||||
|
createdAt: 'createdAt'
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.Prisma.SortOrder = {
|
exports.Prisma.SortOrder = {
|
||||||
|
|||||||
101
lib/generated/prisma/index.d.ts
vendored
101
lib/generated/prisma/index.d.ts
vendored
@ -896,6 +896,7 @@ export namespace Prisma {
|
|||||||
icon: string | null
|
icon: string | null
|
||||||
publicURL: string | null
|
publicURL: string | null
|
||||||
localURL: string | null
|
localURL: string | null
|
||||||
|
createdAt: Date | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ApplicationMaxAggregateOutputType = {
|
export type ApplicationMaxAggregateOutputType = {
|
||||||
@ -905,6 +906,7 @@ export namespace Prisma {
|
|||||||
icon: string | null
|
icon: string | null
|
||||||
publicURL: string | null
|
publicURL: string | null
|
||||||
localURL: string | null
|
localURL: string | null
|
||||||
|
createdAt: Date | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ApplicationCountAggregateOutputType = {
|
export type ApplicationCountAggregateOutputType = {
|
||||||
@ -914,6 +916,7 @@ export namespace Prisma {
|
|||||||
icon: number
|
icon: number
|
||||||
publicURL: number
|
publicURL: number
|
||||||
localURL: number
|
localURL: number
|
||||||
|
createdAt: number
|
||||||
_all: number
|
_all: number
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -933,6 +936,7 @@ export namespace Prisma {
|
|||||||
icon?: true
|
icon?: true
|
||||||
publicURL?: true
|
publicURL?: true
|
||||||
localURL?: true
|
localURL?: true
|
||||||
|
createdAt?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ApplicationMaxAggregateInputType = {
|
export type ApplicationMaxAggregateInputType = {
|
||||||
@ -942,6 +946,7 @@ export namespace Prisma {
|
|||||||
icon?: true
|
icon?: true
|
||||||
publicURL?: true
|
publicURL?: true
|
||||||
localURL?: true
|
localURL?: true
|
||||||
|
createdAt?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ApplicationCountAggregateInputType = {
|
export type ApplicationCountAggregateInputType = {
|
||||||
@ -951,6 +956,7 @@ export namespace Prisma {
|
|||||||
icon?: true
|
icon?: true
|
||||||
publicURL?: true
|
publicURL?: true
|
||||||
localURL?: true
|
localURL?: true
|
||||||
|
createdAt?: true
|
||||||
_all?: true
|
_all?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1047,6 +1053,7 @@ export namespace Prisma {
|
|||||||
icon: string
|
icon: string
|
||||||
publicURL: string
|
publicURL: string
|
||||||
localURL: string | null
|
localURL: string | null
|
||||||
|
createdAt: Date
|
||||||
_count: ApplicationCountAggregateOutputType | null
|
_count: ApplicationCountAggregateOutputType | null
|
||||||
_avg: ApplicationAvgAggregateOutputType | null
|
_avg: ApplicationAvgAggregateOutputType | null
|
||||||
_sum: ApplicationSumAggregateOutputType | null
|
_sum: ApplicationSumAggregateOutputType | null
|
||||||
@ -1075,6 +1082,7 @@ export namespace Prisma {
|
|||||||
icon?: boolean
|
icon?: boolean
|
||||||
publicURL?: boolean
|
publicURL?: boolean
|
||||||
localURL?: boolean
|
localURL?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
}, ExtArgs["result"]["application"]>
|
}, ExtArgs["result"]["application"]>
|
||||||
|
|
||||||
export type applicationSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
export type applicationSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
||||||
@ -1084,6 +1092,7 @@ export namespace Prisma {
|
|||||||
icon?: boolean
|
icon?: boolean
|
||||||
publicURL?: boolean
|
publicURL?: boolean
|
||||||
localURL?: boolean
|
localURL?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
}, ExtArgs["result"]["application"]>
|
}, ExtArgs["result"]["application"]>
|
||||||
|
|
||||||
export type applicationSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
export type applicationSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
||||||
@ -1093,6 +1102,7 @@ export namespace Prisma {
|
|||||||
icon?: boolean
|
icon?: boolean
|
||||||
publicURL?: boolean
|
publicURL?: boolean
|
||||||
localURL?: boolean
|
localURL?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
}, ExtArgs["result"]["application"]>
|
}, ExtArgs["result"]["application"]>
|
||||||
|
|
||||||
export type applicationSelectScalar = {
|
export type applicationSelectScalar = {
|
||||||
@ -1102,9 +1112,10 @@ export namespace Prisma {
|
|||||||
icon?: boolean
|
icon?: boolean
|
||||||
publicURL?: boolean
|
publicURL?: boolean
|
||||||
localURL?: boolean
|
localURL?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type applicationOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "description" | "icon" | "publicURL" | "localURL", ExtArgs["result"]["application"]>
|
export type applicationOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "description" | "icon" | "publicURL" | "localURL" | "createdAt", ExtArgs["result"]["application"]>
|
||||||
|
|
||||||
export type $applicationPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
export type $applicationPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
||||||
name: "application"
|
name: "application"
|
||||||
@ -1116,6 +1127,7 @@ export namespace Prisma {
|
|||||||
icon: string
|
icon: string
|
||||||
publicURL: string
|
publicURL: string
|
||||||
localURL: string | null
|
localURL: string | null
|
||||||
|
createdAt: Date
|
||||||
}, ExtArgs["result"]["application"]>
|
}, ExtArgs["result"]["application"]>
|
||||||
composites: {}
|
composites: {}
|
||||||
}
|
}
|
||||||
@ -1545,6 +1557,7 @@ export namespace Prisma {
|
|||||||
readonly icon: FieldRef<"application", 'String'>
|
readonly icon: FieldRef<"application", 'String'>
|
||||||
readonly publicURL: FieldRef<"application", 'String'>
|
readonly publicURL: FieldRef<"application", 'String'>
|
||||||
readonly localURL: FieldRef<"application", 'String'>
|
readonly localURL: FieldRef<"application", 'String'>
|
||||||
|
readonly createdAt: FieldRef<"application", 'DateTime'>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1931,7 +1944,8 @@ export namespace Prisma {
|
|||||||
description: 'description',
|
description: 'description',
|
||||||
icon: 'icon',
|
icon: 'icon',
|
||||||
publicURL: 'publicURL',
|
publicURL: 'publicURL',
|
||||||
localURL: 'localURL'
|
localURL: 'localURL',
|
||||||
|
createdAt: 'createdAt'
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ApplicationScalarFieldEnum = (typeof ApplicationScalarFieldEnum)[keyof typeof ApplicationScalarFieldEnum]
|
export type ApplicationScalarFieldEnum = (typeof ApplicationScalarFieldEnum)[keyof typeof ApplicationScalarFieldEnum]
|
||||||
@ -1994,6 +2008,20 @@ export namespace Prisma {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reference to a field of type 'DateTime'
|
||||||
|
*/
|
||||||
|
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reference to a field of type 'DateTime[]'
|
||||||
|
*/
|
||||||
|
export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reference to a field of type 'Float'
|
* Reference to a field of type 'Float'
|
||||||
*/
|
*/
|
||||||
@ -2021,6 +2049,7 @@ export namespace Prisma {
|
|||||||
icon?: StringFilter<"application"> | string
|
icon?: StringFilter<"application"> | string
|
||||||
publicURL?: StringFilter<"application"> | string
|
publicURL?: StringFilter<"application"> | string
|
||||||
localURL?: StringNullableFilter<"application"> | string | null
|
localURL?: StringNullableFilter<"application"> | string | null
|
||||||
|
createdAt?: DateTimeFilter<"application"> | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type applicationOrderByWithRelationInput = {
|
export type applicationOrderByWithRelationInput = {
|
||||||
@ -2030,6 +2059,7 @@ export namespace Prisma {
|
|||||||
icon?: SortOrder
|
icon?: SortOrder
|
||||||
publicURL?: SortOrder
|
publicURL?: SortOrder
|
||||||
localURL?: SortOrderInput | SortOrder
|
localURL?: SortOrderInput | SortOrder
|
||||||
|
createdAt?: SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type applicationWhereUniqueInput = Prisma.AtLeast<{
|
export type applicationWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@ -2042,6 +2072,7 @@ export namespace Prisma {
|
|||||||
icon?: StringFilter<"application"> | string
|
icon?: StringFilter<"application"> | string
|
||||||
publicURL?: StringFilter<"application"> | string
|
publicURL?: StringFilter<"application"> | string
|
||||||
localURL?: StringNullableFilter<"application"> | string | null
|
localURL?: StringNullableFilter<"application"> | string | null
|
||||||
|
createdAt?: DateTimeFilter<"application"> | Date | string
|
||||||
}, "id">
|
}, "id">
|
||||||
|
|
||||||
export type applicationOrderByWithAggregationInput = {
|
export type applicationOrderByWithAggregationInput = {
|
||||||
@ -2051,6 +2082,7 @@ export namespace Prisma {
|
|||||||
icon?: SortOrder
|
icon?: SortOrder
|
||||||
publicURL?: SortOrder
|
publicURL?: SortOrder
|
||||||
localURL?: SortOrderInput | SortOrder
|
localURL?: SortOrderInput | SortOrder
|
||||||
|
createdAt?: SortOrder
|
||||||
_count?: applicationCountOrderByAggregateInput
|
_count?: applicationCountOrderByAggregateInput
|
||||||
_avg?: applicationAvgOrderByAggregateInput
|
_avg?: applicationAvgOrderByAggregateInput
|
||||||
_max?: applicationMaxOrderByAggregateInput
|
_max?: applicationMaxOrderByAggregateInput
|
||||||
@ -2068,6 +2100,7 @@ export namespace Prisma {
|
|||||||
icon?: StringWithAggregatesFilter<"application"> | string
|
icon?: StringWithAggregatesFilter<"application"> | string
|
||||||
publicURL?: StringWithAggregatesFilter<"application"> | string
|
publicURL?: StringWithAggregatesFilter<"application"> | string
|
||||||
localURL?: StringNullableWithAggregatesFilter<"application"> | string | null
|
localURL?: StringNullableWithAggregatesFilter<"application"> | string | null
|
||||||
|
createdAt?: DateTimeWithAggregatesFilter<"application"> | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type applicationCreateInput = {
|
export type applicationCreateInput = {
|
||||||
@ -2076,6 +2109,7 @@ export namespace Prisma {
|
|||||||
icon: string
|
icon: string
|
||||||
publicURL: string
|
publicURL: string
|
||||||
localURL?: string | null
|
localURL?: string | null
|
||||||
|
createdAt?: Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type applicationUncheckedCreateInput = {
|
export type applicationUncheckedCreateInput = {
|
||||||
@ -2085,6 +2119,7 @@ export namespace Prisma {
|
|||||||
icon: string
|
icon: string
|
||||||
publicURL: string
|
publicURL: string
|
||||||
localURL?: string | null
|
localURL?: string | null
|
||||||
|
createdAt?: Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type applicationUpdateInput = {
|
export type applicationUpdateInput = {
|
||||||
@ -2093,6 +2128,7 @@ export namespace Prisma {
|
|||||||
icon?: StringFieldUpdateOperationsInput | string
|
icon?: StringFieldUpdateOperationsInput | string
|
||||||
publicURL?: StringFieldUpdateOperationsInput | string
|
publicURL?: StringFieldUpdateOperationsInput | string
|
||||||
localURL?: NullableStringFieldUpdateOperationsInput | string | null
|
localURL?: NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type applicationUncheckedUpdateInput = {
|
export type applicationUncheckedUpdateInput = {
|
||||||
@ -2102,6 +2138,7 @@ export namespace Prisma {
|
|||||||
icon?: StringFieldUpdateOperationsInput | string
|
icon?: StringFieldUpdateOperationsInput | string
|
||||||
publicURL?: StringFieldUpdateOperationsInput | string
|
publicURL?: StringFieldUpdateOperationsInput | string
|
||||||
localURL?: NullableStringFieldUpdateOperationsInput | string | null
|
localURL?: NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type applicationCreateManyInput = {
|
export type applicationCreateManyInput = {
|
||||||
@ -2111,6 +2148,7 @@ export namespace Prisma {
|
|||||||
icon: string
|
icon: string
|
||||||
publicURL: string
|
publicURL: string
|
||||||
localURL?: string | null
|
localURL?: string | null
|
||||||
|
createdAt?: Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type applicationUpdateManyMutationInput = {
|
export type applicationUpdateManyMutationInput = {
|
||||||
@ -2119,6 +2157,7 @@ export namespace Prisma {
|
|||||||
icon?: StringFieldUpdateOperationsInput | string
|
icon?: StringFieldUpdateOperationsInput | string
|
||||||
publicURL?: StringFieldUpdateOperationsInput | string
|
publicURL?: StringFieldUpdateOperationsInput | string
|
||||||
localURL?: NullableStringFieldUpdateOperationsInput | string | null
|
localURL?: NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type applicationUncheckedUpdateManyInput = {
|
export type applicationUncheckedUpdateManyInput = {
|
||||||
@ -2128,6 +2167,7 @@ export namespace Prisma {
|
|||||||
icon?: StringFieldUpdateOperationsInput | string
|
icon?: StringFieldUpdateOperationsInput | string
|
||||||
publicURL?: StringFieldUpdateOperationsInput | string
|
publicURL?: StringFieldUpdateOperationsInput | string
|
||||||
localURL?: NullableStringFieldUpdateOperationsInput | string | null
|
localURL?: NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IntFilter<$PrismaModel = never> = {
|
export type IntFilter<$PrismaModel = never> = {
|
||||||
@ -2171,6 +2211,17 @@ export namespace Prisma {
|
|||||||
not?: NestedStringNullableFilter<$PrismaModel> | string | null
|
not?: NestedStringNullableFilter<$PrismaModel> | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type DateTimeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
|
||||||
|
}
|
||||||
|
|
||||||
export type SortOrderInput = {
|
export type SortOrderInput = {
|
||||||
sort: SortOrder
|
sort: SortOrder
|
||||||
nulls?: NullsOrder
|
nulls?: NullsOrder
|
||||||
@ -2183,6 +2234,7 @@ export namespace Prisma {
|
|||||||
icon?: SortOrder
|
icon?: SortOrder
|
||||||
publicURL?: SortOrder
|
publicURL?: SortOrder
|
||||||
localURL?: SortOrder
|
localURL?: SortOrder
|
||||||
|
createdAt?: SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type applicationAvgOrderByAggregateInput = {
|
export type applicationAvgOrderByAggregateInput = {
|
||||||
@ -2196,6 +2248,7 @@ export namespace Prisma {
|
|||||||
icon?: SortOrder
|
icon?: SortOrder
|
||||||
publicURL?: SortOrder
|
publicURL?: SortOrder
|
||||||
localURL?: SortOrder
|
localURL?: SortOrder
|
||||||
|
createdAt?: SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type applicationMinOrderByAggregateInput = {
|
export type applicationMinOrderByAggregateInput = {
|
||||||
@ -2205,6 +2258,7 @@ export namespace Prisma {
|
|||||||
icon?: SortOrder
|
icon?: SortOrder
|
||||||
publicURL?: SortOrder
|
publicURL?: SortOrder
|
||||||
localURL?: SortOrder
|
localURL?: SortOrder
|
||||||
|
createdAt?: SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type applicationSumOrderByAggregateInput = {
|
export type applicationSumOrderByAggregateInput = {
|
||||||
@ -2263,6 +2317,20 @@ export namespace Prisma {
|
|||||||
_max?: NestedStringNullableFilter<$PrismaModel>
|
_max?: NestedStringNullableFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
||||||
|
_count?: NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: NestedDateTimeFilter<$PrismaModel>
|
||||||
|
_max?: NestedDateTimeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type StringFieldUpdateOperationsInput = {
|
export type StringFieldUpdateOperationsInput = {
|
||||||
set?: string
|
set?: string
|
||||||
}
|
}
|
||||||
@ -2271,6 +2339,10 @@ export namespace Prisma {
|
|||||||
set?: string | null
|
set?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type DateTimeFieldUpdateOperationsInput = {
|
||||||
|
set?: Date | string
|
||||||
|
}
|
||||||
|
|
||||||
export type IntFieldUpdateOperationsInput = {
|
export type IntFieldUpdateOperationsInput = {
|
||||||
set?: number
|
set?: number
|
||||||
increment?: number
|
increment?: number
|
||||||
@ -2318,6 +2390,17 @@ export namespace Prisma {
|
|||||||
not?: NestedStringNullableFilter<$PrismaModel> | string | null
|
not?: NestedStringNullableFilter<$PrismaModel> | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
not?: NestedDateTimeFilter<$PrismaModel> | Date | string
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | IntFieldRefInput<$PrismaModel>
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
||||||
in?: number[] | ListIntFieldRefInput<$PrismaModel>
|
in?: number[] | ListIntFieldRefInput<$PrismaModel>
|
||||||
@ -2390,6 +2473,20 @@ export namespace Prisma {
|
|||||||
not?: NestedIntNullableFilter<$PrismaModel> | number | null
|
not?: NestedIntNullableFilter<$PrismaModel> | number | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
||||||
|
_count?: NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: NestedDateTimeFilter<$PrismaModel>
|
||||||
|
_max?: NestedDateTimeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -96,7 +96,8 @@ exports.Prisma.ApplicationScalarFieldEnum = {
|
|||||||
description: 'description',
|
description: 'description',
|
||||||
icon: 'icon',
|
icon: 'icon',
|
||||||
publicURL: 'publicURL',
|
publicURL: 'publicURL',
|
||||||
localURL: 'localURL'
|
localURL: 'localURL',
|
||||||
|
createdAt: 'createdAt'
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.Prisma.SortOrder = {
|
exports.Prisma.SortOrder = {
|
||||||
@ -157,17 +158,16 @@ const config = {
|
|||||||
"db"
|
"db"
|
||||||
],
|
],
|
||||||
"activeProvider": "postgresql",
|
"activeProvider": "postgresql",
|
||||||
"postinstall": false,
|
|
||||||
"inlineDatasources": {
|
"inlineDatasources": {
|
||||||
"db": {
|
"db": {
|
||||||
"url": {
|
"url": {
|
||||||
"fromEnvVar": "DATABASE_URL",
|
"fromEnvVar": "DATABASE_URL",
|
||||||
"value": null
|
"value": "postgresql://neondb_owner:npg_YQTAU0fB4eIr@ep-plain-bar-a2mke00k-pooler.eu-central-1.aws.neon.tech/neondb?sslmode=require&schema=public"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../lib/generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel application {\n id Int @id @default(autoincrement())\n name String\n description String?\n icon String\n publicURL String\n localURL String?\n}\n",
|
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../lib/generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel application {\n id Int @id @default(autoincrement())\n name String\n description String?\n icon String\n publicURL String\n localURL String?\n createdAt DateTime @default(now())\n}\n",
|
||||||
"inlineSchemaHash": "ba111bf7db830816deaa667f901c92ede10158f08d21c3b53512f9d4deb3f120",
|
"inlineSchemaHash": "a88ccb95a95cecea3377921cba4acd0f6f61b3cb7a62a3305def44cbec42c555",
|
||||||
"copyEngine": true
|
"copyEngine": true
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -188,7 +188,7 @@ if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) {
|
|||||||
config.isBundled = true
|
config.isBundled = true
|
||||||
}
|
}
|
||||||
|
|
||||||
config.runtimeDataModel = JSON.parse("{\"models\":{\"application\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"publicURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"localURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}")
|
config.runtimeDataModel = JSON.parse("{\"models\":{\"application\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"icon\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"publicURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"localURL\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}")
|
||||||
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
||||||
config.engineWasm = undefined
|
config.engineWasm = undefined
|
||||||
config.compilerWasm = undefined
|
config.compilerWasm = undefined
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "prisma-client-6fb275d77fa13fc104202c4288238f61c95529994fd9438b66d859c9b36cc546",
|
"name": "prisma-client-f866ab83e1fdba807723a2c13419542ace85abe9dc3c3c95678bc48381e8217e",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"browser": "index-browser.js",
|
"browser": "index-browser.js",
|
||||||
|
|||||||
BIN
lib/generated/prisma/query_engine-windows.dll.node.tmp15728
Normal file
BIN
lib/generated/prisma/query_engine-windows.dll.node.tmp15728
Normal file
Binary file not shown.
@ -123,7 +123,8 @@ exports.Prisma.ApplicationScalarFieldEnum = {
|
|||||||
description: 'description',
|
description: 'description',
|
||||||
icon: 'icon',
|
icon: 'icon',
|
||||||
publicURL: 'publicURL',
|
publicURL: 'publicURL',
|
||||||
localURL: 'localURL'
|
localURL: 'localURL',
|
||||||
|
createdAt: 'createdAt'
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.Prisma.SortOrder = {
|
exports.Prisma.SortOrder = {
|
||||||
|
|||||||
@ -0,0 +1,2 @@
|
|||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "application" ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
|
||||||
@ -21,4 +21,5 @@ model application {
|
|||||||
icon String
|
icon String
|
||||||
publicURL String
|
publicURL String
|
||||||
localURL String?
|
localURL String?
|
||||||
|
createdAt DateTime @default(now())
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user