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

51 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.
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
/** Identifier type for public.users */
export type UsersId = string & { __brand: 'public.users' };
/** Represents the table public.users */
export default interface UsersTable {
id: ColumnType<UsersId, UsersId | undefined, UsersId>;
username: ColumnType<string, string, string>;
email: ColumnType<string, string, string>;
isAdmin: ColumnType<boolean, boolean | undefined, boolean>;
isBlocked: ColumnType<boolean, boolean | undefined, boolean>;
password: ColumnType<string, string, string>;
nome: ColumnType<string, string, string>;
cognome: ColumnType<string, string, string>;
created_at: ColumnType<Date, Date | string | undefined, Date | string>;
reset_password_token: ColumnType<string | null, string | null, string | null>;
reset_password_expires: ColumnType<Date | null, Date | string | null, Date | string | null>;
telefono: ColumnType<string, string, string>;
isAdminMade: ColumnType<boolean | null, boolean | null, boolean | null>;
isVerified: ColumnType<boolean, boolean | undefined, boolean>;
verificationToken: ColumnType<string | null, string | null, string | null>;
verificationTokenExpires: ColumnType<Date | null, Date | string | null, Date | string | null>;
salt: ColumnType<string, string, string>;
}
export type Users = Selectable<UsersTable>;
export type NewUsers = Insertable<UsersTable>;
export type UsersUpdate = Updateable<UsersTable>;