infoalloggi-monorepo/apps/infoalloggi/src/schemas/public/Users.ts

59 lines
1.5 KiB
TypeScript
Raw Normal View History

2025-08-04 17:45:44 +02:00
// @generated
// This file is automatically generated by Kanel. Do not modify manually.
2025-08-29 16:18:32 +02:00
import type { ColumnType, Insertable, Selectable, Updateable } from "kysely";
2025-08-04 17:45:44 +02:00
/** Identifier type for public.users */
2025-08-29 16:18:32 +02:00
export type UsersId = string & { __brand: "public.users" };
2025-08-04 17:45:44 +02:00
/** Represents the table public.users */
export default interface UsersTable {
2025-08-29 16:18:32 +02:00
id: ColumnType<UsersId, UsersId | undefined, UsersId>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
username: ColumnType<string, string, string>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
email: ColumnType<string, string, string>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
isAdmin: ColumnType<boolean, boolean | undefined, boolean>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
isBlocked: ColumnType<boolean, boolean | undefined, boolean>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
password: ColumnType<string, string, string>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
nome: ColumnType<string, string, string>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
cognome: ColumnType<string, string, string>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
created_at: ColumnType<Date, Date | string | undefined, Date | string>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
reset_password_token: ColumnType<string | null, string | null, string | null>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
reset_password_expires: ColumnType<
Date | null,
Date | string | null,
Date | string | null
>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
telefono: ColumnType<string, string, string>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
isAdminMade: ColumnType<boolean | null, boolean | null, boolean | null>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
isVerified: ColumnType<boolean, boolean | undefined, boolean>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
verificationToken: ColumnType<string | null, string | null, string | null>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
verificationTokenExpires: ColumnType<
Date | null,
Date | string | null,
Date | string | null
>;
2025-08-04 17:45:44 +02:00
2025-08-29 16:18:32 +02:00
salt: ColumnType<string, string, string>;
2025-08-04 17:45:44 +02:00
}
export type Users = Selectable<UsersTable>;
export type NewUsers = Insertable<UsersTable>;
export type UsersUpdate = Updateable<UsersTable>;