refactor(database): 🚚 Rename Application to Client everywhere

This commit is contained in:
Jesse Wierzbinski 2025-08-21 01:21:32 +02:00
parent c55be8a862
commit 87da7796be
25 changed files with 2549 additions and 90 deletions

View file

@ -1,4 +1,4 @@
import { Application, Token } from "@versia-server/kit/db";
import { Client, Token } from "@versia-server/kit/db";
import { randomUUIDv7 } from "bun";
import chalk from "chalk";
// @ts-expect-error - Root import is required or the Clec type definitions won't work
@ -22,7 +22,7 @@ export const generateTokenCommand = defineCommand(
throw new Error(`User ${chalk.gray(username)} not found.`);
}
const application = await Application.insert({
const application = await Client.insert({
id:
user.id +
Buffer.from(