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

49 lines
1.4 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';
2025-08-04 17:45:44 +02:00
/** Identifier type for public.users */
export type UsersId = string & { __brand: 'public.users' };
2025-08-04 17:45:44 +02:00
/** Represents the table public.users */
export default interface UsersTable {
id: ColumnType<UsersId, UsersId | undefined, UsersId>;
2025-08-04 17:45:44 +02:00
username: ColumnType<string, string, string>;
2025-08-04 17:45:44 +02:00
email: ColumnType<string, string, string>;
2025-08-04 17:45:44 +02:00
isAdmin: ColumnType<boolean, boolean | undefined, boolean>;
2025-08-04 17:45:44 +02:00
isBlocked: ColumnType<boolean, boolean | undefined, boolean>;
2025-08-04 17:45:44 +02:00
password: ColumnType<string, string, string>;
2025-08-04 17:45:44 +02:00
nome: ColumnType<string, string, string>;
2025-08-04 17:45:44 +02:00
cognome: ColumnType<string, string, string>;
2025-08-04 17:45:44 +02:00
created_at: ColumnType<Date, Date | string | undefined, Date | string>;
2025-08-04 17:45:44 +02:00
reset_password_token: ColumnType<string | null, string | null, string | null>;
2025-08-04 17:45:44 +02:00
reset_password_expires: ColumnType<Date | null, Date | string | null, Date | string | null>;
2025-08-04 17:45:44 +02:00
telefono: ColumnType<string, string, string>;
2025-08-04 17:45:44 +02:00
isAdminMade: ColumnType<boolean | null, boolean | null, boolean | null>;
2025-08-04 17:45:44 +02:00
salt: ColumnType<string, string, string>;
mustChangePassword: ColumnType<boolean, boolean | undefined, boolean>;
note: ColumnType<string | null, string | null, string | null>;
2025-08-04 17:45:44 +02:00
}
export type Users = Selectable<UsersTable>;
export type NewUsers = Insertable<UsersTable>;
export type UsersUpdate = Updateable<UsersTable>;