226 lines
6.0 KiB
TypeScript
226 lines
6.0 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* WARNING: This is an internal file that is subject to change!
|
|
*
|
|
* 🛑 Under no circumstances should you import this file directly! 🛑
|
|
*
|
|
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
|
|
* While this enables partial backward compatibility, it is not part of the stable public API.
|
|
*
|
|
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
* model files in the `model` directory!
|
|
*/
|
|
|
|
import * as runtime from "@prisma/client/runtime/index-browser"
|
|
|
|
export type * from '../models.ts'
|
|
export type * from './prismaNamespace.ts'
|
|
|
|
export const Decimal = runtime.Decimal
|
|
|
|
|
|
export const NullTypes = {
|
|
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
|
|
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
|
|
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
|
|
}
|
|
/**
|
|
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const DbNull = runtime.DbNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const JsonNull = runtime.JsonNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const AnyNull = runtime.AnyNull
|
|
|
|
|
|
export const ModelName = {
|
|
User: 'User',
|
|
Role: 'Role',
|
|
UserRole: 'UserRole',
|
|
UserGroup: 'UserGroup',
|
|
DeviceGroup: 'DeviceGroup',
|
|
Location: 'Location',
|
|
Device: 'Device',
|
|
Tag: 'Tag',
|
|
DeviceHistory: 'DeviceHistory'
|
|
} as const
|
|
|
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
|
|
/*
|
|
* Enums
|
|
*/
|
|
|
|
export const TransactionIsolationLevel = {
|
|
ReadUncommitted: 'ReadUncommitted',
|
|
ReadCommitted: 'ReadCommitted',
|
|
RepeatableRead: 'RepeatableRead',
|
|
Serializable: 'Serializable'
|
|
} as const
|
|
|
|
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
|
|
|
|
export const UserScalarFieldEnum = {
|
|
nwkennung: 'nwkennung',
|
|
email: 'email',
|
|
arbeitsname: 'arbeitsname',
|
|
firstName: 'firstName',
|
|
lastName: 'lastName',
|
|
passwordHash: 'passwordHash',
|
|
groupId: 'groupId',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
|
|
|
|
export const RoleScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name'
|
|
} as const
|
|
|
|
export type RoleScalarFieldEnum = (typeof RoleScalarFieldEnum)[keyof typeof RoleScalarFieldEnum]
|
|
|
|
|
|
export const UserRoleScalarFieldEnum = {
|
|
userId: 'userId',
|
|
roleId: 'roleId',
|
|
assignedAt: 'assignedAt'
|
|
} as const
|
|
|
|
export type UserRoleScalarFieldEnum = (typeof UserRoleScalarFieldEnum)[keyof typeof UserRoleScalarFieldEnum]
|
|
|
|
|
|
export const UserGroupScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
canEditDevices: 'canEditDevices'
|
|
} as const
|
|
|
|
export type UserGroupScalarFieldEnum = (typeof UserGroupScalarFieldEnum)[keyof typeof UserGroupScalarFieldEnum]
|
|
|
|
|
|
export const DeviceGroupScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name'
|
|
} as const
|
|
|
|
export type DeviceGroupScalarFieldEnum = (typeof DeviceGroupScalarFieldEnum)[keyof typeof DeviceGroupScalarFieldEnum]
|
|
|
|
|
|
export const LocationScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name'
|
|
} as const
|
|
|
|
export type LocationScalarFieldEnum = (typeof LocationScalarFieldEnum)[keyof typeof LocationScalarFieldEnum]
|
|
|
|
|
|
export const DeviceScalarFieldEnum = {
|
|
inventoryNumber: 'inventoryNumber',
|
|
name: 'name',
|
|
manufacturer: 'manufacturer',
|
|
model: 'model',
|
|
serialNumber: 'serialNumber',
|
|
productNumber: 'productNumber',
|
|
comment: 'comment',
|
|
ipv4Address: 'ipv4Address',
|
|
ipv6Address: 'ipv6Address',
|
|
macAddress: 'macAddress',
|
|
username: 'username',
|
|
passwordHash: 'passwordHash',
|
|
groupId: 'groupId',
|
|
locationId: 'locationId',
|
|
loanedTo: 'loanedTo',
|
|
loanedFrom: 'loanedFrom',
|
|
loanedUntil: 'loanedUntil',
|
|
loanComment: 'loanComment',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
createdById: 'createdById',
|
|
updatedById: 'updatedById',
|
|
parentDeviceId: 'parentDeviceId'
|
|
} as const
|
|
|
|
export type DeviceScalarFieldEnum = (typeof DeviceScalarFieldEnum)[keyof typeof DeviceScalarFieldEnum]
|
|
|
|
|
|
export const TagScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name'
|
|
} as const
|
|
|
|
export type TagScalarFieldEnum = (typeof TagScalarFieldEnum)[keyof typeof TagScalarFieldEnum]
|
|
|
|
|
|
export const DeviceHistoryScalarFieldEnum = {
|
|
id: 'id',
|
|
deviceId: 'deviceId',
|
|
changeType: 'changeType',
|
|
snapshot: 'snapshot',
|
|
changedAt: 'changedAt',
|
|
changedById: 'changedById'
|
|
} as const
|
|
|
|
export type DeviceHistoryScalarFieldEnum = (typeof DeviceHistoryScalarFieldEnum)[keyof typeof DeviceHistoryScalarFieldEnum]
|
|
|
|
|
|
export const SortOrder = {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
} as const
|
|
|
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
|
|
|
|
export const JsonNullValueInput = {
|
|
JsonNull: 'JsonNull'
|
|
} as const
|
|
|
|
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
|
|
|
|
|
|
export const QueryMode = {
|
|
default: 'default',
|
|
insensitive: 'insensitive'
|
|
} as const
|
|
|
|
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
|
|
|
|
|
export const NullsOrder = {
|
|
first: 'first',
|
|
last: 'last'
|
|
} as const
|
|
|
|
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
|
|
|
|
export const JsonNullValueFilter = {
|
|
DbNull: 'DbNull',
|
|
JsonNull: 'JsonNull',
|
|
AnyNull: 'AnyNull'
|
|
} as const
|
|
|
|
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
|
|
|