mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: add docker registry upload
This commit is contained in:
@@ -0,0 +1,199 @@
|
|||||||
|
import React from "react";
|
||||||
|
import {
|
||||||
|
Card,
|
||||||
|
CardContent,
|
||||||
|
CardDescription,
|
||||||
|
CardHeader,
|
||||||
|
CardTitle,
|
||||||
|
} from "@/components/ui/card";
|
||||||
|
import { api } from "@/utils/api";
|
||||||
|
import { z } from "zod";
|
||||||
|
import {
|
||||||
|
Form,
|
||||||
|
FormControl,
|
||||||
|
FormField,
|
||||||
|
FormItem,
|
||||||
|
FormLabel,
|
||||||
|
FormMessage,
|
||||||
|
} from "@/components/ui/form";
|
||||||
|
import { toast } from "sonner";
|
||||||
|
import { zodResolver } from "@hookform/resolvers/zod";
|
||||||
|
import { useForm } from "react-hook-form";
|
||||||
|
import { useEffect } from "react";
|
||||||
|
import { Button } from "@/components/ui/button";
|
||||||
|
import { Input } from "@/components/ui/input";
|
||||||
|
import {
|
||||||
|
Select,
|
||||||
|
SelectContent,
|
||||||
|
SelectGroup,
|
||||||
|
SelectItem,
|
||||||
|
SelectLabel,
|
||||||
|
SelectTrigger,
|
||||||
|
SelectValue,
|
||||||
|
} from "@/components/ui/select";
|
||||||
|
import Link from "next/link";
|
||||||
|
import { Server } from "lucide-react";
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
applicationId: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const AddRedirectchema = z.object({
|
||||||
|
replicas: z.number(),
|
||||||
|
registryId: z.string(),
|
||||||
|
});
|
||||||
|
|
||||||
|
type AddCommand = z.infer<typeof AddRedirectchema>;
|
||||||
|
|
||||||
|
export const ShowClusterSettings = ({ applicationId }: Props) => {
|
||||||
|
const { data } = api.application.one.useQuery(
|
||||||
|
{
|
||||||
|
applicationId,
|
||||||
|
},
|
||||||
|
{ enabled: !!applicationId },
|
||||||
|
);
|
||||||
|
|
||||||
|
const { data: registries } = api.registry.all.useQuery();
|
||||||
|
|
||||||
|
const utils = api.useUtils();
|
||||||
|
|
||||||
|
const { mutateAsync, isLoading } = api.application.update.useMutation();
|
||||||
|
|
||||||
|
const form = useForm<AddCommand>({
|
||||||
|
defaultValues: {
|
||||||
|
registryId: data?.registryId || "",
|
||||||
|
replicas: data?.replicas || 1,
|
||||||
|
},
|
||||||
|
resolver: zodResolver(AddRedirectchema),
|
||||||
|
});
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (data?.command) {
|
||||||
|
form.reset({
|
||||||
|
registryId: data?.registryId || "",
|
||||||
|
replicas: data?.replicas || 1,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, [form, form.reset, form.formState.isSubmitSuccessful, data?.command]);
|
||||||
|
|
||||||
|
const onSubmit = async (data: AddCommand) => {
|
||||||
|
await mutateAsync({
|
||||||
|
applicationId,
|
||||||
|
registryId: data?.registryId,
|
||||||
|
replicas: data?.replicas,
|
||||||
|
})
|
||||||
|
.then(async () => {
|
||||||
|
toast.success("Command Updated");
|
||||||
|
await utils.application.one.invalidate({
|
||||||
|
applicationId,
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
toast.error("Error to update the command");
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Card className="bg-background">
|
||||||
|
<CardHeader className="flex flex-row justify-between">
|
||||||
|
<div>
|
||||||
|
<CardTitle className="text-xl">Cluster Settings</CardTitle>
|
||||||
|
<CardDescription>
|
||||||
|
Add the registry and the replicas of the application
|
||||||
|
</CardDescription>
|
||||||
|
</div>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent className="flex flex-col gap-4">
|
||||||
|
<Form {...form}>
|
||||||
|
<form
|
||||||
|
onSubmit={form.handleSubmit(onSubmit)}
|
||||||
|
className="grid w-full gap-4"
|
||||||
|
>
|
||||||
|
<div className="flex flex-col gap-4">
|
||||||
|
<FormField
|
||||||
|
control={form.control}
|
||||||
|
name="replicas"
|
||||||
|
render={({ field }) => (
|
||||||
|
<FormItem>
|
||||||
|
<FormLabel>Replicas</FormLabel>
|
||||||
|
<FormControl>
|
||||||
|
<Input
|
||||||
|
placeholder="1"
|
||||||
|
{...field}
|
||||||
|
onChange={(e) => {
|
||||||
|
field.onChange(Number(e.target.value));
|
||||||
|
}}
|
||||||
|
type="number"
|
||||||
|
/>
|
||||||
|
</FormControl>
|
||||||
|
|
||||||
|
<FormMessage />
|
||||||
|
</FormItem>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{registries && registries?.length === 0 ? (
|
||||||
|
<div className="pt-10">
|
||||||
|
<div className="flex flex-col items-center gap-3">
|
||||||
|
<Server className="size-8 text-muted-foreground" />
|
||||||
|
<span className="text-base text-muted-foreground">
|
||||||
|
To use a cluster feature, you need to configure at least a
|
||||||
|
registry first. Please, go to{" "}
|
||||||
|
<Link
|
||||||
|
href="/dashboard/settings/cluster"
|
||||||
|
className="text-foreground"
|
||||||
|
>
|
||||||
|
Settings
|
||||||
|
</Link>{" "}
|
||||||
|
to do so.
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<FormField
|
||||||
|
control={form.control}
|
||||||
|
name="registryId"
|
||||||
|
render={({ field }) => (
|
||||||
|
<FormItem>
|
||||||
|
<FormLabel>Select a registry</FormLabel>
|
||||||
|
<Select
|
||||||
|
onValueChange={field.onChange}
|
||||||
|
defaultValue={field.value}
|
||||||
|
>
|
||||||
|
<SelectTrigger>
|
||||||
|
<SelectValue placeholder="Select a container" />
|
||||||
|
</SelectTrigger>
|
||||||
|
<SelectContent>
|
||||||
|
<SelectGroup>
|
||||||
|
{registries?.map((registry) => (
|
||||||
|
<SelectItem
|
||||||
|
key={registry.registryId}
|
||||||
|
value={registry.registryId}
|
||||||
|
>
|
||||||
|
{registry.registryName}
|
||||||
|
</SelectItem>
|
||||||
|
))}
|
||||||
|
<SelectLabel>
|
||||||
|
Registries ({registries?.length})
|
||||||
|
</SelectLabel>
|
||||||
|
</SelectGroup>
|
||||||
|
</SelectContent>
|
||||||
|
</Select>
|
||||||
|
</FormItem>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
<div className="flex justify-end">
|
||||||
|
<Button isLoading={isLoading} type="submit" className="w-fit">
|
||||||
|
Save
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</Form>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -23,6 +23,7 @@ import { AlertTriangle, Container } from "lucide-react";
|
|||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
|
import { toast } from "sonner";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
const AddRegistrySchema = z.object({
|
const AddRegistrySchema = z.object({
|
||||||
@@ -38,6 +39,7 @@ const AddRegistrySchema = z.object({
|
|||||||
registryUrl: z.string().min(1, {
|
registryUrl: z.string().min(1, {
|
||||||
message: "Registry URL is required",
|
message: "Registry URL is required",
|
||||||
}),
|
}),
|
||||||
|
imagePrefix: z.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
type AddRegistry = z.infer<typeof AddRegistrySchema>;
|
type AddRegistry = z.infer<typeof AddRegistrySchema>;
|
||||||
@@ -45,39 +47,55 @@ type AddRegistry = z.infer<typeof AddRegistrySchema>;
|
|||||||
export const AddRegistry = () => {
|
export const AddRegistry = () => {
|
||||||
const utils = api.useUtils();
|
const utils = api.useUtils();
|
||||||
const [isOpen, setIsOpen] = useState(false);
|
const [isOpen, setIsOpen] = useState(false);
|
||||||
const { mutateAsync, error, isError } = api.project.create.useMutation();
|
const { mutateAsync, error, isError } = api.registry.create.useMutation();
|
||||||
|
const { mutateAsync: testRegistry, isLoading } =
|
||||||
|
api.registry.testRegistry.useMutation();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const form = useForm<AddRegistry>({
|
const form = useForm<AddRegistry>({
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
username: "",
|
username: "",
|
||||||
password: "",
|
password: "",
|
||||||
registryUrl: "",
|
registryUrl: "",
|
||||||
|
imagePrefix: "",
|
||||||
|
registryName: "",
|
||||||
},
|
},
|
||||||
resolver: zodResolver(AddRegistrySchema),
|
resolver: zodResolver(AddRegistrySchema),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log(form.formState.errors);
|
||||||
|
|
||||||
|
const password = form.watch("password");
|
||||||
|
const username = form.watch("username");
|
||||||
|
const registryUrl = form.watch("registryUrl");
|
||||||
|
const registryName = form.watch("registryName");
|
||||||
|
const imagePrefix = form.watch("imagePrefix");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
form.reset({
|
form.reset({
|
||||||
username: "",
|
username: "",
|
||||||
password: "",
|
password: "",
|
||||||
registryUrl: "",
|
registryUrl: "",
|
||||||
|
imagePrefix: "",
|
||||||
});
|
});
|
||||||
}, [form, form.reset, form.formState.isSubmitSuccessful]);
|
}, [form, form.reset, form.formState.isSubmitSuccessful]);
|
||||||
|
|
||||||
const onSubmit = async (data: AddRegistry) => {
|
const onSubmit = async (data: AddRegistry) => {
|
||||||
// await mutateAsync({
|
await mutateAsync({
|
||||||
// name: data.name,
|
password: data.password,
|
||||||
// description: data.description,
|
registryName: data.registryName,
|
||||||
// })
|
username: data.username,
|
||||||
// .then(async (data) => {
|
registryUrl: data.registryUrl,
|
||||||
// await utils.project.all.invalidate();
|
registryType: "cloud",
|
||||||
// toast.success("Project Created");
|
imagePrefix: data.imagePrefix,
|
||||||
// setIsOpen(false);
|
})
|
||||||
// router.push(`/dashboard/project/${data.projectId}`);
|
.then(async (data) => {
|
||||||
// })
|
await utils.registry.all.invalidate();
|
||||||
// .catch(() => {
|
toast.success("Registry added");
|
||||||
// toast.error("Error to create a project");
|
setIsOpen(false);
|
||||||
// });
|
})
|
||||||
|
.catch(() => {
|
||||||
|
toast.error("Error to add a registry");
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -160,6 +178,22 @@ export const AddRegistry = () => {
|
|||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="flex flex-col gap-4">
|
||||||
|
<FormField
|
||||||
|
control={form.control}
|
||||||
|
name="imagePrefix"
|
||||||
|
render={({ field }) => (
|
||||||
|
<FormItem>
|
||||||
|
<FormLabel>Image Prefix</FormLabel>
|
||||||
|
<FormControl>
|
||||||
|
<Input {...field} placeholder="Image Prefix" />
|
||||||
|
</FormControl>
|
||||||
|
|
||||||
|
<FormMessage />
|
||||||
|
</FormItem>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<div className="flex flex-col gap-4">
|
<div className="flex flex-col gap-4">
|
||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
@@ -169,9 +203,8 @@ export const AddRegistry = () => {
|
|||||||
<FormLabel>Registry URL</FormLabel>
|
<FormLabel>Registry URL</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input
|
<Input
|
||||||
placeholder="https://aws_account_id.dkr.ecr.us-west-2.amazonaws.c"
|
placeholder="https://aws_account_id.dkr.ecr.us-west-2.amazonaws.com"
|
||||||
{...field}
|
{...field}
|
||||||
type="password"
|
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|
||||||
@@ -180,7 +213,34 @@ export const AddRegistry = () => {
|
|||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<DialogFooter>
|
<DialogFooter className="flex flex-row w-full sm:justify-between gap-4 flex-wrap">
|
||||||
|
<Button
|
||||||
|
type="button"
|
||||||
|
variant={"secondary"}
|
||||||
|
isLoading={isLoading}
|
||||||
|
onClick={async () => {
|
||||||
|
if (!form.formState.isValid) {
|
||||||
|
toast.error("Please fill all the fields");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
await testRegistry({
|
||||||
|
username: username,
|
||||||
|
password: password,
|
||||||
|
registryUrl: registryUrl,
|
||||||
|
registryName: registryName,
|
||||||
|
registryType: "cloud",
|
||||||
|
imagePrefix: imagePrefix,
|
||||||
|
}).then((data) => {
|
||||||
|
if (data) {
|
||||||
|
toast.success("Registry Tested Successfully");
|
||||||
|
} else {
|
||||||
|
toast.error("Registry Test Failed");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Test Registry
|
||||||
|
</Button>
|
||||||
<Button isLoading={form.formState.isSubmitting} type="submit">
|
<Button isLoading={form.formState.isSubmitting} type="submit">
|
||||||
Create
|
Create
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -0,0 +1,179 @@
|
|||||||
|
import { Button } from "@/components/ui/button";
|
||||||
|
import {
|
||||||
|
Dialog,
|
||||||
|
DialogContent,
|
||||||
|
DialogDescription,
|
||||||
|
DialogFooter,
|
||||||
|
DialogHeader,
|
||||||
|
DialogTitle,
|
||||||
|
DialogTrigger,
|
||||||
|
} from "@/components/ui/dialog";
|
||||||
|
import {
|
||||||
|
Form,
|
||||||
|
FormControl,
|
||||||
|
FormDescription,
|
||||||
|
FormField,
|
||||||
|
FormItem,
|
||||||
|
FormLabel,
|
||||||
|
FormMessage,
|
||||||
|
} from "@/components/ui/form";
|
||||||
|
import { Input } from "@/components/ui/input";
|
||||||
|
import { api } from "@/utils/api";
|
||||||
|
import { zodResolver } from "@hookform/resolvers/zod";
|
||||||
|
import { AlertTriangle, Container } from "lucide-react";
|
||||||
|
import { useRouter } from "next/router";
|
||||||
|
import { useEffect, useState } from "react";
|
||||||
|
import { useForm } from "react-hook-form";
|
||||||
|
import { toast } from "sonner";
|
||||||
|
import { z } from "zod";
|
||||||
|
|
||||||
|
const AddRegistrySchema = z.object({
|
||||||
|
username: z.string().min(1, {
|
||||||
|
message: "Username is required",
|
||||||
|
}),
|
||||||
|
password: z.string().min(1, {
|
||||||
|
message: "Password is required",
|
||||||
|
}),
|
||||||
|
registryUrl: z.string().min(1, {
|
||||||
|
message: "Registry URL is required",
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
|
||||||
|
type AddRegistry = z.infer<typeof AddRegistrySchema>;
|
||||||
|
|
||||||
|
export const AddSelfHostedRegistry = () => {
|
||||||
|
const utils = api.useUtils();
|
||||||
|
const [isOpen, setIsOpen] = useState(false);
|
||||||
|
const { mutateAsync, error, isError, isLoading } =
|
||||||
|
api.registry.enableSelfHostedRegistry.useMutation();
|
||||||
|
const router = useRouter();
|
||||||
|
const form = useForm<AddRegistry>({
|
||||||
|
defaultValues: {
|
||||||
|
username: "siumauricio",
|
||||||
|
password: "Password123",
|
||||||
|
registryUrl: "https://registry.dokploy.com",
|
||||||
|
},
|
||||||
|
resolver: zodResolver(AddRegistrySchema),
|
||||||
|
});
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
form.reset({
|
||||||
|
registryUrl: "https://registry.dokploy.com",
|
||||||
|
username: "siumauricio",
|
||||||
|
password: "Password123",
|
||||||
|
});
|
||||||
|
}, [form, form.reset, form.formState.isSubmitSuccessful]);
|
||||||
|
|
||||||
|
const onSubmit = async (data: AddRegistry) => {
|
||||||
|
await mutateAsync({
|
||||||
|
registryUrl: data.registryUrl,
|
||||||
|
username: data.username,
|
||||||
|
password: data.password,
|
||||||
|
})
|
||||||
|
.then(async (data) => {
|
||||||
|
await utils.registry.all.invalidate();
|
||||||
|
toast.success("Self Hosted Registry Created");
|
||||||
|
setIsOpen(false);
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
toast.error("Error to create a self hosted registry");
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Dialog open={isOpen} onOpenChange={setIsOpen}>
|
||||||
|
<DialogTrigger asChild>
|
||||||
|
<Button>
|
||||||
|
<Container className="h-4 w-4" />
|
||||||
|
Enable Self Hosted Registry
|
||||||
|
</Button>
|
||||||
|
</DialogTrigger>
|
||||||
|
<DialogContent className="sm:m:max-w-lg ">
|
||||||
|
<DialogHeader>
|
||||||
|
<DialogTitle>Add a self hosted registry</DialogTitle>
|
||||||
|
<DialogDescription>
|
||||||
|
Fill the next fields to add a self hosted registry.
|
||||||
|
</DialogDescription>
|
||||||
|
</DialogHeader>
|
||||||
|
{isError && (
|
||||||
|
<div className="flex flex-row gap-4 rounded-lg bg-red-50 p-2 dark:bg-red-950">
|
||||||
|
<AlertTriangle className="text-red-600 dark:text-red-400" />
|
||||||
|
<span className="text-sm text-red-600 dark:text-red-400">
|
||||||
|
{error?.message}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<Form {...form}>
|
||||||
|
<form
|
||||||
|
onSubmit={form.handleSubmit(onSubmit)}
|
||||||
|
className="grid w-full gap-4"
|
||||||
|
>
|
||||||
|
<div className="flex flex-col gap-4">
|
||||||
|
<FormField
|
||||||
|
control={form.control}
|
||||||
|
name="username"
|
||||||
|
render={({ field }) => (
|
||||||
|
<FormItem>
|
||||||
|
<FormLabel>Username</FormLabel>
|
||||||
|
<FormControl>
|
||||||
|
<Input placeholder="Username" {...field} />
|
||||||
|
</FormControl>
|
||||||
|
|
||||||
|
<FormMessage />
|
||||||
|
</FormItem>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="flex flex-col gap-4">
|
||||||
|
<FormField
|
||||||
|
control={form.control}
|
||||||
|
name="password"
|
||||||
|
render={({ field }) => (
|
||||||
|
<FormItem>
|
||||||
|
<FormLabel>Password</FormLabel>
|
||||||
|
<FormControl>
|
||||||
|
<Input
|
||||||
|
placeholder="Password"
|
||||||
|
{...field}
|
||||||
|
type="password"
|
||||||
|
/>
|
||||||
|
</FormControl>
|
||||||
|
|
||||||
|
<FormMessage />
|
||||||
|
</FormItem>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="flex flex-col gap-4">
|
||||||
|
<FormField
|
||||||
|
control={form.control}
|
||||||
|
name="registryUrl"
|
||||||
|
render={({ field }) => (
|
||||||
|
<FormItem>
|
||||||
|
<FormLabel>Registry URL</FormLabel>
|
||||||
|
<FormControl>
|
||||||
|
<Input
|
||||||
|
placeholder="https://registry.dokploy.com"
|
||||||
|
{...field}
|
||||||
|
/>
|
||||||
|
</FormControl>
|
||||||
|
<FormDescription>
|
||||||
|
Point a DNS record to the VPS IP address.
|
||||||
|
</FormDescription>
|
||||||
|
|
||||||
|
<FormMessage />
|
||||||
|
</FormItem>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<DialogFooter>
|
||||||
|
<Button isLoading={isLoading} type="submit">
|
||||||
|
Create
|
||||||
|
</Button>
|
||||||
|
</DialogFooter>
|
||||||
|
</form>
|
||||||
|
</Form>
|
||||||
|
</DialogContent>
|
||||||
|
</Dialog>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -12,35 +12,44 @@ import {
|
|||||||
} from "@/components/ui/alert-dialog";
|
} from "@/components/ui/alert-dialog";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { api } from "@/utils/api";
|
import { api } from "@/utils/api";
|
||||||
|
import { TrashIcon } from "lucide-react";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
|
|
||||||
export const AddSelfRegistry = () => {
|
interface Props {
|
||||||
|
registryId: string;
|
||||||
|
}
|
||||||
|
export const DeleteRegistry = ({ registryId }: Props) => {
|
||||||
|
const { mutateAsync, isLoading } = api.registry.remove.useMutation();
|
||||||
|
const utils = api.useUtils();
|
||||||
return (
|
return (
|
||||||
<AlertDialog>
|
<AlertDialog>
|
||||||
<AlertDialogTrigger asChild>
|
<AlertDialogTrigger asChild>
|
||||||
<Button>Enable Self Hosted Registry</Button>
|
<Button variant="ghost" isLoading={isLoading}>
|
||||||
|
<TrashIcon className="size-4 text-muted-foreground " />
|
||||||
|
</Button>
|
||||||
</AlertDialogTrigger>
|
</AlertDialogTrigger>
|
||||||
<AlertDialogContent>
|
<AlertDialogContent>
|
||||||
<AlertDialogHeader>
|
<AlertDialogHeader>
|
||||||
<AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
|
<AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
|
||||||
<AlertDialogDescription>
|
<AlertDialogDescription>
|
||||||
This will setup a self hosted registry.
|
This action cannot be undone. This will permanently delete the
|
||||||
|
registry.
|
||||||
</AlertDialogDescription>
|
</AlertDialogDescription>
|
||||||
</AlertDialogHeader>
|
</AlertDialogHeader>
|
||||||
<AlertDialogFooter>
|
<AlertDialogFooter>
|
||||||
<AlertDialogCancel>Cancel</AlertDialogCancel>
|
<AlertDialogCancel>Cancel</AlertDialogCancel>
|
||||||
<AlertDialogAction
|
<AlertDialogAction
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
// await mutateAsync({
|
await mutateAsync({
|
||||||
// authId,
|
registryId,
|
||||||
// })
|
})
|
||||||
// .then(async () => {
|
.then(async () => {
|
||||||
// utils.user.all.invalidate();
|
utils.registry.all.invalidate();
|
||||||
// toast.success("User delete succesfully");
|
toast.success("Registry deleted");
|
||||||
// })
|
})
|
||||||
// .catch(() => {
|
.catch(() => {
|
||||||
// toast.error("Error to delete the user");
|
toast.error("Error to delete the registry");
|
||||||
// });
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Confirm
|
Confirm
|
||||||
@@ -6,19 +6,36 @@ import {
|
|||||||
CardTitle,
|
CardTitle,
|
||||||
} from "@/components/ui/card";
|
} from "@/components/ui/card";
|
||||||
import { api } from "@/utils/api";
|
import { api } from "@/utils/api";
|
||||||
import { Server, ShieldCheck } from "lucide-react";
|
import { Server } from "lucide-react";
|
||||||
import { AddRegistry } from "./add-docker-registry";
|
import { AddRegistry } from "./add-docker-registry";
|
||||||
import { AddSelfRegistry } from "./add-self-registry";
|
import { AddSelfHostedRegistry } from "./add-self-docker-registry";
|
||||||
|
import { DeleteRegistry } from "./delete-registry";
|
||||||
|
|
||||||
export const ShowRegistry = () => {
|
export const ShowRegistry = () => {
|
||||||
const { data } = api.certificates.all.useQuery();
|
const { data } = api.registry.all.useQuery();
|
||||||
|
|
||||||
|
const haveSelfHostedRegistry = data?.some(
|
||||||
|
(registry) => registry.registryType === "selfHosted",
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="h-full">
|
<div className="h-full">
|
||||||
<Card className="bg-transparent h-full">
|
<Card className="bg-transparent h-full">
|
||||||
<CardHeader>
|
<CardHeader className="flex flex-row gap-2 justify-between w-full items-center">
|
||||||
<CardTitle className="text-xl">Clusters</CardTitle>
|
<div className="flex flex-col gap-2">
|
||||||
<CardDescription>Add cluster to your application.</CardDescription>
|
<CardTitle className="text-xl">Clusters</CardTitle>
|
||||||
|
<CardDescription>Add cluster to your application.</CardDescription>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="flex flex-row gap-2">
|
||||||
|
{data && data?.length > 0 && (
|
||||||
|
<>
|
||||||
|
{!haveSelfHostedRegistry && <AddSelfHostedRegistry />}
|
||||||
|
|
||||||
|
<AddRegistry />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="space-y-2 pt-4 h-full">
|
<CardContent className="space-y-2 pt-4 h-full">
|
||||||
{data?.length === 0 ? (
|
{data?.length === 0 ? (
|
||||||
@@ -29,29 +46,28 @@ export const ShowRegistry = () => {
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div className="flex flex-row gap-2">
|
<div className="flex flex-row gap-2">
|
||||||
<AddSelfRegistry />
|
<AddSelfHostedRegistry />
|
||||||
<AddRegistry />
|
<AddRegistry />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* <AddCertificate /> */}
|
{/* <AddCertificate /> */}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex flex-col gap-6">
|
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||||
{data?.map((destination, index) => (
|
{data?.map((registry, index) => (
|
||||||
<div
|
<div
|
||||||
key={destination.certificateId}
|
key={registry.registryId}
|
||||||
className="flex items-center justify-between"
|
className="flex items-center justify-between border p-4 rounded-lg hover:bg-muted cursor-pointer"
|
||||||
>
|
>
|
||||||
<span className="text-sm text-muted-foreground">
|
<span className="text-sm text-muted-foreground">
|
||||||
{index + 1}. {destination.name}
|
{index + 1}. {registry.registryName}
|
||||||
</span>
|
</span>
|
||||||
<div className="flex flex-row gap-3">
|
<div className="flex flex-row gap-3">
|
||||||
{/* <DeleteCertificate
|
<DeleteRegistry registryId={registry.registryId} />
|
||||||
certificateId={destination.certificateId}
|
|
||||||
/> */}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
<div>{/* <AddCertificate /> */}</div>
|
<div>{/* <AddCertificate /> */}</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
22
drizzle/0005_cute_terror.sql
Normal file
22
drizzle/0005_cute_terror.sql
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
DO $$ BEGIN
|
||||||
|
CREATE TYPE "RegistryType" AS ENUM('selfHosted', 'cloud');
|
||||||
|
EXCEPTION
|
||||||
|
WHEN duplicate_object THEN null;
|
||||||
|
END $$;
|
||||||
|
--> statement-breakpoint
|
||||||
|
CREATE TABLE IF NOT EXISTS "registry" (
|
||||||
|
"registryId" text PRIMARY KEY NOT NULL,
|
||||||
|
"registryName" text NOT NULL,
|
||||||
|
"username" text NOT NULL,
|
||||||
|
"password" text NOT NULL,
|
||||||
|
"registryUrl" text NOT NULL,
|
||||||
|
"createdAt" text NOT NULL,
|
||||||
|
"selfHosted" "RegistryType" DEFAULT 'cloud' NOT NULL,
|
||||||
|
"adminId" text NOT NULL
|
||||||
|
);
|
||||||
|
--> statement-breakpoint
|
||||||
|
DO $$ BEGIN
|
||||||
|
ALTER TABLE "registry" ADD CONSTRAINT "registry_adminId_admin_adminId_fk" FOREIGN KEY ("adminId") REFERENCES "admin"("adminId") ON DELETE cascade ON UPDATE no action;
|
||||||
|
EXCEPTION
|
||||||
|
WHEN duplicate_object THEN null;
|
||||||
|
END $$;
|
||||||
6
drizzle/0006_oval_jimmy_woo.sql
Normal file
6
drizzle/0006_oval_jimmy_woo.sql
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
ALTER TABLE "application" ADD COLUMN "registryId" text;--> statement-breakpoint
|
||||||
|
DO $$ BEGIN
|
||||||
|
ALTER TABLE "application" ADD CONSTRAINT "application_registryId_registry_registryId_fk" FOREIGN KEY ("registryId") REFERENCES "public"."registry"("registryId") ON DELETE cascade ON UPDATE no action;
|
||||||
|
EXCEPTION
|
||||||
|
WHEN duplicate_object THEN null;
|
||||||
|
END $$;
|
||||||
1
drizzle/0007_cute_guardsmen.sql
Normal file
1
drizzle/0007_cute_guardsmen.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE "application" ADD COLUMN "replicas" integer DEFAULT 1;
|
||||||
7
drizzle/0008_lazy_sage.sql
Normal file
7
drizzle/0008_lazy_sage.sql
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
ALTER TABLE "application" DROP CONSTRAINT "application_registryId_registry_registryId_fk";
|
||||||
|
--> statement-breakpoint
|
||||||
|
DO $$ BEGIN
|
||||||
|
ALTER TABLE "application" ADD CONSTRAINT "application_registryId_registry_registryId_fk" FOREIGN KEY ("registryId") REFERENCES "public"."registry"("registryId") ON DELETE set null ON UPDATE no action;
|
||||||
|
EXCEPTION
|
||||||
|
WHEN duplicate_object THEN null;
|
||||||
|
END $$;
|
||||||
1
drizzle/0009_majestic_spencer_smythe.sql
Normal file
1
drizzle/0009_majestic_spencer_smythe.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE "application" ALTER COLUMN "replicas" SET NOT NULL;
|
||||||
1
drizzle/0010_lean_black_widow.sql
Normal file
1
drizzle/0010_lean_black_widow.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE "registry" ADD COLUMN "imagePrefix" text NOT NULL;
|
||||||
1
drizzle/0011_petite_calypso.sql
Normal file
1
drizzle/0011_petite_calypso.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE "registry" ALTER COLUMN "imagePrefix" DROP NOT NULL;
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
{
|
{
|
||||||
"id": "c6215051-7cd1-412d-b8df-b50d58acacff",
|
"version": "6",
|
||||||
"prevId": "00000000-0000-0000-0000-000000000000",
|
"dialect": "postgresql",
|
||||||
"version": "5",
|
|
||||||
"dialect": "pg",
|
|
||||||
"tables": {
|
"tables": {
|
||||||
"application": {
|
"public.application": {
|
||||||
"name": "application",
|
"name": "application",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -234,29 +232,29 @@
|
|||||||
"application_projectId_project_projectId_fk": {
|
"application_projectId_project_projectId_fk": {
|
||||||
"name": "application_projectId_project_projectId_fk",
|
"name": "application_projectId_project_projectId_fk",
|
||||||
"tableFrom": "application",
|
"tableFrom": "application",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"application_appName_unique": {
|
"application_appName_unique": {
|
||||||
"name": "application_appName_unique",
|
"name": "application_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"postgres": {
|
"public.postgres": {
|
||||||
"name": "postgres",
|
"name": "postgres",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -375,29 +373,29 @@
|
|||||||
"postgres_projectId_project_projectId_fk": {
|
"postgres_projectId_project_projectId_fk": {
|
||||||
"name": "postgres_projectId_project_projectId_fk",
|
"name": "postgres_projectId_project_projectId_fk",
|
||||||
"tableFrom": "postgres",
|
"tableFrom": "postgres",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"postgres_appName_unique": {
|
"postgres_appName_unique": {
|
||||||
"name": "postgres_appName_unique",
|
"name": "postgres_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"user": {
|
"public.user": {
|
||||||
"name": "user",
|
"name": "user",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -499,34 +497,34 @@
|
|||||||
"user_adminId_admin_adminId_fk": {
|
"user_adminId_admin_adminId_fk": {
|
||||||
"name": "user_adminId_admin_adminId_fk",
|
"name": "user_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "user",
|
"tableFrom": "user",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"user_authId_auth_id_fk": {
|
"user_authId_auth_id_fk": {
|
||||||
"name": "user_authId_auth_id_fk",
|
"name": "user_authId_auth_id_fk",
|
||||||
"tableFrom": "user",
|
"tableFrom": "user",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"authId"
|
"authId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"admin": {
|
"public.admin": {
|
||||||
"name": "admin",
|
"name": "admin",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -628,21 +626,21 @@
|
|||||||
"admin_authId_auth_id_fk": {
|
"admin_authId_auth_id_fk": {
|
||||||
"name": "admin_authId_auth_id_fk",
|
"name": "admin_authId_auth_id_fk",
|
||||||
"tableFrom": "admin",
|
"tableFrom": "admin",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"authId"
|
"authId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"auth": {
|
"public.auth": {
|
||||||
"name": "auth",
|
"name": "auth",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -689,14 +687,14 @@
|
|||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"auth_email_unique": {
|
"auth_email_unique": {
|
||||||
"name": "auth_email_unique",
|
"name": "auth_email_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"email"
|
"email"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"project": {
|
"public.project": {
|
||||||
"name": "project",
|
"name": "project",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -736,21 +734,21 @@
|
|||||||
"project_adminId_admin_adminId_fk": {
|
"project_adminId_admin_adminId_fk": {
|
||||||
"name": "project_adminId_admin_adminId_fk",
|
"name": "project_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "project",
|
"tableFrom": "project",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"domain": {
|
"public.domain": {
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -818,21 +816,21 @@
|
|||||||
"domain_applicationId_application_applicationId_fk": {
|
"domain_applicationId_application_applicationId_fk": {
|
||||||
"name": "domain_applicationId_application_applicationId_fk",
|
"name": "domain_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "domain",
|
"tableFrom": "domain",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"mariadb": {
|
"public.mariadb": {
|
||||||
"name": "mariadb",
|
"name": "mariadb",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -957,29 +955,29 @@
|
|||||||
"mariadb_projectId_project_projectId_fk": {
|
"mariadb_projectId_project_projectId_fk": {
|
||||||
"name": "mariadb_projectId_project_projectId_fk",
|
"name": "mariadb_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mariadb",
|
"tableFrom": "mariadb",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mariadb_appName_unique": {
|
"mariadb_appName_unique": {
|
||||||
"name": "mariadb_appName_unique",
|
"name": "mariadb_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mongo": {
|
"public.mongo": {
|
||||||
"name": "mongo",
|
"name": "mongo",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1092,29 +1090,29 @@
|
|||||||
"mongo_projectId_project_projectId_fk": {
|
"mongo_projectId_project_projectId_fk": {
|
||||||
"name": "mongo_projectId_project_projectId_fk",
|
"name": "mongo_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mongo",
|
"tableFrom": "mongo",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mongo_appName_unique": {
|
"mongo_appName_unique": {
|
||||||
"name": "mongo_appName_unique",
|
"name": "mongo_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mysql": {
|
"public.mysql": {
|
||||||
"name": "mysql",
|
"name": "mysql",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1239,29 +1237,29 @@
|
|||||||
"mysql_projectId_project_projectId_fk": {
|
"mysql_projectId_project_projectId_fk": {
|
||||||
"name": "mysql_projectId_project_projectId_fk",
|
"name": "mysql_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mysql",
|
"tableFrom": "mysql",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mysql_appName_unique": {
|
"mysql_appName_unique": {
|
||||||
"name": "mysql_appName_unique",
|
"name": "mysql_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"backup": {
|
"public.backup": {
|
||||||
"name": "backup",
|
"name": "backup",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1337,73 +1335,73 @@
|
|||||||
"backup_destinationId_destination_destinationId_fk": {
|
"backup_destinationId_destination_destinationId_fk": {
|
||||||
"name": "backup_destinationId_destination_destinationId_fk",
|
"name": "backup_destinationId_destination_destinationId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "destination",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"destinationId"
|
"destinationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "destination",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"destinationId"
|
"destinationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_postgresId_postgres_postgresId_fk": {
|
"backup_postgresId_postgres_postgresId_fk": {
|
||||||
"name": "backup_postgresId_postgres_postgresId_fk",
|
"name": "backup_postgresId_postgres_postgresId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "postgres",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "postgres",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mariadbId_mariadb_mariadbId_fk": {
|
"backup_mariadbId_mariadb_mariadbId_fk": {
|
||||||
"name": "backup_mariadbId_mariadb_mariadbId_fk",
|
"name": "backup_mariadbId_mariadb_mariadbId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mariadb",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mariadb",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mysqlId_mysql_mysqlId_fk": {
|
"backup_mysqlId_mysql_mysqlId_fk": {
|
||||||
"name": "backup_mysqlId_mysql_mysqlId_fk",
|
"name": "backup_mysqlId_mysql_mysqlId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mysql",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mysql",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mongoId_mongo_mongoId_fk": {
|
"backup_mongoId_mongo_mongoId_fk": {
|
||||||
"name": "backup_mongoId_mongo_mongoId_fk",
|
"name": "backup_mongoId_mongo_mongoId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mongo",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mongo",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"destination": {
|
"public.destination": {
|
||||||
"name": "destination",
|
"name": "destination",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1461,21 +1459,21 @@
|
|||||||
"destination_adminId_admin_adminId_fk": {
|
"destination_adminId_admin_adminId_fk": {
|
||||||
"name": "destination_adminId_admin_adminId_fk",
|
"name": "destination_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "destination",
|
"tableFrom": "destination",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"deployment": {
|
"public.deployment": {
|
||||||
"name": "deployment",
|
"name": "deployment",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1522,21 +1520,21 @@
|
|||||||
"deployment_applicationId_application_applicationId_fk": {
|
"deployment_applicationId_application_applicationId_fk": {
|
||||||
"name": "deployment_applicationId_application_applicationId_fk",
|
"name": "deployment_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "deployment",
|
"tableFrom": "deployment",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"mount": {
|
"public.mount": {
|
||||||
"name": "mount",
|
"name": "mount",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1625,86 +1623,86 @@
|
|||||||
"mount_applicationId_application_applicationId_fk": {
|
"mount_applicationId_application_applicationId_fk": {
|
||||||
"name": "mount_applicationId_application_applicationId_fk",
|
"name": "mount_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_postgresId_postgres_postgresId_fk": {
|
"mount_postgresId_postgres_postgresId_fk": {
|
||||||
"name": "mount_postgresId_postgres_postgresId_fk",
|
"name": "mount_postgresId_postgres_postgresId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "postgres",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "postgres",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mariadbId_mariadb_mariadbId_fk": {
|
"mount_mariadbId_mariadb_mariadbId_fk": {
|
||||||
"name": "mount_mariadbId_mariadb_mariadbId_fk",
|
"name": "mount_mariadbId_mariadb_mariadbId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mariadb",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mariadb",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mongoId_mongo_mongoId_fk": {
|
"mount_mongoId_mongo_mongoId_fk": {
|
||||||
"name": "mount_mongoId_mongo_mongoId_fk",
|
"name": "mount_mongoId_mongo_mongoId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mongo",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mongo",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mysqlId_mysql_mysqlId_fk": {
|
"mount_mysqlId_mysql_mysqlId_fk": {
|
||||||
"name": "mount_mysqlId_mysql_mysqlId_fk",
|
"name": "mount_mysqlId_mysql_mysqlId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mysql",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mysql",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_redisId_redis_redisId_fk": {
|
"mount_redisId_redis_redisId_fk": {
|
||||||
"name": "mount_redisId_redis_redisId_fk",
|
"name": "mount_redisId_redis_redisId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "redis",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"redisId"
|
"redisId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "redis",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"redisId"
|
"redisId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"certificate": {
|
"public.certificate": {
|
||||||
"name": "certificate",
|
"name": "certificate",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1751,14 +1749,14 @@
|
|||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"certificate_certificatePath_unique": {
|
"certificate_certificatePath_unique": {
|
||||||
"name": "certificate_certificatePath_unique",
|
"name": "certificate_certificatePath_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"certificatePath"
|
"certificatePath"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"session": {
|
"public.session": {
|
||||||
"name": "session",
|
"name": "session",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1786,21 +1784,21 @@
|
|||||||
"session_user_id_auth_id_fk": {
|
"session_user_id_auth_id_fk": {
|
||||||
"name": "session_user_id_auth_id_fk",
|
"name": "session_user_id_auth_id_fk",
|
||||||
"tableFrom": "session",
|
"tableFrom": "session",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"user_id"
|
"user_id"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"redirect": {
|
"public.redirect": {
|
||||||
"name": "redirect",
|
"name": "redirect",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1853,21 +1851,21 @@
|
|||||||
"redirect_applicationId_application_applicationId_fk": {
|
"redirect_applicationId_application_applicationId_fk": {
|
||||||
"name": "redirect_applicationId_application_applicationId_fk",
|
"name": "redirect_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "redirect",
|
"tableFrom": "redirect",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"security": {
|
"public.security": {
|
||||||
"name": "security",
|
"name": "security",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1907,30 +1905,30 @@
|
|||||||
"security_applicationId_application_applicationId_fk": {
|
"security_applicationId_application_applicationId_fk": {
|
||||||
"name": "security_applicationId_application_applicationId_fk",
|
"name": "security_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "security",
|
"tableFrom": "security",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"security_username_applicationId_unique": {
|
"security_username_applicationId_unique": {
|
||||||
"name": "security_username_applicationId_unique",
|
"name": "security_username_applicationId_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"username",
|
"username",
|
||||||
"applicationId"
|
"applicationId"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"port": {
|
"public.port": {
|
||||||
"name": "port",
|
"name": "port",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1970,21 +1968,21 @@
|
|||||||
"port_applicationId_application_applicationId_fk": {
|
"port_applicationId_application_applicationId_fk": {
|
||||||
"name": "port_applicationId_application_applicationId_fk",
|
"name": "port_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "port",
|
"tableFrom": "port",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"redis": {
|
"public.redis": {
|
||||||
"name": "redis",
|
"name": "redis",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -2091,118 +2089,130 @@
|
|||||||
"redis_projectId_project_projectId_fk": {
|
"redis_projectId_project_projectId_fk": {
|
||||||
"name": "redis_projectId_project_projectId_fk",
|
"name": "redis_projectId_project_projectId_fk",
|
||||||
"tableFrom": "redis",
|
"tableFrom": "redis",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"redis_appName_unique": {
|
"redis_appName_unique": {
|
||||||
"name": "redis_appName_unique",
|
"name": "redis_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"enums": {
|
"enums": {
|
||||||
"buildType": {
|
"public.buildType": {
|
||||||
"name": "buildType",
|
"name": "buildType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"dockerfile": "dockerfile",
|
"values": [
|
||||||
"heroku_buildpacks": "heroku_buildpacks",
|
"dockerfile",
|
||||||
"paketo_buildpacks": "paketo_buildpacks",
|
"heroku_buildpacks",
|
||||||
"nixpacks": "nixpacks"
|
"paketo_buildpacks",
|
||||||
}
|
"nixpacks"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"sourceType": {
|
"public.sourceType": {
|
||||||
"name": "sourceType",
|
"name": "sourceType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"docker": "docker",
|
"values": [
|
||||||
"git": "git",
|
"docker",
|
||||||
"github": "github"
|
"git",
|
||||||
}
|
"github"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"Roles": {
|
"public.Roles": {
|
||||||
"name": "Roles",
|
"name": "Roles",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"admin": "admin",
|
"values": [
|
||||||
"user": "user"
|
"admin",
|
||||||
}
|
"user"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"databaseType": {
|
"public.databaseType": {
|
||||||
"name": "databaseType",
|
"name": "databaseType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"postgres": "postgres",
|
"values": [
|
||||||
"mariadb": "mariadb",
|
"postgres",
|
||||||
"mysql": "mysql",
|
"mariadb",
|
||||||
"mongo": "mongo"
|
"mysql",
|
||||||
}
|
"mongo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"deploymentStatus": {
|
"public.deploymentStatus": {
|
||||||
"name": "deploymentStatus",
|
"name": "deploymentStatus",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"running": "running",
|
"values": [
|
||||||
"done": "done",
|
"running",
|
||||||
"error": "error"
|
"done",
|
||||||
}
|
"error"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"mountType": {
|
"public.mountType": {
|
||||||
"name": "mountType",
|
"name": "mountType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"bind": "bind",
|
"values": [
|
||||||
"volume": "volume",
|
"bind",
|
||||||
"file": "file"
|
"volume",
|
||||||
}
|
"file"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"serviceType": {
|
"public.serviceType": {
|
||||||
"name": "serviceType",
|
"name": "serviceType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"application": "application",
|
"values": [
|
||||||
"postgres": "postgres",
|
"application",
|
||||||
"mysql": "mysql",
|
"postgres",
|
||||||
"mariadb": "mariadb",
|
"mysql",
|
||||||
"mongo": "mongo",
|
"mariadb",
|
||||||
"redis": "redis"
|
"mongo",
|
||||||
}
|
"redis"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"protocolType": {
|
"public.protocolType": {
|
||||||
"name": "protocolType",
|
"name": "protocolType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"tcp": "tcp",
|
"values": [
|
||||||
"udp": "udp"
|
"tcp",
|
||||||
}
|
"udp"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"applicationStatus": {
|
"public.applicationStatus": {
|
||||||
"name": "applicationStatus",
|
"name": "applicationStatus",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"idle": "idle",
|
"values": [
|
||||||
"running": "running",
|
"idle",
|
||||||
"done": "done",
|
"running",
|
||||||
"error": "error"
|
"done",
|
||||||
}
|
"error"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"certificateType": {
|
"public.certificateType": {
|
||||||
"name": "certificateType",
|
"name": "certificateType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"letsencrypt": "letsencrypt",
|
"values": [
|
||||||
"none": "none"
|
"letsencrypt",
|
||||||
}
|
"none"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"schemas": {},
|
"schemas": {},
|
||||||
"_meta": {
|
"_meta": {
|
||||||
"columns": {},
|
|
||||||
"schemas": {},
|
"schemas": {},
|
||||||
"tables": {}
|
"tables": {},
|
||||||
}
|
"columns": {}
|
||||||
|
},
|
||||||
|
"id": "c6215051-7cd1-412d-b8df-b50d58acacff",
|
||||||
|
"prevId": "00000000-0000-0000-0000-000000000000"
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
{
|
{
|
||||||
"id": "3a4dfad7-ae33-4ae3-b60e-4f40f44f5652",
|
"version": "6",
|
||||||
"prevId": "c6215051-7cd1-412d-b8df-b50d58acacff",
|
"dialect": "postgresql",
|
||||||
"version": "5",
|
|
||||||
"dialect": "pg",
|
|
||||||
"tables": {
|
"tables": {
|
||||||
"application": {
|
"public.application": {
|
||||||
"name": "application",
|
"name": "application",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -234,29 +232,29 @@
|
|||||||
"application_projectId_project_projectId_fk": {
|
"application_projectId_project_projectId_fk": {
|
||||||
"name": "application_projectId_project_projectId_fk",
|
"name": "application_projectId_project_projectId_fk",
|
||||||
"tableFrom": "application",
|
"tableFrom": "application",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"application_appName_unique": {
|
"application_appName_unique": {
|
||||||
"name": "application_appName_unique",
|
"name": "application_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"postgres": {
|
"public.postgres": {
|
||||||
"name": "postgres",
|
"name": "postgres",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -375,29 +373,29 @@
|
|||||||
"postgres_projectId_project_projectId_fk": {
|
"postgres_projectId_project_projectId_fk": {
|
||||||
"name": "postgres_projectId_project_projectId_fk",
|
"name": "postgres_projectId_project_projectId_fk",
|
||||||
"tableFrom": "postgres",
|
"tableFrom": "postgres",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"postgres_appName_unique": {
|
"postgres_appName_unique": {
|
||||||
"name": "postgres_appName_unique",
|
"name": "postgres_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"user": {
|
"public.user": {
|
||||||
"name": "user",
|
"name": "user",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -499,34 +497,34 @@
|
|||||||
"user_adminId_admin_adminId_fk": {
|
"user_adminId_admin_adminId_fk": {
|
||||||
"name": "user_adminId_admin_adminId_fk",
|
"name": "user_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "user",
|
"tableFrom": "user",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"user_authId_auth_id_fk": {
|
"user_authId_auth_id_fk": {
|
||||||
"name": "user_authId_auth_id_fk",
|
"name": "user_authId_auth_id_fk",
|
||||||
"tableFrom": "user",
|
"tableFrom": "user",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"authId"
|
"authId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"admin": {
|
"public.admin": {
|
||||||
"name": "admin",
|
"name": "admin",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -628,21 +626,21 @@
|
|||||||
"admin_authId_auth_id_fk": {
|
"admin_authId_auth_id_fk": {
|
||||||
"name": "admin_authId_auth_id_fk",
|
"name": "admin_authId_auth_id_fk",
|
||||||
"tableFrom": "admin",
|
"tableFrom": "admin",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"authId"
|
"authId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"auth": {
|
"public.auth": {
|
||||||
"name": "auth",
|
"name": "auth",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -695,14 +693,14 @@
|
|||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"auth_email_unique": {
|
"auth_email_unique": {
|
||||||
"name": "auth_email_unique",
|
"name": "auth_email_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"email"
|
"email"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"project": {
|
"public.project": {
|
||||||
"name": "project",
|
"name": "project",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -742,21 +740,21 @@
|
|||||||
"project_adminId_admin_adminId_fk": {
|
"project_adminId_admin_adminId_fk": {
|
||||||
"name": "project_adminId_admin_adminId_fk",
|
"name": "project_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "project",
|
"tableFrom": "project",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"domain": {
|
"public.domain": {
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -824,21 +822,21 @@
|
|||||||
"domain_applicationId_application_applicationId_fk": {
|
"domain_applicationId_application_applicationId_fk": {
|
||||||
"name": "domain_applicationId_application_applicationId_fk",
|
"name": "domain_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "domain",
|
"tableFrom": "domain",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"mariadb": {
|
"public.mariadb": {
|
||||||
"name": "mariadb",
|
"name": "mariadb",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -963,29 +961,29 @@
|
|||||||
"mariadb_projectId_project_projectId_fk": {
|
"mariadb_projectId_project_projectId_fk": {
|
||||||
"name": "mariadb_projectId_project_projectId_fk",
|
"name": "mariadb_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mariadb",
|
"tableFrom": "mariadb",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mariadb_appName_unique": {
|
"mariadb_appName_unique": {
|
||||||
"name": "mariadb_appName_unique",
|
"name": "mariadb_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mongo": {
|
"public.mongo": {
|
||||||
"name": "mongo",
|
"name": "mongo",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1098,29 +1096,29 @@
|
|||||||
"mongo_projectId_project_projectId_fk": {
|
"mongo_projectId_project_projectId_fk": {
|
||||||
"name": "mongo_projectId_project_projectId_fk",
|
"name": "mongo_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mongo",
|
"tableFrom": "mongo",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mongo_appName_unique": {
|
"mongo_appName_unique": {
|
||||||
"name": "mongo_appName_unique",
|
"name": "mongo_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mysql": {
|
"public.mysql": {
|
||||||
"name": "mysql",
|
"name": "mysql",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1245,29 +1243,29 @@
|
|||||||
"mysql_projectId_project_projectId_fk": {
|
"mysql_projectId_project_projectId_fk": {
|
||||||
"name": "mysql_projectId_project_projectId_fk",
|
"name": "mysql_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mysql",
|
"tableFrom": "mysql",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mysql_appName_unique": {
|
"mysql_appName_unique": {
|
||||||
"name": "mysql_appName_unique",
|
"name": "mysql_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"backup": {
|
"public.backup": {
|
||||||
"name": "backup",
|
"name": "backup",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1343,73 +1341,73 @@
|
|||||||
"backup_destinationId_destination_destinationId_fk": {
|
"backup_destinationId_destination_destinationId_fk": {
|
||||||
"name": "backup_destinationId_destination_destinationId_fk",
|
"name": "backup_destinationId_destination_destinationId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "destination",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"destinationId"
|
"destinationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "destination",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"destinationId"
|
"destinationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_postgresId_postgres_postgresId_fk": {
|
"backup_postgresId_postgres_postgresId_fk": {
|
||||||
"name": "backup_postgresId_postgres_postgresId_fk",
|
"name": "backup_postgresId_postgres_postgresId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "postgres",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "postgres",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mariadbId_mariadb_mariadbId_fk": {
|
"backup_mariadbId_mariadb_mariadbId_fk": {
|
||||||
"name": "backup_mariadbId_mariadb_mariadbId_fk",
|
"name": "backup_mariadbId_mariadb_mariadbId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mariadb",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mariadb",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mysqlId_mysql_mysqlId_fk": {
|
"backup_mysqlId_mysql_mysqlId_fk": {
|
||||||
"name": "backup_mysqlId_mysql_mysqlId_fk",
|
"name": "backup_mysqlId_mysql_mysqlId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mysql",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mysql",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mongoId_mongo_mongoId_fk": {
|
"backup_mongoId_mongo_mongoId_fk": {
|
||||||
"name": "backup_mongoId_mongo_mongoId_fk",
|
"name": "backup_mongoId_mongo_mongoId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mongo",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mongo",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"destination": {
|
"public.destination": {
|
||||||
"name": "destination",
|
"name": "destination",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1467,21 +1465,21 @@
|
|||||||
"destination_adminId_admin_adminId_fk": {
|
"destination_adminId_admin_adminId_fk": {
|
||||||
"name": "destination_adminId_admin_adminId_fk",
|
"name": "destination_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "destination",
|
"tableFrom": "destination",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"deployment": {
|
"public.deployment": {
|
||||||
"name": "deployment",
|
"name": "deployment",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1528,21 +1526,21 @@
|
|||||||
"deployment_applicationId_application_applicationId_fk": {
|
"deployment_applicationId_application_applicationId_fk": {
|
||||||
"name": "deployment_applicationId_application_applicationId_fk",
|
"name": "deployment_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "deployment",
|
"tableFrom": "deployment",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"mount": {
|
"public.mount": {
|
||||||
"name": "mount",
|
"name": "mount",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1631,86 +1629,86 @@
|
|||||||
"mount_applicationId_application_applicationId_fk": {
|
"mount_applicationId_application_applicationId_fk": {
|
||||||
"name": "mount_applicationId_application_applicationId_fk",
|
"name": "mount_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_postgresId_postgres_postgresId_fk": {
|
"mount_postgresId_postgres_postgresId_fk": {
|
||||||
"name": "mount_postgresId_postgres_postgresId_fk",
|
"name": "mount_postgresId_postgres_postgresId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "postgres",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "postgres",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mariadbId_mariadb_mariadbId_fk": {
|
"mount_mariadbId_mariadb_mariadbId_fk": {
|
||||||
"name": "mount_mariadbId_mariadb_mariadbId_fk",
|
"name": "mount_mariadbId_mariadb_mariadbId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mariadb",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mariadb",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mongoId_mongo_mongoId_fk": {
|
"mount_mongoId_mongo_mongoId_fk": {
|
||||||
"name": "mount_mongoId_mongo_mongoId_fk",
|
"name": "mount_mongoId_mongo_mongoId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mongo",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mongo",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mysqlId_mysql_mysqlId_fk": {
|
"mount_mysqlId_mysql_mysqlId_fk": {
|
||||||
"name": "mount_mysqlId_mysql_mysqlId_fk",
|
"name": "mount_mysqlId_mysql_mysqlId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mysql",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mysql",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_redisId_redis_redisId_fk": {
|
"mount_redisId_redis_redisId_fk": {
|
||||||
"name": "mount_redisId_redis_redisId_fk",
|
"name": "mount_redisId_redis_redisId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "redis",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"redisId"
|
"redisId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "redis",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"redisId"
|
"redisId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"certificate": {
|
"public.certificate": {
|
||||||
"name": "certificate",
|
"name": "certificate",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1757,14 +1755,14 @@
|
|||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"certificate_certificatePath_unique": {
|
"certificate_certificatePath_unique": {
|
||||||
"name": "certificate_certificatePath_unique",
|
"name": "certificate_certificatePath_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"certificatePath"
|
"certificatePath"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"session": {
|
"public.session": {
|
||||||
"name": "session",
|
"name": "session",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1792,21 +1790,21 @@
|
|||||||
"session_user_id_auth_id_fk": {
|
"session_user_id_auth_id_fk": {
|
||||||
"name": "session_user_id_auth_id_fk",
|
"name": "session_user_id_auth_id_fk",
|
||||||
"tableFrom": "session",
|
"tableFrom": "session",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"user_id"
|
"user_id"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"redirect": {
|
"public.redirect": {
|
||||||
"name": "redirect",
|
"name": "redirect",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1859,21 +1857,21 @@
|
|||||||
"redirect_applicationId_application_applicationId_fk": {
|
"redirect_applicationId_application_applicationId_fk": {
|
||||||
"name": "redirect_applicationId_application_applicationId_fk",
|
"name": "redirect_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "redirect",
|
"tableFrom": "redirect",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"security": {
|
"public.security": {
|
||||||
"name": "security",
|
"name": "security",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1913,30 +1911,30 @@
|
|||||||
"security_applicationId_application_applicationId_fk": {
|
"security_applicationId_application_applicationId_fk": {
|
||||||
"name": "security_applicationId_application_applicationId_fk",
|
"name": "security_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "security",
|
"tableFrom": "security",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"security_username_applicationId_unique": {
|
"security_username_applicationId_unique": {
|
||||||
"name": "security_username_applicationId_unique",
|
"name": "security_username_applicationId_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"username",
|
"username",
|
||||||
"applicationId"
|
"applicationId"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"port": {
|
"public.port": {
|
||||||
"name": "port",
|
"name": "port",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1976,21 +1974,21 @@
|
|||||||
"port_applicationId_application_applicationId_fk": {
|
"port_applicationId_application_applicationId_fk": {
|
||||||
"name": "port_applicationId_application_applicationId_fk",
|
"name": "port_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "port",
|
"tableFrom": "port",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"redis": {
|
"public.redis": {
|
||||||
"name": "redis",
|
"name": "redis",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -2097,118 +2095,130 @@
|
|||||||
"redis_projectId_project_projectId_fk": {
|
"redis_projectId_project_projectId_fk": {
|
||||||
"name": "redis_projectId_project_projectId_fk",
|
"name": "redis_projectId_project_projectId_fk",
|
||||||
"tableFrom": "redis",
|
"tableFrom": "redis",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"redis_appName_unique": {
|
"redis_appName_unique": {
|
||||||
"name": "redis_appName_unique",
|
"name": "redis_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"enums": {
|
"enums": {
|
||||||
"buildType": {
|
"public.buildType": {
|
||||||
"name": "buildType",
|
"name": "buildType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"dockerfile": "dockerfile",
|
"values": [
|
||||||
"heroku_buildpacks": "heroku_buildpacks",
|
"dockerfile",
|
||||||
"paketo_buildpacks": "paketo_buildpacks",
|
"heroku_buildpacks",
|
||||||
"nixpacks": "nixpacks"
|
"paketo_buildpacks",
|
||||||
}
|
"nixpacks"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"sourceType": {
|
"public.sourceType": {
|
||||||
"name": "sourceType",
|
"name": "sourceType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"docker": "docker",
|
"values": [
|
||||||
"git": "git",
|
"docker",
|
||||||
"github": "github"
|
"git",
|
||||||
}
|
"github"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"Roles": {
|
"public.Roles": {
|
||||||
"name": "Roles",
|
"name": "Roles",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"admin": "admin",
|
"values": [
|
||||||
"user": "user"
|
"admin",
|
||||||
}
|
"user"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"databaseType": {
|
"public.databaseType": {
|
||||||
"name": "databaseType",
|
"name": "databaseType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"postgres": "postgres",
|
"values": [
|
||||||
"mariadb": "mariadb",
|
"postgres",
|
||||||
"mysql": "mysql",
|
"mariadb",
|
||||||
"mongo": "mongo"
|
"mysql",
|
||||||
}
|
"mongo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"deploymentStatus": {
|
"public.deploymentStatus": {
|
||||||
"name": "deploymentStatus",
|
"name": "deploymentStatus",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"running": "running",
|
"values": [
|
||||||
"done": "done",
|
"running",
|
||||||
"error": "error"
|
"done",
|
||||||
}
|
"error"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"mountType": {
|
"public.mountType": {
|
||||||
"name": "mountType",
|
"name": "mountType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"bind": "bind",
|
"values": [
|
||||||
"volume": "volume",
|
"bind",
|
||||||
"file": "file"
|
"volume",
|
||||||
}
|
"file"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"serviceType": {
|
"public.serviceType": {
|
||||||
"name": "serviceType",
|
"name": "serviceType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"application": "application",
|
"values": [
|
||||||
"postgres": "postgres",
|
"application",
|
||||||
"mysql": "mysql",
|
"postgres",
|
||||||
"mariadb": "mariadb",
|
"mysql",
|
||||||
"mongo": "mongo",
|
"mariadb",
|
||||||
"redis": "redis"
|
"mongo",
|
||||||
}
|
"redis"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"protocolType": {
|
"public.protocolType": {
|
||||||
"name": "protocolType",
|
"name": "protocolType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"tcp": "tcp",
|
"values": [
|
||||||
"udp": "udp"
|
"tcp",
|
||||||
}
|
"udp"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"applicationStatus": {
|
"public.applicationStatus": {
|
||||||
"name": "applicationStatus",
|
"name": "applicationStatus",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"idle": "idle",
|
"values": [
|
||||||
"running": "running",
|
"idle",
|
||||||
"done": "done",
|
"running",
|
||||||
"error": "error"
|
"done",
|
||||||
}
|
"error"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"certificateType": {
|
"public.certificateType": {
|
||||||
"name": "certificateType",
|
"name": "certificateType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"letsencrypt": "letsencrypt",
|
"values": [
|
||||||
"none": "none"
|
"letsencrypt",
|
||||||
}
|
"none"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"schemas": {},
|
"schemas": {},
|
||||||
"_meta": {
|
"_meta": {
|
||||||
"columns": {},
|
|
||||||
"schemas": {},
|
"schemas": {},
|
||||||
"tables": {}
|
"tables": {},
|
||||||
}
|
"columns": {}
|
||||||
|
},
|
||||||
|
"id": "3a4dfad7-ae33-4ae3-b60e-4f40f44f5652",
|
||||||
|
"prevId": "c6215051-7cd1-412d-b8df-b50d58acacff"
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
{
|
{
|
||||||
"id": "665483bd-5123-4c2b-beef-bfa9b91b9356",
|
"version": "6",
|
||||||
"prevId": "3a4dfad7-ae33-4ae3-b60e-4f40f44f5652",
|
"dialect": "postgresql",
|
||||||
"version": "5",
|
|
||||||
"dialect": "pg",
|
|
||||||
"tables": {
|
"tables": {
|
||||||
"application": {
|
"public.application": {
|
||||||
"name": "application",
|
"name": "application",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -234,29 +232,29 @@
|
|||||||
"application_projectId_project_projectId_fk": {
|
"application_projectId_project_projectId_fk": {
|
||||||
"name": "application_projectId_project_projectId_fk",
|
"name": "application_projectId_project_projectId_fk",
|
||||||
"tableFrom": "application",
|
"tableFrom": "application",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"application_appName_unique": {
|
"application_appName_unique": {
|
||||||
"name": "application_appName_unique",
|
"name": "application_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"postgres": {
|
"public.postgres": {
|
||||||
"name": "postgres",
|
"name": "postgres",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -375,29 +373,29 @@
|
|||||||
"postgres_projectId_project_projectId_fk": {
|
"postgres_projectId_project_projectId_fk": {
|
||||||
"name": "postgres_projectId_project_projectId_fk",
|
"name": "postgres_projectId_project_projectId_fk",
|
||||||
"tableFrom": "postgres",
|
"tableFrom": "postgres",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"postgres_appName_unique": {
|
"postgres_appName_unique": {
|
||||||
"name": "postgres_appName_unique",
|
"name": "postgres_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"user": {
|
"public.user": {
|
||||||
"name": "user",
|
"name": "user",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -499,34 +497,34 @@
|
|||||||
"user_adminId_admin_adminId_fk": {
|
"user_adminId_admin_adminId_fk": {
|
||||||
"name": "user_adminId_admin_adminId_fk",
|
"name": "user_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "user",
|
"tableFrom": "user",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"user_authId_auth_id_fk": {
|
"user_authId_auth_id_fk": {
|
||||||
"name": "user_authId_auth_id_fk",
|
"name": "user_authId_auth_id_fk",
|
||||||
"tableFrom": "user",
|
"tableFrom": "user",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"authId"
|
"authId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"admin": {
|
"public.admin": {
|
||||||
"name": "admin",
|
"name": "admin",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -628,21 +626,21 @@
|
|||||||
"admin_authId_auth_id_fk": {
|
"admin_authId_auth_id_fk": {
|
||||||
"name": "admin_authId_auth_id_fk",
|
"name": "admin_authId_auth_id_fk",
|
||||||
"tableFrom": "admin",
|
"tableFrom": "admin",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"authId"
|
"authId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"auth": {
|
"public.auth": {
|
||||||
"name": "auth",
|
"name": "auth",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -702,14 +700,14 @@
|
|||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"auth_email_unique": {
|
"auth_email_unique": {
|
||||||
"name": "auth_email_unique",
|
"name": "auth_email_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"email"
|
"email"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"project": {
|
"public.project": {
|
||||||
"name": "project",
|
"name": "project",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -749,21 +747,21 @@
|
|||||||
"project_adminId_admin_adminId_fk": {
|
"project_adminId_admin_adminId_fk": {
|
||||||
"name": "project_adminId_admin_adminId_fk",
|
"name": "project_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "project",
|
"tableFrom": "project",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"domain": {
|
"public.domain": {
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -831,21 +829,21 @@
|
|||||||
"domain_applicationId_application_applicationId_fk": {
|
"domain_applicationId_application_applicationId_fk": {
|
||||||
"name": "domain_applicationId_application_applicationId_fk",
|
"name": "domain_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "domain",
|
"tableFrom": "domain",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"mariadb": {
|
"public.mariadb": {
|
||||||
"name": "mariadb",
|
"name": "mariadb",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -970,29 +968,29 @@
|
|||||||
"mariadb_projectId_project_projectId_fk": {
|
"mariadb_projectId_project_projectId_fk": {
|
||||||
"name": "mariadb_projectId_project_projectId_fk",
|
"name": "mariadb_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mariadb",
|
"tableFrom": "mariadb",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mariadb_appName_unique": {
|
"mariadb_appName_unique": {
|
||||||
"name": "mariadb_appName_unique",
|
"name": "mariadb_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mongo": {
|
"public.mongo": {
|
||||||
"name": "mongo",
|
"name": "mongo",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1105,29 +1103,29 @@
|
|||||||
"mongo_projectId_project_projectId_fk": {
|
"mongo_projectId_project_projectId_fk": {
|
||||||
"name": "mongo_projectId_project_projectId_fk",
|
"name": "mongo_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mongo",
|
"tableFrom": "mongo",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mongo_appName_unique": {
|
"mongo_appName_unique": {
|
||||||
"name": "mongo_appName_unique",
|
"name": "mongo_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mysql": {
|
"public.mysql": {
|
||||||
"name": "mysql",
|
"name": "mysql",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1252,29 +1250,29 @@
|
|||||||
"mysql_projectId_project_projectId_fk": {
|
"mysql_projectId_project_projectId_fk": {
|
||||||
"name": "mysql_projectId_project_projectId_fk",
|
"name": "mysql_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mysql",
|
"tableFrom": "mysql",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mysql_appName_unique": {
|
"mysql_appName_unique": {
|
||||||
"name": "mysql_appName_unique",
|
"name": "mysql_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"backup": {
|
"public.backup": {
|
||||||
"name": "backup",
|
"name": "backup",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1350,73 +1348,73 @@
|
|||||||
"backup_destinationId_destination_destinationId_fk": {
|
"backup_destinationId_destination_destinationId_fk": {
|
||||||
"name": "backup_destinationId_destination_destinationId_fk",
|
"name": "backup_destinationId_destination_destinationId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "destination",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"destinationId"
|
"destinationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "destination",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"destinationId"
|
"destinationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_postgresId_postgres_postgresId_fk": {
|
"backup_postgresId_postgres_postgresId_fk": {
|
||||||
"name": "backup_postgresId_postgres_postgresId_fk",
|
"name": "backup_postgresId_postgres_postgresId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "postgres",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "postgres",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mariadbId_mariadb_mariadbId_fk": {
|
"backup_mariadbId_mariadb_mariadbId_fk": {
|
||||||
"name": "backup_mariadbId_mariadb_mariadbId_fk",
|
"name": "backup_mariadbId_mariadb_mariadbId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mariadb",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mariadb",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mysqlId_mysql_mysqlId_fk": {
|
"backup_mysqlId_mysql_mysqlId_fk": {
|
||||||
"name": "backup_mysqlId_mysql_mysqlId_fk",
|
"name": "backup_mysqlId_mysql_mysqlId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mysql",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mysql",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mongoId_mongo_mongoId_fk": {
|
"backup_mongoId_mongo_mongoId_fk": {
|
||||||
"name": "backup_mongoId_mongo_mongoId_fk",
|
"name": "backup_mongoId_mongo_mongoId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mongo",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mongo",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"destination": {
|
"public.destination": {
|
||||||
"name": "destination",
|
"name": "destination",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1474,21 +1472,21 @@
|
|||||||
"destination_adminId_admin_adminId_fk": {
|
"destination_adminId_admin_adminId_fk": {
|
||||||
"name": "destination_adminId_admin_adminId_fk",
|
"name": "destination_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "destination",
|
"tableFrom": "destination",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"deployment": {
|
"public.deployment": {
|
||||||
"name": "deployment",
|
"name": "deployment",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1535,21 +1533,21 @@
|
|||||||
"deployment_applicationId_application_applicationId_fk": {
|
"deployment_applicationId_application_applicationId_fk": {
|
||||||
"name": "deployment_applicationId_application_applicationId_fk",
|
"name": "deployment_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "deployment",
|
"tableFrom": "deployment",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"mount": {
|
"public.mount": {
|
||||||
"name": "mount",
|
"name": "mount",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1638,86 +1636,86 @@
|
|||||||
"mount_applicationId_application_applicationId_fk": {
|
"mount_applicationId_application_applicationId_fk": {
|
||||||
"name": "mount_applicationId_application_applicationId_fk",
|
"name": "mount_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_postgresId_postgres_postgresId_fk": {
|
"mount_postgresId_postgres_postgresId_fk": {
|
||||||
"name": "mount_postgresId_postgres_postgresId_fk",
|
"name": "mount_postgresId_postgres_postgresId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "postgres",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "postgres",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mariadbId_mariadb_mariadbId_fk": {
|
"mount_mariadbId_mariadb_mariadbId_fk": {
|
||||||
"name": "mount_mariadbId_mariadb_mariadbId_fk",
|
"name": "mount_mariadbId_mariadb_mariadbId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mariadb",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mariadb",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mongoId_mongo_mongoId_fk": {
|
"mount_mongoId_mongo_mongoId_fk": {
|
||||||
"name": "mount_mongoId_mongo_mongoId_fk",
|
"name": "mount_mongoId_mongo_mongoId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mongo",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mongo",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mysqlId_mysql_mysqlId_fk": {
|
"mount_mysqlId_mysql_mysqlId_fk": {
|
||||||
"name": "mount_mysqlId_mysql_mysqlId_fk",
|
"name": "mount_mysqlId_mysql_mysqlId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mysql",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mysql",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_redisId_redis_redisId_fk": {
|
"mount_redisId_redis_redisId_fk": {
|
||||||
"name": "mount_redisId_redis_redisId_fk",
|
"name": "mount_redisId_redis_redisId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "redis",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"redisId"
|
"redisId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "redis",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"redisId"
|
"redisId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"certificate": {
|
"public.certificate": {
|
||||||
"name": "certificate",
|
"name": "certificate",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1764,14 +1762,14 @@
|
|||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"certificate_certificatePath_unique": {
|
"certificate_certificatePath_unique": {
|
||||||
"name": "certificate_certificatePath_unique",
|
"name": "certificate_certificatePath_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"certificatePath"
|
"certificatePath"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"session": {
|
"public.session": {
|
||||||
"name": "session",
|
"name": "session",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1799,21 +1797,21 @@
|
|||||||
"session_user_id_auth_id_fk": {
|
"session_user_id_auth_id_fk": {
|
||||||
"name": "session_user_id_auth_id_fk",
|
"name": "session_user_id_auth_id_fk",
|
||||||
"tableFrom": "session",
|
"tableFrom": "session",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"user_id"
|
"user_id"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"redirect": {
|
"public.redirect": {
|
||||||
"name": "redirect",
|
"name": "redirect",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1866,21 +1864,21 @@
|
|||||||
"redirect_applicationId_application_applicationId_fk": {
|
"redirect_applicationId_application_applicationId_fk": {
|
||||||
"name": "redirect_applicationId_application_applicationId_fk",
|
"name": "redirect_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "redirect",
|
"tableFrom": "redirect",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"security": {
|
"public.security": {
|
||||||
"name": "security",
|
"name": "security",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1920,30 +1918,30 @@
|
|||||||
"security_applicationId_application_applicationId_fk": {
|
"security_applicationId_application_applicationId_fk": {
|
||||||
"name": "security_applicationId_application_applicationId_fk",
|
"name": "security_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "security",
|
"tableFrom": "security",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"security_username_applicationId_unique": {
|
"security_username_applicationId_unique": {
|
||||||
"name": "security_username_applicationId_unique",
|
"name": "security_username_applicationId_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"username",
|
"username",
|
||||||
"applicationId"
|
"applicationId"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"port": {
|
"public.port": {
|
||||||
"name": "port",
|
"name": "port",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1983,21 +1981,21 @@
|
|||||||
"port_applicationId_application_applicationId_fk": {
|
"port_applicationId_application_applicationId_fk": {
|
||||||
"name": "port_applicationId_application_applicationId_fk",
|
"name": "port_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "port",
|
"tableFrom": "port",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"redis": {
|
"public.redis": {
|
||||||
"name": "redis",
|
"name": "redis",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -2104,118 +2102,130 @@
|
|||||||
"redis_projectId_project_projectId_fk": {
|
"redis_projectId_project_projectId_fk": {
|
||||||
"name": "redis_projectId_project_projectId_fk",
|
"name": "redis_projectId_project_projectId_fk",
|
||||||
"tableFrom": "redis",
|
"tableFrom": "redis",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"redis_appName_unique": {
|
"redis_appName_unique": {
|
||||||
"name": "redis_appName_unique",
|
"name": "redis_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"enums": {
|
"enums": {
|
||||||
"buildType": {
|
"public.buildType": {
|
||||||
"name": "buildType",
|
"name": "buildType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"dockerfile": "dockerfile",
|
"values": [
|
||||||
"heroku_buildpacks": "heroku_buildpacks",
|
"dockerfile",
|
||||||
"paketo_buildpacks": "paketo_buildpacks",
|
"heroku_buildpacks",
|
||||||
"nixpacks": "nixpacks"
|
"paketo_buildpacks",
|
||||||
}
|
"nixpacks"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"sourceType": {
|
"public.sourceType": {
|
||||||
"name": "sourceType",
|
"name": "sourceType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"docker": "docker",
|
"values": [
|
||||||
"git": "git",
|
"docker",
|
||||||
"github": "github"
|
"git",
|
||||||
}
|
"github"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"Roles": {
|
"public.Roles": {
|
||||||
"name": "Roles",
|
"name": "Roles",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"admin": "admin",
|
"values": [
|
||||||
"user": "user"
|
"admin",
|
||||||
}
|
"user"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"databaseType": {
|
"public.databaseType": {
|
||||||
"name": "databaseType",
|
"name": "databaseType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"postgres": "postgres",
|
"values": [
|
||||||
"mariadb": "mariadb",
|
"postgres",
|
||||||
"mysql": "mysql",
|
"mariadb",
|
||||||
"mongo": "mongo"
|
"mysql",
|
||||||
}
|
"mongo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"deploymentStatus": {
|
"public.deploymentStatus": {
|
||||||
"name": "deploymentStatus",
|
"name": "deploymentStatus",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"running": "running",
|
"values": [
|
||||||
"done": "done",
|
"running",
|
||||||
"error": "error"
|
"done",
|
||||||
}
|
"error"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"mountType": {
|
"public.mountType": {
|
||||||
"name": "mountType",
|
"name": "mountType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"bind": "bind",
|
"values": [
|
||||||
"volume": "volume",
|
"bind",
|
||||||
"file": "file"
|
"volume",
|
||||||
}
|
"file"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"serviceType": {
|
"public.serviceType": {
|
||||||
"name": "serviceType",
|
"name": "serviceType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"application": "application",
|
"values": [
|
||||||
"postgres": "postgres",
|
"application",
|
||||||
"mysql": "mysql",
|
"postgres",
|
||||||
"mariadb": "mariadb",
|
"mysql",
|
||||||
"mongo": "mongo",
|
"mariadb",
|
||||||
"redis": "redis"
|
"mongo",
|
||||||
}
|
"redis"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"protocolType": {
|
"public.protocolType": {
|
||||||
"name": "protocolType",
|
"name": "protocolType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"tcp": "tcp",
|
"values": [
|
||||||
"udp": "udp"
|
"tcp",
|
||||||
}
|
"udp"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"applicationStatus": {
|
"public.applicationStatus": {
|
||||||
"name": "applicationStatus",
|
"name": "applicationStatus",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"idle": "idle",
|
"values": [
|
||||||
"running": "running",
|
"idle",
|
||||||
"done": "done",
|
"running",
|
||||||
"error": "error"
|
"done",
|
||||||
}
|
"error"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"certificateType": {
|
"public.certificateType": {
|
||||||
"name": "certificateType",
|
"name": "certificateType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"letsencrypt": "letsencrypt",
|
"values": [
|
||||||
"none": "none"
|
"letsencrypt",
|
||||||
}
|
"none"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"schemas": {},
|
"schemas": {},
|
||||||
"_meta": {
|
"_meta": {
|
||||||
"columns": {},
|
|
||||||
"schemas": {},
|
"schemas": {},
|
||||||
"tables": {}
|
"tables": {},
|
||||||
}
|
"columns": {}
|
||||||
|
},
|
||||||
|
"id": "665483bd-5123-4c2b-beef-bfa9b91b9356",
|
||||||
|
"prevId": "3a4dfad7-ae33-4ae3-b60e-4f40f44f5652"
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
{
|
{
|
||||||
"id": "5a1d3f2b-9c31-4125-9645-015170550b51",
|
"version": "6",
|
||||||
"prevId": "665483bd-5123-4c2b-beef-bfa9b91b9356",
|
"dialect": "postgresql",
|
||||||
"version": "5",
|
|
||||||
"dialect": "pg",
|
|
||||||
"tables": {
|
"tables": {
|
||||||
"application": {
|
"public.application": {
|
||||||
"name": "application",
|
"name": "application",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -234,29 +232,29 @@
|
|||||||
"application_projectId_project_projectId_fk": {
|
"application_projectId_project_projectId_fk": {
|
||||||
"name": "application_projectId_project_projectId_fk",
|
"name": "application_projectId_project_projectId_fk",
|
||||||
"tableFrom": "application",
|
"tableFrom": "application",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"application_appName_unique": {
|
"application_appName_unique": {
|
||||||
"name": "application_appName_unique",
|
"name": "application_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"postgres": {
|
"public.postgres": {
|
||||||
"name": "postgres",
|
"name": "postgres",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -375,29 +373,29 @@
|
|||||||
"postgres_projectId_project_projectId_fk": {
|
"postgres_projectId_project_projectId_fk": {
|
||||||
"name": "postgres_projectId_project_projectId_fk",
|
"name": "postgres_projectId_project_projectId_fk",
|
||||||
"tableFrom": "postgres",
|
"tableFrom": "postgres",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"postgres_appName_unique": {
|
"postgres_appName_unique": {
|
||||||
"name": "postgres_appName_unique",
|
"name": "postgres_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"user": {
|
"public.user": {
|
||||||
"name": "user",
|
"name": "user",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -506,34 +504,34 @@
|
|||||||
"user_adminId_admin_adminId_fk": {
|
"user_adminId_admin_adminId_fk": {
|
||||||
"name": "user_adminId_admin_adminId_fk",
|
"name": "user_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "user",
|
"tableFrom": "user",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"user_authId_auth_id_fk": {
|
"user_authId_auth_id_fk": {
|
||||||
"name": "user_authId_auth_id_fk",
|
"name": "user_authId_auth_id_fk",
|
||||||
"tableFrom": "user",
|
"tableFrom": "user",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"authId"
|
"authId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"admin": {
|
"public.admin": {
|
||||||
"name": "admin",
|
"name": "admin",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -635,21 +633,21 @@
|
|||||||
"admin_authId_auth_id_fk": {
|
"admin_authId_auth_id_fk": {
|
||||||
"name": "admin_authId_auth_id_fk",
|
"name": "admin_authId_auth_id_fk",
|
||||||
"tableFrom": "admin",
|
"tableFrom": "admin",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"authId"
|
"authId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"auth": {
|
"public.auth": {
|
||||||
"name": "auth",
|
"name": "auth",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -709,14 +707,14 @@
|
|||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"auth_email_unique": {
|
"auth_email_unique": {
|
||||||
"name": "auth_email_unique",
|
"name": "auth_email_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"email"
|
"email"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"project": {
|
"public.project": {
|
||||||
"name": "project",
|
"name": "project",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -756,21 +754,21 @@
|
|||||||
"project_adminId_admin_adminId_fk": {
|
"project_adminId_admin_adminId_fk": {
|
||||||
"name": "project_adminId_admin_adminId_fk",
|
"name": "project_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "project",
|
"tableFrom": "project",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"domain": {
|
"public.domain": {
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -838,21 +836,21 @@
|
|||||||
"domain_applicationId_application_applicationId_fk": {
|
"domain_applicationId_application_applicationId_fk": {
|
||||||
"name": "domain_applicationId_application_applicationId_fk",
|
"name": "domain_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "domain",
|
"tableFrom": "domain",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"mariadb": {
|
"public.mariadb": {
|
||||||
"name": "mariadb",
|
"name": "mariadb",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -977,29 +975,29 @@
|
|||||||
"mariadb_projectId_project_projectId_fk": {
|
"mariadb_projectId_project_projectId_fk": {
|
||||||
"name": "mariadb_projectId_project_projectId_fk",
|
"name": "mariadb_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mariadb",
|
"tableFrom": "mariadb",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mariadb_appName_unique": {
|
"mariadb_appName_unique": {
|
||||||
"name": "mariadb_appName_unique",
|
"name": "mariadb_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mongo": {
|
"public.mongo": {
|
||||||
"name": "mongo",
|
"name": "mongo",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1112,29 +1110,29 @@
|
|||||||
"mongo_projectId_project_projectId_fk": {
|
"mongo_projectId_project_projectId_fk": {
|
||||||
"name": "mongo_projectId_project_projectId_fk",
|
"name": "mongo_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mongo",
|
"tableFrom": "mongo",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mongo_appName_unique": {
|
"mongo_appName_unique": {
|
||||||
"name": "mongo_appName_unique",
|
"name": "mongo_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mysql": {
|
"public.mysql": {
|
||||||
"name": "mysql",
|
"name": "mysql",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1259,29 +1257,29 @@
|
|||||||
"mysql_projectId_project_projectId_fk": {
|
"mysql_projectId_project_projectId_fk": {
|
||||||
"name": "mysql_projectId_project_projectId_fk",
|
"name": "mysql_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mysql",
|
"tableFrom": "mysql",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mysql_appName_unique": {
|
"mysql_appName_unique": {
|
||||||
"name": "mysql_appName_unique",
|
"name": "mysql_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"backup": {
|
"public.backup": {
|
||||||
"name": "backup",
|
"name": "backup",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1357,73 +1355,73 @@
|
|||||||
"backup_destinationId_destination_destinationId_fk": {
|
"backup_destinationId_destination_destinationId_fk": {
|
||||||
"name": "backup_destinationId_destination_destinationId_fk",
|
"name": "backup_destinationId_destination_destinationId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "destination",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"destinationId"
|
"destinationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "destination",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"destinationId"
|
"destinationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_postgresId_postgres_postgresId_fk": {
|
"backup_postgresId_postgres_postgresId_fk": {
|
||||||
"name": "backup_postgresId_postgres_postgresId_fk",
|
"name": "backup_postgresId_postgres_postgresId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "postgres",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "postgres",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mariadbId_mariadb_mariadbId_fk": {
|
"backup_mariadbId_mariadb_mariadbId_fk": {
|
||||||
"name": "backup_mariadbId_mariadb_mariadbId_fk",
|
"name": "backup_mariadbId_mariadb_mariadbId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mariadb",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mariadb",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mysqlId_mysql_mysqlId_fk": {
|
"backup_mysqlId_mysql_mysqlId_fk": {
|
||||||
"name": "backup_mysqlId_mysql_mysqlId_fk",
|
"name": "backup_mysqlId_mysql_mysqlId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mysql",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mysql",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mongoId_mongo_mongoId_fk": {
|
"backup_mongoId_mongo_mongoId_fk": {
|
||||||
"name": "backup_mongoId_mongo_mongoId_fk",
|
"name": "backup_mongoId_mongo_mongoId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mongo",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mongo",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"destination": {
|
"public.destination": {
|
||||||
"name": "destination",
|
"name": "destination",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1481,21 +1479,21 @@
|
|||||||
"destination_adminId_admin_adminId_fk": {
|
"destination_adminId_admin_adminId_fk": {
|
||||||
"name": "destination_adminId_admin_adminId_fk",
|
"name": "destination_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "destination",
|
"tableFrom": "destination",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"deployment": {
|
"public.deployment": {
|
||||||
"name": "deployment",
|
"name": "deployment",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1542,21 +1540,21 @@
|
|||||||
"deployment_applicationId_application_applicationId_fk": {
|
"deployment_applicationId_application_applicationId_fk": {
|
||||||
"name": "deployment_applicationId_application_applicationId_fk",
|
"name": "deployment_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "deployment",
|
"tableFrom": "deployment",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"mount": {
|
"public.mount": {
|
||||||
"name": "mount",
|
"name": "mount",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1645,86 +1643,86 @@
|
|||||||
"mount_applicationId_application_applicationId_fk": {
|
"mount_applicationId_application_applicationId_fk": {
|
||||||
"name": "mount_applicationId_application_applicationId_fk",
|
"name": "mount_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_postgresId_postgres_postgresId_fk": {
|
"mount_postgresId_postgres_postgresId_fk": {
|
||||||
"name": "mount_postgresId_postgres_postgresId_fk",
|
"name": "mount_postgresId_postgres_postgresId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "postgres",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "postgres",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mariadbId_mariadb_mariadbId_fk": {
|
"mount_mariadbId_mariadb_mariadbId_fk": {
|
||||||
"name": "mount_mariadbId_mariadb_mariadbId_fk",
|
"name": "mount_mariadbId_mariadb_mariadbId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mariadb",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mariadb",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mongoId_mongo_mongoId_fk": {
|
"mount_mongoId_mongo_mongoId_fk": {
|
||||||
"name": "mount_mongoId_mongo_mongoId_fk",
|
"name": "mount_mongoId_mongo_mongoId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mongo",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mongo",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mysqlId_mysql_mysqlId_fk": {
|
"mount_mysqlId_mysql_mysqlId_fk": {
|
||||||
"name": "mount_mysqlId_mysql_mysqlId_fk",
|
"name": "mount_mysqlId_mysql_mysqlId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mysql",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mysql",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_redisId_redis_redisId_fk": {
|
"mount_redisId_redis_redisId_fk": {
|
||||||
"name": "mount_redisId_redis_redisId_fk",
|
"name": "mount_redisId_redis_redisId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "redis",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"redisId"
|
"redisId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "redis",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"redisId"
|
"redisId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"certificate": {
|
"public.certificate": {
|
||||||
"name": "certificate",
|
"name": "certificate",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1771,14 +1769,14 @@
|
|||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"certificate_certificatePath_unique": {
|
"certificate_certificatePath_unique": {
|
||||||
"name": "certificate_certificatePath_unique",
|
"name": "certificate_certificatePath_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"certificatePath"
|
"certificatePath"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"session": {
|
"public.session": {
|
||||||
"name": "session",
|
"name": "session",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1806,21 +1804,21 @@
|
|||||||
"session_user_id_auth_id_fk": {
|
"session_user_id_auth_id_fk": {
|
||||||
"name": "session_user_id_auth_id_fk",
|
"name": "session_user_id_auth_id_fk",
|
||||||
"tableFrom": "session",
|
"tableFrom": "session",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"user_id"
|
"user_id"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"redirect": {
|
"public.redirect": {
|
||||||
"name": "redirect",
|
"name": "redirect",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1873,21 +1871,21 @@
|
|||||||
"redirect_applicationId_application_applicationId_fk": {
|
"redirect_applicationId_application_applicationId_fk": {
|
||||||
"name": "redirect_applicationId_application_applicationId_fk",
|
"name": "redirect_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "redirect",
|
"tableFrom": "redirect",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"security": {
|
"public.security": {
|
||||||
"name": "security",
|
"name": "security",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1927,30 +1925,30 @@
|
|||||||
"security_applicationId_application_applicationId_fk": {
|
"security_applicationId_application_applicationId_fk": {
|
||||||
"name": "security_applicationId_application_applicationId_fk",
|
"name": "security_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "security",
|
"tableFrom": "security",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"security_username_applicationId_unique": {
|
"security_username_applicationId_unique": {
|
||||||
"name": "security_username_applicationId_unique",
|
"name": "security_username_applicationId_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"username",
|
"username",
|
||||||
"applicationId"
|
"applicationId"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"port": {
|
"public.port": {
|
||||||
"name": "port",
|
"name": "port",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1990,21 +1988,21 @@
|
|||||||
"port_applicationId_application_applicationId_fk": {
|
"port_applicationId_application_applicationId_fk": {
|
||||||
"name": "port_applicationId_application_applicationId_fk",
|
"name": "port_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "port",
|
"tableFrom": "port",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"redis": {
|
"public.redis": {
|
||||||
"name": "redis",
|
"name": "redis",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -2111,118 +2109,130 @@
|
|||||||
"redis_projectId_project_projectId_fk": {
|
"redis_projectId_project_projectId_fk": {
|
||||||
"name": "redis_projectId_project_projectId_fk",
|
"name": "redis_projectId_project_projectId_fk",
|
||||||
"tableFrom": "redis",
|
"tableFrom": "redis",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"redis_appName_unique": {
|
"redis_appName_unique": {
|
||||||
"name": "redis_appName_unique",
|
"name": "redis_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"enums": {
|
"enums": {
|
||||||
"buildType": {
|
"public.buildType": {
|
||||||
"name": "buildType",
|
"name": "buildType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"dockerfile": "dockerfile",
|
"values": [
|
||||||
"heroku_buildpacks": "heroku_buildpacks",
|
"dockerfile",
|
||||||
"paketo_buildpacks": "paketo_buildpacks",
|
"heroku_buildpacks",
|
||||||
"nixpacks": "nixpacks"
|
"paketo_buildpacks",
|
||||||
}
|
"nixpacks"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"sourceType": {
|
"public.sourceType": {
|
||||||
"name": "sourceType",
|
"name": "sourceType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"docker": "docker",
|
"values": [
|
||||||
"git": "git",
|
"docker",
|
||||||
"github": "github"
|
"git",
|
||||||
}
|
"github"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"Roles": {
|
"public.Roles": {
|
||||||
"name": "Roles",
|
"name": "Roles",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"admin": "admin",
|
"values": [
|
||||||
"user": "user"
|
"admin",
|
||||||
}
|
"user"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"databaseType": {
|
"public.databaseType": {
|
||||||
"name": "databaseType",
|
"name": "databaseType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"postgres": "postgres",
|
"values": [
|
||||||
"mariadb": "mariadb",
|
"postgres",
|
||||||
"mysql": "mysql",
|
"mariadb",
|
||||||
"mongo": "mongo"
|
"mysql",
|
||||||
}
|
"mongo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"deploymentStatus": {
|
"public.deploymentStatus": {
|
||||||
"name": "deploymentStatus",
|
"name": "deploymentStatus",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"running": "running",
|
"values": [
|
||||||
"done": "done",
|
"running",
|
||||||
"error": "error"
|
"done",
|
||||||
}
|
"error"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"mountType": {
|
"public.mountType": {
|
||||||
"name": "mountType",
|
"name": "mountType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"bind": "bind",
|
"values": [
|
||||||
"volume": "volume",
|
"bind",
|
||||||
"file": "file"
|
"volume",
|
||||||
}
|
"file"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"serviceType": {
|
"public.serviceType": {
|
||||||
"name": "serviceType",
|
"name": "serviceType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"application": "application",
|
"values": [
|
||||||
"postgres": "postgres",
|
"application",
|
||||||
"mysql": "mysql",
|
"postgres",
|
||||||
"mariadb": "mariadb",
|
"mysql",
|
||||||
"mongo": "mongo",
|
"mariadb",
|
||||||
"redis": "redis"
|
"mongo",
|
||||||
}
|
"redis"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"protocolType": {
|
"public.protocolType": {
|
||||||
"name": "protocolType",
|
"name": "protocolType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"tcp": "tcp",
|
"values": [
|
||||||
"udp": "udp"
|
"tcp",
|
||||||
}
|
"udp"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"applicationStatus": {
|
"public.applicationStatus": {
|
||||||
"name": "applicationStatus",
|
"name": "applicationStatus",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"idle": "idle",
|
"values": [
|
||||||
"running": "running",
|
"idle",
|
||||||
"done": "done",
|
"running",
|
||||||
"error": "error"
|
"done",
|
||||||
}
|
"error"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"certificateType": {
|
"public.certificateType": {
|
||||||
"name": "certificateType",
|
"name": "certificateType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"letsencrypt": "letsencrypt",
|
"values": [
|
||||||
"none": "none"
|
"letsencrypt",
|
||||||
}
|
"none"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"schemas": {},
|
"schemas": {},
|
||||||
"_meta": {
|
"_meta": {
|
||||||
"columns": {},
|
|
||||||
"schemas": {},
|
"schemas": {},
|
||||||
"tables": {}
|
"tables": {},
|
||||||
}
|
"columns": {}
|
||||||
|
},
|
||||||
|
"id": "5a1d3f2b-9c31-4125-9645-015170550b51",
|
||||||
|
"prevId": "665483bd-5123-4c2b-beef-bfa9b91b9356"
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
{
|
{
|
||||||
"id": "7bb4bbcf-791c-4888-919e-f74bc0528b5f",
|
"version": "6",
|
||||||
"prevId": "5a1d3f2b-9c31-4125-9645-015170550b51",
|
"dialect": "postgresql",
|
||||||
"version": "5",
|
|
||||||
"dialect": "pg",
|
|
||||||
"tables": {
|
"tables": {
|
||||||
"application": {
|
"public.application": {
|
||||||
"name": "application",
|
"name": "application",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -210,29 +208,29 @@
|
|||||||
"application_projectId_project_projectId_fk": {
|
"application_projectId_project_projectId_fk": {
|
||||||
"name": "application_projectId_project_projectId_fk",
|
"name": "application_projectId_project_projectId_fk",
|
||||||
"tableFrom": "application",
|
"tableFrom": "application",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"application_appName_unique": {
|
"application_appName_unique": {
|
||||||
"name": "application_appName_unique",
|
"name": "application_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"postgres": {
|
"public.postgres": {
|
||||||
"name": "postgres",
|
"name": "postgres",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -351,29 +349,29 @@
|
|||||||
"postgres_projectId_project_projectId_fk": {
|
"postgres_projectId_project_projectId_fk": {
|
||||||
"name": "postgres_projectId_project_projectId_fk",
|
"name": "postgres_projectId_project_projectId_fk",
|
||||||
"tableFrom": "postgres",
|
"tableFrom": "postgres",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"postgres_appName_unique": {
|
"postgres_appName_unique": {
|
||||||
"name": "postgres_appName_unique",
|
"name": "postgres_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"user": {
|
"public.user": {
|
||||||
"name": "user",
|
"name": "user",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -482,34 +480,34 @@
|
|||||||
"user_adminId_admin_adminId_fk": {
|
"user_adminId_admin_adminId_fk": {
|
||||||
"name": "user_adminId_admin_adminId_fk",
|
"name": "user_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "user",
|
"tableFrom": "user",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"user_authId_auth_id_fk": {
|
"user_authId_auth_id_fk": {
|
||||||
"name": "user_authId_auth_id_fk",
|
"name": "user_authId_auth_id_fk",
|
||||||
"tableFrom": "user",
|
"tableFrom": "user",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"authId"
|
"authId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"admin": {
|
"public.admin": {
|
||||||
"name": "admin",
|
"name": "admin",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -611,21 +609,21 @@
|
|||||||
"admin_authId_auth_id_fk": {
|
"admin_authId_auth_id_fk": {
|
||||||
"name": "admin_authId_auth_id_fk",
|
"name": "admin_authId_auth_id_fk",
|
||||||
"tableFrom": "admin",
|
"tableFrom": "admin",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"authId"
|
"authId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"auth": {
|
"public.auth": {
|
||||||
"name": "auth",
|
"name": "auth",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -685,14 +683,14 @@
|
|||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"auth_email_unique": {
|
"auth_email_unique": {
|
||||||
"name": "auth_email_unique",
|
"name": "auth_email_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"email"
|
"email"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"project": {
|
"public.project": {
|
||||||
"name": "project",
|
"name": "project",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -732,21 +730,21 @@
|
|||||||
"project_adminId_admin_adminId_fk": {
|
"project_adminId_admin_adminId_fk": {
|
||||||
"name": "project_adminId_admin_adminId_fk",
|
"name": "project_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "project",
|
"tableFrom": "project",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"domain": {
|
"public.domain": {
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -814,21 +812,21 @@
|
|||||||
"domain_applicationId_application_applicationId_fk": {
|
"domain_applicationId_application_applicationId_fk": {
|
||||||
"name": "domain_applicationId_application_applicationId_fk",
|
"name": "domain_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "domain",
|
"tableFrom": "domain",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"mariadb": {
|
"public.mariadb": {
|
||||||
"name": "mariadb",
|
"name": "mariadb",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -953,29 +951,29 @@
|
|||||||
"mariadb_projectId_project_projectId_fk": {
|
"mariadb_projectId_project_projectId_fk": {
|
||||||
"name": "mariadb_projectId_project_projectId_fk",
|
"name": "mariadb_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mariadb",
|
"tableFrom": "mariadb",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mariadb_appName_unique": {
|
"mariadb_appName_unique": {
|
||||||
"name": "mariadb_appName_unique",
|
"name": "mariadb_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mongo": {
|
"public.mongo": {
|
||||||
"name": "mongo",
|
"name": "mongo",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1088,29 +1086,29 @@
|
|||||||
"mongo_projectId_project_projectId_fk": {
|
"mongo_projectId_project_projectId_fk": {
|
||||||
"name": "mongo_projectId_project_projectId_fk",
|
"name": "mongo_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mongo",
|
"tableFrom": "mongo",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mongo_appName_unique": {
|
"mongo_appName_unique": {
|
||||||
"name": "mongo_appName_unique",
|
"name": "mongo_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mysql": {
|
"public.mysql": {
|
||||||
"name": "mysql",
|
"name": "mysql",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1235,29 +1233,29 @@
|
|||||||
"mysql_projectId_project_projectId_fk": {
|
"mysql_projectId_project_projectId_fk": {
|
||||||
"name": "mysql_projectId_project_projectId_fk",
|
"name": "mysql_projectId_project_projectId_fk",
|
||||||
"tableFrom": "mysql",
|
"tableFrom": "mysql",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"mysql_appName_unique": {
|
"mysql_appName_unique": {
|
||||||
"name": "mysql_appName_unique",
|
"name": "mysql_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"backup": {
|
"public.backup": {
|
||||||
"name": "backup",
|
"name": "backup",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1333,73 +1331,73 @@
|
|||||||
"backup_destinationId_destination_destinationId_fk": {
|
"backup_destinationId_destination_destinationId_fk": {
|
||||||
"name": "backup_destinationId_destination_destinationId_fk",
|
"name": "backup_destinationId_destination_destinationId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "destination",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"destinationId"
|
"destinationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "destination",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"destinationId"
|
"destinationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_postgresId_postgres_postgresId_fk": {
|
"backup_postgresId_postgres_postgresId_fk": {
|
||||||
"name": "backup_postgresId_postgres_postgresId_fk",
|
"name": "backup_postgresId_postgres_postgresId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "postgres",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "postgres",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mariadbId_mariadb_mariadbId_fk": {
|
"backup_mariadbId_mariadb_mariadbId_fk": {
|
||||||
"name": "backup_mariadbId_mariadb_mariadbId_fk",
|
"name": "backup_mariadbId_mariadb_mariadbId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mariadb",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mariadb",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mysqlId_mysql_mysqlId_fk": {
|
"backup_mysqlId_mysql_mysqlId_fk": {
|
||||||
"name": "backup_mysqlId_mysql_mysqlId_fk",
|
"name": "backup_mysqlId_mysql_mysqlId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mysql",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mysql",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"backup_mongoId_mongo_mongoId_fk": {
|
"backup_mongoId_mongo_mongoId_fk": {
|
||||||
"name": "backup_mongoId_mongo_mongoId_fk",
|
"name": "backup_mongoId_mongo_mongoId_fk",
|
||||||
"tableFrom": "backup",
|
"tableFrom": "backup",
|
||||||
"tableTo": "mongo",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mongo",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"destination": {
|
"public.destination": {
|
||||||
"name": "destination",
|
"name": "destination",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1457,21 +1455,21 @@
|
|||||||
"destination_adminId_admin_adminId_fk": {
|
"destination_adminId_admin_adminId_fk": {
|
||||||
"name": "destination_adminId_admin_adminId_fk",
|
"name": "destination_adminId_admin_adminId_fk",
|
||||||
"tableFrom": "destination",
|
"tableFrom": "destination",
|
||||||
"tableTo": "admin",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "admin",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"adminId"
|
"adminId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"deployment": {
|
"public.deployment": {
|
||||||
"name": "deployment",
|
"name": "deployment",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1518,21 +1516,21 @@
|
|||||||
"deployment_applicationId_application_applicationId_fk": {
|
"deployment_applicationId_application_applicationId_fk": {
|
||||||
"name": "deployment_applicationId_application_applicationId_fk",
|
"name": "deployment_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "deployment",
|
"tableFrom": "deployment",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"mount": {
|
"public.mount": {
|
||||||
"name": "mount",
|
"name": "mount",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1621,86 +1619,86 @@
|
|||||||
"mount_applicationId_application_applicationId_fk": {
|
"mount_applicationId_application_applicationId_fk": {
|
||||||
"name": "mount_applicationId_application_applicationId_fk",
|
"name": "mount_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_postgresId_postgres_postgresId_fk": {
|
"mount_postgresId_postgres_postgresId_fk": {
|
||||||
"name": "mount_postgresId_postgres_postgresId_fk",
|
"name": "mount_postgresId_postgres_postgresId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "postgres",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "postgres",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"postgresId"
|
"postgresId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mariadbId_mariadb_mariadbId_fk": {
|
"mount_mariadbId_mariadb_mariadbId_fk": {
|
||||||
"name": "mount_mariadbId_mariadb_mariadbId_fk",
|
"name": "mount_mariadbId_mariadb_mariadbId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mariadb",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mariadb",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mariadbId"
|
"mariadbId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mongoId_mongo_mongoId_fk": {
|
"mount_mongoId_mongo_mongoId_fk": {
|
||||||
"name": "mount_mongoId_mongo_mongoId_fk",
|
"name": "mount_mongoId_mongo_mongoId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mongo",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mongo",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mongoId"
|
"mongoId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_mysqlId_mysql_mysqlId_fk": {
|
"mount_mysqlId_mysql_mysqlId_fk": {
|
||||||
"name": "mount_mysqlId_mysql_mysqlId_fk",
|
"name": "mount_mysqlId_mysql_mysqlId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "mysql",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "mysql",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"mysqlId"
|
"mysqlId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
},
|
},
|
||||||
"mount_redisId_redis_redisId_fk": {
|
"mount_redisId_redis_redisId_fk": {
|
||||||
"name": "mount_redisId_redis_redisId_fk",
|
"name": "mount_redisId_redis_redisId_fk",
|
||||||
"tableFrom": "mount",
|
"tableFrom": "mount",
|
||||||
"tableTo": "redis",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"redisId"
|
"redisId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "redis",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"redisId"
|
"redisId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"certificate": {
|
"public.certificate": {
|
||||||
"name": "certificate",
|
"name": "certificate",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1747,14 +1745,14 @@
|
|||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"certificate_certificatePath_unique": {
|
"certificate_certificatePath_unique": {
|
||||||
"name": "certificate_certificatePath_unique",
|
"name": "certificate_certificatePath_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"certificatePath"
|
"certificatePath"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"session": {
|
"public.session": {
|
||||||
"name": "session",
|
"name": "session",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1782,21 +1780,21 @@
|
|||||||
"session_user_id_auth_id_fk": {
|
"session_user_id_auth_id_fk": {
|
||||||
"name": "session_user_id_auth_id_fk",
|
"name": "session_user_id_auth_id_fk",
|
||||||
"tableFrom": "session",
|
"tableFrom": "session",
|
||||||
"tableTo": "auth",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"user_id"
|
"user_id"
|
||||||
],
|
],
|
||||||
|
"tableTo": "auth",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"id"
|
"id"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"redirect": {
|
"public.redirect": {
|
||||||
"name": "redirect",
|
"name": "redirect",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1849,21 +1847,21 @@
|
|||||||
"redirect_applicationId_application_applicationId_fk": {
|
"redirect_applicationId_application_applicationId_fk": {
|
||||||
"name": "redirect_applicationId_application_applicationId_fk",
|
"name": "redirect_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "redirect",
|
"tableFrom": "redirect",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"security": {
|
"public.security": {
|
||||||
"name": "security",
|
"name": "security",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1903,30 +1901,30 @@
|
|||||||
"security_applicationId_application_applicationId_fk": {
|
"security_applicationId_application_applicationId_fk": {
|
||||||
"name": "security_applicationId_application_applicationId_fk",
|
"name": "security_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "security",
|
"tableFrom": "security",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"security_username_applicationId_unique": {
|
"security_username_applicationId_unique": {
|
||||||
"name": "security_username_applicationId_unique",
|
"name": "security_username_applicationId_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"username",
|
"username",
|
||||||
"applicationId"
|
"applicationId"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"port": {
|
"public.port": {
|
||||||
"name": "port",
|
"name": "port",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -1966,21 +1964,21 @@
|
|||||||
"port_applicationId_application_applicationId_fk": {
|
"port_applicationId_application_applicationId_fk": {
|
||||||
"name": "port_applicationId_application_applicationId_fk",
|
"name": "port_applicationId_application_applicationId_fk",
|
||||||
"tableFrom": "port",
|
"tableFrom": "port",
|
||||||
"tableTo": "application",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "application",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"applicationId"
|
"applicationId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {}
|
"uniqueConstraints": {}
|
||||||
},
|
},
|
||||||
"redis": {
|
"public.redis": {
|
||||||
"name": "redis",
|
"name": "redis",
|
||||||
"schema": "",
|
"schema": "",
|
||||||
"columns": {
|
"columns": {
|
||||||
@@ -2087,118 +2085,130 @@
|
|||||||
"redis_projectId_project_projectId_fk": {
|
"redis_projectId_project_projectId_fk": {
|
||||||
"name": "redis_projectId_project_projectId_fk",
|
"name": "redis_projectId_project_projectId_fk",
|
||||||
"tableFrom": "redis",
|
"tableFrom": "redis",
|
||||||
"tableTo": "project",
|
|
||||||
"columnsFrom": [
|
"columnsFrom": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
|
"tableTo": "project",
|
||||||
"columnsTo": [
|
"columnsTo": [
|
||||||
"projectId"
|
"projectId"
|
||||||
],
|
],
|
||||||
"onDelete": "cascade",
|
"onUpdate": "no action",
|
||||||
"onUpdate": "no action"
|
"onDelete": "cascade"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
"uniqueConstraints": {
|
"uniqueConstraints": {
|
||||||
"redis_appName_unique": {
|
"redis_appName_unique": {
|
||||||
"name": "redis_appName_unique",
|
"name": "redis_appName_unique",
|
||||||
"nullsNotDistinct": false,
|
|
||||||
"columns": [
|
"columns": [
|
||||||
"appName"
|
"appName"
|
||||||
]
|
],
|
||||||
|
"nullsNotDistinct": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"enums": {
|
"enums": {
|
||||||
"buildType": {
|
"public.buildType": {
|
||||||
"name": "buildType",
|
"name": "buildType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"dockerfile": "dockerfile",
|
"values": [
|
||||||
"heroku_buildpacks": "heroku_buildpacks",
|
"dockerfile",
|
||||||
"paketo_buildpacks": "paketo_buildpacks",
|
"heroku_buildpacks",
|
||||||
"nixpacks": "nixpacks"
|
"paketo_buildpacks",
|
||||||
}
|
"nixpacks"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"sourceType": {
|
"public.sourceType": {
|
||||||
"name": "sourceType",
|
"name": "sourceType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"docker": "docker",
|
"values": [
|
||||||
"git": "git",
|
"docker",
|
||||||
"github": "github"
|
"git",
|
||||||
}
|
"github"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"Roles": {
|
"public.Roles": {
|
||||||
"name": "Roles",
|
"name": "Roles",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"admin": "admin",
|
"values": [
|
||||||
"user": "user"
|
"admin",
|
||||||
}
|
"user"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"databaseType": {
|
"public.databaseType": {
|
||||||
"name": "databaseType",
|
"name": "databaseType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"postgres": "postgres",
|
"values": [
|
||||||
"mariadb": "mariadb",
|
"postgres",
|
||||||
"mysql": "mysql",
|
"mariadb",
|
||||||
"mongo": "mongo"
|
"mysql",
|
||||||
}
|
"mongo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"deploymentStatus": {
|
"public.deploymentStatus": {
|
||||||
"name": "deploymentStatus",
|
"name": "deploymentStatus",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"running": "running",
|
"values": [
|
||||||
"done": "done",
|
"running",
|
||||||
"error": "error"
|
"done",
|
||||||
}
|
"error"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"mountType": {
|
"public.mountType": {
|
||||||
"name": "mountType",
|
"name": "mountType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"bind": "bind",
|
"values": [
|
||||||
"volume": "volume",
|
"bind",
|
||||||
"file": "file"
|
"volume",
|
||||||
}
|
"file"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"serviceType": {
|
"public.serviceType": {
|
||||||
"name": "serviceType",
|
"name": "serviceType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"application": "application",
|
"values": [
|
||||||
"postgres": "postgres",
|
"application",
|
||||||
"mysql": "mysql",
|
"postgres",
|
||||||
"mariadb": "mariadb",
|
"mysql",
|
||||||
"mongo": "mongo",
|
"mariadb",
|
||||||
"redis": "redis"
|
"mongo",
|
||||||
}
|
"redis"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"protocolType": {
|
"public.protocolType": {
|
||||||
"name": "protocolType",
|
"name": "protocolType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"tcp": "tcp",
|
"values": [
|
||||||
"udp": "udp"
|
"tcp",
|
||||||
}
|
"udp"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"applicationStatus": {
|
"public.applicationStatus": {
|
||||||
"name": "applicationStatus",
|
"name": "applicationStatus",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"idle": "idle",
|
"values": [
|
||||||
"running": "running",
|
"idle",
|
||||||
"done": "done",
|
"running",
|
||||||
"error": "error"
|
"done",
|
||||||
}
|
"error"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"certificateType": {
|
"public.certificateType": {
|
||||||
"name": "certificateType",
|
"name": "certificateType",
|
||||||
"values": {
|
"schema": "public",
|
||||||
"letsencrypt": "letsencrypt",
|
"values": [
|
||||||
"none": "none"
|
"letsencrypt",
|
||||||
}
|
"none"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"schemas": {},
|
"schemas": {},
|
||||||
"_meta": {
|
"_meta": {
|
||||||
"columns": {},
|
|
||||||
"schemas": {},
|
"schemas": {},
|
||||||
"tables": {}
|
"tables": {},
|
||||||
}
|
"columns": {}
|
||||||
|
},
|
||||||
|
"id": "7bb4bbcf-791c-4888-919e-f74bc0528b5f",
|
||||||
|
"prevId": "5a1d3f2b-9c31-4125-9645-015170550b51"
|
||||||
}
|
}
|
||||||
2295
drizzle/meta/0005_snapshot.json
Normal file
2295
drizzle/meta/0005_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2331
drizzle/meta/0006_snapshot.json
Normal file
2331
drizzle/meta/0006_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2338
drizzle/meta/0007_snapshot.json
Normal file
2338
drizzle/meta/0007_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2338
drizzle/meta/0008_snapshot.json
Normal file
2338
drizzle/meta/0008_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2338
drizzle/meta/0009_snapshot.json
Normal file
2338
drizzle/meta/0009_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2344
drizzle/meta/0010_snapshot.json
Normal file
2344
drizzle/meta/0010_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
2344
drizzle/meta/0011_snapshot.json
Normal file
2344
drizzle/meta/0011_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -36,6 +36,55 @@
|
|||||||
"when": 1714004732716,
|
"when": 1714004732716,
|
||||||
"tag": "0004_nice_tenebrous",
|
"tag": "0004_nice_tenebrous",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 5,
|
||||||
|
"version": "5",
|
||||||
|
"when": 1715551130605,
|
||||||
|
"tag": "0005_cute_terror",
|
||||||
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 6,
|
||||||
|
"version": "6",
|
||||||
|
"when": 1715563165991,
|
||||||
|
"tag": "0006_oval_jimmy_woo",
|
||||||
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 7,
|
||||||
|
"version": "6",
|
||||||
|
"when": 1715563497100,
|
||||||
|
"tag": "0007_cute_guardsmen",
|
||||||
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 8,
|
||||||
|
"version": "6",
|
||||||
|
"when": 1715564143641,
|
||||||
|
"tag": "0008_lazy_sage",
|
||||||
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 9,
|
||||||
|
"version": "6",
|
||||||
|
"when": 1715564774423,
|
||||||
|
"tag": "0009_majestic_spencer_smythe",
|
||||||
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 10,
|
||||||
|
"version": "6",
|
||||||
|
"when": 1715574037832,
|
||||||
|
"tag": "0010_lean_black_widow",
|
||||||
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 11,
|
||||||
|
"version": "6",
|
||||||
|
"when": 1715574230599,
|
||||||
|
"tag": "0011_petite_calypso",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -12,10 +12,12 @@
|
|||||||
"setup": "tsx -r dotenv/config setup.ts && sleep 5 && pnpm run migration:run",
|
"setup": "tsx -r dotenv/config setup.ts && sleep 5 && pnpm run migration:run",
|
||||||
"reset-password": "node dist/reset-password.mjs",
|
"reset-password": "node dist/reset-password.mjs",
|
||||||
"dev": "tsx watch -r dotenv/config ./server/server.ts --project tsconfig.server.json ",
|
"dev": "tsx watch -r dotenv/config ./server/server.ts --project tsconfig.server.json ",
|
||||||
"migration:generate": "drizzle-kit generate:pg --config ./server/db/drizzle.config.ts",
|
"studio":"drizzle-kit studio --config ./server/db/drizzle.config.ts",
|
||||||
|
"migration:generate": "drizzle-kit generate --config ./server/db/drizzle.config.ts",
|
||||||
"migration:run": "tsx -r dotenv/config migration.ts",
|
"migration:run": "tsx -r dotenv/config migration.ts",
|
||||||
|
"migration:up":"drizzle-kit up --config ./server/db/drizzle.config.ts",
|
||||||
"migration:drop": "drizzle-kit drop --config ./server/db/drizzle.config.ts",
|
"migration:drop": "drizzle-kit drop --config ./server/db/drizzle.config.ts",
|
||||||
"db:push": "drizzle-kit push:pg --config ./server/db/drizzle.config.ts",
|
"db:push": "drizzle-kit --config ./server/db/drizzle.config.ts",
|
||||||
"db:truncate": "tsx -r dotenv/config ./server/db/reset.ts",
|
"db:truncate": "tsx -r dotenv/config ./server/db/reset.ts",
|
||||||
"db:studio": "drizzle-kit studio",
|
"db:studio": "drizzle-kit studio",
|
||||||
"lint": "biome lint",
|
"lint": "biome lint",
|
||||||
@@ -117,7 +119,7 @@
|
|||||||
"@types/tar-fs": "2.0.4",
|
"@types/tar-fs": "2.0.4",
|
||||||
"@types/ws": "8.5.10",
|
"@types/ws": "8.5.10",
|
||||||
"autoprefixer": "^10.4.14",
|
"autoprefixer": "^10.4.14",
|
||||||
"drizzle-kit": "^0.20.14",
|
"drizzle-kit": "^0.21.1",
|
||||||
"esbuild": "0.20.2",
|
"esbuild": "0.20.2",
|
||||||
"localtunnel": "2.0.2",
|
"localtunnel": "2.0.2",
|
||||||
"postcss": "^8.4.31",
|
"postcss": "^8.4.31",
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { ShowClusterSettings } from "@/components/dashboard/application/advanced/cluster/show-cluster-settings";
|
||||||
import { AddCommand } from "@/components/dashboard/application/advanced/general/add-command";
|
import { AddCommand } from "@/components/dashboard/application/advanced/general/add-command";
|
||||||
import { ShowPorts } from "@/components/dashboard/application/advanced/ports/show-port";
|
import { ShowPorts } from "@/components/dashboard/application/advanced/ports/show-port";
|
||||||
import { ShowRedirects } from "@/components/dashboard/application/advanced/redirects/show-redirects";
|
import { ShowRedirects } from "@/components/dashboard/application/advanced/redirects/show-redirects";
|
||||||
@@ -175,6 +176,7 @@ const Service = (
|
|||||||
<TabsContent value="advanced">
|
<TabsContent value="advanced">
|
||||||
<div className="flex flex-col gap-4 pt-2.5">
|
<div className="flex flex-col gap-4 pt-2.5">
|
||||||
<AddCommand applicationId={applicationId} />
|
<AddCommand applicationId={applicationId} />
|
||||||
|
<ShowClusterSettings applicationId={applicationId} />
|
||||||
<ShowApplicationResources applicationId={applicationId} />
|
<ShowApplicationResources applicationId={applicationId} />
|
||||||
<ShowVolumes applicationId={applicationId} />
|
<ShowVolumes applicationId={applicationId} />
|
||||||
<ShowRedirects applicationId={applicationId} />
|
<ShowRedirects applicationId={applicationId} />
|
||||||
|
|||||||
42
pnpm-lock.yaml
generated
42
pnpm-lock.yaml
generated
@@ -266,8 +266,8 @@ devDependencies:
|
|||||||
specifier: ^10.4.14
|
specifier: ^10.4.14
|
||||||
version: 10.4.18(postcss@8.4.35)
|
version: 10.4.18(postcss@8.4.35)
|
||||||
drizzle-kit:
|
drizzle-kit:
|
||||||
specifier: ^0.20.14
|
specifier: ^0.21.1
|
||||||
version: 0.20.14
|
version: 0.21.1
|
||||||
esbuild:
|
esbuild:
|
||||||
specifier: 0.20.2
|
specifier: 0.20.2
|
||||||
version: 0.20.2
|
version: 0.20.2
|
||||||
@@ -1032,12 +1032,6 @@ packages:
|
|||||||
dev: true
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@drizzle-team/studio@0.0.39:
|
|
||||||
resolution: {integrity: sha512-c5Hkm7MmQC2n5qAsKShjQrHoqlfGslB8+qWzsGGZ+2dHMRTNG60UuzalF0h0rvBax5uzPXuGkYLGaQ+TUX3yMw==}
|
|
||||||
dependencies:
|
|
||||||
superjson: 2.2.1
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/@emnapi/core@0.45.0:
|
/@emnapi/core@0.45.0:
|
||||||
resolution: {integrity: sha512-DPWjcUDQkCeEM4VnljEOEcXdAD7pp8zSZsgOujk/LGIwCXWbXJngin+MO4zbH429lzeC3WbYLGjE2MaUOwzpyw==}
|
resolution: {integrity: sha512-DPWjcUDQkCeEM4VnljEOEcXdAD7pp8zSZsgOujk/LGIwCXWbXJngin+MO4zbH429lzeC3WbYLGjE2MaUOwzpyw==}
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
@@ -4728,19 +4722,9 @@ packages:
|
|||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/camelcase@7.0.1:
|
|
||||||
resolution: {integrity: sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==}
|
|
||||||
engines: {node: '>=14.16'}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/caniuse-lite@1.0.30001598:
|
/caniuse-lite@1.0.30001598:
|
||||||
resolution: {integrity: sha512-j8mQRDziG94uoBfeFuqsJUNECW37DXpnvhcMJMdlH2u3MRkq1sAI0LJcXP1i/Py0KbSIC4UDj8YHPrTn5YsL+Q==}
|
resolution: {integrity: sha512-j8mQRDziG94uoBfeFuqsJUNECW37DXpnvhcMJMdlH2u3MRkq1sAI0LJcXP1i/Py0KbSIC4UDj8YHPrTn5YsL+Q==}
|
||||||
|
|
||||||
/chalk@5.3.0:
|
|
||||||
resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==}
|
|
||||||
engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/chokidar@3.6.0:
|
/chokidar@3.6.0:
|
||||||
resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
|
resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
|
||||||
engines: {node: '>= 8.10.0'}
|
engines: {node: '>= 8.10.0'}
|
||||||
@@ -4877,6 +4861,7 @@ packages:
|
|||||||
engines: {node: '>=12.13'}
|
engines: {node: '>=12.13'}
|
||||||
dependencies:
|
dependencies:
|
||||||
is-what: 4.1.16
|
is-what: 4.1.16
|
||||||
|
dev: false
|
||||||
|
|
||||||
/copy-to-clipboard@3.3.3:
|
/copy-to-clipboard@3.3.3:
|
||||||
resolution: {integrity: sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==}
|
resolution: {integrity: sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==}
|
||||||
@@ -5143,14 +5128,11 @@ packages:
|
|||||||
wordwrap: 1.0.0
|
wordwrap: 1.0.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/drizzle-kit@0.20.14:
|
/drizzle-kit@0.21.1:
|
||||||
resolution: {integrity: sha512-0fHv3YIEaUcSVPSGyaaBfOi9bmpajjhbJNdPsRMIUvYdLVxBu9eGjH8mRc3Qk7HVmEidFc/lhG1YyJhoXrn5yA==}
|
resolution: {integrity: sha512-Sp7OnCdROiE2ebMuHsAfrnRoHVGYCvErQxUh7/0l6R1caHssZu9oZu/hW9rLU19xnTK4/y3iSe3sL0Cc530wCg==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@drizzle-team/studio': 0.0.39
|
|
||||||
'@esbuild-kit/esm-loader': 2.6.5
|
'@esbuild-kit/esm-loader': 2.6.5
|
||||||
camelcase: 7.0.1
|
|
||||||
chalk: 5.3.0
|
|
||||||
commander: 9.5.0
|
commander: 9.5.0
|
||||||
env-paths: 3.0.0
|
env-paths: 3.0.0
|
||||||
esbuild: 0.19.12
|
esbuild: 0.19.12
|
||||||
@@ -5158,8 +5140,6 @@ packages:
|
|||||||
glob: 8.1.0
|
glob: 8.1.0
|
||||||
hanji: 0.0.5
|
hanji: 0.0.5
|
||||||
json-diff: 0.9.0
|
json-diff: 0.9.0
|
||||||
minimatch: 7.4.6
|
|
||||||
semver: 7.6.0
|
|
||||||
zod: 3.23.4
|
zod: 3.23.4
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -5834,6 +5814,7 @@ packages:
|
|||||||
/is-what@4.1.16:
|
/is-what@4.1.16:
|
||||||
resolution: {integrity: sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==}
|
resolution: {integrity: sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==}
|
||||||
engines: {node: '>=12.13'}
|
engines: {node: '>=12.13'}
|
||||||
|
dev: false
|
||||||
|
|
||||||
/isexe@2.0.0:
|
/isexe@2.0.0:
|
||||||
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
|
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
|
||||||
@@ -6015,6 +5996,7 @@ packages:
|
|||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
dependencies:
|
dependencies:
|
||||||
yallist: 4.0.0
|
yallist: 4.0.0
|
||||||
|
dev: false
|
||||||
|
|
||||||
/lru-queue@0.1.0:
|
/lru-queue@0.1.0:
|
||||||
resolution: {integrity: sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==}
|
resolution: {integrity: sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==}
|
||||||
@@ -6095,13 +6077,6 @@ packages:
|
|||||||
brace-expansion: 2.0.1
|
brace-expansion: 2.0.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/minimatch@7.4.6:
|
|
||||||
resolution: {integrity: sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==}
|
|
||||||
engines: {node: '>=10'}
|
|
||||||
dependencies:
|
|
||||||
brace-expansion: 2.0.1
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/minimatch@9.0.3:
|
/minimatch@9.0.3:
|
||||||
resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==}
|
resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==}
|
||||||
engines: {node: '>=16 || 14 >=14.17'}
|
engines: {node: '>=16 || 14 >=14.17'}
|
||||||
@@ -6909,6 +6884,7 @@ packages:
|
|||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
lru-cache: 6.0.0
|
lru-cache: 6.0.0
|
||||||
|
dev: false
|
||||||
|
|
||||||
/set-blocking@2.0.0:
|
/set-blocking@2.0.0:
|
||||||
resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}
|
resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}
|
||||||
@@ -7073,6 +7049,7 @@ packages:
|
|||||||
engines: {node: '>=16'}
|
engines: {node: '>=16'}
|
||||||
dependencies:
|
dependencies:
|
||||||
copy-anything: 3.0.5
|
copy-anything: 3.0.5
|
||||||
|
dev: false
|
||||||
|
|
||||||
/supports-preserve-symlinks-flag@1.0.0:
|
/supports-preserve-symlinks-flag@1.0.0:
|
||||||
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
|
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
|
||||||
@@ -7456,6 +7433,7 @@ packages:
|
|||||||
|
|
||||||
/yallist@4.0.0:
|
/yallist@4.0.0:
|
||||||
resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
|
resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
|
||||||
|
dev: false
|
||||||
|
|
||||||
/yaml@2.4.1:
|
/yaml@2.4.1:
|
||||||
resolution: {integrity: sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==}
|
resolution: {integrity: sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import { securityRouter } from "./routers/security";
|
|||||||
import { portRouter } from "./routers/port";
|
import { portRouter } from "./routers/port";
|
||||||
import { adminRouter } from "./routers/admin";
|
import { adminRouter } from "./routers/admin";
|
||||||
import { dockerRouter } from "./routers/docker";
|
import { dockerRouter } from "./routers/docker";
|
||||||
|
import { registryRouter } from "./routers/registry";
|
||||||
/**
|
/**
|
||||||
* This is the primary router for your server.
|
* This is the primary router for your server.
|
||||||
*
|
*
|
||||||
@@ -47,6 +48,7 @@ export const appRouter = createTRPCRouter({
|
|||||||
security: securityRouter,
|
security: securityRouter,
|
||||||
redirects: redirectsRouter,
|
redirects: redirectsRouter,
|
||||||
port: portRouter,
|
port: portRouter,
|
||||||
|
registry: registryRouter,
|
||||||
});
|
});
|
||||||
|
|
||||||
// export type definition of API
|
// export type definition of API
|
||||||
|
|||||||
@@ -7,12 +7,16 @@ import {
|
|||||||
} from "@/server/db/schema";
|
} from "@/server/db/schema";
|
||||||
import {
|
import {
|
||||||
createRegistry,
|
createRegistry,
|
||||||
|
findAllRegistry,
|
||||||
findRegistryById,
|
findRegistryById,
|
||||||
removeRegistry,
|
removeRegistry,
|
||||||
updaterRegistry,
|
updaterRegistry,
|
||||||
} from "../services/registry";
|
} from "../services/registry";
|
||||||
import { adminProcedure, createTRPCRouter, protectedProcedure } from "../trpc";
|
import { adminProcedure, createTRPCRouter, protectedProcedure } from "../trpc";
|
||||||
import { TRPCError } from "@trpc/server";
|
import { TRPCError } from "@trpc/server";
|
||||||
|
import { manageRegistry } from "@/server/utils/traefik/registry";
|
||||||
|
import { initializeRegistry } from "@/server/setup/registry-setup";
|
||||||
|
import { docker } from "@/server/constants";
|
||||||
|
|
||||||
export const registryRouter = createTRPCRouter({
|
export const registryRouter = createTRPCRouter({
|
||||||
create: adminProcedure
|
create: adminProcedure
|
||||||
@@ -42,25 +46,41 @@ export const registryRouter = createTRPCRouter({
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}),
|
}),
|
||||||
|
all: protectedProcedure.query(async () => {
|
||||||
|
return await findAllRegistry();
|
||||||
|
}),
|
||||||
findOne: adminProcedure.input(apiFindOneRegistry).query(async ({ input }) => {
|
findOne: adminProcedure.input(apiFindOneRegistry).query(async ({ input }) => {
|
||||||
return await findRegistryById(input.registryId);
|
return await findRegistryById(input.registryId);
|
||||||
}),
|
}),
|
||||||
|
testRegistry: protectedProcedure
|
||||||
|
.input(apiCreateRegistry)
|
||||||
|
.mutation(async ({ input }) => {
|
||||||
|
try {
|
||||||
|
const result = await docker.checkAuth({
|
||||||
|
username: input.username,
|
||||||
|
password: input.password,
|
||||||
|
serveraddress: input.registryUrl,
|
||||||
|
});
|
||||||
|
|
||||||
enableSelfHostedRegistry: protectedProcedure
|
return true;
|
||||||
|
} catch (error) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
|
||||||
|
enableSelfHostedRegistry: adminProcedure
|
||||||
.input(apiEnableSelfHostedRegistry)
|
.input(apiEnableSelfHostedRegistry)
|
||||||
.mutation(async ({ input }) => {
|
.mutation(async ({ input }) => {
|
||||||
// return await createRegistry({
|
const selfHostedRegistry = await createRegistry({
|
||||||
// username:"CUSTOM"
|
...input,
|
||||||
// adminId: input.adminId,
|
registryName: "Self Hosted Registry",
|
||||||
// });
|
registryType: "selfHosted",
|
||||||
// const application = await findRegistryById(input.registryId);
|
imagePrefix: null,
|
||||||
// const result = await db
|
});
|
||||||
// .update(registry)
|
|
||||||
// .set({
|
await manageRegistry(selfHostedRegistry);
|
||||||
// selfHosted: true,
|
await initializeRegistry(input.username, input.password);
|
||||||
// })
|
|
||||||
// .where(eq(registry.registryId, input.registryId))
|
return selfHostedRegistry;
|
||||||
// .returning();
|
|
||||||
// return result[0];
|
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ export const findApplicationById = async (applicationId: string) => {
|
|||||||
redirects: true,
|
redirects: true,
|
||||||
security: true,
|
security: true,
|
||||||
ports: true,
|
ports: true,
|
||||||
|
registry: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (!application) {
|
if (!application) {
|
||||||
|
|||||||
@@ -2,14 +2,20 @@ import { type apiCreateRegistry, registry } from "@/server/db/schema";
|
|||||||
import { TRPCError } from "@trpc/server";
|
import { TRPCError } from "@trpc/server";
|
||||||
import { db } from "@/server/db";
|
import { db } from "@/server/db";
|
||||||
import { eq } from "drizzle-orm";
|
import { eq } from "drizzle-orm";
|
||||||
|
import { findAdmin } from "./admin";
|
||||||
|
import { removeSelfHostedRegistry } from "@/server/utils/traefik/registry";
|
||||||
|
import { removeService } from "@/server/utils/docker/utils";
|
||||||
|
|
||||||
export type Registry = typeof registry.$inferSelect;
|
export type Registry = typeof registry.$inferSelect;
|
||||||
|
|
||||||
export const createRegistry = async (input: typeof apiCreateRegistry._type) => {
|
export const createRegistry = async (input: typeof apiCreateRegistry._type) => {
|
||||||
|
const admin = await findAdmin();
|
||||||
|
|
||||||
const newRegistry = await db
|
const newRegistry = await db
|
||||||
.insert(registry)
|
.insert(registry)
|
||||||
.values({
|
.values({
|
||||||
...input,
|
...input,
|
||||||
|
adminId: admin.adminId,
|
||||||
})
|
})
|
||||||
.returning()
|
.returning()
|
||||||
.then((value) => value[0]);
|
.then((value) => value[0]);
|
||||||
@@ -38,6 +44,11 @@ export const removeRegistry = async (registryId: string) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (response.registryType === "selfHosted") {
|
||||||
|
await removeSelfHostedRegistry();
|
||||||
|
await removeService("dokploy-registry");
|
||||||
|
}
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new TRPCError({
|
throw new TRPCError({
|
||||||
@@ -82,3 +93,8 @@ export const findRegistryById = async (registryId: string) => {
|
|||||||
}
|
}
|
||||||
return registryResponse;
|
return registryResponse;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const findAllRegistry = async () => {
|
||||||
|
const registryResponse = await db.query.registry.findMany();
|
||||||
|
return registryResponse;
|
||||||
|
};
|
||||||
|
|||||||
@@ -11,5 +11,6 @@ export const LOGS_PATH = `${BASE_PATH}/logs`;
|
|||||||
export const APPLICATIONS_PATH = `${BASE_PATH}/applications`;
|
export const APPLICATIONS_PATH = `${BASE_PATH}/applications`;
|
||||||
export const SSH_PATH = `${BASE_PATH}/ssh`;
|
export const SSH_PATH = `${BASE_PATH}/ssh`;
|
||||||
export const CERTIFICATES_PATH = `${DYNAMIC_TRAEFIK_PATH}/certificates`;
|
export const CERTIFICATES_PATH = `${DYNAMIC_TRAEFIK_PATH}/certificates`;
|
||||||
|
export const REGISTRY_PATH = `${DYNAMIC_TRAEFIK_PATH}/registry`;
|
||||||
export const MONITORING_PATH = `${BASE_PATH}/monitoring`;
|
export const MONITORING_PATH = `${BASE_PATH}/monitoring`;
|
||||||
export const docker = new Docker();
|
export const docker = new Docker();
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
import type { Config } from "drizzle-kit";
|
import { defineConfig } from "drizzle-kit";
|
||||||
|
|
||||||
console.log("> Generating PG Schema:", process.env.DATABASE_URL);
|
export default defineConfig({
|
||||||
export default {
|
|
||||||
schema: "./server/db/schema/index.ts",
|
schema: "./server/db/schema/index.ts",
|
||||||
driver: "pg",
|
dialect: "postgresql",
|
||||||
dbCredentials: {
|
dbCredentials: {
|
||||||
connectionString: process.env.DATABASE_URL || "",
|
url: process.env.DATABASE_URL || "",
|
||||||
},
|
},
|
||||||
verbose: true,
|
|
||||||
strict: true,
|
|
||||||
out: "drizzle",
|
out: "drizzle",
|
||||||
} satisfies Config;
|
migrations: {
|
||||||
|
table: "migrations",
|
||||||
|
schema: "public",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import { applicationStatus } from "./shared";
|
|||||||
import { ports } from "./port";
|
import { ports } from "./port";
|
||||||
import { boolean, integer, pgEnum, pgTable, text } from "drizzle-orm/pg-core";
|
import { boolean, integer, pgEnum, pgTable, text } from "drizzle-orm/pg-core";
|
||||||
import { generateAppName } from "./utils";
|
import { generateAppName } from "./utils";
|
||||||
|
import { registry } from "./registry";
|
||||||
|
|
||||||
export const sourceType = pgEnum("sourceType", ["docker", "git", "github"]);
|
export const sourceType = pgEnum("sourceType", ["docker", "git", "github"]);
|
||||||
|
|
||||||
@@ -60,6 +61,7 @@ export const applications = pgTable("application", {
|
|||||||
customGitBuildPath: text("customGitBuildPath"),
|
customGitBuildPath: text("customGitBuildPath"),
|
||||||
customGitSSHKey: text("customGitSSHKey"),
|
customGitSSHKey: text("customGitSSHKey"),
|
||||||
dockerfile: text("dockerfile"),
|
dockerfile: text("dockerfile"),
|
||||||
|
replicas: integer("replicas").default(1).notNull(),
|
||||||
applicationStatus: applicationStatus("applicationStatus")
|
applicationStatus: applicationStatus("applicationStatus")
|
||||||
.notNull()
|
.notNull()
|
||||||
.default("idle"),
|
.default("idle"),
|
||||||
@@ -67,6 +69,9 @@ export const applications = pgTable("application", {
|
|||||||
createdAt: text("createdAt")
|
createdAt: text("createdAt")
|
||||||
.notNull()
|
.notNull()
|
||||||
.$defaultFn(() => new Date().toISOString()),
|
.$defaultFn(() => new Date().toISOString()),
|
||||||
|
registryId: text("registryId").references(() => registry.registryId, {
|
||||||
|
onDelete: "set null",
|
||||||
|
}),
|
||||||
projectId: text("projectId")
|
projectId: text("projectId")
|
||||||
.notNull()
|
.notNull()
|
||||||
.references(() => projects.projectId, { onDelete: "cascade" }),
|
.references(() => projects.projectId, { onDelete: "cascade" }),
|
||||||
@@ -85,6 +90,10 @@ export const applicationsRelations = relations(
|
|||||||
redirects: many(redirects),
|
redirects: many(redirects),
|
||||||
security: many(security),
|
security: many(security),
|
||||||
ports: many(ports),
|
ports: many(ports),
|
||||||
|
registry: one(registry, {
|
||||||
|
fields: [applications.registryId],
|
||||||
|
references: [registry.registryId],
|
||||||
|
}),
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { boolean, pgEnum, pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
|||||||
import { auth } from "./auth";
|
import { auth } from "./auth";
|
||||||
import { admins } from "./admin";
|
import { admins } from "./admin";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
import { applications } from "./application";
|
||||||
/**
|
/**
|
||||||
* This is an example of how to use the multi-project schema feature of Drizzle ORM. Use the same
|
* This is an example of how to use the multi-project schema feature of Drizzle ORM. Use the same
|
||||||
* database instance for multiple projects.
|
* database instance for multiple projects.
|
||||||
@@ -19,6 +20,7 @@ export const registry = pgTable("registry", {
|
|||||||
.primaryKey()
|
.primaryKey()
|
||||||
.$defaultFn(() => nanoid()),
|
.$defaultFn(() => nanoid()),
|
||||||
registryName: text("registryName").notNull(),
|
registryName: text("registryName").notNull(),
|
||||||
|
imagePrefix: text("imagePrefix"),
|
||||||
username: text("username").notNull(),
|
username: text("username").notNull(),
|
||||||
password: text("password").notNull(),
|
password: text("password").notNull(),
|
||||||
registryUrl: text("registryUrl").notNull(),
|
registryUrl: text("registryUrl").notNull(),
|
||||||
@@ -31,11 +33,12 @@ export const registry = pgTable("registry", {
|
|||||||
.references(() => admins.adminId, { onDelete: "cascade" }),
|
.references(() => admins.adminId, { onDelete: "cascade" }),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const registryRelations = relations(registry, ({ one }) => ({
|
export const registryRelations = relations(registry, ({ one, many }) => ({
|
||||||
admin: one(admins, {
|
admin: one(admins, {
|
||||||
fields: [registry.adminId],
|
fields: [registry.adminId],
|
||||||
references: [admins.adminId],
|
references: [admins.adminId],
|
||||||
}),
|
}),
|
||||||
|
applications: many(applications),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const createSchema = createInsertSchema(registry, {
|
const createSchema = createInsertSchema(registry, {
|
||||||
@@ -45,6 +48,8 @@ const createSchema = createInsertSchema(registry, {
|
|||||||
registryUrl: z.string().min(1),
|
registryUrl: z.string().min(1),
|
||||||
adminId: z.string().min(1),
|
adminId: z.string().min(1),
|
||||||
registryId: z.string().min(1),
|
registryId: z.string().min(1),
|
||||||
|
registryType: z.enum(["selfHosted", "cloud"]),
|
||||||
|
imagePrefix: z.string().nullable().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const apiCreateRegistry = createSchema
|
export const apiCreateRegistry = createSchema
|
||||||
@@ -53,8 +58,9 @@ export const apiCreateRegistry = createSchema
|
|||||||
registryName: z.string().min(1),
|
registryName: z.string().min(1),
|
||||||
username: z.string().min(1),
|
username: z.string().min(1),
|
||||||
password: z.string().min(1),
|
password: z.string().min(1),
|
||||||
registryUrl: z.string().min(1),
|
registryUrl: z.string(),
|
||||||
adminId: z.string().min(1),
|
registryType: z.enum(["selfHosted", "cloud"]),
|
||||||
|
imagePrefix: z.string().nullable().optional(),
|
||||||
})
|
})
|
||||||
.required();
|
.required();
|
||||||
|
|
||||||
@@ -82,6 +88,8 @@ export const apiUpdateRegistry = createSchema
|
|||||||
|
|
||||||
export const apiEnableSelfHostedRegistry = createSchema
|
export const apiEnableSelfHostedRegistry = createSchema
|
||||||
.pick({
|
.pick({
|
||||||
adminId: true,
|
registryUrl: true,
|
||||||
|
username: true,
|
||||||
|
password: true,
|
||||||
})
|
})
|
||||||
.required();
|
.required();
|
||||||
|
|||||||
89
server/setup/registry-setup.ts
Normal file
89
server/setup/registry-setup.ts
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
import type { CreateServiceOptions } from "dockerode";
|
||||||
|
import { docker, REGISTRY_PATH } from "../constants";
|
||||||
|
import { pullImage } from "../utils/docker/utils";
|
||||||
|
import { execAsync } from "../utils/process/execAsync";
|
||||||
|
import { generateRandomPassword } from "../auth/random-password";
|
||||||
|
|
||||||
|
export const initializeRegistry = async (
|
||||||
|
username: string,
|
||||||
|
password: string,
|
||||||
|
) => {
|
||||||
|
const imageName = "registry:2.8.3";
|
||||||
|
const containerName = "dokploy-registry";
|
||||||
|
await generatePassword(username, password);
|
||||||
|
const randomPass = await generateRandomPassword();
|
||||||
|
const settings: CreateServiceOptions = {
|
||||||
|
Name: containerName,
|
||||||
|
TaskTemplate: {
|
||||||
|
ContainerSpec: {
|
||||||
|
Image: imageName,
|
||||||
|
Env: [
|
||||||
|
"REGISTRY_STORAGE_DELETE_ENABLED=true",
|
||||||
|
"REGISTRY_AUTH=htpasswd",
|
||||||
|
"REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm",
|
||||||
|
"REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd",
|
||||||
|
`REGISTRY_HTTP_SECRET=${randomPass.hashedPassword}`,
|
||||||
|
],
|
||||||
|
Mounts: [
|
||||||
|
{
|
||||||
|
Type: "bind",
|
||||||
|
Source: `${REGISTRY_PATH}/htpasswd`,
|
||||||
|
Target: "/auth/htpasswd",
|
||||||
|
ReadOnly: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Type: "volume",
|
||||||
|
Source: "registry-data",
|
||||||
|
Target: "/var/lib/registry",
|
||||||
|
ReadOnly: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
Networks: [{ Target: "dokploy-network" }],
|
||||||
|
RestartPolicy: {
|
||||||
|
Condition: "on-failure",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Mode: {
|
||||||
|
Replicated: {
|
||||||
|
Replicas: 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
EndpointSpec: {
|
||||||
|
Ports: [
|
||||||
|
{
|
||||||
|
TargetPort: 5000,
|
||||||
|
PublishedPort: 5000,
|
||||||
|
Protocol: "tcp",
|
||||||
|
PublishMode: "host",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
try {
|
||||||
|
await pullImage(imageName);
|
||||||
|
|
||||||
|
const service = docker.getService(containerName);
|
||||||
|
const inspect = await service.inspect();
|
||||||
|
await service.update({
|
||||||
|
version: Number.parseInt(inspect.Version.Index),
|
||||||
|
...settings,
|
||||||
|
});
|
||||||
|
console.log("Registry Started ✅");
|
||||||
|
} catch (error) {
|
||||||
|
await docker.createService(settings);
|
||||||
|
console.log("Registry Not Found: Starting ✅");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const generatePassword = async (username: string, password: string) => {
|
||||||
|
try {
|
||||||
|
const command = `htpasswd -nbB ${username} "${password}" > ${REGISTRY_PATH}/htpasswd`;
|
||||||
|
const result = await execAsync(command);
|
||||||
|
console.log("Password generated ✅");
|
||||||
|
return result.stdout.trim();
|
||||||
|
} catch (error) {
|
||||||
|
console.error("Error generating password:", error);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -13,6 +13,7 @@ import { buildCustomDocker } from "./docker-file";
|
|||||||
import { buildHeroku } from "./heroku";
|
import { buildHeroku } from "./heroku";
|
||||||
import { buildNixpacks } from "./nixpacks";
|
import { buildNixpacks } from "./nixpacks";
|
||||||
import { buildPaketo } from "./paketo";
|
import { buildPaketo } from "./paketo";
|
||||||
|
import { uploadImage } from "../cluster/upload";
|
||||||
|
|
||||||
// NIXPACKS codeDirectory = where is the path of the code directory
|
// NIXPACKS codeDirectory = where is the path of the code directory
|
||||||
// HEROKU codeDirectory = where is the path of the code directory
|
// HEROKU codeDirectory = where is the path of the code directory
|
||||||
@@ -20,7 +21,7 @@ import { buildPaketo } from "./paketo";
|
|||||||
// DOCKERFILE codeDirectory = where is the exact path of the (Dockerfile)
|
// DOCKERFILE codeDirectory = where is the exact path of the (Dockerfile)
|
||||||
export type ApplicationNested = InferResultType<
|
export type ApplicationNested = InferResultType<
|
||||||
"applications",
|
"applications",
|
||||||
{ mounts: true; security: true; redirects: true; ports: true }
|
{ mounts: true; security: true; redirects: true; ports: true; registry: true }
|
||||||
>;
|
>;
|
||||||
export const buildApplication = async (
|
export const buildApplication = async (
|
||||||
application: ApplicationNested,
|
application: ApplicationNested,
|
||||||
@@ -42,6 +43,10 @@ export const buildApplication = async (
|
|||||||
} else if (buildType === "dockerfile") {
|
} else if (buildType === "dockerfile") {
|
||||||
await buildCustomDocker(application, writeStream);
|
await buildCustomDocker(application, writeStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (application.registryId) {
|
||||||
|
await uploadImage(application, writeStream);
|
||||||
|
}
|
||||||
await mechanizeDockerContainer(application);
|
await mechanizeDockerContainer(application);
|
||||||
writeStream.write("Docker Deployed: ✅");
|
writeStream.write("Docker Deployed: ✅");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -67,6 +72,7 @@ export const mechanizeDockerContainer = async (
|
|||||||
cpuReservation,
|
cpuReservation,
|
||||||
command,
|
command,
|
||||||
ports,
|
ports,
|
||||||
|
replicas,
|
||||||
} = application;
|
} = application;
|
||||||
|
|
||||||
const resources = calculateResources({
|
const resources = calculateResources({
|
||||||
@@ -104,7 +110,7 @@ export const mechanizeDockerContainer = async (
|
|||||||
},
|
},
|
||||||
Mode: {
|
Mode: {
|
||||||
Replicated: {
|
Replicated: {
|
||||||
Replicas: 1,
|
Replicas: replicas,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
EndpointSpec: {
|
EndpointSpec: {
|
||||||
|
|||||||
67
server/utils/cluster/upload.ts
Normal file
67
server/utils/cluster/upload.ts
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
import type { ApplicationNested } from "../builders";
|
||||||
|
import { execAsync } from "../process/execAsync";
|
||||||
|
import { spawnAsync } from "../process/spawnAsync";
|
||||||
|
import type { WriteStream } from "node:fs";
|
||||||
|
|
||||||
|
export const uploadImage = async (
|
||||||
|
application: ApplicationNested,
|
||||||
|
writeStream: WriteStream,
|
||||||
|
) => {
|
||||||
|
const registry = application.registry;
|
||||||
|
|
||||||
|
if (!registry) {
|
||||||
|
throw new Error("Registry not found");
|
||||||
|
}
|
||||||
|
|
||||||
|
const { registryUrl, imagePrefix } = registry;
|
||||||
|
const { appName } = application;
|
||||||
|
const imageName = `${appName}:latest`;
|
||||||
|
|
||||||
|
let finalURL = registryUrl;
|
||||||
|
|
||||||
|
let registryTag = `${registryUrl}/${imageName}`;
|
||||||
|
|
||||||
|
if (imagePrefix) {
|
||||||
|
registryTag = `${registryUrl}/${imagePrefix}/${imageName}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
// registry.digitalocean.com/<my-registry>/<my-image>
|
||||||
|
// index.docker.io/siumauricio/app-parse-multi-byte-port-e32uh7:latest
|
||||||
|
if (registry.registryType === "selfHosted") {
|
||||||
|
finalURL =
|
||||||
|
process.env.NODE_ENV === "development" ? "localhost:5000" : registryUrl;
|
||||||
|
registryTag = `${finalURL}/${imageName}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
console.log(finalURL, registryTag);
|
||||||
|
writeStream.write(
|
||||||
|
`📦 [Enabled Registry] Uploading image to ${registry.registryType} | ${registryTag} | ${finalURL}\n`,
|
||||||
|
);
|
||||||
|
|
||||||
|
await spawnAsync(
|
||||||
|
"docker",
|
||||||
|
["login", finalURL, "-u", registry.username, "-p", registry.password],
|
||||||
|
(data) => {
|
||||||
|
if (writeStream.writable) {
|
||||||
|
writeStream.write(data);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
await spawnAsync("docker", ["tag", imageName, registryTag], (data) => {
|
||||||
|
if (writeStream.writable) {
|
||||||
|
writeStream.write(data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
await spawnAsync("docker", ["push", registryTag], (data) => {
|
||||||
|
if (writeStream.writable) {
|
||||||
|
writeStream.write(data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -47,10 +47,7 @@ export const removeDomain = async (appName: string, uniqueKey: number) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const createRouterConfig = async (
|
const createRouterConfig = async (app: ApplicationNested, domain: Domain) => {
|
||||||
app: ApplicationNested,
|
|
||||||
domain: Domain,
|
|
||||||
) => {
|
|
||||||
const { appName, redirects, security } = app;
|
const { appName, redirects, security } = app;
|
||||||
const { certificateType } = domain;
|
const { certificateType } = domain;
|
||||||
|
|
||||||
|
|||||||
67
server/utils/traefik/registry.ts
Normal file
67
server/utils/traefik/registry.ts
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
import { loadOrCreateConfig } from "./application";
|
||||||
|
import type { FileConfig, HttpRouter } from "./file-types";
|
||||||
|
import type { Registry } from "@/server/api/services/registry";
|
||||||
|
import { removeDirectoryIfExistsContent } from "../filesystem/directory";
|
||||||
|
import { REGISTRY_PATH } from "@/server/constants";
|
||||||
|
import { dump } from "js-yaml";
|
||||||
|
import { join } from "node:path";
|
||||||
|
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
||||||
|
|
||||||
|
export const manageRegistry = async (registry: Registry) => {
|
||||||
|
if (!existsSync(REGISTRY_PATH)) {
|
||||||
|
mkdirSync(REGISTRY_PATH, { recursive: true });
|
||||||
|
}
|
||||||
|
const appName = "dokploy-registry";
|
||||||
|
const config: FileConfig = loadOrCreateConfig(appName);
|
||||||
|
const serviceName = `${appName}-service`;
|
||||||
|
const routerName = `${appName}-router`;
|
||||||
|
|
||||||
|
config.http = config.http || { routers: {}, services: {} };
|
||||||
|
config.http.routers = config.http.routers || {};
|
||||||
|
config.http.services = config.http.services || {};
|
||||||
|
|
||||||
|
config.http.routers[routerName] = await createRegistryRouterConfig(registry);
|
||||||
|
|
||||||
|
config.http.services[serviceName] = {
|
||||||
|
loadBalancer: {
|
||||||
|
servers: [{ url: `http://${appName}:5000` }],
|
||||||
|
passHostHeader: true,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const yamlConfig = dump(config);
|
||||||
|
const configFile = join(REGISTRY_PATH, "registry.yml");
|
||||||
|
writeFileSync(configFile, yamlConfig);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const removeSelfHostedRegistry = async () => {
|
||||||
|
await removeDirectoryIfExistsContent(REGISTRY_PATH);
|
||||||
|
};
|
||||||
|
|
||||||
|
const createRegistryRouterConfig = async (registry: Registry) => {
|
||||||
|
const { registryUrl } = registry;
|
||||||
|
const url =
|
||||||
|
process.env.NODE_ENV === "production"
|
||||||
|
? registryUrl
|
||||||
|
: "dokploy-registry.docker.localhost";
|
||||||
|
const routerConfig: HttpRouter = {
|
||||||
|
rule: `Host(\`${url}\`)`,
|
||||||
|
service: "dokploy-registry-service",
|
||||||
|
...(process.env.NODE_ENV === "production"
|
||||||
|
? {
|
||||||
|
middlewares: ["redirect-to-https"],
|
||||||
|
}
|
||||||
|
: {}),
|
||||||
|
entryPoints: [
|
||||||
|
"web",
|
||||||
|
...(process.env.NODE_ENV === "production" ? ["websecure"] : []),
|
||||||
|
],
|
||||||
|
...(process.env.NODE_ENV === "production"
|
||||||
|
? {
|
||||||
|
tls: { certResolver: "letsencrypt" },
|
||||||
|
}
|
||||||
|
: {}),
|
||||||
|
};
|
||||||
|
|
||||||
|
return routerConfig;
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user