first commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DATABASE_URL=postgresql://postgres:password@localhost:5432/database
|
||||
@@ -0,0 +1,3 @@
|
||||
node_modules
|
||||
# Keep environment variables out of version control
|
||||
.env
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "./index"
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
||||
/* eslint-disable */
|
||||
module.exports = { ...require('.') }
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "./index"
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
||||
/* eslint-disable */
|
||||
module.exports = { ...require('.') }
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "./default"
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,216 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
||||
/* eslint-disable */
|
||||
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
|
||||
const {
|
||||
Decimal,
|
||||
objectEnumValues,
|
||||
makeStrictEnum,
|
||||
Public,
|
||||
getRuntime,
|
||||
skip
|
||||
} = require('./runtime/index-browser.js')
|
||||
|
||||
|
||||
const Prisma = {}
|
||||
|
||||
exports.Prisma = Prisma
|
||||
exports.$Enums = {}
|
||||
|
||||
/**
|
||||
* Prisma Client JS version: 6.7.0
|
||||
* Query Engine version: 3cff47a7f5d65c3ea74883f1d736e41d68ce91ed
|
||||
*/
|
||||
Prisma.prismaVersion = {
|
||||
client: "6.7.0",
|
||||
engine: "3cff47a7f5d65c3ea74883f1d736e41d68ce91ed"
|
||||
}
|
||||
|
||||
Prisma.PrismaClientKnownRequestError = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)};
|
||||
Prisma.PrismaClientUnknownRequestError = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.PrismaClientRustPanicError = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.PrismaClientInitializationError = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.PrismaClientValidationError = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.Decimal = Decimal
|
||||
|
||||
/**
|
||||
* Re-export of sql-template-tag
|
||||
*/
|
||||
Prisma.sql = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.empty = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.join = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.raw = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.validator = Public.validator
|
||||
|
||||
/**
|
||||
* Extensions
|
||||
*/
|
||||
Prisma.getExtensionContext = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.defineExtension = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
|
||||
/**
|
||||
* Shorthand utilities for JSON filtering
|
||||
*/
|
||||
Prisma.DbNull = objectEnumValues.instances.DbNull
|
||||
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
||||
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
||||
|
||||
Prisma.NullTypes = {
|
||||
DbNull: objectEnumValues.classes.DbNull,
|
||||
JsonNull: objectEnumValues.classes.JsonNull,
|
||||
AnyNull: objectEnumValues.classes.AnyNull
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Enums
|
||||
*/
|
||||
|
||||
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
||||
ReadUncommitted: 'ReadUncommitted',
|
||||
ReadCommitted: 'ReadCommitted',
|
||||
RepeatableRead: 'RepeatableRead',
|
||||
Serializable: 'Serializable'
|
||||
});
|
||||
|
||||
exports.Prisma.UserScalarFieldEnum = {
|
||||
id: 'id',
|
||||
username: 'username',
|
||||
password: 'password'
|
||||
};
|
||||
|
||||
exports.Prisma.PatientScalarFieldEnum = {
|
||||
id: 'id',
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
dateOfBirth: 'dateOfBirth',
|
||||
gender: 'gender',
|
||||
phone: 'phone',
|
||||
email: 'email',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
zipCode: 'zipCode',
|
||||
insuranceProvider: 'insuranceProvider',
|
||||
insuranceId: 'insuranceId',
|
||||
groupNumber: 'groupNumber',
|
||||
policyHolder: 'policyHolder',
|
||||
allergies: 'allergies',
|
||||
medicalConditions: 'medicalConditions',
|
||||
status: 'status',
|
||||
userId: 'userId',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.AppointmentScalarFieldEnum = {
|
||||
id: 'id',
|
||||
patientId: 'patientId',
|
||||
userId: 'userId',
|
||||
title: 'title',
|
||||
date: 'date',
|
||||
startTime: 'startTime',
|
||||
endTime: 'endTime',
|
||||
type: 'type',
|
||||
notes: 'notes',
|
||||
status: 'status',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
};
|
||||
|
||||
exports.Prisma.QueryMode = {
|
||||
default: 'default',
|
||||
insensitive: 'insensitive'
|
||||
};
|
||||
|
||||
exports.Prisma.NullsOrder = {
|
||||
first: 'first',
|
||||
last: 'last'
|
||||
};
|
||||
|
||||
|
||||
exports.Prisma.ModelName = {
|
||||
User: 'User',
|
||||
Patient: 'Patient',
|
||||
Appointment: 'Appointment'
|
||||
};
|
||||
|
||||
/**
|
||||
* This is a stub Prisma Client that will error at runtime if called.
|
||||
*/
|
||||
class PrismaClient {
|
||||
constructor() {
|
||||
return new Proxy(this, {
|
||||
get(target, prop) {
|
||||
let message
|
||||
const runtime = getRuntime()
|
||||
if (runtime.isEdge) {
|
||||
message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
|
||||
- Use Prisma Accelerate: https://pris.ly/d/accelerate
|
||||
- Use Driver Adapters: https://pris.ly/d/driver-adapters
|
||||
`;
|
||||
} else {
|
||||
message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
|
||||
}
|
||||
|
||||
message += `
|
||||
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
|
||||
|
||||
throw new Error(message)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
exports.PrismaClient = PrismaClient
|
||||
|
||||
Object.assign(exports, Prisma)
|
||||
+6674
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,140 @@
|
||||
{
|
||||
"name": "prisma-client-6867dd655e74ed4b659147e2f9acafac96535378acf5af2f792ec0383b9c0cbb",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"browser": "index-browser.js",
|
||||
"exports": {
|
||||
"./client": {
|
||||
"require": {
|
||||
"node": "./index.js",
|
||||
"edge-light": "./wasm.js",
|
||||
"workerd": "./wasm.js",
|
||||
"worker": "./wasm.js",
|
||||
"browser": "./index-browser.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"import": {
|
||||
"node": "./index.js",
|
||||
"edge-light": "./wasm.js",
|
||||
"workerd": "./wasm.js",
|
||||
"worker": "./wasm.js",
|
||||
"browser": "./index-browser.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"default": "./index.js"
|
||||
},
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"require": {
|
||||
"node": "./index.js",
|
||||
"edge-light": "./wasm.js",
|
||||
"workerd": "./wasm.js",
|
||||
"worker": "./wasm.js",
|
||||
"browser": "./index-browser.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"import": {
|
||||
"node": "./index.js",
|
||||
"edge-light": "./wasm.js",
|
||||
"workerd": "./wasm.js",
|
||||
"worker": "./wasm.js",
|
||||
"browser": "./index-browser.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"default": "./index.js"
|
||||
},
|
||||
"./edge": {
|
||||
"types": "./edge.d.ts",
|
||||
"require": "./edge.js",
|
||||
"import": "./edge.js",
|
||||
"default": "./edge.js"
|
||||
},
|
||||
"./react-native": {
|
||||
"types": "./react-native.d.ts",
|
||||
"require": "./react-native.js",
|
||||
"import": "./react-native.js",
|
||||
"default": "./react-native.js"
|
||||
},
|
||||
"./extension": {
|
||||
"types": "./extension.d.ts",
|
||||
"require": "./extension.js",
|
||||
"import": "./extension.js",
|
||||
"default": "./extension.js"
|
||||
},
|
||||
"./index-browser": {
|
||||
"types": "./index.d.ts",
|
||||
"require": "./index-browser.js",
|
||||
"import": "./index-browser.js",
|
||||
"default": "./index-browser.js"
|
||||
},
|
||||
"./index": {
|
||||
"types": "./index.d.ts",
|
||||
"require": "./index.js",
|
||||
"import": "./index.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"./wasm": {
|
||||
"types": "./wasm.d.ts",
|
||||
"require": "./wasm.js",
|
||||
"import": "./wasm.mjs",
|
||||
"default": "./wasm.mjs"
|
||||
},
|
||||
"./runtime/client": {
|
||||
"types": "./runtime/client.d.ts",
|
||||
"require": "./runtime/client.js",
|
||||
"import": "./runtime/client.mjs",
|
||||
"default": "./runtime/client.mjs"
|
||||
},
|
||||
"./runtime/library": {
|
||||
"types": "./runtime/library.d.ts",
|
||||
"require": "./runtime/library.js",
|
||||
"import": "./runtime/library.mjs",
|
||||
"default": "./runtime/library.mjs"
|
||||
},
|
||||
"./runtime/binary": {
|
||||
"types": "./runtime/binary.d.ts",
|
||||
"require": "./runtime/binary.js",
|
||||
"import": "./runtime/binary.mjs",
|
||||
"default": "./runtime/binary.mjs"
|
||||
},
|
||||
"./runtime/wasm": {
|
||||
"types": "./runtime/wasm.d.ts",
|
||||
"require": "./runtime/wasm.js",
|
||||
"import": "./runtime/wasm.mjs",
|
||||
"default": "./runtime/wasm.mjs"
|
||||
},
|
||||
"./runtime/edge": {
|
||||
"types": "./runtime/edge.d.ts",
|
||||
"require": "./runtime/edge.js",
|
||||
"import": "./runtime/edge-esm.js",
|
||||
"default": "./runtime/edge-esm.js"
|
||||
},
|
||||
"./runtime/react-native": {
|
||||
"types": "./runtime/react-native.d.ts",
|
||||
"require": "./runtime/react-native.js",
|
||||
"import": "./runtime/react-native.js",
|
||||
"default": "./runtime/react-native.js"
|
||||
},
|
||||
"./generator-build": {
|
||||
"require": "./generator-build/index.js",
|
||||
"import": "./generator-build/index.js",
|
||||
"default": "./generator-build/index.js"
|
||||
},
|
||||
"./sql": {
|
||||
"require": {
|
||||
"types": "./sql.d.ts",
|
||||
"node": "./sql.js",
|
||||
"default": "./sql.js"
|
||||
},
|
||||
"import": {
|
||||
"types": "./sql.d.ts",
|
||||
"node": "./sql.mjs",
|
||||
"default": "./sql.mjs"
|
||||
},
|
||||
"default": "./sql.js"
|
||||
},
|
||||
"./*": "./*"
|
||||
},
|
||||
"version": "6.7.0",
|
||||
"sideEffects": false
|
||||
}
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,370 @@
|
||||
declare class AnyNull extends NullTypesEnumValue {
|
||||
#private;
|
||||
}
|
||||
|
||||
declare type Args<T, F extends Operation> = T extends {
|
||||
[K: symbol]: {
|
||||
types: {
|
||||
operations: {
|
||||
[K in F]: {
|
||||
args: any;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
} ? T[symbol]['types']['operations'][F]['args'] : any;
|
||||
|
||||
declare class DbNull extends NullTypesEnumValue {
|
||||
#private;
|
||||
}
|
||||
|
||||
export declare function Decimal(n: Decimal.Value): Decimal;
|
||||
|
||||
export declare namespace Decimal {
|
||||
export type Constructor = typeof Decimal;
|
||||
export type Instance = Decimal;
|
||||
export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
||||
export type Modulo = Rounding | 9;
|
||||
export type Value = string | number | Decimal;
|
||||
|
||||
// http://mikemcl.github.io/decimal.js/#constructor-properties
|
||||
export interface Config {
|
||||
precision?: number;
|
||||
rounding?: Rounding;
|
||||
toExpNeg?: number;
|
||||
toExpPos?: number;
|
||||
minE?: number;
|
||||
maxE?: number;
|
||||
crypto?: boolean;
|
||||
modulo?: Modulo;
|
||||
defaults?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export declare class Decimal {
|
||||
readonly d: number[];
|
||||
readonly e: number;
|
||||
readonly s: number;
|
||||
|
||||
constructor(n: Decimal.Value);
|
||||
|
||||
absoluteValue(): Decimal;
|
||||
abs(): Decimal;
|
||||
|
||||
ceil(): Decimal;
|
||||
|
||||
clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||
clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||
|
||||
comparedTo(n: Decimal.Value): number;
|
||||
cmp(n: Decimal.Value): number;
|
||||
|
||||
cosine(): Decimal;
|
||||
cos(): Decimal;
|
||||
|
||||
cubeRoot(): Decimal;
|
||||
cbrt(): Decimal;
|
||||
|
||||
decimalPlaces(): number;
|
||||
dp(): number;
|
||||
|
||||
dividedBy(n: Decimal.Value): Decimal;
|
||||
div(n: Decimal.Value): Decimal;
|
||||
|
||||
dividedToIntegerBy(n: Decimal.Value): Decimal;
|
||||
divToInt(n: Decimal.Value): Decimal;
|
||||
|
||||
equals(n: Decimal.Value): boolean;
|
||||
eq(n: Decimal.Value): boolean;
|
||||
|
||||
floor(): Decimal;
|
||||
|
||||
greaterThan(n: Decimal.Value): boolean;
|
||||
gt(n: Decimal.Value): boolean;
|
||||
|
||||
greaterThanOrEqualTo(n: Decimal.Value): boolean;
|
||||
gte(n: Decimal.Value): boolean;
|
||||
|
||||
hyperbolicCosine(): Decimal;
|
||||
cosh(): Decimal;
|
||||
|
||||
hyperbolicSine(): Decimal;
|
||||
sinh(): Decimal;
|
||||
|
||||
hyperbolicTangent(): Decimal;
|
||||
tanh(): Decimal;
|
||||
|
||||
inverseCosine(): Decimal;
|
||||
acos(): Decimal;
|
||||
|
||||
inverseHyperbolicCosine(): Decimal;
|
||||
acosh(): Decimal;
|
||||
|
||||
inverseHyperbolicSine(): Decimal;
|
||||
asinh(): Decimal;
|
||||
|
||||
inverseHyperbolicTangent(): Decimal;
|
||||
atanh(): Decimal;
|
||||
|
||||
inverseSine(): Decimal;
|
||||
asin(): Decimal;
|
||||
|
||||
inverseTangent(): Decimal;
|
||||
atan(): Decimal;
|
||||
|
||||
isFinite(): boolean;
|
||||
|
||||
isInteger(): boolean;
|
||||
isInt(): boolean;
|
||||
|
||||
isNaN(): boolean;
|
||||
|
||||
isNegative(): boolean;
|
||||
isNeg(): boolean;
|
||||
|
||||
isPositive(): boolean;
|
||||
isPos(): boolean;
|
||||
|
||||
isZero(): boolean;
|
||||
|
||||
lessThan(n: Decimal.Value): boolean;
|
||||
lt(n: Decimal.Value): boolean;
|
||||
|
||||
lessThanOrEqualTo(n: Decimal.Value): boolean;
|
||||
lte(n: Decimal.Value): boolean;
|
||||
|
||||
logarithm(n?: Decimal.Value): Decimal;
|
||||
log(n?: Decimal.Value): Decimal;
|
||||
|
||||
minus(n: Decimal.Value): Decimal;
|
||||
sub(n: Decimal.Value): Decimal;
|
||||
|
||||
modulo(n: Decimal.Value): Decimal;
|
||||
mod(n: Decimal.Value): Decimal;
|
||||
|
||||
naturalExponential(): Decimal;
|
||||
exp(): Decimal;
|
||||
|
||||
naturalLogarithm(): Decimal;
|
||||
ln(): Decimal;
|
||||
|
||||
negated(): Decimal;
|
||||
neg(): Decimal;
|
||||
|
||||
plus(n: Decimal.Value): Decimal;
|
||||
add(n: Decimal.Value): Decimal;
|
||||
|
||||
precision(includeZeros?: boolean): number;
|
||||
sd(includeZeros?: boolean): number;
|
||||
|
||||
round(): Decimal;
|
||||
|
||||
sine() : Decimal;
|
||||
sin() : Decimal;
|
||||
|
||||
squareRoot(): Decimal;
|
||||
sqrt(): Decimal;
|
||||
|
||||
tangent() : Decimal;
|
||||
tan() : Decimal;
|
||||
|
||||
times(n: Decimal.Value): Decimal;
|
||||
mul(n: Decimal.Value) : Decimal;
|
||||
|
||||
toBinary(significantDigits?: number): string;
|
||||
toBinary(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toDecimalPlaces(decimalPlaces?: number): Decimal;
|
||||
toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
||||
toDP(decimalPlaces?: number): Decimal;
|
||||
toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
||||
|
||||
toExponential(decimalPlaces?: number): string;
|
||||
toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toFixed(decimalPlaces?: number): string;
|
||||
toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toFraction(max_denominator?: Decimal.Value): Decimal[];
|
||||
|
||||
toHexadecimal(significantDigits?: number): string;
|
||||
toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
toHex(significantDigits?: number): string;
|
||||
toHex(significantDigits: number, rounding?: Decimal.Rounding): string;
|
||||
|
||||
toJSON(): string;
|
||||
|
||||
toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal;
|
||||
|
||||
toNumber(): number;
|
||||
|
||||
toOctal(significantDigits?: number): string;
|
||||
toOctal(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toPower(n: Decimal.Value): Decimal;
|
||||
pow(n: Decimal.Value): Decimal;
|
||||
|
||||
toPrecision(significantDigits?: number): string;
|
||||
toPrecision(significantDigits: number, rounding: Decimal.Rounding): string;
|
||||
|
||||
toSignificantDigits(significantDigits?: number): Decimal;
|
||||
toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
||||
toSD(significantDigits?: number): Decimal;
|
||||
toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
||||
|
||||
toString(): string;
|
||||
|
||||
truncated(): Decimal;
|
||||
trunc(): Decimal;
|
||||
|
||||
valueOf(): string;
|
||||
|
||||
static abs(n: Decimal.Value): Decimal;
|
||||
static acos(n: Decimal.Value): Decimal;
|
||||
static acosh(n: Decimal.Value): Decimal;
|
||||
static add(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static asin(n: Decimal.Value): Decimal;
|
||||
static asinh(n: Decimal.Value): Decimal;
|
||||
static atan(n: Decimal.Value): Decimal;
|
||||
static atanh(n: Decimal.Value): Decimal;
|
||||
static atan2(y: Decimal.Value, x: Decimal.Value): Decimal;
|
||||
static cbrt(n: Decimal.Value): Decimal;
|
||||
static ceil(n: Decimal.Value): Decimal;
|
||||
static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal;
|
||||
static clone(object?: Decimal.Config): Decimal.Constructor;
|
||||
static config(object: Decimal.Config): Decimal.Constructor;
|
||||
static cos(n: Decimal.Value): Decimal;
|
||||
static cosh(n: Decimal.Value): Decimal;
|
||||
static div(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static exp(n: Decimal.Value): Decimal;
|
||||
static floor(n: Decimal.Value): Decimal;
|
||||
static hypot(...n: Decimal.Value[]): Decimal;
|
||||
static isDecimal(object: any): object is Decimal;
|
||||
static ln(n: Decimal.Value): Decimal;
|
||||
static log(n: Decimal.Value, base?: Decimal.Value): Decimal;
|
||||
static log2(n: Decimal.Value): Decimal;
|
||||
static log10(n: Decimal.Value): Decimal;
|
||||
static max(...n: Decimal.Value[]): Decimal;
|
||||
static min(...n: Decimal.Value[]): Decimal;
|
||||
static mod(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static mul(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static noConflict(): Decimal.Constructor; // Browser only
|
||||
static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal;
|
||||
static random(significantDigits?: number): Decimal;
|
||||
static round(n: Decimal.Value): Decimal;
|
||||
static set(object: Decimal.Config): Decimal.Constructor;
|
||||
static sign(n: Decimal.Value): number;
|
||||
static sin(n: Decimal.Value): Decimal;
|
||||
static sinh(n: Decimal.Value): Decimal;
|
||||
static sqrt(n: Decimal.Value): Decimal;
|
||||
static sub(x: Decimal.Value, y: Decimal.Value): Decimal;
|
||||
static sum(...n: Decimal.Value[]): Decimal;
|
||||
static tan(n: Decimal.Value): Decimal;
|
||||
static tanh(n: Decimal.Value): Decimal;
|
||||
static trunc(n: Decimal.Value): Decimal;
|
||||
|
||||
static readonly default?: Decimal.Constructor;
|
||||
static readonly Decimal?: Decimal.Constructor;
|
||||
|
||||
static readonly precision: number;
|
||||
static readonly rounding: Decimal.Rounding;
|
||||
static readonly toExpNeg: number;
|
||||
static readonly toExpPos: number;
|
||||
static readonly minE: number;
|
||||
static readonly maxE: number;
|
||||
static readonly crypto: boolean;
|
||||
static readonly modulo: Decimal.Modulo;
|
||||
|
||||
static readonly ROUND_UP: 0;
|
||||
static readonly ROUND_DOWN: 1;
|
||||
static readonly ROUND_CEIL: 2;
|
||||
static readonly ROUND_FLOOR: 3;
|
||||
static readonly ROUND_HALF_UP: 4;
|
||||
static readonly ROUND_HALF_DOWN: 5;
|
||||
static readonly ROUND_HALF_EVEN: 6;
|
||||
static readonly ROUND_HALF_CEIL: 7;
|
||||
static readonly ROUND_HALF_FLOOR: 8;
|
||||
static readonly EUCLID: 9;
|
||||
}
|
||||
|
||||
declare type Exact<A, W> = (A extends unknown ? (W extends A ? {
|
||||
[K in keyof A]: Exact<A[K], W[K]>;
|
||||
} : W) : never) | (A extends Narrowable ? A : never);
|
||||
|
||||
export declare function getRuntime(): GetRuntimeOutput;
|
||||
|
||||
declare type GetRuntimeOutput = {
|
||||
id: RuntimeName;
|
||||
prettyName: string;
|
||||
isEdge: boolean;
|
||||
};
|
||||
|
||||
declare class JsonNull extends NullTypesEnumValue {
|
||||
#private;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates more strict variant of an enum which, unlike regular enum,
|
||||
* throws on non-existing property access. This can be useful in following situations:
|
||||
* - we have an API, that accepts both `undefined` and `SomeEnumType` as an input
|
||||
* - enum values are generated dynamically from DMMF.
|
||||
*
|
||||
* In that case, if using normal enums and no compile-time typechecking, using non-existing property
|
||||
* will result in `undefined` value being used, which will be accepted. Using strict enum
|
||||
* in this case will help to have a runtime exception, telling you that you are probably doing something wrong.
|
||||
*
|
||||
* Note: if you need to check for existence of a value in the enum you can still use either
|
||||
* `in` operator or `hasOwnProperty` function.
|
||||
*
|
||||
* @param definition
|
||||
* @returns
|
||||
*/
|
||||
export declare function makeStrictEnum<T extends Record<PropertyKey, string | number>>(definition: T): T;
|
||||
|
||||
declare type Narrowable = string | number | bigint | boolean | [];
|
||||
|
||||
declare class NullTypesEnumValue extends ObjectEnumValue {
|
||||
_getNamespace(): string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Base class for unique values of object-valued enums.
|
||||
*/
|
||||
declare abstract class ObjectEnumValue {
|
||||
constructor(arg?: symbol);
|
||||
abstract _getNamespace(): string;
|
||||
_getName(): string;
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
export declare const objectEnumValues: {
|
||||
classes: {
|
||||
DbNull: typeof DbNull;
|
||||
JsonNull: typeof JsonNull;
|
||||
AnyNull: typeof AnyNull;
|
||||
};
|
||||
instances: {
|
||||
DbNull: DbNull;
|
||||
JsonNull: JsonNull;
|
||||
AnyNull: AnyNull;
|
||||
};
|
||||
};
|
||||
|
||||
declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
|
||||
|
||||
declare namespace Public {
|
||||
export {
|
||||
validator
|
||||
}
|
||||
}
|
||||
export { Public }
|
||||
|
||||
declare type RuntimeName = 'workerd' | 'deno' | 'netlify' | 'node' | 'bun' | 'edge-light' | '';
|
||||
|
||||
declare function validator<V>(): <S>(select: Exact<S, V>) => S;
|
||||
|
||||
declare function validator<C, M extends Exclude<keyof C, `$${string}`>, O extends keyof C[M] & Operation>(client: C, model: M, operation: O): <S>(select: Exact<S, Args<C[M], O>>) => S;
|
||||
|
||||
declare function validator<C, M extends Exclude<keyof C, `$${string}`>, O extends keyof C[M] & Operation, P extends keyof Args<C[M], O>>(client: C, model: M, operation: O, prop: P): <S>(select: Exact<S, Args<C[M], O>[P]>) => S;
|
||||
|
||||
export { }
|
||||
File diff suppressed because one or more lines are too long
+3647
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,69 @@
|
||||
// This is your Prisma schema file,
|
||||
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||||
|
||||
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
|
||||
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
output = "../generated/prisma"
|
||||
}
|
||||
|
||||
generator zod {
|
||||
provider = "prisma-zod-generator"
|
||||
output = "../shared/" // Zod schemas will be generated here inside `db/shared`
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "postgresql"
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
model User {
|
||||
id Int @id @default(autoincrement())
|
||||
username String @unique
|
||||
password String
|
||||
patients Patient[]
|
||||
appointments Appointment[]
|
||||
}
|
||||
|
||||
model Patient {
|
||||
id Int @id @default(autoincrement())
|
||||
firstName String
|
||||
lastName String
|
||||
dateOfBirth DateTime @db.Date
|
||||
gender String
|
||||
phone String
|
||||
email String?
|
||||
address String?
|
||||
city String?
|
||||
zipCode String?
|
||||
insuranceProvider String?
|
||||
insuranceId String?
|
||||
groupNumber String?
|
||||
policyHolder String?
|
||||
allergies String?
|
||||
medicalConditions String?
|
||||
status String @default("active")
|
||||
userId Int
|
||||
createdAt DateTime @default(now())
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
appointments Appointment[]
|
||||
}
|
||||
|
||||
model Appointment {
|
||||
id Int @id @default(autoincrement())
|
||||
patientId Int
|
||||
userId Int
|
||||
title String
|
||||
date DateTime @db.Date
|
||||
startTime DateTime @db.Time
|
||||
endTime DateTime @db.Time
|
||||
type String // e.g., "checkup", "cleaning", "filling", etc.
|
||||
notes String?
|
||||
status String @default("scheduled") // "scheduled", "completed", "cancelled", "no-show"
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
patient Patient @relation(fields: [patientId], references: [id])
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "./index"
|
||||
@@ -0,0 +1,216 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
||||
/* eslint-disable */
|
||||
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
|
||||
const {
|
||||
Decimal,
|
||||
objectEnumValues,
|
||||
makeStrictEnum,
|
||||
Public,
|
||||
getRuntime,
|
||||
skip
|
||||
} = require('./runtime/index-browser.js')
|
||||
|
||||
|
||||
const Prisma = {}
|
||||
|
||||
exports.Prisma = Prisma
|
||||
exports.$Enums = {}
|
||||
|
||||
/**
|
||||
* Prisma Client JS version: 6.7.0
|
||||
* Query Engine version: 3cff47a7f5d65c3ea74883f1d736e41d68ce91ed
|
||||
*/
|
||||
Prisma.prismaVersion = {
|
||||
client: "6.7.0",
|
||||
engine: "3cff47a7f5d65c3ea74883f1d736e41d68ce91ed"
|
||||
}
|
||||
|
||||
Prisma.PrismaClientKnownRequestError = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)};
|
||||
Prisma.PrismaClientUnknownRequestError = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.PrismaClientRustPanicError = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.PrismaClientInitializationError = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.PrismaClientValidationError = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.Decimal = Decimal
|
||||
|
||||
/**
|
||||
* Re-export of sql-template-tag
|
||||
*/
|
||||
Prisma.sql = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.empty = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.join = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.raw = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.validator = Public.validator
|
||||
|
||||
/**
|
||||
* Extensions
|
||||
*/
|
||||
Prisma.getExtensionContext = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
Prisma.defineExtension = () => {
|
||||
const runtimeName = getRuntime().prettyName;
|
||||
throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
||||
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
||||
)}
|
||||
|
||||
/**
|
||||
* Shorthand utilities for JSON filtering
|
||||
*/
|
||||
Prisma.DbNull = objectEnumValues.instances.DbNull
|
||||
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
||||
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
||||
|
||||
Prisma.NullTypes = {
|
||||
DbNull: objectEnumValues.classes.DbNull,
|
||||
JsonNull: objectEnumValues.classes.JsonNull,
|
||||
AnyNull: objectEnumValues.classes.AnyNull
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Enums
|
||||
*/
|
||||
|
||||
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
||||
ReadUncommitted: 'ReadUncommitted',
|
||||
ReadCommitted: 'ReadCommitted',
|
||||
RepeatableRead: 'RepeatableRead',
|
||||
Serializable: 'Serializable'
|
||||
});
|
||||
|
||||
exports.Prisma.UserScalarFieldEnum = {
|
||||
id: 'id',
|
||||
username: 'username',
|
||||
password: 'password'
|
||||
};
|
||||
|
||||
exports.Prisma.PatientScalarFieldEnum = {
|
||||
id: 'id',
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
dateOfBirth: 'dateOfBirth',
|
||||
gender: 'gender',
|
||||
phone: 'phone',
|
||||
email: 'email',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
zipCode: 'zipCode',
|
||||
insuranceProvider: 'insuranceProvider',
|
||||
insuranceId: 'insuranceId',
|
||||
groupNumber: 'groupNumber',
|
||||
policyHolder: 'policyHolder',
|
||||
allergies: 'allergies',
|
||||
medicalConditions: 'medicalConditions',
|
||||
status: 'status',
|
||||
userId: 'userId',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.AppointmentScalarFieldEnum = {
|
||||
id: 'id',
|
||||
patientId: 'patientId',
|
||||
userId: 'userId',
|
||||
title: 'title',
|
||||
date: 'date',
|
||||
startTime: 'startTime',
|
||||
endTime: 'endTime',
|
||||
type: 'type',
|
||||
notes: 'notes',
|
||||
status: 'status',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
};
|
||||
|
||||
exports.Prisma.QueryMode = {
|
||||
default: 'default',
|
||||
insensitive: 'insensitive'
|
||||
};
|
||||
|
||||
exports.Prisma.NullsOrder = {
|
||||
first: 'first',
|
||||
last: 'last'
|
||||
};
|
||||
|
||||
|
||||
exports.Prisma.ModelName = {
|
||||
User: 'User',
|
||||
Patient: 'Patient',
|
||||
Appointment: 'Appointment'
|
||||
};
|
||||
|
||||
/**
|
||||
* This is a stub Prisma Client that will error at runtime if called.
|
||||
*/
|
||||
class PrismaClient {
|
||||
constructor() {
|
||||
return new Proxy(this, {
|
||||
get(target, prop) {
|
||||
let message
|
||||
const runtime = getRuntime()
|
||||
if (runtime.isEdge) {
|
||||
message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
|
||||
- Use Prisma Accelerate: https://pris.ly/d/accelerate
|
||||
- Use Driver Adapters: https://pris.ly/d/driver-adapters
|
||||
`;
|
||||
} else {
|
||||
message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
|
||||
}
|
||||
|
||||
message += `
|
||||
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
|
||||
|
||||
throw new Error(message)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
exports.PrismaClient = PrismaClient
|
||||
|
||||
Object.assign(exports, Prisma)
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "@repo/db",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "src/index.ts",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"type": "commonjs",
|
||||
"exports": {
|
||||
"./client": "./src/index.ts",
|
||||
"./shared" : "./shared/schemas/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@prisma/client": "^6.7.0",
|
||||
"prisma-zod-generator": "^0.8.13"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.15.17",
|
||||
"prisma": "^6.7.0",
|
||||
"tsx": "^4.19.4",
|
||||
"typescript": "^5.8.2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "User" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"username" TEXT NOT NULL,
|
||||
"password" TEXT NOT NULL,
|
||||
|
||||
CONSTRAINT "User_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "Patient" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"firstName" TEXT NOT NULL,
|
||||
"lastName" TEXT NOT NULL,
|
||||
"dateOfBirth" DATE NOT NULL,
|
||||
"gender" TEXT NOT NULL,
|
||||
"phone" TEXT NOT NULL,
|
||||
"email" TEXT,
|
||||
"address" TEXT,
|
||||
"city" TEXT,
|
||||
"zipCode" TEXT,
|
||||
"insuranceProvider" TEXT,
|
||||
"insuranceId" TEXT,
|
||||
"groupNumber" TEXT,
|
||||
"policyHolder" TEXT,
|
||||
"allergies" TEXT,
|
||||
"medicalConditions" TEXT,
|
||||
"status" TEXT NOT NULL DEFAULT 'active',
|
||||
"userId" INTEGER NOT NULL,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "Patient_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "Appointment" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"patientId" INTEGER NOT NULL,
|
||||
"userId" INTEGER NOT NULL,
|
||||
"title" TEXT NOT NULL,
|
||||
"date" DATE NOT NULL,
|
||||
"startTime" TIME NOT NULL,
|
||||
"endTime" TIME NOT NULL,
|
||||
"type" TEXT NOT NULL,
|
||||
"notes" TEXT,
|
||||
"status" TEXT NOT NULL DEFAULT 'scheduled',
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "Appointment_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "User_username_key" ON "User"("username");
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Patient" ADD CONSTRAINT "Patient_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Appointment" ADD CONSTRAINT "Appointment_patientId_fkey" FOREIGN KEY ("patientId") REFERENCES "Patient"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Appointment" ADD CONSTRAINT "Appointment_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
@@ -0,0 +1,3 @@
|
||||
# Please do not edit this file manually
|
||||
# It should be added in your version-control system (e.g., Git)
|
||||
provider = "postgresql"
|
||||
@@ -0,0 +1,70 @@
|
||||
// This is your Prisma schema file,
|
||||
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||||
|
||||
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
|
||||
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
output = "../generated/prisma"
|
||||
}
|
||||
generator zod {
|
||||
provider = "prisma-zod-generator"
|
||||
output = "../shared/" // Zod schemas will be generated here inside `db/shared`
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "postgresql"
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
|
||||
|
||||
model User {
|
||||
id Int @id @default(autoincrement())
|
||||
username String @unique
|
||||
password String
|
||||
patients Patient[]
|
||||
appointments Appointment[]
|
||||
}
|
||||
|
||||
model Patient {
|
||||
id Int @id @default(autoincrement())
|
||||
firstName String
|
||||
lastName String
|
||||
dateOfBirth DateTime @db.Date
|
||||
gender String
|
||||
phone String
|
||||
email String?
|
||||
address String?
|
||||
city String?
|
||||
zipCode String?
|
||||
insuranceProvider String?
|
||||
insuranceId String?
|
||||
groupNumber String?
|
||||
policyHolder String?
|
||||
allergies String?
|
||||
medicalConditions String?
|
||||
status String @default("active")
|
||||
userId Int
|
||||
createdAt DateTime @default(now())
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
appointments Appointment[]
|
||||
}
|
||||
|
||||
model Appointment {
|
||||
id Int @id @default(autoincrement())
|
||||
patientId Int
|
||||
userId Int
|
||||
title String
|
||||
date DateTime @db.Date
|
||||
startTime DateTime @db.Time
|
||||
endTime DateTime @db.Time
|
||||
type String // e.g., "checkup", "cleaning", "filling", etc.
|
||||
notes String?
|
||||
status String @default("scheduled") // "scheduled", "completed", "cancelled", "no-show"
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
patient Patient @relation(fields: [patientId], references: [id])
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentOrderByWithRelationInputObjectSchema } from './objects/AppointmentOrderByWithRelationInput.schema';
|
||||
import { AppointmentWhereInputObjectSchema } from './objects/AppointmentWhereInput.schema';
|
||||
import { AppointmentWhereUniqueInputObjectSchema } from './objects/AppointmentWhereUniqueInput.schema';
|
||||
import { AppointmentCountAggregateInputObjectSchema } from './objects/AppointmentCountAggregateInput.schema';
|
||||
import { AppointmentMinAggregateInputObjectSchema } from './objects/AppointmentMinAggregateInput.schema';
|
||||
import { AppointmentMaxAggregateInputObjectSchema } from './objects/AppointmentMaxAggregateInput.schema';
|
||||
import { AppointmentAvgAggregateInputObjectSchema } from './objects/AppointmentAvgAggregateInput.schema';
|
||||
import { AppointmentSumAggregateInputObjectSchema } from './objects/AppointmentSumAggregateInput.schema';
|
||||
|
||||
export const AppointmentAggregateSchema = z.object({
|
||||
orderBy: z
|
||||
.union([
|
||||
AppointmentOrderByWithRelationInputObjectSchema,
|
||||
AppointmentOrderByWithRelationInputObjectSchema.array(),
|
||||
])
|
||||
.optional(),
|
||||
where: AppointmentWhereInputObjectSchema.optional(),
|
||||
cursor: AppointmentWhereUniqueInputObjectSchema.optional(),
|
||||
take: z.number().optional(),
|
||||
skip: z.number().optional(),
|
||||
_count: z
|
||||
.union([z.literal(true), AppointmentCountAggregateInputObjectSchema])
|
||||
.optional(),
|
||||
_min: AppointmentMinAggregateInputObjectSchema.optional(),
|
||||
_max: AppointmentMaxAggregateInputObjectSchema.optional(),
|
||||
_avg: AppointmentAvgAggregateInputObjectSchema.optional(),
|
||||
_sum: AppointmentSumAggregateInputObjectSchema.optional(),
|
||||
});
|
||||
@@ -0,0 +1,29 @@
|
||||
import { z } from 'zod';
|
||||
import { PatientOrderByWithRelationInputObjectSchema } from './objects/PatientOrderByWithRelationInput.schema';
|
||||
import { PatientWhereInputObjectSchema } from './objects/PatientWhereInput.schema';
|
||||
import { PatientWhereUniqueInputObjectSchema } from './objects/PatientWhereUniqueInput.schema';
|
||||
import { PatientCountAggregateInputObjectSchema } from './objects/PatientCountAggregateInput.schema';
|
||||
import { PatientMinAggregateInputObjectSchema } from './objects/PatientMinAggregateInput.schema';
|
||||
import { PatientMaxAggregateInputObjectSchema } from './objects/PatientMaxAggregateInput.schema';
|
||||
import { PatientAvgAggregateInputObjectSchema } from './objects/PatientAvgAggregateInput.schema';
|
||||
import { PatientSumAggregateInputObjectSchema } from './objects/PatientSumAggregateInput.schema';
|
||||
|
||||
export const PatientAggregateSchema = z.object({
|
||||
orderBy: z
|
||||
.union([
|
||||
PatientOrderByWithRelationInputObjectSchema,
|
||||
PatientOrderByWithRelationInputObjectSchema.array(),
|
||||
])
|
||||
.optional(),
|
||||
where: PatientWhereInputObjectSchema.optional(),
|
||||
cursor: PatientWhereUniqueInputObjectSchema.optional(),
|
||||
take: z.number().optional(),
|
||||
skip: z.number().optional(),
|
||||
_count: z
|
||||
.union([z.literal(true), PatientCountAggregateInputObjectSchema])
|
||||
.optional(),
|
||||
_min: PatientMinAggregateInputObjectSchema.optional(),
|
||||
_max: PatientMaxAggregateInputObjectSchema.optional(),
|
||||
_avg: PatientAvgAggregateInputObjectSchema.optional(),
|
||||
_sum: PatientSumAggregateInputObjectSchema.optional(),
|
||||
});
|
||||
@@ -0,0 +1,29 @@
|
||||
import { z } from 'zod';
|
||||
import { UserOrderByWithRelationInputObjectSchema } from './objects/UserOrderByWithRelationInput.schema';
|
||||
import { UserWhereInputObjectSchema } from './objects/UserWhereInput.schema';
|
||||
import { UserWhereUniqueInputObjectSchema } from './objects/UserWhereUniqueInput.schema';
|
||||
import { UserCountAggregateInputObjectSchema } from './objects/UserCountAggregateInput.schema';
|
||||
import { UserMinAggregateInputObjectSchema } from './objects/UserMinAggregateInput.schema';
|
||||
import { UserMaxAggregateInputObjectSchema } from './objects/UserMaxAggregateInput.schema';
|
||||
import { UserAvgAggregateInputObjectSchema } from './objects/UserAvgAggregateInput.schema';
|
||||
import { UserSumAggregateInputObjectSchema } from './objects/UserSumAggregateInput.schema';
|
||||
|
||||
export const UserAggregateSchema = z.object({
|
||||
orderBy: z
|
||||
.union([
|
||||
UserOrderByWithRelationInputObjectSchema,
|
||||
UserOrderByWithRelationInputObjectSchema.array(),
|
||||
])
|
||||
.optional(),
|
||||
where: UserWhereInputObjectSchema.optional(),
|
||||
cursor: UserWhereUniqueInputObjectSchema.optional(),
|
||||
take: z.number().optional(),
|
||||
skip: z.number().optional(),
|
||||
_count: z
|
||||
.union([z.literal(true), UserCountAggregateInputObjectSchema])
|
||||
.optional(),
|
||||
_min: UserMinAggregateInputObjectSchema.optional(),
|
||||
_max: UserMaxAggregateInputObjectSchema.optional(),
|
||||
_avg: UserAvgAggregateInputObjectSchema.optional(),
|
||||
_sum: UserSumAggregateInputObjectSchema.optional(),
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentCreateManyInputObjectSchema } from './objects/AppointmentCreateManyInput.schema';
|
||||
|
||||
export const AppointmentCreateManySchema = z.object({
|
||||
data: z.union([
|
||||
AppointmentCreateManyInputObjectSchema,
|
||||
z.array(AppointmentCreateManyInputObjectSchema),
|
||||
]),
|
||||
skipDuplicates: z.boolean().optional(),
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { z } from 'zod';
|
||||
import { PatientCreateManyInputObjectSchema } from './objects/PatientCreateManyInput.schema';
|
||||
|
||||
export const PatientCreateManySchema = z.object({
|
||||
data: z.union([
|
||||
PatientCreateManyInputObjectSchema,
|
||||
z.array(PatientCreateManyInputObjectSchema),
|
||||
]),
|
||||
skipDuplicates: z.boolean().optional(),
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { z } from 'zod';
|
||||
import { UserCreateManyInputObjectSchema } from './objects/UserCreateManyInput.schema';
|
||||
|
||||
export const UserCreateManySchema = z.object({
|
||||
data: z.union([
|
||||
UserCreateManyInputObjectSchema,
|
||||
z.array(UserCreateManyInputObjectSchema),
|
||||
]),
|
||||
skipDuplicates: z.boolean().optional(),
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentCreateInputObjectSchema } from './objects/AppointmentCreateInput.schema';
|
||||
import { AppointmentUncheckedCreateInputObjectSchema } from './objects/AppointmentUncheckedCreateInput.schema';
|
||||
|
||||
export const AppointmentCreateOneSchema = z.object({
|
||||
data: z.union([
|
||||
AppointmentCreateInputObjectSchema,
|
||||
AppointmentUncheckedCreateInputObjectSchema,
|
||||
]),
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { z } from 'zod';
|
||||
import { PatientCreateInputObjectSchema } from './objects/PatientCreateInput.schema';
|
||||
import { PatientUncheckedCreateInputObjectSchema } from './objects/PatientUncheckedCreateInput.schema';
|
||||
|
||||
export const PatientCreateOneSchema = z.object({
|
||||
data: z.union([
|
||||
PatientCreateInputObjectSchema,
|
||||
PatientUncheckedCreateInputObjectSchema,
|
||||
]),
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { z } from 'zod';
|
||||
import { UserCreateInputObjectSchema } from './objects/UserCreateInput.schema';
|
||||
import { UserUncheckedCreateInputObjectSchema } from './objects/UserUncheckedCreateInput.schema';
|
||||
|
||||
export const UserCreateOneSchema = z.object({
|
||||
data: z.union([
|
||||
UserCreateInputObjectSchema,
|
||||
UserUncheckedCreateInputObjectSchema,
|
||||
]),
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentWhereInputObjectSchema } from './objects/AppointmentWhereInput.schema';
|
||||
|
||||
export const AppointmentDeleteManySchema = z.object({
|
||||
where: AppointmentWhereInputObjectSchema.optional(),
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
import { PatientWhereInputObjectSchema } from './objects/PatientWhereInput.schema';
|
||||
|
||||
export const PatientDeleteManySchema = z.object({
|
||||
where: PatientWhereInputObjectSchema.optional(),
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
import { UserWhereInputObjectSchema } from './objects/UserWhereInput.schema';
|
||||
|
||||
export const UserDeleteManySchema = z.object({
|
||||
where: UserWhereInputObjectSchema.optional(),
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentWhereUniqueInputObjectSchema } from './objects/AppointmentWhereUniqueInput.schema';
|
||||
|
||||
export const AppointmentDeleteOneSchema = z.object({
|
||||
where: AppointmentWhereUniqueInputObjectSchema,
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
import { PatientWhereUniqueInputObjectSchema } from './objects/PatientWhereUniqueInput.schema';
|
||||
|
||||
export const PatientDeleteOneSchema = z.object({
|
||||
where: PatientWhereUniqueInputObjectSchema,
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
import { UserWhereUniqueInputObjectSchema } from './objects/UserWhereUniqueInput.schema';
|
||||
|
||||
export const UserDeleteOneSchema = z.object({
|
||||
where: UserWhereUniqueInputObjectSchema,
|
||||
});
|
||||
@@ -0,0 +1,15 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const AppointmentScalarFieldEnumSchema = z.enum([
|
||||
'id',
|
||||
'patientId',
|
||||
'userId',
|
||||
'title',
|
||||
'date',
|
||||
'startTime',
|
||||
'endTime',
|
||||
'type',
|
||||
'notes',
|
||||
'status',
|
||||
'createdAt',
|
||||
]);
|
||||
@@ -0,0 +1,3 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const NullsOrderSchema = z.enum(['first', 'last']);
|
||||
@@ -0,0 +1,23 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const PatientScalarFieldEnumSchema = z.enum([
|
||||
'id',
|
||||
'firstName',
|
||||
'lastName',
|
||||
'dateOfBirth',
|
||||
'gender',
|
||||
'phone',
|
||||
'email',
|
||||
'address',
|
||||
'city',
|
||||
'zipCode',
|
||||
'insuranceProvider',
|
||||
'insuranceId',
|
||||
'groupNumber',
|
||||
'policyHolder',
|
||||
'allergies',
|
||||
'medicalConditions',
|
||||
'status',
|
||||
'userId',
|
||||
'createdAt',
|
||||
]);
|
||||
@@ -0,0 +1,3 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const QueryModeSchema = z.enum(['default', 'insensitive']);
|
||||
@@ -0,0 +1,3 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const SortOrderSchema = z.enum(['asc', 'desc']);
|
||||
@@ -0,0 +1,8 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const TransactionIsolationLevelSchema = z.enum([
|
||||
'ReadUncommitted',
|
||||
'ReadCommitted',
|
||||
'RepeatableRead',
|
||||
'Serializable',
|
||||
]);
|
||||
@@ -0,0 +1,3 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const UserScalarFieldEnumSchema = z.enum(['id', 'username', 'password']);
|
||||
@@ -0,0 +1,19 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentOrderByWithRelationInputObjectSchema } from './objects/AppointmentOrderByWithRelationInput.schema';
|
||||
import { AppointmentWhereInputObjectSchema } from './objects/AppointmentWhereInput.schema';
|
||||
import { AppointmentWhereUniqueInputObjectSchema } from './objects/AppointmentWhereUniqueInput.schema';
|
||||
import { AppointmentScalarFieldEnumSchema } from './enums/AppointmentScalarFieldEnum.schema';
|
||||
|
||||
export const AppointmentFindFirstSchema = z.object({
|
||||
orderBy: z
|
||||
.union([
|
||||
AppointmentOrderByWithRelationInputObjectSchema,
|
||||
AppointmentOrderByWithRelationInputObjectSchema.array(),
|
||||
])
|
||||
.optional(),
|
||||
where: AppointmentWhereInputObjectSchema.optional(),
|
||||
cursor: AppointmentWhereUniqueInputObjectSchema.optional(),
|
||||
take: z.number().optional(),
|
||||
skip: z.number().optional(),
|
||||
distinct: z.array(AppointmentScalarFieldEnumSchema).optional(),
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
import { z } from 'zod';
|
||||
import { PatientOrderByWithRelationInputObjectSchema } from './objects/PatientOrderByWithRelationInput.schema';
|
||||
import { PatientWhereInputObjectSchema } from './objects/PatientWhereInput.schema';
|
||||
import { PatientWhereUniqueInputObjectSchema } from './objects/PatientWhereUniqueInput.schema';
|
||||
import { PatientScalarFieldEnumSchema } from './enums/PatientScalarFieldEnum.schema';
|
||||
|
||||
export const PatientFindFirstSchema = z.object({
|
||||
orderBy: z
|
||||
.union([
|
||||
PatientOrderByWithRelationInputObjectSchema,
|
||||
PatientOrderByWithRelationInputObjectSchema.array(),
|
||||
])
|
||||
.optional(),
|
||||
where: PatientWhereInputObjectSchema.optional(),
|
||||
cursor: PatientWhereUniqueInputObjectSchema.optional(),
|
||||
take: z.number().optional(),
|
||||
skip: z.number().optional(),
|
||||
distinct: z.array(PatientScalarFieldEnumSchema).optional(),
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
import { z } from 'zod';
|
||||
import { UserOrderByWithRelationInputObjectSchema } from './objects/UserOrderByWithRelationInput.schema';
|
||||
import { UserWhereInputObjectSchema } from './objects/UserWhereInput.schema';
|
||||
import { UserWhereUniqueInputObjectSchema } from './objects/UserWhereUniqueInput.schema';
|
||||
import { UserScalarFieldEnumSchema } from './enums/UserScalarFieldEnum.schema';
|
||||
|
||||
export const UserFindFirstSchema = z.object({
|
||||
orderBy: z
|
||||
.union([
|
||||
UserOrderByWithRelationInputObjectSchema,
|
||||
UserOrderByWithRelationInputObjectSchema.array(),
|
||||
])
|
||||
.optional(),
|
||||
where: UserWhereInputObjectSchema.optional(),
|
||||
cursor: UserWhereUniqueInputObjectSchema.optional(),
|
||||
take: z.number().optional(),
|
||||
skip: z.number().optional(),
|
||||
distinct: z.array(UserScalarFieldEnumSchema).optional(),
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentOrderByWithRelationInputObjectSchema } from './objects/AppointmentOrderByWithRelationInput.schema';
|
||||
import { AppointmentWhereInputObjectSchema } from './objects/AppointmentWhereInput.schema';
|
||||
import { AppointmentWhereUniqueInputObjectSchema } from './objects/AppointmentWhereUniqueInput.schema';
|
||||
import { AppointmentScalarFieldEnumSchema } from './enums/AppointmentScalarFieldEnum.schema';
|
||||
|
||||
export const AppointmentFindManySchema = z.object({
|
||||
orderBy: z
|
||||
.union([
|
||||
AppointmentOrderByWithRelationInputObjectSchema,
|
||||
AppointmentOrderByWithRelationInputObjectSchema.array(),
|
||||
])
|
||||
.optional(),
|
||||
where: AppointmentWhereInputObjectSchema.optional(),
|
||||
cursor: AppointmentWhereUniqueInputObjectSchema.optional(),
|
||||
take: z.number().optional(),
|
||||
skip: z.number().optional(),
|
||||
distinct: z.array(AppointmentScalarFieldEnumSchema).optional(),
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
import { z } from 'zod';
|
||||
import { PatientOrderByWithRelationInputObjectSchema } from './objects/PatientOrderByWithRelationInput.schema';
|
||||
import { PatientWhereInputObjectSchema } from './objects/PatientWhereInput.schema';
|
||||
import { PatientWhereUniqueInputObjectSchema } from './objects/PatientWhereUniqueInput.schema';
|
||||
import { PatientScalarFieldEnumSchema } from './enums/PatientScalarFieldEnum.schema';
|
||||
|
||||
export const PatientFindManySchema = z.object({
|
||||
orderBy: z
|
||||
.union([
|
||||
PatientOrderByWithRelationInputObjectSchema,
|
||||
PatientOrderByWithRelationInputObjectSchema.array(),
|
||||
])
|
||||
.optional(),
|
||||
where: PatientWhereInputObjectSchema.optional(),
|
||||
cursor: PatientWhereUniqueInputObjectSchema.optional(),
|
||||
take: z.number().optional(),
|
||||
skip: z.number().optional(),
|
||||
distinct: z.array(PatientScalarFieldEnumSchema).optional(),
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
import { z } from 'zod';
|
||||
import { UserOrderByWithRelationInputObjectSchema } from './objects/UserOrderByWithRelationInput.schema';
|
||||
import { UserWhereInputObjectSchema } from './objects/UserWhereInput.schema';
|
||||
import { UserWhereUniqueInputObjectSchema } from './objects/UserWhereUniqueInput.schema';
|
||||
import { UserScalarFieldEnumSchema } from './enums/UserScalarFieldEnum.schema';
|
||||
|
||||
export const UserFindManySchema = z.object({
|
||||
orderBy: z
|
||||
.union([
|
||||
UserOrderByWithRelationInputObjectSchema,
|
||||
UserOrderByWithRelationInputObjectSchema.array(),
|
||||
])
|
||||
.optional(),
|
||||
where: UserWhereInputObjectSchema.optional(),
|
||||
cursor: UserWhereUniqueInputObjectSchema.optional(),
|
||||
take: z.number().optional(),
|
||||
skip: z.number().optional(),
|
||||
distinct: z.array(UserScalarFieldEnumSchema).optional(),
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentWhereUniqueInputObjectSchema } from './objects/AppointmentWhereUniqueInput.schema';
|
||||
|
||||
export const AppointmentFindUniqueSchema = z.object({
|
||||
where: AppointmentWhereUniqueInputObjectSchema,
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
import { PatientWhereUniqueInputObjectSchema } from './objects/PatientWhereUniqueInput.schema';
|
||||
|
||||
export const PatientFindUniqueSchema = z.object({
|
||||
where: PatientWhereUniqueInputObjectSchema,
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
import { UserWhereUniqueInputObjectSchema } from './objects/UserWhereUniqueInput.schema';
|
||||
|
||||
export const UserFindUniqueSchema = z.object({
|
||||
where: UserWhereUniqueInputObjectSchema,
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentWhereInputObjectSchema } from './objects/AppointmentWhereInput.schema';
|
||||
import { AppointmentOrderByWithAggregationInputObjectSchema } from './objects/AppointmentOrderByWithAggregationInput.schema';
|
||||
import { AppointmentScalarWhereWithAggregatesInputObjectSchema } from './objects/AppointmentScalarWhereWithAggregatesInput.schema';
|
||||
import { AppointmentScalarFieldEnumSchema } from './enums/AppointmentScalarFieldEnum.schema';
|
||||
|
||||
export const AppointmentGroupBySchema = z.object({
|
||||
where: AppointmentWhereInputObjectSchema.optional(),
|
||||
orderBy: z
|
||||
.union([
|
||||
AppointmentOrderByWithAggregationInputObjectSchema,
|
||||
AppointmentOrderByWithAggregationInputObjectSchema.array(),
|
||||
])
|
||||
.optional(),
|
||||
having: AppointmentScalarWhereWithAggregatesInputObjectSchema.optional(),
|
||||
take: z.number().optional(),
|
||||
skip: z.number().optional(),
|
||||
by: z.array(AppointmentScalarFieldEnumSchema),
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
import { z } from 'zod';
|
||||
import { PatientWhereInputObjectSchema } from './objects/PatientWhereInput.schema';
|
||||
import { PatientOrderByWithAggregationInputObjectSchema } from './objects/PatientOrderByWithAggregationInput.schema';
|
||||
import { PatientScalarWhereWithAggregatesInputObjectSchema } from './objects/PatientScalarWhereWithAggregatesInput.schema';
|
||||
import { PatientScalarFieldEnumSchema } from './enums/PatientScalarFieldEnum.schema';
|
||||
|
||||
export const PatientGroupBySchema = z.object({
|
||||
where: PatientWhereInputObjectSchema.optional(),
|
||||
orderBy: z
|
||||
.union([
|
||||
PatientOrderByWithAggregationInputObjectSchema,
|
||||
PatientOrderByWithAggregationInputObjectSchema.array(),
|
||||
])
|
||||
.optional(),
|
||||
having: PatientScalarWhereWithAggregatesInputObjectSchema.optional(),
|
||||
take: z.number().optional(),
|
||||
skip: z.number().optional(),
|
||||
by: z.array(PatientScalarFieldEnumSchema),
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
import { z } from 'zod';
|
||||
import { UserWhereInputObjectSchema } from './objects/UserWhereInput.schema';
|
||||
import { UserOrderByWithAggregationInputObjectSchema } from './objects/UserOrderByWithAggregationInput.schema';
|
||||
import { UserScalarWhereWithAggregatesInputObjectSchema } from './objects/UserScalarWhereWithAggregatesInput.schema';
|
||||
import { UserScalarFieldEnumSchema } from './enums/UserScalarFieldEnum.schema';
|
||||
|
||||
export const UserGroupBySchema = z.object({
|
||||
where: UserWhereInputObjectSchema.optional(),
|
||||
orderBy: z
|
||||
.union([
|
||||
UserOrderByWithAggregationInputObjectSchema,
|
||||
UserOrderByWithAggregationInputObjectSchema.array(),
|
||||
])
|
||||
.optional(),
|
||||
having: UserScalarWhereWithAggregatesInputObjectSchema.optional(),
|
||||
take: z.number().optional(),
|
||||
skip: z.number().optional(),
|
||||
by: z.array(UserScalarFieldEnumSchema),
|
||||
});
|
||||
@@ -0,0 +1,208 @@
|
||||
export * from './enums/TransactionIsolationLevel.schema';
|
||||
export * from './enums/UserScalarFieldEnum.schema';
|
||||
export * from './enums/PatientScalarFieldEnum.schema';
|
||||
export * from './enums/AppointmentScalarFieldEnum.schema';
|
||||
export * from './enums/SortOrder.schema';
|
||||
export * from './enums/QueryMode.schema';
|
||||
export * from './enums/NullsOrder.schema';
|
||||
export * from './objects/UserWhereInput.schema';
|
||||
export * from './objects/UserOrderByWithRelationInput.schema';
|
||||
export * from './objects/UserWhereUniqueInput.schema';
|
||||
export * from './objects/UserOrderByWithAggregationInput.schema';
|
||||
export * from './objects/UserScalarWhereWithAggregatesInput.schema';
|
||||
export * from './objects/PatientWhereInput.schema';
|
||||
export * from './objects/PatientOrderByWithRelationInput.schema';
|
||||
export * from './objects/PatientWhereUniqueInput.schema';
|
||||
export * from './objects/PatientOrderByWithAggregationInput.schema';
|
||||
export * from './objects/PatientScalarWhereWithAggregatesInput.schema';
|
||||
export * from './objects/AppointmentWhereInput.schema';
|
||||
export * from './objects/AppointmentOrderByWithRelationInput.schema';
|
||||
export * from './objects/AppointmentWhereUniqueInput.schema';
|
||||
export * from './objects/AppointmentOrderByWithAggregationInput.schema';
|
||||
export * from './objects/AppointmentScalarWhereWithAggregatesInput.schema';
|
||||
export * from './objects/UserCreateInput.schema';
|
||||
export * from './objects/UserUncheckedCreateInput.schema';
|
||||
export * from './objects/UserUpdateInput.schema';
|
||||
export * from './objects/UserUncheckedUpdateInput.schema';
|
||||
export * from './objects/UserCreateManyInput.schema';
|
||||
export * from './objects/UserUpdateManyMutationInput.schema';
|
||||
export * from './objects/UserUncheckedUpdateManyInput.schema';
|
||||
export * from './objects/PatientCreateInput.schema';
|
||||
export * from './objects/PatientUncheckedCreateInput.schema';
|
||||
export * from './objects/PatientUpdateInput.schema';
|
||||
export * from './objects/PatientUncheckedUpdateInput.schema';
|
||||
export * from './objects/PatientCreateManyInput.schema';
|
||||
export * from './objects/PatientUpdateManyMutationInput.schema';
|
||||
export * from './objects/PatientUncheckedUpdateManyInput.schema';
|
||||
export * from './objects/AppointmentCreateInput.schema';
|
||||
export * from './objects/AppointmentUncheckedCreateInput.schema';
|
||||
export * from './objects/AppointmentUpdateInput.schema';
|
||||
export * from './objects/AppointmentUncheckedUpdateInput.schema';
|
||||
export * from './objects/AppointmentCreateManyInput.schema';
|
||||
export * from './objects/AppointmentUpdateManyMutationInput.schema';
|
||||
export * from './objects/AppointmentUncheckedUpdateManyInput.schema';
|
||||
export * from './objects/IntFilter.schema';
|
||||
export * from './objects/StringFilter.schema';
|
||||
export * from './objects/PatientListRelationFilter.schema';
|
||||
export * from './objects/AppointmentListRelationFilter.schema';
|
||||
export * from './objects/PatientOrderByRelationAggregateInput.schema';
|
||||
export * from './objects/AppointmentOrderByRelationAggregateInput.schema';
|
||||
export * from './objects/UserCountOrderByAggregateInput.schema';
|
||||
export * from './objects/UserAvgOrderByAggregateInput.schema';
|
||||
export * from './objects/UserMaxOrderByAggregateInput.schema';
|
||||
export * from './objects/UserMinOrderByAggregateInput.schema';
|
||||
export * from './objects/UserSumOrderByAggregateInput.schema';
|
||||
export * from './objects/IntWithAggregatesFilter.schema';
|
||||
export * from './objects/StringWithAggregatesFilter.schema';
|
||||
export * from './objects/DateTimeFilter.schema';
|
||||
export * from './objects/StringNullableFilter.schema';
|
||||
export * from './objects/UserRelationFilter.schema';
|
||||
export * from './objects/SortOrderInput.schema';
|
||||
export * from './objects/PatientCountOrderByAggregateInput.schema';
|
||||
export * from './objects/PatientAvgOrderByAggregateInput.schema';
|
||||
export * from './objects/PatientMaxOrderByAggregateInput.schema';
|
||||
export * from './objects/PatientMinOrderByAggregateInput.schema';
|
||||
export * from './objects/PatientSumOrderByAggregateInput.schema';
|
||||
export * from './objects/DateTimeWithAggregatesFilter.schema';
|
||||
export * from './objects/StringNullableWithAggregatesFilter.schema';
|
||||
export * from './objects/PatientRelationFilter.schema';
|
||||
export * from './objects/AppointmentCountOrderByAggregateInput.schema';
|
||||
export * from './objects/AppointmentAvgOrderByAggregateInput.schema';
|
||||
export * from './objects/AppointmentMaxOrderByAggregateInput.schema';
|
||||
export * from './objects/AppointmentMinOrderByAggregateInput.schema';
|
||||
export * from './objects/AppointmentSumOrderByAggregateInput.schema';
|
||||
export * from './objects/PatientCreateNestedManyWithoutUserInput.schema';
|
||||
export * from './objects/AppointmentCreateNestedManyWithoutUserInput.schema';
|
||||
export * from './objects/PatientUncheckedCreateNestedManyWithoutUserInput.schema';
|
||||
export * from './objects/AppointmentUncheckedCreateNestedManyWithoutUserInput.schema';
|
||||
export * from './objects/StringFieldUpdateOperationsInput.schema';
|
||||
export * from './objects/PatientUpdateManyWithoutUserNestedInput.schema';
|
||||
export * from './objects/AppointmentUpdateManyWithoutUserNestedInput.schema';
|
||||
export * from './objects/IntFieldUpdateOperationsInput.schema';
|
||||
export * from './objects/PatientUncheckedUpdateManyWithoutUserNestedInput.schema';
|
||||
export * from './objects/AppointmentUncheckedUpdateManyWithoutUserNestedInput.schema';
|
||||
export * from './objects/UserCreateNestedOneWithoutPatientsInput.schema';
|
||||
export * from './objects/AppointmentCreateNestedManyWithoutPatientInput.schema';
|
||||
export * from './objects/AppointmentUncheckedCreateNestedManyWithoutPatientInput.schema';
|
||||
export * from './objects/DateTimeFieldUpdateOperationsInput.schema';
|
||||
export * from './objects/NullableStringFieldUpdateOperationsInput.schema';
|
||||
export * from './objects/UserUpdateOneRequiredWithoutPatientsNestedInput.schema';
|
||||
export * from './objects/AppointmentUpdateManyWithoutPatientNestedInput.schema';
|
||||
export * from './objects/AppointmentUncheckedUpdateManyWithoutPatientNestedInput.schema';
|
||||
export * from './objects/PatientCreateNestedOneWithoutAppointmentsInput.schema';
|
||||
export * from './objects/UserCreateNestedOneWithoutAppointmentsInput.schema';
|
||||
export * from './objects/PatientUpdateOneRequiredWithoutAppointmentsNestedInput.schema';
|
||||
export * from './objects/UserUpdateOneRequiredWithoutAppointmentsNestedInput.schema';
|
||||
export * from './objects/NestedIntFilter.schema';
|
||||
export * from './objects/NestedStringFilter.schema';
|
||||
export * from './objects/NestedIntWithAggregatesFilter.schema';
|
||||
export * from './objects/NestedFloatFilter.schema';
|
||||
export * from './objects/NestedStringWithAggregatesFilter.schema';
|
||||
export * from './objects/NestedDateTimeFilter.schema';
|
||||
export * from './objects/NestedStringNullableFilter.schema';
|
||||
export * from './objects/NestedDateTimeWithAggregatesFilter.schema';
|
||||
export * from './objects/NestedStringNullableWithAggregatesFilter.schema';
|
||||
export * from './objects/NestedIntNullableFilter.schema';
|
||||
export * from './objects/PatientCreateWithoutUserInput.schema';
|
||||
export * from './objects/PatientUncheckedCreateWithoutUserInput.schema';
|
||||
export * from './objects/PatientCreateOrConnectWithoutUserInput.schema';
|
||||
export * from './objects/PatientCreateManyUserInputEnvelope.schema';
|
||||
export * from './objects/AppointmentCreateWithoutUserInput.schema';
|
||||
export * from './objects/AppointmentUncheckedCreateWithoutUserInput.schema';
|
||||
export * from './objects/AppointmentCreateOrConnectWithoutUserInput.schema';
|
||||
export * from './objects/AppointmentCreateManyUserInputEnvelope.schema';
|
||||
export * from './objects/PatientUpsertWithWhereUniqueWithoutUserInput.schema';
|
||||
export * from './objects/PatientUpdateWithWhereUniqueWithoutUserInput.schema';
|
||||
export * from './objects/PatientUpdateManyWithWhereWithoutUserInput.schema';
|
||||
export * from './objects/PatientScalarWhereInput.schema';
|
||||
export * from './objects/AppointmentUpsertWithWhereUniqueWithoutUserInput.schema';
|
||||
export * from './objects/AppointmentUpdateWithWhereUniqueWithoutUserInput.schema';
|
||||
export * from './objects/AppointmentUpdateManyWithWhereWithoutUserInput.schema';
|
||||
export * from './objects/AppointmentScalarWhereInput.schema';
|
||||
export * from './objects/UserCreateWithoutPatientsInput.schema';
|
||||
export * from './objects/UserUncheckedCreateWithoutPatientsInput.schema';
|
||||
export * from './objects/UserCreateOrConnectWithoutPatientsInput.schema';
|
||||
export * from './objects/AppointmentCreateWithoutPatientInput.schema';
|
||||
export * from './objects/AppointmentUncheckedCreateWithoutPatientInput.schema';
|
||||
export * from './objects/AppointmentCreateOrConnectWithoutPatientInput.schema';
|
||||
export * from './objects/AppointmentCreateManyPatientInputEnvelope.schema';
|
||||
export * from './objects/UserUpsertWithoutPatientsInput.schema';
|
||||
export * from './objects/UserUpdateWithoutPatientsInput.schema';
|
||||
export * from './objects/UserUncheckedUpdateWithoutPatientsInput.schema';
|
||||
export * from './objects/AppointmentUpsertWithWhereUniqueWithoutPatientInput.schema';
|
||||
export * from './objects/AppointmentUpdateWithWhereUniqueWithoutPatientInput.schema';
|
||||
export * from './objects/AppointmentUpdateManyWithWhereWithoutPatientInput.schema';
|
||||
export * from './objects/PatientCreateWithoutAppointmentsInput.schema';
|
||||
export * from './objects/PatientUncheckedCreateWithoutAppointmentsInput.schema';
|
||||
export * from './objects/PatientCreateOrConnectWithoutAppointmentsInput.schema';
|
||||
export * from './objects/UserCreateWithoutAppointmentsInput.schema';
|
||||
export * from './objects/UserUncheckedCreateWithoutAppointmentsInput.schema';
|
||||
export * from './objects/UserCreateOrConnectWithoutAppointmentsInput.schema';
|
||||
export * from './objects/PatientUpsertWithoutAppointmentsInput.schema';
|
||||
export * from './objects/PatientUpdateWithoutAppointmentsInput.schema';
|
||||
export * from './objects/PatientUncheckedUpdateWithoutAppointmentsInput.schema';
|
||||
export * from './objects/UserUpsertWithoutAppointmentsInput.schema';
|
||||
export * from './objects/UserUpdateWithoutAppointmentsInput.schema';
|
||||
export * from './objects/UserUncheckedUpdateWithoutAppointmentsInput.schema';
|
||||
export * from './objects/PatientCreateManyUserInput.schema';
|
||||
export * from './objects/AppointmentCreateManyUserInput.schema';
|
||||
export * from './objects/PatientUpdateWithoutUserInput.schema';
|
||||
export * from './objects/PatientUncheckedUpdateWithoutUserInput.schema';
|
||||
export * from './objects/PatientUncheckedUpdateManyWithoutPatientsInput.schema';
|
||||
export * from './objects/AppointmentUpdateWithoutUserInput.schema';
|
||||
export * from './objects/AppointmentUncheckedUpdateWithoutUserInput.schema';
|
||||
export * from './objects/AppointmentUncheckedUpdateManyWithoutAppointmentsInput.schema';
|
||||
export * from './objects/AppointmentCreateManyPatientInput.schema';
|
||||
export * from './objects/AppointmentUpdateWithoutPatientInput.schema';
|
||||
export * from './objects/AppointmentUncheckedUpdateWithoutPatientInput.schema';
|
||||
export * from './objects/UserCountAggregateInput.schema';
|
||||
export * from './objects/UserAvgAggregateInput.schema';
|
||||
export * from './objects/UserSumAggregateInput.schema';
|
||||
export * from './objects/UserMinAggregateInput.schema';
|
||||
export * from './objects/UserMaxAggregateInput.schema';
|
||||
export * from './objects/PatientCountAggregateInput.schema';
|
||||
export * from './objects/PatientAvgAggregateInput.schema';
|
||||
export * from './objects/PatientSumAggregateInput.schema';
|
||||
export * from './objects/PatientMinAggregateInput.schema';
|
||||
export * from './objects/PatientMaxAggregateInput.schema';
|
||||
export * from './objects/AppointmentCountAggregateInput.schema';
|
||||
export * from './objects/AppointmentAvgAggregateInput.schema';
|
||||
export * from './objects/AppointmentSumAggregateInput.schema';
|
||||
export * from './objects/AppointmentMinAggregateInput.schema';
|
||||
export * from './objects/AppointmentMaxAggregateInput.schema';
|
||||
export * from './findUniqueUser.schema';
|
||||
export * from './findFirstUser.schema';
|
||||
export * from './findManyUser.schema';
|
||||
export * from './createOneUser.schema';
|
||||
export * from './createManyUser.schema';
|
||||
export * from './deleteOneUser.schema';
|
||||
export * from './deleteManyUser.schema';
|
||||
export * from './updateOneUser.schema';
|
||||
export * from './updateManyUser.schema';
|
||||
export * from './upsertOneUser.schema';
|
||||
export * from './aggregateUser.schema';
|
||||
export * from './groupByUser.schema';
|
||||
export * from './findUniquePatient.schema';
|
||||
export * from './findFirstPatient.schema';
|
||||
export * from './findManyPatient.schema';
|
||||
export * from './createOnePatient.schema';
|
||||
export * from './createManyPatient.schema';
|
||||
export * from './deleteOnePatient.schema';
|
||||
export * from './deleteManyPatient.schema';
|
||||
export * from './updateOnePatient.schema';
|
||||
export * from './updateManyPatient.schema';
|
||||
export * from './upsertOnePatient.schema';
|
||||
export * from './aggregatePatient.schema';
|
||||
export * from './groupByPatient.schema';
|
||||
export * from './findUniqueAppointment.schema';
|
||||
export * from './findFirstAppointment.schema';
|
||||
export * from './findManyAppointment.schema';
|
||||
export * from './createOneAppointment.schema';
|
||||
export * from './createManyAppointment.schema';
|
||||
export * from './deleteOneAppointment.schema';
|
||||
export * from './deleteManyAppointment.schema';
|
||||
export * from './updateOneAppointment.schema';
|
||||
export * from './updateManyAppointment.schema';
|
||||
export * from './upsertOneAppointment.schema';
|
||||
export * from './aggregateAppointment.schema';
|
||||
export * from './groupByAppointment.schema';
|
||||
@@ -0,0 +1,13 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentAvgAggregateInputType> = z
|
||||
.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentAvgAggregateInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,14 @@
|
||||
import { z } from 'zod';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentAvgOrderByAggregateInput> = z
|
||||
.object({
|
||||
id: z.lazy(() => SortOrderSchema).optional(),
|
||||
patientId: z.lazy(() => SortOrderSchema).optional(),
|
||||
userId: z.lazy(() => SortOrderSchema).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentAvgOrderByAggregateInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,22 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentCountAggregateInputType> = z
|
||||
.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional(),
|
||||
title: z.literal(true).optional(),
|
||||
date: z.literal(true).optional(),
|
||||
startTime: z.literal(true).optional(),
|
||||
endTime: z.literal(true).optional(),
|
||||
type: z.literal(true).optional(),
|
||||
notes: z.literal(true).optional(),
|
||||
status: z.literal(true).optional(),
|
||||
createdAt: z.literal(true).optional(),
|
||||
_all: z.literal(true).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentCountAggregateInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,22 @@
|
||||
import { z } from 'zod';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentCountOrderByAggregateInput> = z
|
||||
.object({
|
||||
id: z.lazy(() => SortOrderSchema).optional(),
|
||||
patientId: z.lazy(() => SortOrderSchema).optional(),
|
||||
userId: z.lazy(() => SortOrderSchema).optional(),
|
||||
title: z.lazy(() => SortOrderSchema).optional(),
|
||||
date: z.lazy(() => SortOrderSchema).optional(),
|
||||
startTime: z.lazy(() => SortOrderSchema).optional(),
|
||||
endTime: z.lazy(() => SortOrderSchema).optional(),
|
||||
type: z.lazy(() => SortOrderSchema).optional(),
|
||||
notes: z.lazy(() => SortOrderSchema).optional(),
|
||||
status: z.lazy(() => SortOrderSchema).optional(),
|
||||
createdAt: z.lazy(() => SortOrderSchema).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentCountOrderByAggregateInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,24 @@
|
||||
import { z } from 'zod';
|
||||
import { PatientCreateNestedOneWithoutAppointmentsInputObjectSchema } from './PatientCreateNestedOneWithoutAppointmentsInput.schema';
|
||||
import { UserCreateNestedOneWithoutAppointmentsInputObjectSchema } from './UserCreateNestedOneWithoutAppointmentsInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentCreateInput> = z
|
||||
.object({
|
||||
title: z.string(),
|
||||
date: z.coerce.date(),
|
||||
startTime: z.coerce.date(),
|
||||
endTime: z.coerce.date(),
|
||||
type: z.string(),
|
||||
notes: z.string().optional().nullable(),
|
||||
status: z.string().optional(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
patient: z.lazy(
|
||||
() => PatientCreateNestedOneWithoutAppointmentsInputObjectSchema,
|
||||
),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutAppointmentsInputObjectSchema),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentCreateInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,21 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentCreateManyInput> = z
|
||||
.object({
|
||||
id: z.number().optional(),
|
||||
patientId: z.number(),
|
||||
userId: z.number(),
|
||||
title: z.string(),
|
||||
date: z.coerce.date(),
|
||||
startTime: z.coerce.date(),
|
||||
endTime: z.coerce.date(),
|
||||
type: z.string(),
|
||||
notes: z.string().optional().nullable(),
|
||||
status: z.string().optional(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentCreateManyInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,20 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentCreateManyPatientInput> = z
|
||||
.object({
|
||||
id: z.number().optional(),
|
||||
userId: z.number(),
|
||||
title: z.string(),
|
||||
date: z.coerce.date(),
|
||||
startTime: z.coerce.date(),
|
||||
endTime: z.coerce.date(),
|
||||
type: z.string(),
|
||||
notes: z.string().optional().nullable(),
|
||||
status: z.string().optional(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentCreateManyPatientInputObjectSchema = Schema;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentCreateManyPatientInputObjectSchema } from './AppointmentCreateManyPatientInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentCreateManyPatientInputEnvelope> = z
|
||||
.object({
|
||||
data: z.union([
|
||||
z.lazy(() => AppointmentCreateManyPatientInputObjectSchema),
|
||||
z.lazy(() => AppointmentCreateManyPatientInputObjectSchema).array(),
|
||||
]),
|
||||
skipDuplicates: z.boolean().optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentCreateManyPatientInputEnvelopeObjectSchema = Schema;
|
||||
@@ -0,0 +1,20 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentCreateManyUserInput> = z
|
||||
.object({
|
||||
id: z.number().optional(),
|
||||
patientId: z.number(),
|
||||
title: z.string(),
|
||||
date: z.coerce.date(),
|
||||
startTime: z.coerce.date(),
|
||||
endTime: z.coerce.date(),
|
||||
type: z.string(),
|
||||
notes: z.string().optional().nullable(),
|
||||
status: z.string().optional(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentCreateManyUserInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,16 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentCreateManyUserInputObjectSchema } from './AppointmentCreateManyUserInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentCreateManyUserInputEnvelope> = z
|
||||
.object({
|
||||
data: z.union([
|
||||
z.lazy(() => AppointmentCreateManyUserInputObjectSchema),
|
||||
z.lazy(() => AppointmentCreateManyUserInputObjectSchema).array(),
|
||||
]),
|
||||
skipDuplicates: z.boolean().optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentCreateManyUserInputEnvelopeObjectSchema = Schema;
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentCreateWithoutPatientInputObjectSchema } from './AppointmentCreateWithoutPatientInput.schema';
|
||||
import { AppointmentUncheckedCreateWithoutPatientInputObjectSchema } from './AppointmentUncheckedCreateWithoutPatientInput.schema';
|
||||
import { AppointmentCreateOrConnectWithoutPatientInputObjectSchema } from './AppointmentCreateOrConnectWithoutPatientInput.schema';
|
||||
import { AppointmentCreateManyPatientInputEnvelopeObjectSchema } from './AppointmentCreateManyPatientInputEnvelope.schema';
|
||||
import { AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentCreateNestedManyWithoutPatientInput> =
|
||||
z
|
||||
.object({
|
||||
create: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentCreateWithoutPatientInputObjectSchema),
|
||||
z
|
||||
.lazy(() => AppointmentCreateWithoutPatientInputObjectSchema)
|
||||
.array(),
|
||||
z.lazy(
|
||||
() => AppointmentUncheckedCreateWithoutPatientInputObjectSchema,
|
||||
),
|
||||
z
|
||||
.lazy(
|
||||
() => AppointmentUncheckedCreateWithoutPatientInputObjectSchema,
|
||||
)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
connectOrCreate: z
|
||||
.union([
|
||||
z.lazy(
|
||||
() => AppointmentCreateOrConnectWithoutPatientInputObjectSchema,
|
||||
),
|
||||
z
|
||||
.lazy(
|
||||
() => AppointmentCreateOrConnectWithoutPatientInputObjectSchema,
|
||||
)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
createMany: z
|
||||
.lazy(() => AppointmentCreateManyPatientInputEnvelopeObjectSchema)
|
||||
.optional(),
|
||||
connect: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema).array(),
|
||||
])
|
||||
.optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentCreateNestedManyWithoutPatientInputObjectSchema =
|
||||
Schema;
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentCreateWithoutUserInputObjectSchema } from './AppointmentCreateWithoutUserInput.schema';
|
||||
import { AppointmentUncheckedCreateWithoutUserInputObjectSchema } from './AppointmentUncheckedCreateWithoutUserInput.schema';
|
||||
import { AppointmentCreateOrConnectWithoutUserInputObjectSchema } from './AppointmentCreateOrConnectWithoutUserInput.schema';
|
||||
import { AppointmentCreateManyUserInputEnvelopeObjectSchema } from './AppointmentCreateManyUserInputEnvelope.schema';
|
||||
import { AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentCreateNestedManyWithoutUserInput> = z
|
||||
.object({
|
||||
create: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentCreateWithoutUserInputObjectSchema),
|
||||
z.lazy(() => AppointmentCreateWithoutUserInputObjectSchema).array(),
|
||||
z.lazy(() => AppointmentUncheckedCreateWithoutUserInputObjectSchema),
|
||||
z
|
||||
.lazy(() => AppointmentUncheckedCreateWithoutUserInputObjectSchema)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
connectOrCreate: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentCreateOrConnectWithoutUserInputObjectSchema),
|
||||
z
|
||||
.lazy(() => AppointmentCreateOrConnectWithoutUserInputObjectSchema)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
createMany: z
|
||||
.lazy(() => AppointmentCreateManyUserInputEnvelopeObjectSchema)
|
||||
.optional(),
|
||||
connect: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema).array(),
|
||||
])
|
||||
.optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentCreateNestedManyWithoutUserInputObjectSchema = Schema;
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
|
||||
import { AppointmentCreateWithoutPatientInputObjectSchema } from './AppointmentCreateWithoutPatientInput.schema';
|
||||
import { AppointmentUncheckedCreateWithoutPatientInputObjectSchema } from './AppointmentUncheckedCreateWithoutPatientInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentCreateOrConnectWithoutPatientInput> =
|
||||
z
|
||||
.object({
|
||||
where: z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
|
||||
create: z.union([
|
||||
z.lazy(() => AppointmentCreateWithoutPatientInputObjectSchema),
|
||||
z.lazy(() => AppointmentUncheckedCreateWithoutPatientInputObjectSchema),
|
||||
]),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentCreateOrConnectWithoutPatientInputObjectSchema = Schema;
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
|
||||
import { AppointmentCreateWithoutUserInputObjectSchema } from './AppointmentCreateWithoutUserInput.schema';
|
||||
import { AppointmentUncheckedCreateWithoutUserInputObjectSchema } from './AppointmentUncheckedCreateWithoutUserInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentCreateOrConnectWithoutUserInput> = z
|
||||
.object({
|
||||
where: z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
|
||||
create: z.union([
|
||||
z.lazy(() => AppointmentCreateWithoutUserInputObjectSchema),
|
||||
z.lazy(() => AppointmentUncheckedCreateWithoutUserInputObjectSchema),
|
||||
]),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentCreateOrConnectWithoutUserInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,20 @@
|
||||
import { z } from 'zod';
|
||||
import { UserCreateNestedOneWithoutAppointmentsInputObjectSchema } from './UserCreateNestedOneWithoutAppointmentsInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentCreateWithoutPatientInput> = z
|
||||
.object({
|
||||
title: z.string(),
|
||||
date: z.coerce.date(),
|
||||
startTime: z.coerce.date(),
|
||||
endTime: z.coerce.date(),
|
||||
type: z.string(),
|
||||
notes: z.string().optional().nullable(),
|
||||
status: z.string().optional(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
user: z.lazy(() => UserCreateNestedOneWithoutAppointmentsInputObjectSchema),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentCreateWithoutPatientInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,22 @@
|
||||
import { z } from 'zod';
|
||||
import { PatientCreateNestedOneWithoutAppointmentsInputObjectSchema } from './PatientCreateNestedOneWithoutAppointmentsInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentCreateWithoutUserInput> = z
|
||||
.object({
|
||||
title: z.string(),
|
||||
date: z.coerce.date(),
|
||||
startTime: z.coerce.date(),
|
||||
endTime: z.coerce.date(),
|
||||
type: z.string(),
|
||||
notes: z.string().optional().nullable(),
|
||||
status: z.string().optional(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
patient: z.lazy(
|
||||
() => PatientCreateNestedOneWithoutAppointmentsInputObjectSchema,
|
||||
),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentCreateWithoutUserInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,14 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentWhereInputObjectSchema } from './AppointmentWhereInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentListRelationFilter> = z
|
||||
.object({
|
||||
every: z.lazy(() => AppointmentWhereInputObjectSchema).optional(),
|
||||
some: z.lazy(() => AppointmentWhereInputObjectSchema).optional(),
|
||||
none: z.lazy(() => AppointmentWhereInputObjectSchema).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentListRelationFilterObjectSchema = Schema;
|
||||
@@ -0,0 +1,21 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentMaxAggregateInputType> = z
|
||||
.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional(),
|
||||
title: z.literal(true).optional(),
|
||||
date: z.literal(true).optional(),
|
||||
startTime: z.literal(true).optional(),
|
||||
endTime: z.literal(true).optional(),
|
||||
type: z.literal(true).optional(),
|
||||
notes: z.literal(true).optional(),
|
||||
status: z.literal(true).optional(),
|
||||
createdAt: z.literal(true).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentMaxAggregateInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,22 @@
|
||||
import { z } from 'zod';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentMaxOrderByAggregateInput> = z
|
||||
.object({
|
||||
id: z.lazy(() => SortOrderSchema).optional(),
|
||||
patientId: z.lazy(() => SortOrderSchema).optional(),
|
||||
userId: z.lazy(() => SortOrderSchema).optional(),
|
||||
title: z.lazy(() => SortOrderSchema).optional(),
|
||||
date: z.lazy(() => SortOrderSchema).optional(),
|
||||
startTime: z.lazy(() => SortOrderSchema).optional(),
|
||||
endTime: z.lazy(() => SortOrderSchema).optional(),
|
||||
type: z.lazy(() => SortOrderSchema).optional(),
|
||||
notes: z.lazy(() => SortOrderSchema).optional(),
|
||||
status: z.lazy(() => SortOrderSchema).optional(),
|
||||
createdAt: z.lazy(() => SortOrderSchema).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentMaxOrderByAggregateInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,21 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentMinAggregateInputType> = z
|
||||
.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional(),
|
||||
title: z.literal(true).optional(),
|
||||
date: z.literal(true).optional(),
|
||||
startTime: z.literal(true).optional(),
|
||||
endTime: z.literal(true).optional(),
|
||||
type: z.literal(true).optional(),
|
||||
notes: z.literal(true).optional(),
|
||||
status: z.literal(true).optional(),
|
||||
createdAt: z.literal(true).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentMinAggregateInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,22 @@
|
||||
import { z } from 'zod';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentMinOrderByAggregateInput> = z
|
||||
.object({
|
||||
id: z.lazy(() => SortOrderSchema).optional(),
|
||||
patientId: z.lazy(() => SortOrderSchema).optional(),
|
||||
userId: z.lazy(() => SortOrderSchema).optional(),
|
||||
title: z.lazy(() => SortOrderSchema).optional(),
|
||||
date: z.lazy(() => SortOrderSchema).optional(),
|
||||
startTime: z.lazy(() => SortOrderSchema).optional(),
|
||||
endTime: z.lazy(() => SortOrderSchema).optional(),
|
||||
type: z.lazy(() => SortOrderSchema).optional(),
|
||||
notes: z.lazy(() => SortOrderSchema).optional(),
|
||||
status: z.lazy(() => SortOrderSchema).optional(),
|
||||
createdAt: z.lazy(() => SortOrderSchema).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentMinOrderByAggregateInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,12 @@
|
||||
import { z } from 'zod';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentOrderByRelationAggregateInput> = z
|
||||
.object({
|
||||
_count: z.lazy(() => SortOrderSchema).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentOrderByRelationAggregateInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,48 @@
|
||||
import { z } from 'zod';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
import { SortOrderInputObjectSchema } from './SortOrderInput.schema';
|
||||
import { AppointmentCountOrderByAggregateInputObjectSchema } from './AppointmentCountOrderByAggregateInput.schema';
|
||||
import { AppointmentAvgOrderByAggregateInputObjectSchema } from './AppointmentAvgOrderByAggregateInput.schema';
|
||||
import { AppointmentMaxOrderByAggregateInputObjectSchema } from './AppointmentMaxOrderByAggregateInput.schema';
|
||||
import { AppointmentMinOrderByAggregateInputObjectSchema } from './AppointmentMinOrderByAggregateInput.schema';
|
||||
import { AppointmentSumOrderByAggregateInputObjectSchema } from './AppointmentSumOrderByAggregateInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentOrderByWithAggregationInput> = z
|
||||
.object({
|
||||
id: z.lazy(() => SortOrderSchema).optional(),
|
||||
patientId: z.lazy(() => SortOrderSchema).optional(),
|
||||
userId: z.lazy(() => SortOrderSchema).optional(),
|
||||
title: z.lazy(() => SortOrderSchema).optional(),
|
||||
date: z.lazy(() => SortOrderSchema).optional(),
|
||||
startTime: z.lazy(() => SortOrderSchema).optional(),
|
||||
endTime: z.lazy(() => SortOrderSchema).optional(),
|
||||
type: z.lazy(() => SortOrderSchema).optional(),
|
||||
notes: z
|
||||
.union([
|
||||
z.lazy(() => SortOrderSchema),
|
||||
z.lazy(() => SortOrderInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
status: z.lazy(() => SortOrderSchema).optional(),
|
||||
createdAt: z.lazy(() => SortOrderSchema).optional(),
|
||||
_count: z
|
||||
.lazy(() => AppointmentCountOrderByAggregateInputObjectSchema)
|
||||
.optional(),
|
||||
_avg: z
|
||||
.lazy(() => AppointmentAvgOrderByAggregateInputObjectSchema)
|
||||
.optional(),
|
||||
_max: z
|
||||
.lazy(() => AppointmentMaxOrderByAggregateInputObjectSchema)
|
||||
.optional(),
|
||||
_min: z
|
||||
.lazy(() => AppointmentMinOrderByAggregateInputObjectSchema)
|
||||
.optional(),
|
||||
_sum: z
|
||||
.lazy(() => AppointmentSumOrderByAggregateInputObjectSchema)
|
||||
.optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentOrderByWithAggregationInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,34 @@
|
||||
import { z } from 'zod';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
import { SortOrderInputObjectSchema } from './SortOrderInput.schema';
|
||||
import { PatientOrderByWithRelationInputObjectSchema } from './PatientOrderByWithRelationInput.schema';
|
||||
import { UserOrderByWithRelationInputObjectSchema } from './UserOrderByWithRelationInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentOrderByWithRelationInput> = z
|
||||
.object({
|
||||
id: z.lazy(() => SortOrderSchema).optional(),
|
||||
patientId: z.lazy(() => SortOrderSchema).optional(),
|
||||
userId: z.lazy(() => SortOrderSchema).optional(),
|
||||
title: z.lazy(() => SortOrderSchema).optional(),
|
||||
date: z.lazy(() => SortOrderSchema).optional(),
|
||||
startTime: z.lazy(() => SortOrderSchema).optional(),
|
||||
endTime: z.lazy(() => SortOrderSchema).optional(),
|
||||
type: z.lazy(() => SortOrderSchema).optional(),
|
||||
notes: z
|
||||
.union([
|
||||
z.lazy(() => SortOrderSchema),
|
||||
z.lazy(() => SortOrderInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
status: z.lazy(() => SortOrderSchema).optional(),
|
||||
createdAt: z.lazy(() => SortOrderSchema).optional(),
|
||||
patient: z
|
||||
.lazy(() => PatientOrderByWithRelationInputObjectSchema)
|
||||
.optional(),
|
||||
user: z.lazy(() => UserOrderByWithRelationInputObjectSchema).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentOrderByWithRelationInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,62 @@
|
||||
import { z } from 'zod';
|
||||
import { IntFilterObjectSchema } from './IntFilter.schema';
|
||||
import { StringFilterObjectSchema } from './StringFilter.schema';
|
||||
import { DateTimeFilterObjectSchema } from './DateTimeFilter.schema';
|
||||
import { StringNullableFilterObjectSchema } from './StringNullableFilter.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentScalarWhereInput> = z
|
||||
.object({
|
||||
AND: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentScalarWhereInputObjectSchema),
|
||||
z.lazy(() => AppointmentScalarWhereInputObjectSchema).array(),
|
||||
])
|
||||
.optional(),
|
||||
OR: z
|
||||
.lazy(() => AppointmentScalarWhereInputObjectSchema)
|
||||
.array()
|
||||
.optional(),
|
||||
NOT: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentScalarWhereInputObjectSchema),
|
||||
z.lazy(() => AppointmentScalarWhereInputObjectSchema).array(),
|
||||
])
|
||||
.optional(),
|
||||
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number()]).optional(),
|
||||
patientId: z
|
||||
.union([z.lazy(() => IntFilterObjectSchema), z.number()])
|
||||
.optional(),
|
||||
userId: z
|
||||
.union([z.lazy(() => IntFilterObjectSchema), z.number()])
|
||||
.optional(),
|
||||
title: z
|
||||
.union([z.lazy(() => StringFilterObjectSchema), z.string()])
|
||||
.optional(),
|
||||
date: z
|
||||
.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()])
|
||||
.optional(),
|
||||
startTime: z
|
||||
.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()])
|
||||
.optional(),
|
||||
endTime: z
|
||||
.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()])
|
||||
.optional(),
|
||||
type: z
|
||||
.union([z.lazy(() => StringFilterObjectSchema), z.string()])
|
||||
.optional(),
|
||||
notes: z
|
||||
.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()])
|
||||
.optional()
|
||||
.nullable(),
|
||||
status: z
|
||||
.union([z.lazy(() => StringFilterObjectSchema), z.string()])
|
||||
.optional(),
|
||||
createdAt: z
|
||||
.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()])
|
||||
.optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentScalarWhereInputObjectSchema = Schema;
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
import { z } from 'zod';
|
||||
import { IntWithAggregatesFilterObjectSchema } from './IntWithAggregatesFilter.schema';
|
||||
import { StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema';
|
||||
import { DateTimeWithAggregatesFilterObjectSchema } from './DateTimeWithAggregatesFilter.schema';
|
||||
import { StringNullableWithAggregatesFilterObjectSchema } from './StringNullableWithAggregatesFilter.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentScalarWhereWithAggregatesInput> = z
|
||||
.object({
|
||||
AND: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentScalarWhereWithAggregatesInputObjectSchema),
|
||||
z
|
||||
.lazy(() => AppointmentScalarWhereWithAggregatesInputObjectSchema)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
OR: z
|
||||
.lazy(() => AppointmentScalarWhereWithAggregatesInputObjectSchema)
|
||||
.array()
|
||||
.optional(),
|
||||
NOT: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentScalarWhereWithAggregatesInputObjectSchema),
|
||||
z
|
||||
.lazy(() => AppointmentScalarWhereWithAggregatesInputObjectSchema)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
id: z
|
||||
.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number()])
|
||||
.optional(),
|
||||
patientId: z
|
||||
.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number()])
|
||||
.optional(),
|
||||
userId: z
|
||||
.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number()])
|
||||
.optional(),
|
||||
title: z
|
||||
.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()])
|
||||
.optional(),
|
||||
date: z
|
||||
.union([
|
||||
z.lazy(() => DateTimeWithAggregatesFilterObjectSchema),
|
||||
z.coerce.date(),
|
||||
])
|
||||
.optional(),
|
||||
startTime: z
|
||||
.union([
|
||||
z.lazy(() => DateTimeWithAggregatesFilterObjectSchema),
|
||||
z.coerce.date(),
|
||||
])
|
||||
.optional(),
|
||||
endTime: z
|
||||
.union([
|
||||
z.lazy(() => DateTimeWithAggregatesFilterObjectSchema),
|
||||
z.coerce.date(),
|
||||
])
|
||||
.optional(),
|
||||
type: z
|
||||
.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()])
|
||||
.optional(),
|
||||
notes: z
|
||||
.union([
|
||||
z.lazy(() => StringNullableWithAggregatesFilterObjectSchema),
|
||||
z.string(),
|
||||
])
|
||||
.optional()
|
||||
.nullable(),
|
||||
status: z
|
||||
.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()])
|
||||
.optional(),
|
||||
createdAt: z
|
||||
.union([
|
||||
z.lazy(() => DateTimeWithAggregatesFilterObjectSchema),
|
||||
z.coerce.date(),
|
||||
])
|
||||
.optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentScalarWhereWithAggregatesInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,13 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentSumAggregateInputType> = z
|
||||
.object({
|
||||
id: z.literal(true).optional(),
|
||||
patientId: z.literal(true).optional(),
|
||||
userId: z.literal(true).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentSumAggregateInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,14 @@
|
||||
import { z } from 'zod';
|
||||
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentSumOrderByAggregateInput> = z
|
||||
.object({
|
||||
id: z.lazy(() => SortOrderSchema).optional(),
|
||||
patientId: z.lazy(() => SortOrderSchema).optional(),
|
||||
userId: z.lazy(() => SortOrderSchema).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentSumOrderByAggregateInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,21 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentUncheckedCreateInput> = z
|
||||
.object({
|
||||
id: z.number().optional(),
|
||||
patientId: z.number(),
|
||||
userId: z.number(),
|
||||
title: z.string(),
|
||||
date: z.coerce.date(),
|
||||
startTime: z.coerce.date(),
|
||||
endTime: z.coerce.date(),
|
||||
type: z.string(),
|
||||
notes: z.string().optional().nullable(),
|
||||
status: z.string().optional(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentUncheckedCreateInputObjectSchema = Schema;
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentCreateWithoutPatientInputObjectSchema } from './AppointmentCreateWithoutPatientInput.schema';
|
||||
import { AppointmentUncheckedCreateWithoutPatientInputObjectSchema } from './AppointmentUncheckedCreateWithoutPatientInput.schema';
|
||||
import { AppointmentCreateOrConnectWithoutPatientInputObjectSchema } from './AppointmentCreateOrConnectWithoutPatientInput.schema';
|
||||
import { AppointmentCreateManyPatientInputEnvelopeObjectSchema } from './AppointmentCreateManyPatientInputEnvelope.schema';
|
||||
import { AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentUncheckedCreateNestedManyWithoutPatientInput> =
|
||||
z
|
||||
.object({
|
||||
create: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentCreateWithoutPatientInputObjectSchema),
|
||||
z
|
||||
.lazy(() => AppointmentCreateWithoutPatientInputObjectSchema)
|
||||
.array(),
|
||||
z.lazy(
|
||||
() => AppointmentUncheckedCreateWithoutPatientInputObjectSchema,
|
||||
),
|
||||
z
|
||||
.lazy(
|
||||
() => AppointmentUncheckedCreateWithoutPatientInputObjectSchema,
|
||||
)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
connectOrCreate: z
|
||||
.union([
|
||||
z.lazy(
|
||||
() => AppointmentCreateOrConnectWithoutPatientInputObjectSchema,
|
||||
),
|
||||
z
|
||||
.lazy(
|
||||
() => AppointmentCreateOrConnectWithoutPatientInputObjectSchema,
|
||||
)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
createMany: z
|
||||
.lazy(() => AppointmentCreateManyPatientInputEnvelopeObjectSchema)
|
||||
.optional(),
|
||||
connect: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema).array(),
|
||||
])
|
||||
.optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentUncheckedCreateNestedManyWithoutPatientInputObjectSchema =
|
||||
Schema;
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentCreateWithoutUserInputObjectSchema } from './AppointmentCreateWithoutUserInput.schema';
|
||||
import { AppointmentUncheckedCreateWithoutUserInputObjectSchema } from './AppointmentUncheckedCreateWithoutUserInput.schema';
|
||||
import { AppointmentCreateOrConnectWithoutUserInputObjectSchema } from './AppointmentCreateOrConnectWithoutUserInput.schema';
|
||||
import { AppointmentCreateManyUserInputEnvelopeObjectSchema } from './AppointmentCreateManyUserInputEnvelope.schema';
|
||||
import { AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentUncheckedCreateNestedManyWithoutUserInput> =
|
||||
z
|
||||
.object({
|
||||
create: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentCreateWithoutUserInputObjectSchema),
|
||||
z.lazy(() => AppointmentCreateWithoutUserInputObjectSchema).array(),
|
||||
z.lazy(() => AppointmentUncheckedCreateWithoutUserInputObjectSchema),
|
||||
z
|
||||
.lazy(() => AppointmentUncheckedCreateWithoutUserInputObjectSchema)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
connectOrCreate: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentCreateOrConnectWithoutUserInputObjectSchema),
|
||||
z
|
||||
.lazy(() => AppointmentCreateOrConnectWithoutUserInputObjectSchema)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
createMany: z
|
||||
.lazy(() => AppointmentCreateManyUserInputEnvelopeObjectSchema)
|
||||
.optional(),
|
||||
connect: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema).array(),
|
||||
])
|
||||
.optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentUncheckedCreateNestedManyWithoutUserInputObjectSchema =
|
||||
Schema;
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentUncheckedCreateWithoutPatientInput> =
|
||||
z
|
||||
.object({
|
||||
id: z.number().optional(),
|
||||
userId: z.number(),
|
||||
title: z.string(),
|
||||
date: z.coerce.date(),
|
||||
startTime: z.coerce.date(),
|
||||
endTime: z.coerce.date(),
|
||||
type: z.string(),
|
||||
notes: z.string().optional().nullable(),
|
||||
status: z.string().optional(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentUncheckedCreateWithoutPatientInputObjectSchema = Schema;
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentUncheckedCreateWithoutUserInput> = z
|
||||
.object({
|
||||
id: z.number().optional(),
|
||||
patientId: z.number(),
|
||||
title: z.string(),
|
||||
date: z.coerce.date(),
|
||||
startTime: z.coerce.date(),
|
||||
endTime: z.coerce.date(),
|
||||
type: z.string(),
|
||||
notes: z.string().optional().nullable(),
|
||||
status: z.string().optional(),
|
||||
createdAt: z.coerce.date().optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentUncheckedCreateWithoutUserInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,81 @@
|
||||
import { z } from 'zod';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
|
||||
import { NullableStringFieldUpdateOperationsInputObjectSchema } from './NullableStringFieldUpdateOperationsInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentUncheckedUpdateInput> = z
|
||||
.object({
|
||||
id: z
|
||||
.union([
|
||||
z.number(),
|
||||
z.lazy(() => IntFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
patientId: z
|
||||
.union([
|
||||
z.number(),
|
||||
z.lazy(() => IntFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
userId: z
|
||||
.union([
|
||||
z.number(),
|
||||
z.lazy(() => IntFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
title: z
|
||||
.union([
|
||||
z.string(),
|
||||
z.lazy(() => StringFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
date: z
|
||||
.union([
|
||||
z.coerce.date(),
|
||||
z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
startTime: z
|
||||
.union([
|
||||
z.coerce.date(),
|
||||
z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
endTime: z
|
||||
.union([
|
||||
z.coerce.date(),
|
||||
z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
type: z
|
||||
.union([
|
||||
z.string(),
|
||||
z.lazy(() => StringFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
notes: z
|
||||
.union([
|
||||
z.string(),
|
||||
z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional()
|
||||
.nullable(),
|
||||
status: z
|
||||
.union([
|
||||
z.string(),
|
||||
z.lazy(() => StringFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
createdAt: z
|
||||
.union([
|
||||
z.coerce.date(),
|
||||
z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentUncheckedUpdateInputObjectSchema = Schema;
|
||||
@@ -0,0 +1,81 @@
|
||||
import { z } from 'zod';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
|
||||
import { NullableStringFieldUpdateOperationsInputObjectSchema } from './NullableStringFieldUpdateOperationsInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentUncheckedUpdateManyInput> = z
|
||||
.object({
|
||||
id: z
|
||||
.union([
|
||||
z.number(),
|
||||
z.lazy(() => IntFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
patientId: z
|
||||
.union([
|
||||
z.number(),
|
||||
z.lazy(() => IntFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
userId: z
|
||||
.union([
|
||||
z.number(),
|
||||
z.lazy(() => IntFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
title: z
|
||||
.union([
|
||||
z.string(),
|
||||
z.lazy(() => StringFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
date: z
|
||||
.union([
|
||||
z.coerce.date(),
|
||||
z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
startTime: z
|
||||
.union([
|
||||
z.coerce.date(),
|
||||
z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
endTime: z
|
||||
.union([
|
||||
z.coerce.date(),
|
||||
z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
type: z
|
||||
.union([
|
||||
z.string(),
|
||||
z.lazy(() => StringFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
notes: z
|
||||
.union([
|
||||
z.string(),
|
||||
z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional()
|
||||
.nullable(),
|
||||
status: z
|
||||
.union([
|
||||
z.string(),
|
||||
z.lazy(() => StringFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
createdAt: z
|
||||
.union([
|
||||
z.coerce.date(),
|
||||
z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentUncheckedUpdateManyInputObjectSchema = Schema;
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
import { z } from 'zod';
|
||||
import { IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
|
||||
import { StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
|
||||
import { DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
|
||||
import { NullableStringFieldUpdateOperationsInputObjectSchema } from './NullableStringFieldUpdateOperationsInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentUncheckedUpdateManyWithoutAppointmentsInput> =
|
||||
z
|
||||
.object({
|
||||
id: z
|
||||
.union([
|
||||
z.number(),
|
||||
z.lazy(() => IntFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
patientId: z
|
||||
.union([
|
||||
z.number(),
|
||||
z.lazy(() => IntFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
title: z
|
||||
.union([
|
||||
z.string(),
|
||||
z.lazy(() => StringFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
date: z
|
||||
.union([
|
||||
z.coerce.date(),
|
||||
z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
startTime: z
|
||||
.union([
|
||||
z.coerce.date(),
|
||||
z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
endTime: z
|
||||
.union([
|
||||
z.coerce.date(),
|
||||
z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
type: z
|
||||
.union([
|
||||
z.string(),
|
||||
z.lazy(() => StringFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
notes: z
|
||||
.union([
|
||||
z.string(),
|
||||
z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional()
|
||||
.nullable(),
|
||||
status: z
|
||||
.union([
|
||||
z.string(),
|
||||
z.lazy(() => StringFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
createdAt: z
|
||||
.union([
|
||||
z.coerce.date(),
|
||||
z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema),
|
||||
])
|
||||
.optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentUncheckedUpdateManyWithoutAppointmentsInputObjectSchema =
|
||||
Schema;
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
import { z } from 'zod';
|
||||
import { AppointmentCreateWithoutPatientInputObjectSchema } from './AppointmentCreateWithoutPatientInput.schema';
|
||||
import { AppointmentUncheckedCreateWithoutPatientInputObjectSchema } from './AppointmentUncheckedCreateWithoutPatientInput.schema';
|
||||
import { AppointmentCreateOrConnectWithoutPatientInputObjectSchema } from './AppointmentCreateOrConnectWithoutPatientInput.schema';
|
||||
import { AppointmentUpsertWithWhereUniqueWithoutPatientInputObjectSchema } from './AppointmentUpsertWithWhereUniqueWithoutPatientInput.schema';
|
||||
import { AppointmentCreateManyPatientInputEnvelopeObjectSchema } from './AppointmentCreateManyPatientInputEnvelope.schema';
|
||||
import { AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
|
||||
import { AppointmentUpdateWithWhereUniqueWithoutPatientInputObjectSchema } from './AppointmentUpdateWithWhereUniqueWithoutPatientInput.schema';
|
||||
import { AppointmentUpdateManyWithWhereWithoutPatientInputObjectSchema } from './AppointmentUpdateManyWithWhereWithoutPatientInput.schema';
|
||||
import { AppointmentScalarWhereInputObjectSchema } from './AppointmentScalarWhereInput.schema';
|
||||
|
||||
import type { Prisma } from '../../../generated/prisma';
|
||||
|
||||
const Schema: z.ZodType<Prisma.AppointmentUncheckedUpdateManyWithoutPatientNestedInput> =
|
||||
z
|
||||
.object({
|
||||
create: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentCreateWithoutPatientInputObjectSchema),
|
||||
z
|
||||
.lazy(() => AppointmentCreateWithoutPatientInputObjectSchema)
|
||||
.array(),
|
||||
z.lazy(
|
||||
() => AppointmentUncheckedCreateWithoutPatientInputObjectSchema,
|
||||
),
|
||||
z
|
||||
.lazy(
|
||||
() => AppointmentUncheckedCreateWithoutPatientInputObjectSchema,
|
||||
)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
connectOrCreate: z
|
||||
.union([
|
||||
z.lazy(
|
||||
() => AppointmentCreateOrConnectWithoutPatientInputObjectSchema,
|
||||
),
|
||||
z
|
||||
.lazy(
|
||||
() => AppointmentCreateOrConnectWithoutPatientInputObjectSchema,
|
||||
)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
upsert: z
|
||||
.union([
|
||||
z.lazy(
|
||||
() =>
|
||||
AppointmentUpsertWithWhereUniqueWithoutPatientInputObjectSchema,
|
||||
),
|
||||
z
|
||||
.lazy(
|
||||
() =>
|
||||
AppointmentUpsertWithWhereUniqueWithoutPatientInputObjectSchema,
|
||||
)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
createMany: z
|
||||
.lazy(() => AppointmentCreateManyPatientInputEnvelopeObjectSchema)
|
||||
.optional(),
|
||||
set: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema).array(),
|
||||
])
|
||||
.optional(),
|
||||
disconnect: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema).array(),
|
||||
])
|
||||
.optional(),
|
||||
delete: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema).array(),
|
||||
])
|
||||
.optional(),
|
||||
connect: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
|
||||
z.lazy(() => AppointmentWhereUniqueInputObjectSchema).array(),
|
||||
])
|
||||
.optional(),
|
||||
update: z
|
||||
.union([
|
||||
z.lazy(
|
||||
() =>
|
||||
AppointmentUpdateWithWhereUniqueWithoutPatientInputObjectSchema,
|
||||
),
|
||||
z
|
||||
.lazy(
|
||||
() =>
|
||||
AppointmentUpdateWithWhereUniqueWithoutPatientInputObjectSchema,
|
||||
)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
updateMany: z
|
||||
.union([
|
||||
z.lazy(
|
||||
() => AppointmentUpdateManyWithWhereWithoutPatientInputObjectSchema,
|
||||
),
|
||||
z
|
||||
.lazy(
|
||||
() =>
|
||||
AppointmentUpdateManyWithWhereWithoutPatientInputObjectSchema,
|
||||
)
|
||||
.array(),
|
||||
])
|
||||
.optional(),
|
||||
deleteMany: z
|
||||
.union([
|
||||
z.lazy(() => AppointmentScalarWhereInputObjectSchema),
|
||||
z.lazy(() => AppointmentScalarWhereInputObjectSchema).array(),
|
||||
])
|
||||
.optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const AppointmentUncheckedUpdateManyWithoutPatientNestedInputObjectSchema =
|
||||
Schema;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user