f1b1aa5975
Define full Prisma schema (10 models), run initial migration, build core services (auth, user, group, app, board, permission), Zod validators, type definitions, API response envelope, constants, and seed script.
33 lines
479 B
TypeScript
33 lines
479 B
TypeScript
// See https://svelte.dev/docs/kit/types#app.d.ts
|
|
|
|
declare global {
|
|
namespace App {
|
|
interface Error {
|
|
message: string;
|
|
code?: string;
|
|
}
|
|
|
|
interface Locals {
|
|
user: {
|
|
id: string;
|
|
email: string;
|
|
displayName: string;
|
|
role: 'admin' | 'user';
|
|
} | null;
|
|
session: {
|
|
id: string;
|
|
expiresAt: Date;
|
|
} | null;
|
|
}
|
|
|
|
interface PageData {
|
|
user: App.Locals['user'];
|
|
}
|
|
|
|
// interface PageState {}
|
|
// interface Platform {}
|
|
}
|
|
}
|
|
|
|
export {};
|