initial commit
This commit is contained in:
1
packages/db/.env
Normal file
1
packages/db/.env
Normal file
@@ -0,0 +1 @@
|
||||
DATABASE_URL=postgresql://postgres:mypassword@localhost:5432/dentalapp
|
||||
0
packages/db/docs/migration-case-fresh-baseline.md
Executable file
0
packages/db/docs/migration-case-fresh-baseline.md
Executable file
160
packages/db/docs/migration.md
Executable file
160
packages/db/docs/migration.md
Executable file
@@ -0,0 +1,160 @@
|
||||
# 🦷 DentalApp Database Restore Guide
|
||||
|
||||
This document explains how to **restore the DentalApp PostgreSQL database** on a new PC using the latest backup file from the main PC.
|
||||
|
||||
---
|
||||
|
||||
## 🧩 Overview
|
||||
|
||||
You will:
|
||||
|
||||
1. Create a PostgreSQL backup on the **main PC**
|
||||
2. Copy it to the **target PC**
|
||||
3. Restore it cleanly using `pg_restore`
|
||||
|
||||
---
|
||||
|
||||
## ⚙️ Prerequisites
|
||||
|
||||
Before starting:
|
||||
|
||||
- PostgreSQL is installed on both machines (same major version recommended)
|
||||
- The app is **not running** during restore
|
||||
- You know the database credentials
|
||||
_(from `.env` or environment variables)_
|
||||
|
||||
Example:
|
||||
|
||||
```bash
|
||||
DATABASE_URL=postgresql://postgres:mypassword@localhost:5432/dentalapp
|
||||
```
|
||||
|
||||
## 🧭 Steps to Restore Database on Another PC
|
||||
|
||||
### 🖥️ Step 1 — Create Backup on Main PC
|
||||
|
||||
- Generate the backup.dump file from the backup page from the app.
|
||||
|
||||
### Step 2 — Copy Backup File to Target PC
|
||||
|
||||
- Transfer the backup file to the second PC using USB, network share, cloud, or SCP.
|
||||
|
||||
= Example destination path:
|
||||
C:\db_backups\backup.dump
|
||||
|
||||
### 🧹 Step 3 — Prepare the Target PC
|
||||
|
||||
- Stop the DentalApp application to avoid database locks.
|
||||
- Ensure PostgreSQL is installed and running.
|
||||
|
||||
- (Optional but recommended) Drop the existing database:
|
||||
|
||||
```
|
||||
PGPASSWORD='mypassword' dropdb -U postgres -h localhost dentalapp
|
||||
```
|
||||
|
||||
### ♻️ Step 4 — Restore the Database
|
||||
|
||||
# Case1: when we got a zip folder.
|
||||
|
||||
-linux bash
|
||||
|
||||
# 4.1) unzip to a directory
|
||||
|
||||
```
|
||||
unzip backup.zip -d /tmp/dental_dump_dir
|
||||
```
|
||||
|
||||
# 4.2) restore into an already-created DB named 'dentalapp'
|
||||
|
||||
```
|
||||
PGPASSWORD='mypassword' createdb -U postgres -h localhost -O postgres dentalapp # optional
|
||||
PGPASSWORD='mypassword' pg_restore -U postgres -h localhost -d dentalapp -j 4 /tmp/dental_dump_dir
|
||||
|
||||
or
|
||||
PGPASSWORD='mypassword' /usr/lib/postgresql/17/bin/pg_restore -v -U postgres -h localhost -C -d postgres /tmp/dental_dump_dir
|
||||
```
|
||||
|
||||
# Case2: when we got a tar folder.
|
||||
|
||||
-linux bash
|
||||
|
||||
# 4.1) unzip to a directory
|
||||
|
||||
```
|
||||
# create target dir and extract
|
||||
mkdir -p /tmp/dental_dump_dir
|
||||
tar -xzf backup.tar.gz -C /tmp/dental_dump_dir
|
||||
```
|
||||
|
||||
# 4.2) restore into an already-created DB named 'dentalapp'
|
||||
|
||||
```
|
||||
PGPASSWORD='mypassword' createdb -U postgres -h localhost -O postgres dentalapp # optional
|
||||
PGPASSWORD='mypassword' pg_restore -U postgres -h localhost -d dentalapp -j 4 /tmp/dental_dump_dir
|
||||
|
||||
or
|
||||
PGPASSWORD='mypassword' /usr/lib/postgresql/17/bin/pg_restore -v -U postgres -h localhost -C -d postgres /tmp/dental_dump_dir
|
||||
```
|
||||
|
||||
### ✅ Step 5 — Verify the Restore
|
||||
|
||||
- Check that the tables are restored successfully:
|
||||
|
||||
```
|
||||
PGPASSWORD='mypassword' psql -U postgres -h localhost -d dentalapp -c "\dt"
|
||||
```
|
||||
|
||||
- You should see all the application tables listed.
|
||||
|
||||
### 🧩 Step 6 — Update App Configuration
|
||||
|
||||
- Ensure the .env file on the target PC points to the correct database:
|
||||
|
||||
```
|
||||
DATABASE_URL=postgresql://postgres:mypassword@localhost:5432/dentalapp
|
||||
```
|
||||
|
||||
- Then start the DentalApp application and verify that it connects and displays data correctly.
|
||||
|
||||
# 🧠 Step 7 — Tips
|
||||
|
||||
- IMP: Use the same PostgreSQL version as the main PC. - currently more than v17.
|
||||
|
||||
- For large databases, use parallel restore for speed:
|
||||
|
||||
```
|
||||
pg_restore -U postgres -j 4 -d dentalapp backup.dump
|
||||
```
|
||||
|
||||
- Always keep at least one recent backup archived safely.
|
||||
|
||||
# If such error came:
|
||||
|
||||
- pg_restore: error: unsupported version (1.16) in file header
|
||||
|
||||
- use cmd:
|
||||
|
||||
- 1. Add PGDG (official PostgreSQL) APT repo and its key, then update and install client-17
|
||||
|
||||
```
|
||||
sudo apt update && sudo apt install -y wget ca-certificates gnupg lsb-release
|
||||
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor -o /usr/share/keyrings/pgdg.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/pgdg.gpg] http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
|
||||
sudo apt update
|
||||
sudo apt install -y postgresql-client-17
|
||||
```
|
||||
|
||||
- 2. Run pg_restore from the installed v17 binary (replace password as needed)
|
||||
|
||||
```
|
||||
PGPASSWORD='mypassword' /usr/lib/postgresql/17/bin/pg_restore -v -U postgres -h localhost -C -d postgres ./backup.dump
|
||||
```
|
||||
|
||||
|
||||
# If error comes while creating normal db with password:
|
||||
|
||||
- then, give the postgres user its password.
|
||||
```
|
||||
sudo -u postgres psql -c "ALTER ROLE postgres WITH PASSWORD 'mypassword';"
|
||||
```
|
||||
67
packages/db/generated/prisma/browser-esm.js
Normal file
67
packages/db/generated/prisma/browser-esm.js
Normal file
@@ -0,0 +1,67 @@
|
||||
// ESM wrapper for browser environment
|
||||
// This file re-exports the browser-safe parts of Prisma
|
||||
|
||||
const Prisma = {
|
||||
prismaVersion: {
|
||||
client: "7.4.1",
|
||||
engine: "55ae170b1ced7fc6ed07a15f110549408c501bb3",
|
||||
},
|
||||
Decimal: class Decimal {
|
||||
constructor(value) {
|
||||
this.value = value;
|
||||
}
|
||||
toFixed = (digits, roundingMode) =>
|
||||
Number(this.value).toFixed(digits, roundingMode);
|
||||
toString = () => String(this.value);
|
||||
toJSON = () => Number(this.value);
|
||||
},
|
||||
DecimalJsLike: {
|
||||
d: [],
|
||||
e: 0,
|
||||
s: 1,
|
||||
},
|
||||
DbNull: Symbol.for("DbNull"),
|
||||
JsonNull: Symbol.for("JsonNull"),
|
||||
AnyNull: Symbol.for("AnyNull"),
|
||||
NullTypes: {},
|
||||
SortOrder: { asc: "asc", desc: "desc" },
|
||||
QueryMode: { default: "default", insensitive: "insensitive" },
|
||||
NullsOrder: { first: "first", last: "last" },
|
||||
ModelName: {
|
||||
User: "User",
|
||||
Patient: "Patient",
|
||||
Appointment: "Appointment",
|
||||
Staff: "Staff",
|
||||
NpiProvider: "NpiProvider",
|
||||
AppointmentProcedure: "AppointmentProcedure",
|
||||
Claim: "Claim",
|
||||
ServiceLine: "ServiceLine",
|
||||
ClaimFile: "ClaimFile",
|
||||
InsuranceCredential: "InsuranceCredential",
|
||||
PdfGroup: "PdfGroup",
|
||||
PdfFile: "PdfFile",
|
||||
Payment: "Payment",
|
||||
ServiceLineTransaction: "ServiceLineTransaction",
|
||||
DatabaseBackup: "DatabaseBackup",
|
||||
BackupDestination: "BackupDestination",
|
||||
Notification: "Notification",
|
||||
CloudFolder: "CloudFolder",
|
||||
CloudFile: "CloudFile",
|
||||
CloudFileChunk: "CloudFileChunk",
|
||||
Communication: "Communication",
|
||||
PatientDocument: "PatientDocument",
|
||||
},
|
||||
TransactionIsolationLevel: {
|
||||
ReadUncommitted: "ReadUncommitted",
|
||||
ReadCommitted: "ReadCommitted",
|
||||
RepeatableRead: "RepeatableRead",
|
||||
Serializable: "Serializable",
|
||||
},
|
||||
validator: (
|
||||
() => (x) =>
|
||||
x
|
||||
)(),
|
||||
};
|
||||
|
||||
export { Prisma };
|
||||
export default Prisma;
|
||||
1
packages/db/generated/prisma/client.d.ts
vendored
Normal file
1
packages/db/generated/prisma/client.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./index"
|
||||
5
packages/db/generated/prisma/client.js
Normal file
5
packages/db/generated/prisma/client.js
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
module.exports = { ...require('.') }
|
||||
1
packages/db/generated/prisma/default.d.ts
vendored
Normal file
1
packages/db/generated/prisma/default.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./index"
|
||||
5
packages/db/generated/prisma/default.js
Normal file
5
packages/db/generated/prisma/default.js
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
module.exports = { ...require('#main-entry-point') }
|
||||
1
packages/db/generated/prisma/edge.d.ts
vendored
Normal file
1
packages/db/generated/prisma/edge.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./default"
|
||||
519
packages/db/generated/prisma/edge.js
Normal file
519
packages/db/generated/prisma/edge.js
Normal file
File diff suppressed because one or more lines are too long
545
packages/db/generated/prisma/index-browser.js
Normal file
545
packages/db/generated/prisma/index-browser.js
Normal file
@@ -0,0 +1,545 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
|
||||
const {
|
||||
Decimal,
|
||||
DbNull,
|
||||
JsonNull,
|
||||
AnyNull,
|
||||
NullTypes,
|
||||
makeStrictEnum,
|
||||
Public,
|
||||
getRuntime,
|
||||
skip
|
||||
} = require('./runtime/index-browser.js')
|
||||
|
||||
|
||||
const Prisma = {}
|
||||
|
||||
exports.Prisma = Prisma
|
||||
exports.$Enums = {}
|
||||
|
||||
/**
|
||||
* Prisma Client JS version: 7.4.1
|
||||
* Query Engine version: 55ae170b1ced7fc6ed07a15f110549408c501bb3
|
||||
*/
|
||||
Prisma.prismaVersion = {
|
||||
client: "7.4.1",
|
||||
engine: "55ae170b1ced7fc6ed07a15f110549408c501bb3"
|
||||
}
|
||||
|
||||
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 = DbNull
|
||||
Prisma.JsonNull = JsonNull
|
||||
Prisma.AnyNull = AnyNull
|
||||
|
||||
Prisma.NullTypes = NullTypes
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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',
|
||||
staffId: 'staffId',
|
||||
title: 'title',
|
||||
date: 'date',
|
||||
startTime: 'startTime',
|
||||
endTime: 'endTime',
|
||||
type: 'type',
|
||||
notes: 'notes',
|
||||
procedureCodeNotes: 'procedureCodeNotes',
|
||||
status: 'status',
|
||||
createdAt: 'createdAt',
|
||||
eligibilityStatus: 'eligibilityStatus'
|
||||
};
|
||||
|
||||
exports.Prisma.StaffScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
name: 'name',
|
||||
email: 'email',
|
||||
role: 'role',
|
||||
phone: 'phone',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.NpiProviderScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
npiNumber: 'npiNumber',
|
||||
providerName: 'providerName',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.AppointmentProcedureScalarFieldEnum = {
|
||||
id: 'id',
|
||||
appointmentId: 'appointmentId',
|
||||
patientId: 'patientId',
|
||||
procedureCode: 'procedureCode',
|
||||
procedureLabel: 'procedureLabel',
|
||||
fee: 'fee',
|
||||
category: 'category',
|
||||
toothNumber: 'toothNumber',
|
||||
toothSurface: 'toothSurface',
|
||||
oralCavityArea: 'oralCavityArea',
|
||||
source: 'source',
|
||||
comboKey: 'comboKey',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.ClaimScalarFieldEnum = {
|
||||
id: 'id',
|
||||
patientId: 'patientId',
|
||||
appointmentId: 'appointmentId',
|
||||
userId: 'userId',
|
||||
staffId: 'staffId',
|
||||
patientName: 'patientName',
|
||||
memberId: 'memberId',
|
||||
dateOfBirth: 'dateOfBirth',
|
||||
remarks: 'remarks',
|
||||
missingTeethStatus: 'missingTeethStatus',
|
||||
missingTeeth: 'missingTeeth',
|
||||
serviceDate: 'serviceDate',
|
||||
insuranceProvider: 'insuranceProvider',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
status: 'status',
|
||||
claimNumber: 'claimNumber'
|
||||
};
|
||||
|
||||
exports.Prisma.ServiceLineScalarFieldEnum = {
|
||||
id: 'id',
|
||||
claimId: 'claimId',
|
||||
paymentId: 'paymentId',
|
||||
procedureCode: 'procedureCode',
|
||||
procedureDate: 'procedureDate',
|
||||
quad: 'quad',
|
||||
arch: 'arch',
|
||||
toothNumber: 'toothNumber',
|
||||
toothSurface: 'toothSurface',
|
||||
totalBilled: 'totalBilled',
|
||||
totalPaid: 'totalPaid',
|
||||
totalAdjusted: 'totalAdjusted',
|
||||
totalDue: 'totalDue',
|
||||
status: 'status'
|
||||
};
|
||||
|
||||
exports.Prisma.ClaimFileScalarFieldEnum = {
|
||||
id: 'id',
|
||||
claimId: 'claimId',
|
||||
filename: 'filename',
|
||||
mimeType: 'mimeType'
|
||||
};
|
||||
|
||||
exports.Prisma.InsuranceCredentialScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
siteKey: 'siteKey',
|
||||
username: 'username',
|
||||
password: 'password'
|
||||
};
|
||||
|
||||
exports.Prisma.PdfGroupScalarFieldEnum = {
|
||||
id: 'id',
|
||||
title: 'title',
|
||||
titleKey: 'titleKey',
|
||||
createdAt: 'createdAt',
|
||||
patientId: 'patientId'
|
||||
};
|
||||
|
||||
exports.Prisma.PdfFileScalarFieldEnum = {
|
||||
id: 'id',
|
||||
filename: 'filename',
|
||||
pdfData: 'pdfData',
|
||||
uploadedAt: 'uploadedAt',
|
||||
groupId: 'groupId'
|
||||
};
|
||||
|
||||
exports.Prisma.PaymentScalarFieldEnum = {
|
||||
id: 'id',
|
||||
claimId: 'claimId',
|
||||
patientId: 'patientId',
|
||||
userId: 'userId',
|
||||
updatedById: 'updatedById',
|
||||
totalBilled: 'totalBilled',
|
||||
totalPaid: 'totalPaid',
|
||||
totalAdjusted: 'totalAdjusted',
|
||||
totalDue: 'totalDue',
|
||||
status: 'status',
|
||||
notes: 'notes',
|
||||
icn: 'icn',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
};
|
||||
|
||||
exports.Prisma.ServiceLineTransactionScalarFieldEnum = {
|
||||
id: 'id',
|
||||
paymentId: 'paymentId',
|
||||
serviceLineId: 'serviceLineId',
|
||||
transactionId: 'transactionId',
|
||||
paidAmount: 'paidAmount',
|
||||
adjustedAmount: 'adjustedAmount',
|
||||
method: 'method',
|
||||
receivedDate: 'receivedDate',
|
||||
payerName: 'payerName',
|
||||
notes: 'notes',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.DatabaseBackupScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.BackupDestinationScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
path: 'path',
|
||||
isActive: 'isActive',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.NotificationScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
type: 'type',
|
||||
message: 'message',
|
||||
createdAt: 'createdAt',
|
||||
read: 'read'
|
||||
};
|
||||
|
||||
exports.Prisma.CloudFolderScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
name: 'name',
|
||||
parentId: 'parentId',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
};
|
||||
|
||||
exports.Prisma.CloudFileScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
name: 'name',
|
||||
mimeType: 'mimeType',
|
||||
fileSize: 'fileSize',
|
||||
folderId: 'folderId',
|
||||
isComplete: 'isComplete',
|
||||
totalChunks: 'totalChunks',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
};
|
||||
|
||||
exports.Prisma.CloudFileChunkScalarFieldEnum = {
|
||||
id: 'id',
|
||||
fileId: 'fileId',
|
||||
seq: 'seq',
|
||||
data: 'data',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.CommunicationScalarFieldEnum = {
|
||||
id: 'id',
|
||||
patientId: 'patientId',
|
||||
userId: 'userId',
|
||||
channel: 'channel',
|
||||
direction: 'direction',
|
||||
status: 'status',
|
||||
body: 'body',
|
||||
callDuration: 'callDuration',
|
||||
twilioSid: 'twilioSid',
|
||||
createdAt: 'createdAt'
|
||||
};
|
||||
|
||||
exports.Prisma.PatientDocumentScalarFieldEnum = {
|
||||
id: 'id',
|
||||
patientId: 'patientId',
|
||||
filename: 'filename',
|
||||
originalName: 'originalName',
|
||||
mimeType: 'mimeType',
|
||||
fileSize: 'fileSize',
|
||||
filePath: 'filePath',
|
||||
uploadedAt: 'uploadedAt',
|
||||
updatedAt: 'updatedAt'
|
||||
};
|
||||
|
||||
exports.Prisma.SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
};
|
||||
|
||||
exports.Prisma.NullableJsonNullValueInput = {
|
||||
DbNull: Prisma.DbNull,
|
||||
JsonNull: Prisma.JsonNull
|
||||
};
|
||||
|
||||
exports.Prisma.QueryMode = {
|
||||
default: 'default',
|
||||
insensitive: 'insensitive'
|
||||
};
|
||||
|
||||
exports.Prisma.NullsOrder = {
|
||||
first: 'first',
|
||||
last: 'last'
|
||||
};
|
||||
|
||||
exports.Prisma.JsonNullValueFilter = {
|
||||
DbNull: Prisma.DbNull,
|
||||
JsonNull: Prisma.JsonNull,
|
||||
AnyNull: Prisma.AnyNull
|
||||
};
|
||||
exports.PatientStatus = exports.$Enums.PatientStatus = {
|
||||
ACTIVE: 'ACTIVE',
|
||||
INACTIVE: 'INACTIVE',
|
||||
UNKNOWN: 'UNKNOWN'
|
||||
};
|
||||
|
||||
exports.ProcedureSource = exports.$Enums.ProcedureSource = {
|
||||
COMBO: 'COMBO',
|
||||
MANUAL: 'MANUAL'
|
||||
};
|
||||
|
||||
exports.MissingTeethStatus = exports.$Enums.MissingTeethStatus = {
|
||||
No_missing: 'No_missing',
|
||||
endentulous: 'endentulous',
|
||||
Yes_missing: 'Yes_missing'
|
||||
};
|
||||
|
||||
exports.ClaimStatus = exports.$Enums.ClaimStatus = {
|
||||
PENDING: 'PENDING',
|
||||
APPROVED: 'APPROVED',
|
||||
CANCELLED: 'CANCELLED',
|
||||
REVIEW: 'REVIEW',
|
||||
VOID: 'VOID'
|
||||
};
|
||||
|
||||
exports.ServiceLineStatus = exports.$Enums.ServiceLineStatus = {
|
||||
PENDING: 'PENDING',
|
||||
PARTIALLY_PAID: 'PARTIALLY_PAID',
|
||||
PAID: 'PAID',
|
||||
UNPAID: 'UNPAID',
|
||||
ADJUSTED: 'ADJUSTED',
|
||||
OVERPAID: 'OVERPAID',
|
||||
DENIED: 'DENIED'
|
||||
};
|
||||
|
||||
exports.PdfTitleKey = exports.$Enums.PdfTitleKey = {
|
||||
INSURANCE_CLAIM: 'INSURANCE_CLAIM',
|
||||
INSURANCE_CLAIM_PREAUTH: 'INSURANCE_CLAIM_PREAUTH',
|
||||
ELIGIBILITY_STATUS: 'ELIGIBILITY_STATUS',
|
||||
CLAIM_STATUS: 'CLAIM_STATUS',
|
||||
OTHER: 'OTHER'
|
||||
};
|
||||
|
||||
exports.PaymentStatus = exports.$Enums.PaymentStatus = {
|
||||
PENDING: 'PENDING',
|
||||
PARTIALLY_PAID: 'PARTIALLY_PAID',
|
||||
PAID: 'PAID',
|
||||
OVERPAID: 'OVERPAID',
|
||||
DENIED: 'DENIED',
|
||||
VOID: 'VOID'
|
||||
};
|
||||
|
||||
exports.PaymentMethod = exports.$Enums.PaymentMethod = {
|
||||
EFT: 'EFT',
|
||||
CHECK: 'CHECK',
|
||||
CASH: 'CASH',
|
||||
CARD: 'CARD',
|
||||
OTHER: 'OTHER'
|
||||
};
|
||||
|
||||
exports.NotificationTypes = exports.$Enums.NotificationTypes = {
|
||||
BACKUP: 'BACKUP',
|
||||
CLAIM: 'CLAIM',
|
||||
PAYMENT: 'PAYMENT',
|
||||
ETC: 'ETC'
|
||||
};
|
||||
|
||||
exports.CommunicationChannel = exports.$Enums.CommunicationChannel = {
|
||||
sms: 'sms',
|
||||
voice: 'voice'
|
||||
};
|
||||
|
||||
exports.CommunicationDirection = exports.$Enums.CommunicationDirection = {
|
||||
outbound: 'outbound',
|
||||
inbound: 'inbound'
|
||||
};
|
||||
|
||||
exports.CommunicationStatus = exports.$Enums.CommunicationStatus = {
|
||||
queued: 'queued',
|
||||
sent: 'sent',
|
||||
delivered: 'delivered',
|
||||
failed: 'failed',
|
||||
completed: 'completed',
|
||||
busy: 'busy',
|
||||
no_answer: 'no_answer'
|
||||
};
|
||||
|
||||
exports.Prisma.ModelName = {
|
||||
User: 'User',
|
||||
Patient: 'Patient',
|
||||
Appointment: 'Appointment',
|
||||
Staff: 'Staff',
|
||||
NpiProvider: 'NpiProvider',
|
||||
AppointmentProcedure: 'AppointmentProcedure',
|
||||
Claim: 'Claim',
|
||||
ServiceLine: 'ServiceLine',
|
||||
ClaimFile: 'ClaimFile',
|
||||
InsuranceCredential: 'InsuranceCredential',
|
||||
PdfGroup: 'PdfGroup',
|
||||
PdfFile: 'PdfFile',
|
||||
Payment: 'Payment',
|
||||
ServiceLineTransaction: 'ServiceLineTransaction',
|
||||
DatabaseBackup: 'DatabaseBackup',
|
||||
BackupDestination: 'BackupDestination',
|
||||
Notification: 'Notification',
|
||||
CloudFolder: 'CloudFolder',
|
||||
CloudFile: 'CloudFile',
|
||||
CloudFileChunk: 'CloudFileChunk',
|
||||
Communication: 'Communication',
|
||||
PatientDocument: 'PatientDocument'
|
||||
};
|
||||
|
||||
/**
|
||||
* 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)
|
||||
45562
packages/db/generated/prisma/index.d.ts
vendored
Normal file
45562
packages/db/generated/prisma/index.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
519
packages/db/generated/prisma/index.js
Normal file
519
packages/db/generated/prisma/index.js
Normal file
File diff suppressed because one or more lines are too long
144
packages/db/generated/prisma/package.json
Normal file
144
packages/db/generated/prisma/package.json
Normal file
@@ -0,0 +1,144 @@
|
||||
{
|
||||
"name": "prisma-client-84f25235762dfea7319ce0b6c4ad7d94238d35906c50310bacb4ba6f7e4b8e30",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"browser": "default.js",
|
||||
"exports": {
|
||||
"./client": {
|
||||
"require": {
|
||||
"node": "./index.js",
|
||||
"edge-light": "./edge.js",
|
||||
"workerd": "./edge.js",
|
||||
"worker": "./edge.js",
|
||||
"browser": "./index-browser.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"import": {
|
||||
"node": "./index.js",
|
||||
"edge-light": "./edge.js",
|
||||
"workerd": "./edge.js",
|
||||
"worker": "./edge.js",
|
||||
"browser": "./index-browser.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"default": "./index.js"
|
||||
},
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"require": {
|
||||
"node": "./index.js",
|
||||
"edge-light": "./edge.js",
|
||||
"workerd": "./edge.js",
|
||||
"worker": "./edge.js",
|
||||
"browser": "./index-browser.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"import": {
|
||||
"node": "./index.js",
|
||||
"edge-light": "./edge.js",
|
||||
"workerd": "./edge.js",
|
||||
"worker": "./edge.js",
|
||||
"browser": "./index-browser.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"default": "./index.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"
|
||||
},
|
||||
"./edge": {
|
||||
"types": "./edge.d.ts",
|
||||
"require": "./edge.js",
|
||||
"import": "./edge.js",
|
||||
"default": "./edge.js"
|
||||
},
|
||||
"./runtime/client": {
|
||||
"types": "./runtime/client.d.ts",
|
||||
"node": {
|
||||
"require": "./runtime/client.js",
|
||||
"default": "./runtime/client.js"
|
||||
},
|
||||
"require": "./runtime/client.js",
|
||||
"import": "./runtime/client.mjs",
|
||||
"default": "./runtime/client.mjs"
|
||||
},
|
||||
"./runtime/wasm-compiler-edge": {
|
||||
"types": "./runtime/wasm-compiler-edge.d.ts",
|
||||
"require": "./runtime/wasm-compiler-edge.js",
|
||||
"import": "./runtime/wasm-compiler-edge.mjs",
|
||||
"default": "./runtime/wasm-compiler-edge.mjs"
|
||||
},
|
||||
"./runtime/index-browser": {
|
||||
"types": "./runtime/index-browser.d.ts",
|
||||
"require": "./runtime/index-browser.js",
|
||||
"import": "./runtime/index-browser.mjs",
|
||||
"default": "./runtime/index-browser.mjs"
|
||||
},
|
||||
"./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": "7.4.1",
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@prisma/client-runtime-utils": "7.4.1"
|
||||
},
|
||||
"imports": {
|
||||
"#wasm-compiler-loader": {
|
||||
"edge-light": "./wasm-edge-light-loader.mjs",
|
||||
"workerd": "./wasm-worker-loader.mjs",
|
||||
"worker": "./wasm-worker-loader.mjs",
|
||||
"default": "./wasm-worker-loader.mjs"
|
||||
},
|
||||
"#main-entry-point": {
|
||||
"require": {
|
||||
"node": "./index.js",
|
||||
"edge-light": "./edge.js",
|
||||
"workerd": "./edge.js",
|
||||
"worker": "./edge.js",
|
||||
"browser": "./index-browser.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"import": {
|
||||
"node": "./index.js",
|
||||
"edge-light": "./edge.js",
|
||||
"workerd": "./edge.js",
|
||||
"worker": "./edge.js",
|
||||
"browser": "./index-browser.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"default": "./index.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
2
packages/db/generated/prisma/query_compiler_fast_bg.js
Normal file
2
packages/db/generated/prisma/query_compiler_fast_bg.js
Normal file
@@ -0,0 +1,2 @@
|
||||
"use strict";var h=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var D=(e,t)=>{for(var n in t)h(e,n,{get:t[n],enumerable:!0})},O=(e,t,n,_)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of M(t))!j.call(e,r)&&r!==n&&h(e,r,{get:()=>t[r],enumerable:!(_=T(t,r))||_.enumerable});return e};var B=e=>O(h({},"__esModule",{value:!0}),e);var xe={};D(xe,{QueryCompiler:()=>F,__wbg_Error_e83987f665cf5504:()=>q,__wbg_Number_bb48ca12f395cd08:()=>C,__wbg_String_8f0eb39a4a4c2f66:()=>k,__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68:()=>W,__wbg___wbindgen_debug_string_df47ffb5e35e6763:()=>V,__wbg___wbindgen_in_bb933bd9e1b3bc0f:()=>z,__wbg___wbindgen_is_object_c818261d21f283a4:()=>L,__wbg___wbindgen_is_string_fbb76cb2940daafd:()=>P,__wbg___wbindgen_is_undefined_2d472862bd29a478:()=>Q,__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147:()=>Y,__wbg___wbindgen_number_get_a20bf9b85341449d:()=>G,__wbg___wbindgen_string_get_e4f06c90489ad01b:()=>J,__wbg___wbindgen_throw_b855445ff6a94295:()=>X,__wbg_entries_e171b586f8f6bdbf:()=>H,__wbg_getTime_14776bfb48a1bff9:()=>K,__wbg_get_7bed016f185add81:()=>Z,__wbg_get_with_ref_key_1dc361bd10053bfe:()=>v,__wbg_instanceof_ArrayBuffer_70beb1189ca63b38:()=>ee,__wbg_instanceof_Uint8Array_20c8e73002f7af98:()=>te,__wbg_isSafeInteger_d216eda7911dde36:()=>ne,__wbg_length_69bca3cb64fc8748:()=>re,__wbg_length_cdd215e10d9dd507:()=>_e,__wbg_new_0_f9740686d739025c:()=>oe,__wbg_new_1acc0b6eea89d040:()=>ce,__wbg_new_5a79be3ab53b8aa5:()=>ie,__wbg_new_68651c719dcda04e:()=>se,__wbg_new_e17d9f43105b08be:()=>ue,__wbg_prototypesetcall_2a6620b6922694b2:()=>fe,__wbg_set_3f1d0b984ed272ed:()=>be,__wbg_set_907fb406c34a251d:()=>de,__wbg_set_c213c871859d6500:()=>ae,__wbg_set_message_82ae475bb413aa5c:()=>ge,__wbg_set_wasm:()=>N,__wbindgen_cast_2241b6af4c4b2941:()=>le,__wbindgen_cast_4625c577ab2ec9ee:()=>we,__wbindgen_cast_9ae0607507abb057:()=>pe,__wbindgen_cast_d6cd19b81560fd6e:()=>ye,__wbindgen_init_externref_table:()=>me});module.exports=B(xe);var A=()=>{};A.prototype=A;let o;function N(e){o=e}let p=null;function a(){return(p===null||p.byteLength===0)&&(p=new Uint8Array(o.memory.buffer)),p}let y=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});y.decode();const U=2146435072;let S=0;function R(e,t){return S+=t,S>=U&&(y=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),y.decode(),S=t),y.decode(a().subarray(e,e+t))}function m(e,t){return e=e>>>0,R(e,t)}let f=0;const g=new TextEncoder;"encodeInto"in g||(g.encodeInto=function(e,t){const n=g.encode(e);return t.set(n),{read:e.length,written:n.length}});function l(e,t,n){if(n===void 0){const i=g.encode(e),d=t(i.length,1)>>>0;return a().subarray(d,d+i.length).set(i),f=i.length,d}let _=e.length,r=t(_,1)>>>0;const s=a();let c=0;for(;c<_;c++){const i=e.charCodeAt(c);if(i>127)break;s[r+c]=i}if(c!==_){c!==0&&(e=e.slice(c)),r=n(r,_,_=c+e.length*3,1)>>>0;const i=a().subarray(r+c,r+_),d=g.encodeInto(e,i);c+=d.written,r=n(r,_,c,1)>>>0}return f=c,r}let b=null;function u(){return(b===null||b.buffer.detached===!0||b.buffer.detached===void 0&&b.buffer!==o.memory.buffer)&&(b=new DataView(o.memory.buffer)),b}function x(e){return e==null}function I(e){const t=typeof e;if(t=="number"||t=="boolean"||e==null)return`${e}`;if(t=="string")return`"${e}"`;if(t=="symbol"){const r=e.description;return r==null?"Symbol":`Symbol(${r})`}if(t=="function"){const r=e.name;return typeof r=="string"&&r.length>0?`Function(${r})`:"Function"}if(Array.isArray(e)){const r=e.length;let s="[";r>0&&(s+=I(e[0]));for(let c=1;c<r;c++)s+=", "+I(e[c]);return s+="]",s}const n=/\[object ([^\]]+)\]/.exec(toString.call(e));let _;if(n&&n.length>1)_=n[1];else return toString.call(e);if(_=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
|
||||
${e.stack}`:_}function $(e,t){return e=e>>>0,a().subarray(e/1,e/1+t)}function w(e){const t=o.__wbindgen_externrefs.get(e);return o.__externref_table_dealloc(e),t}const E=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>o.__wbg_querycompiler_free(e>>>0,1));class F{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),t}free(){const t=this.__destroy_into_raw();o.__wbg_querycompiler_free(t,0)}compileBatch(t){const n=l(t,o.__wbindgen_malloc,o.__wbindgen_realloc),_=f,r=o.querycompiler_compileBatch(this.__wbg_ptr,n,_);if(r[2])throw w(r[1]);return w(r[0])}constructor(t){const n=o.querycompiler_new(t);if(n[2])throw w(n[1]);return this.__wbg_ptr=n[0]>>>0,E.register(this,this.__wbg_ptr,this),this}compile(t){const n=l(t,o.__wbindgen_malloc,o.__wbindgen_realloc),_=f,r=o.querycompiler_compile(this.__wbg_ptr,n,_);if(r[2])throw w(r[1]);return w(r[0])}}Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);function q(e,t){return Error(m(e,t))}function C(e){return Number(e)}function k(e,t){const n=String(t),_=l(n,o.__wbindgen_malloc,o.__wbindgen_realloc),r=f;u().setInt32(e+4*1,r,!0),u().setInt32(e+4*0,_,!0)}function W(e){const t=e,n=typeof t=="boolean"?t:void 0;return x(n)?16777215:n?1:0}function V(e,t){const n=I(t),_=l(n,o.__wbindgen_malloc,o.__wbindgen_realloc),r=f;u().setInt32(e+4*1,r,!0),u().setInt32(e+4*0,_,!0)}function z(e,t){return e in t}function L(e){const t=e;return typeof t=="object"&&t!==null}function P(e){return typeof e=="string"}function Q(e){return e===void 0}function Y(e,t){return e==t}function G(e,t){const n=t,_=typeof n=="number"?n:void 0;u().setFloat64(e+8*1,x(_)?0:_,!0),u().setInt32(e+4*0,!x(_),!0)}function J(e,t){const n=t,_=typeof n=="string"?n:void 0;var r=x(_)?0:l(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=f;u().setInt32(e+4*1,s,!0),u().setInt32(e+4*0,r,!0)}function X(e,t){throw new Error(m(e,t))}function H(e){return Object.entries(e)}function K(e){return e.getTime()}function Z(e,t){return e[t>>>0]}function v(e,t){return e[t]}function ee(e){let t;try{t=e instanceof ArrayBuffer}catch{t=!1}return t}function te(e){let t;try{t=e instanceof Uint8Array}catch{t=!1}return t}function ne(e){return Number.isSafeInteger(e)}function re(e){return e.length}function _e(e){return e.length}function oe(){return new Date}function ce(){return new Object}function ie(e){return new Uint8Array(e)}function se(){return new Map}function ue(){return new Array}function fe(e,t,n){Uint8Array.prototype.set.call($(e,t),n)}function be(e,t,n){e[t]=n}function de(e,t,n){return e.set(t,n)}function ae(e,t,n){e[t>>>0]=n}function ge(e,t){global.PRISMA_WASM_PANIC_REGISTRY.set_message(m(e,t))}function le(e,t){return m(e,t)}function we(e){return BigInt.asUintN(64,e)}function pe(e){return e}function ye(e){return e}function me(){const e=o.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}0&&(module.exports={QueryCompiler,__wbg_Error_e83987f665cf5504,__wbg_Number_bb48ca12f395cd08,__wbg_String_8f0eb39a4a4c2f66,__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68,__wbg___wbindgen_debug_string_df47ffb5e35e6763,__wbg___wbindgen_in_bb933bd9e1b3bc0f,__wbg___wbindgen_is_object_c818261d21f283a4,__wbg___wbindgen_is_string_fbb76cb2940daafd,__wbg___wbindgen_is_undefined_2d472862bd29a478,__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147,__wbg___wbindgen_number_get_a20bf9b85341449d,__wbg___wbindgen_string_get_e4f06c90489ad01b,__wbg___wbindgen_throw_b855445ff6a94295,__wbg_entries_e171b586f8f6bdbf,__wbg_getTime_14776bfb48a1bff9,__wbg_get_7bed016f185add81,__wbg_get_with_ref_key_1dc361bd10053bfe,__wbg_instanceof_ArrayBuffer_70beb1189ca63b38,__wbg_instanceof_Uint8Array_20c8e73002f7af98,__wbg_isSafeInteger_d216eda7911dde36,__wbg_length_69bca3cb64fc8748,__wbg_length_cdd215e10d9dd507,__wbg_new_0_f9740686d739025c,__wbg_new_1acc0b6eea89d040,__wbg_new_5a79be3ab53b8aa5,__wbg_new_68651c719dcda04e,__wbg_new_e17d9f43105b08be,__wbg_prototypesetcall_2a6620b6922694b2,__wbg_set_3f1d0b984ed272ed,__wbg_set_907fb406c34a251d,__wbg_set_c213c871859d6500,__wbg_set_message_82ae475bb413aa5c,__wbg_set_wasm,__wbindgen_cast_2241b6af4c4b2941,__wbindgen_cast_4625c577ab2ec9ee,__wbindgen_cast_9ae0607507abb057,__wbindgen_cast_d6cd19b81560fd6e,__wbindgen_init_externref_table});
|
||||
BIN
packages/db/generated/prisma/query_compiler_fast_bg.wasm
Executable file
BIN
packages/db/generated/prisma/query_compiler_fast_bg.wasm
Executable file
Binary file not shown.
File diff suppressed because one or more lines are too long
3330
packages/db/generated/prisma/runtime/client.d.ts
vendored
Normal file
3330
packages/db/generated/prisma/runtime/client.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
86
packages/db/generated/prisma/runtime/client.js
Executable file
86
packages/db/generated/prisma/runtime/client.js
Executable file
File diff suppressed because one or more lines are too long
87
packages/db/generated/prisma/runtime/index-browser.d.ts
vendored
Normal file
87
packages/db/generated/prisma/runtime/index-browser.d.ts
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
import { AnyNull } from '@prisma/client-runtime-utils';
|
||||
import { DbNull } from '@prisma/client-runtime-utils';
|
||||
import { Decimal } from '@prisma/client-runtime-utils';
|
||||
import { isAnyNull } from '@prisma/client-runtime-utils';
|
||||
import { isDbNull } from '@prisma/client-runtime-utils';
|
||||
import { isJsonNull } from '@prisma/client-runtime-utils';
|
||||
import { JsonNull } from '@prisma/client-runtime-utils';
|
||||
import { NullTypes } from '@prisma/client-runtime-utils';
|
||||
|
||||
export { AnyNull }
|
||||
|
||||
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;
|
||||
|
||||
export { DbNull }
|
||||
|
||||
export { Decimal }
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
export { isAnyNull }
|
||||
|
||||
export { isDbNull }
|
||||
|
||||
export { isJsonNull }
|
||||
|
||||
export { JsonNull }
|
||||
|
||||
/**
|
||||
* 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 | [];
|
||||
|
||||
export { NullTypes }
|
||||
|
||||
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 { }
|
||||
6
packages/db/generated/prisma/runtime/index-browser.js
Executable file
6
packages/db/generated/prisma/runtime/index-browser.js
Executable file
@@ -0,0 +1,6 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
"use strict";var s=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var a=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})},y=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of p(t))!f.call(e,i)&&i!==n&&s(e,i,{get:()=>t[i],enumerable:!(r=g(t,i))||r.enumerable});return e};var x=e=>y(s({},"__esModule",{value:!0}),e);var O={};a(O,{AnyNull:()=>o.AnyNull,DbNull:()=>o.DbNull,Decimal:()=>m.Decimal,JsonNull:()=>o.JsonNull,NullTypes:()=>o.NullTypes,Public:()=>l,getRuntime:()=>c,isAnyNull:()=>o.isAnyNull,isDbNull:()=>o.isDbNull,isJsonNull:()=>o.isJsonNull,makeStrictEnum:()=>u});module.exports=x(O);var l={};a(l,{validator:()=>d});function d(...e){return t=>t}var b=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function u(e){return new Proxy(e,{get(t,n){if(n in t)return t[n];if(!b.has(n))throw new TypeError("Invalid enum value: ".concat(String(n)))}})}var N=()=>{var e,t;return((t=(e=globalThis.process)==null?void 0:e.release)==null?void 0:t.name)==="node"},S=()=>{var e,t;return!!globalThis.Bun||!!((t=(e=globalThis.process)==null?void 0:e.versions)!=null&&t.bun)},E=()=>!!globalThis.Deno,R=()=>typeof globalThis.Netlify=="object",h=()=>typeof globalThis.EdgeRuntime=="object",C=()=>{var e;return((e=globalThis.navigator)==null?void 0:e.userAgent)==="Cloudflare-Workers"};function k(){var n;return(n=[[R,"netlify"],[h,"edge-light"],[C,"workerd"],[E,"deno"],[S,"bun"],[N,"node"]].flatMap(r=>r[0]()?[r[1]]:[]).at(0))!=null?n:""}var M={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function c(){let e=k();return{id:e,prettyName:M[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}var o=require("@prisma/client-runtime-utils"),m=require("@prisma/client-runtime-utils");0&&(module.exports={AnyNull,DbNull,Decimal,JsonNull,NullTypes,Public,getRuntime,isAnyNull,isDbNull,isJsonNull,makeStrictEnum});
|
||||
//# sourceMappingURL=index-browser.js.map
|
||||
76
packages/db/generated/prisma/runtime/wasm-compiler-edge.js
Executable file
76
packages/db/generated/prisma/runtime/wasm-compiler-edge.js
Executable file
File diff suppressed because one or more lines are too long
505
packages/db/generated/prisma/schema.prisma
Executable file
505
packages/db/generated/prisma/schema.prisma
Executable file
@@ -0,0 +1,505 @@
|
||||
// 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"
|
||||
}
|
||||
|
||||
model User {
|
||||
id Int @id @default(autoincrement())
|
||||
username String @unique
|
||||
password String
|
||||
patients Patient[]
|
||||
appointments Appointment[]
|
||||
staff Staff[]
|
||||
npiProviders NpiProvider[]
|
||||
claims Claim[]
|
||||
insuranceCredentials InsuranceCredential[]
|
||||
updatedPayments Payment[] @relation("PaymentUpdatedBy")
|
||||
backups DatabaseBackup[]
|
||||
backupDestinations BackupDestination[]
|
||||
notifications Notification[]
|
||||
cloudFolders CloudFolder[]
|
||||
cloudFiles CloudFile[]
|
||||
communications Communication[]
|
||||
}
|
||||
|
||||
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 PatientStatus @default(UNKNOWN)
|
||||
userId Int
|
||||
createdAt DateTime @default(now())
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
appointments Appointment[]
|
||||
procedures AppointmentProcedure[]
|
||||
claims Claim[]
|
||||
groups PdfGroup[]
|
||||
payment Payment[]
|
||||
communications Communication[]
|
||||
documents PatientDocument[]
|
||||
|
||||
@@index([insuranceId])
|
||||
@@index([createdAt])
|
||||
}
|
||||
|
||||
enum PatientStatus {
|
||||
ACTIVE
|
||||
INACTIVE
|
||||
UNKNOWN
|
||||
}
|
||||
|
||||
model Appointment {
|
||||
id Int @id @default(autoincrement())
|
||||
patientId Int
|
||||
userId Int
|
||||
staffId Int
|
||||
title String
|
||||
date DateTime @db.Date
|
||||
startTime String // Store time as "hh:mm"
|
||||
endTime String // Store time as "hh:mm"
|
||||
type String // e.g., "checkup", "cleaning", "filling", etc.
|
||||
notes String?
|
||||
procedureCodeNotes String?
|
||||
status String @default("scheduled") // "scheduled", "completed", "cancelled", "no-show"
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
eligibilityStatus PatientStatus @default(UNKNOWN)
|
||||
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
staff Staff? @relation(fields: [staffId], references: [id])
|
||||
procedures AppointmentProcedure[]
|
||||
claims Claim[]
|
||||
|
||||
@@index([patientId])
|
||||
@@index([date])
|
||||
}
|
||||
|
||||
model Staff {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
name String
|
||||
email String?
|
||||
role String // e.g., "Dentist", "Hygienist", "Assistant"
|
||||
phone String?
|
||||
createdAt DateTime @default(now())
|
||||
user User? @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
appointments Appointment[]
|
||||
claims Claim[] @relation("ClaimStaff")
|
||||
}
|
||||
|
||||
model NpiProvider {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
npiNumber String
|
||||
providerName String
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([userId, npiNumber])
|
||||
@@index([userId])
|
||||
}
|
||||
|
||||
enum ProcedureSource {
|
||||
COMBO
|
||||
MANUAL
|
||||
}
|
||||
|
||||
model AppointmentProcedure {
|
||||
id Int @id @default(autoincrement())
|
||||
appointmentId Int
|
||||
patientId Int
|
||||
|
||||
procedureCode String
|
||||
procedureLabel String?
|
||||
fee Decimal? @db.Decimal(10, 2)
|
||||
|
||||
category String?
|
||||
|
||||
toothNumber String?
|
||||
toothSurface String?
|
||||
oralCavityArea String?
|
||||
|
||||
source ProcedureSource @default(MANUAL)
|
||||
comboKey String?
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
appointment Appointment @relation(fields: [appointmentId], references: [id], onDelete: Cascade)
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([appointmentId])
|
||||
@@index([patientId])
|
||||
}
|
||||
|
||||
model Claim {
|
||||
id Int @id @default(autoincrement())
|
||||
patientId Int
|
||||
appointmentId Int
|
||||
userId Int
|
||||
staffId Int
|
||||
patientName String
|
||||
memberId String
|
||||
dateOfBirth DateTime @db.Date
|
||||
remarks String
|
||||
missingTeethStatus MissingTeethStatus @default(No_missing)
|
||||
missingTeeth Json? // { "T_14": "X", "T_G": "O", ... }
|
||||
serviceDate DateTime
|
||||
insuranceProvider String // e.g., "Delta MA"
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
status ClaimStatus @default(PENDING)
|
||||
claimNumber String?
|
||||
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
appointment Appointment @relation(fields: [appointmentId], references: [id], onDelete: Cascade)
|
||||
user User? @relation(fields: [userId], references: [id])
|
||||
staff Staff? @relation("ClaimStaff", fields: [staffId], references: [id])
|
||||
|
||||
serviceLines ServiceLine[]
|
||||
claimFiles ClaimFile[]
|
||||
payment Payment?
|
||||
}
|
||||
|
||||
enum ClaimStatus {
|
||||
PENDING
|
||||
APPROVED
|
||||
CANCELLED
|
||||
REVIEW
|
||||
VOID
|
||||
}
|
||||
|
||||
enum MissingTeethStatus {
|
||||
No_missing
|
||||
endentulous
|
||||
Yes_missing
|
||||
}
|
||||
|
||||
model ServiceLine {
|
||||
id Int @id @default(autoincrement())
|
||||
claimId Int?
|
||||
paymentId Int?
|
||||
procedureCode String
|
||||
procedureDate DateTime @db.Date
|
||||
quad String?
|
||||
arch String?
|
||||
toothNumber String?
|
||||
toothSurface String?
|
||||
totalBilled Decimal @db.Decimal(10, 2)
|
||||
totalPaid Decimal @default(0.00) @db.Decimal(10, 2)
|
||||
totalAdjusted Decimal @default(0.00) @db.Decimal(10, 2)
|
||||
totalDue Decimal @default(0.00) @db.Decimal(10, 2)
|
||||
status ServiceLineStatus @default(UNPAID)
|
||||
|
||||
claim Claim? @relation(fields: [claimId], references: [id], onDelete: Cascade)
|
||||
payment Payment? @relation(fields: [paymentId], references: [id], onDelete: Cascade)
|
||||
|
||||
serviceLineTransactions ServiceLineTransaction[]
|
||||
}
|
||||
|
||||
enum ServiceLineStatus {
|
||||
PENDING
|
||||
PARTIALLY_PAID
|
||||
PAID
|
||||
UNPAID
|
||||
ADJUSTED
|
||||
OVERPAID
|
||||
DENIED
|
||||
}
|
||||
|
||||
model ClaimFile {
|
||||
id Int @id @default(autoincrement())
|
||||
claimId Int
|
||||
filename String
|
||||
mimeType String
|
||||
|
||||
claim Claim @relation(fields: [claimId], references: [id], onDelete: Cascade)
|
||||
}
|
||||
|
||||
model InsuranceCredential {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
siteKey String
|
||||
username String
|
||||
password String
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([userId, siteKey])
|
||||
@@index([userId])
|
||||
}
|
||||
|
||||
model PdfGroup {
|
||||
id Int @id @default(autoincrement())
|
||||
title String
|
||||
titleKey PdfTitleKey @default(OTHER)
|
||||
createdAt DateTime @default(now())
|
||||
patientId Int
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
pdfs PdfFile[]
|
||||
|
||||
@@index([patientId])
|
||||
@@index([titleKey])
|
||||
}
|
||||
|
||||
model PdfFile {
|
||||
id Int @id @default(autoincrement())
|
||||
filename String
|
||||
pdfData Bytes
|
||||
uploadedAt DateTime @default(now())
|
||||
groupId Int
|
||||
group PdfGroup @relation(fields: [groupId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([groupId])
|
||||
}
|
||||
|
||||
enum PdfTitleKey {
|
||||
INSURANCE_CLAIM
|
||||
INSURANCE_CLAIM_PREAUTH
|
||||
ELIGIBILITY_STATUS
|
||||
CLAIM_STATUS
|
||||
OTHER
|
||||
}
|
||||
|
||||
model Payment {
|
||||
id Int @id @default(autoincrement())
|
||||
claimId Int? @unique
|
||||
patientId Int
|
||||
userId Int
|
||||
updatedById Int?
|
||||
totalBilled Decimal @db.Decimal(10, 2)
|
||||
totalPaid Decimal @default(0.00) @db.Decimal(10, 2)
|
||||
totalAdjusted Decimal @default(0.00) @db.Decimal(10, 2)
|
||||
totalDue Decimal @db.Decimal(10, 2)
|
||||
status PaymentStatus @default(PENDING)
|
||||
notes String?
|
||||
icn String?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
claim Claim? @relation(fields: [claimId], references: [id], onDelete: Cascade)
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
updatedBy User? @relation("PaymentUpdatedBy", fields: [updatedById], references: [id])
|
||||
serviceLineTransactions ServiceLineTransaction[]
|
||||
serviceLines ServiceLine[]
|
||||
|
||||
@@index([claimId])
|
||||
@@index([patientId])
|
||||
@@index([createdAt])
|
||||
}
|
||||
|
||||
model ServiceLineTransaction {
|
||||
id Int @id @default(autoincrement())
|
||||
paymentId Int
|
||||
serviceLineId Int
|
||||
transactionId String?
|
||||
paidAmount Decimal @db.Decimal(10, 2)
|
||||
adjustedAmount Decimal @default(0.00) @db.Decimal(10, 2)
|
||||
method PaymentMethod
|
||||
receivedDate DateTime
|
||||
payerName String?
|
||||
notes String?
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
payment Payment @relation(fields: [paymentId], references: [id], onDelete: Cascade)
|
||||
serviceLine ServiceLine @relation(fields: [serviceLineId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([paymentId])
|
||||
@@index([serviceLineId])
|
||||
}
|
||||
|
||||
enum PaymentStatus {
|
||||
PENDING
|
||||
PARTIALLY_PAID
|
||||
PAID
|
||||
OVERPAID
|
||||
DENIED
|
||||
VOID
|
||||
}
|
||||
|
||||
enum PaymentMethod {
|
||||
EFT
|
||||
CHECK
|
||||
CASH
|
||||
CARD
|
||||
OTHER
|
||||
}
|
||||
|
||||
// Database management page
|
||||
model DatabaseBackup {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([userId])
|
||||
@@index([createdAt])
|
||||
}
|
||||
|
||||
model BackupDestination {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
path String
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
}
|
||||
|
||||
model Notification {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
type NotificationTypes
|
||||
message String
|
||||
createdAt DateTime @default(now())
|
||||
read Boolean @default(false)
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([userId])
|
||||
@@index([createdAt])
|
||||
}
|
||||
|
||||
enum NotificationTypes {
|
||||
BACKUP
|
||||
CLAIM
|
||||
PAYMENT
|
||||
ETC
|
||||
}
|
||||
|
||||
model CloudFolder {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
name String
|
||||
parentId Int?
|
||||
parent CloudFolder? @relation("FolderChildren", fields: [parentId], references: [id], onDelete: Cascade)
|
||||
children CloudFolder[] @relation("FolderChildren")
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
files CloudFile[]
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@unique([userId, parentId, name]) // prevents sibling folder name duplicates
|
||||
@@index([parentId])
|
||||
}
|
||||
|
||||
model CloudFile {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
name String
|
||||
mimeType String?
|
||||
fileSize BigInt @db.BigInt
|
||||
folderId Int? // optional: null => root
|
||||
isComplete Boolean @default(false) // upload completed?
|
||||
totalChunks Int? // optional: expected number of chunks
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
folder CloudFolder? @relation(fields: [folderId], references: [id], onDelete: SetNull)
|
||||
|
||||
chunks CloudFileChunk[]
|
||||
|
||||
@@index([folderId])
|
||||
}
|
||||
|
||||
model CloudFileChunk {
|
||||
id Int @id @default(autoincrement())
|
||||
fileId Int
|
||||
seq Int
|
||||
data Bytes
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
file CloudFile @relation(fields: [fileId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([fileId, seq])
|
||||
@@index([fileId, seq])
|
||||
}
|
||||
|
||||
// patient-connection-
|
||||
enum CommunicationChannel {
|
||||
sms
|
||||
voice
|
||||
}
|
||||
|
||||
enum CommunicationDirection {
|
||||
outbound
|
||||
inbound
|
||||
}
|
||||
|
||||
enum CommunicationStatus {
|
||||
queued
|
||||
sent
|
||||
delivered
|
||||
failed
|
||||
completed
|
||||
busy
|
||||
no_answer
|
||||
}
|
||||
|
||||
model Communication {
|
||||
id Int @id @default(autoincrement())
|
||||
patientId Int
|
||||
userId Int?
|
||||
|
||||
channel CommunicationChannel
|
||||
direction CommunicationDirection
|
||||
status CommunicationStatus
|
||||
|
||||
body String?
|
||||
callDuration Int?
|
||||
twilioSid String?
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
// Relations
|
||||
patient Patient @relation(fields: [patientId], references: [id])
|
||||
user User? @relation(fields: [userId], references: [id])
|
||||
|
||||
@@map("communications")
|
||||
}
|
||||
|
||||
model PatientDocument {
|
||||
id Int @id @default(autoincrement())
|
||||
patientId Int
|
||||
filename String
|
||||
originalName String
|
||||
mimeType String
|
||||
fileSize BigInt
|
||||
filePath String
|
||||
uploadedAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([patientId])
|
||||
@@index([uploadedAt])
|
||||
}
|
||||
5
packages/db/generated/prisma/wasm-edge-light-loader.mjs
Normal file
5
packages/db/generated/prisma/wasm-edge-light-loader.mjs
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
export default import('./query_compiler_fast_bg.wasm?module')
|
||||
5
packages/db/generated/prisma/wasm-worker-loader.mjs
Normal file
5
packages/db/generated/prisma/wasm-worker-loader.mjs
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
export default import('./query_compiler_fast_bg.wasm')
|
||||
48
packages/db/package.json
Executable file
48
packages/db/package.json
Executable file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "@repo/db",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "generated/prisma/index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build": "tsc -p tsconfig.build.json"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"exports": {
|
||||
".": {
|
||||
"browser": "./generated/prisma/browser-esm.js",
|
||||
"default": "./generated/prisma/index.js"
|
||||
},
|
||||
"./client": {
|
||||
"browser": "./generated/prisma/browser-esm.js",
|
||||
"default": "./src/index.js"
|
||||
},
|
||||
"./shared/schemas": "./shared/schemas/index.ts",
|
||||
"./usedSchemas": {
|
||||
"browser": "./usedSchemas/browser.ts",
|
||||
"default": "./usedSchemas/index.ts"
|
||||
},
|
||||
"./types": "./types/index.ts",
|
||||
"./generated/prisma": {
|
||||
"browser": "./generated/prisma/browser-esm.js",
|
||||
"default": "./generated/prisma/index.js"
|
||||
},
|
||||
"./generated/prisma/*": {
|
||||
"browser": "./generated/prisma/browser-esm.js",
|
||||
"default": "./generated/prisma/*"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@prisma/adapter-pg": "^7.0.1",
|
||||
"@prisma/client": "^7.0.0",
|
||||
"prisma-zod-generator": "^2.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.15.17",
|
||||
"prisma": "^7.0.0",
|
||||
"tsx": "^4.19.4",
|
||||
"typescript": "^5.8.2"
|
||||
}
|
||||
}
|
||||
12
packages/db/prisma.config.ts
Executable file
12
packages/db/prisma.config.ts
Executable file
@@ -0,0 +1,12 @@
|
||||
import dotenv from "dotenv";
|
||||
import path from "path";
|
||||
import { defineConfig, env } from "prisma/config";
|
||||
|
||||
dotenv.config({ path: path.resolve(__dirname, ".env") });
|
||||
|
||||
export default defineConfig({
|
||||
schema: "prisma/schema.prisma",
|
||||
datasource: {
|
||||
url: env("DATABASE_URL"),
|
||||
},
|
||||
});
|
||||
1
packages/db/prisma/.env
Executable file
1
packages/db/prisma/.env
Executable file
@@ -0,0 +1 @@
|
||||
DATABASE_URL=postgresql://postgres:mypassword@localhost:5432/dentalapp
|
||||
1
packages/db/prisma/.env.example
Executable file
1
packages/db/prisma/.env.example
Executable file
@@ -0,0 +1 @@
|
||||
DATABASE_URL=postgresql://postgres:mypassword@localhost:5432/dentalapp
|
||||
505
packages/db/prisma/migrations/20260114221729/migration.sql
Executable file
505
packages/db/prisma/migrations/20260114221729/migration.sql
Executable file
@@ -0,0 +1,505 @@
|
||||
-- CreateEnum
|
||||
CREATE TYPE "PatientStatus" AS ENUM ('ACTIVE', 'INACTIVE', 'UNKNOWN');
|
||||
|
||||
-- CreateEnum
|
||||
CREATE TYPE "ProcedureSource" AS ENUM ('COMBO', 'MANUAL');
|
||||
|
||||
-- CreateEnum
|
||||
CREATE TYPE "ClaimStatus" AS ENUM ('PENDING', 'APPROVED', 'CANCELLED', 'REVIEW', 'VOID');
|
||||
|
||||
-- CreateEnum
|
||||
CREATE TYPE "MissingTeethStatus" AS ENUM ('No_missing', 'endentulous', 'Yes_missing');
|
||||
|
||||
-- CreateEnum
|
||||
CREATE TYPE "ServiceLineStatus" AS ENUM ('PENDING', 'PARTIALLY_PAID', 'PAID', 'UNPAID', 'ADJUSTED', 'OVERPAID', 'DENIED');
|
||||
|
||||
-- CreateEnum
|
||||
CREATE TYPE "PdfTitleKey" AS ENUM ('INSURANCE_CLAIM', 'INSURANCE_CLAIM_PREAUTH', 'ELIGIBILITY_STATUS', 'CLAIM_STATUS', 'OTHER');
|
||||
|
||||
-- CreateEnum
|
||||
CREATE TYPE "PaymentStatus" AS ENUM ('PENDING', 'PARTIALLY_PAID', 'PAID', 'OVERPAID', 'DENIED', 'VOID');
|
||||
|
||||
-- CreateEnum
|
||||
CREATE TYPE "PaymentMethod" AS ENUM ('EFT', 'CHECK', 'CASH', 'CARD', 'OTHER');
|
||||
|
||||
-- CreateEnum
|
||||
CREATE TYPE "NotificationTypes" AS ENUM ('BACKUP', 'CLAIM', 'PAYMENT', 'ETC');
|
||||
|
||||
-- CreateEnum
|
||||
CREATE TYPE "CommunicationChannel" AS ENUM ('sms', 'voice');
|
||||
|
||||
-- CreateEnum
|
||||
CREATE TYPE "CommunicationDirection" AS ENUM ('outbound', 'inbound');
|
||||
|
||||
-- CreateEnum
|
||||
CREATE TYPE "CommunicationStatus" AS ENUM ('queued', 'sent', 'delivered', 'failed', 'completed', 'busy', 'no_answer');
|
||||
|
||||
-- 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" "PatientStatus" NOT NULL DEFAULT 'UNKNOWN',
|
||||
"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,
|
||||
"staffId" INTEGER NOT NULL,
|
||||
"title" TEXT NOT NULL,
|
||||
"date" DATE NOT NULL,
|
||||
"startTime" TEXT NOT NULL,
|
||||
"endTime" TEXT NOT NULL,
|
||||
"type" TEXT NOT NULL,
|
||||
"notes" TEXT,
|
||||
"status" TEXT NOT NULL DEFAULT 'scheduled',
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"eligibilityStatus" "PatientStatus" NOT NULL DEFAULT 'UNKNOWN',
|
||||
|
||||
CONSTRAINT "Appointment_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "Staff" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"userId" INTEGER NOT NULL,
|
||||
"name" TEXT NOT NULL,
|
||||
"email" TEXT,
|
||||
"role" TEXT NOT NULL,
|
||||
"phone" TEXT,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "Staff_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "AppointmentProcedure" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"appointmentId" INTEGER NOT NULL,
|
||||
"patientId" INTEGER NOT NULL,
|
||||
"procedureCode" TEXT NOT NULL,
|
||||
"procedureLabel" TEXT,
|
||||
"fee" DECIMAL(10,2),
|
||||
"category" TEXT,
|
||||
"toothNumber" TEXT,
|
||||
"toothSurface" TEXT,
|
||||
"oralCavityArea" TEXT,
|
||||
"source" "ProcedureSource" NOT NULL DEFAULT 'MANUAL',
|
||||
"comboKey" TEXT,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "AppointmentProcedure_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "Claim" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"patientId" INTEGER NOT NULL,
|
||||
"appointmentId" INTEGER NOT NULL,
|
||||
"userId" INTEGER NOT NULL,
|
||||
"staffId" INTEGER NOT NULL,
|
||||
"patientName" TEXT NOT NULL,
|
||||
"memberId" TEXT NOT NULL,
|
||||
"dateOfBirth" DATE NOT NULL,
|
||||
"remarks" TEXT NOT NULL,
|
||||
"missingTeethStatus" "MissingTeethStatus" NOT NULL DEFAULT 'No_missing',
|
||||
"missingTeeth" JSONB,
|
||||
"serviceDate" TIMESTAMP(3) NOT NULL,
|
||||
"insuranceProvider" TEXT NOT NULL,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
"status" "ClaimStatus" NOT NULL DEFAULT 'PENDING',
|
||||
|
||||
CONSTRAINT "Claim_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "ServiceLine" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"claimId" INTEGER,
|
||||
"paymentId" INTEGER,
|
||||
"procedureCode" TEXT NOT NULL,
|
||||
"procedureDate" DATE NOT NULL,
|
||||
"oralCavityArea" TEXT,
|
||||
"toothNumber" TEXT,
|
||||
"toothSurface" TEXT,
|
||||
"totalBilled" DECIMAL(10,2) NOT NULL,
|
||||
"totalPaid" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
||||
"totalAdjusted" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
||||
"totalDue" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
||||
"status" "ServiceLineStatus" NOT NULL DEFAULT 'UNPAID',
|
||||
|
||||
CONSTRAINT "ServiceLine_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "ClaimFile" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"claimId" INTEGER NOT NULL,
|
||||
"filename" TEXT NOT NULL,
|
||||
"mimeType" TEXT NOT NULL,
|
||||
|
||||
CONSTRAINT "ClaimFile_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "InsuranceCredential" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"userId" INTEGER NOT NULL,
|
||||
"siteKey" TEXT NOT NULL,
|
||||
"username" TEXT NOT NULL,
|
||||
"password" TEXT NOT NULL,
|
||||
|
||||
CONSTRAINT "InsuranceCredential_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "PdfGroup" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"title" TEXT NOT NULL,
|
||||
"titleKey" "PdfTitleKey" NOT NULL DEFAULT 'OTHER',
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"patientId" INTEGER NOT NULL,
|
||||
|
||||
CONSTRAINT "PdfGroup_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "PdfFile" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"filename" TEXT NOT NULL,
|
||||
"pdfData" BYTEA NOT NULL,
|
||||
"uploadedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"groupId" INTEGER NOT NULL,
|
||||
|
||||
CONSTRAINT "PdfFile_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "Payment" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"claimId" INTEGER,
|
||||
"patientId" INTEGER NOT NULL,
|
||||
"userId" INTEGER NOT NULL,
|
||||
"updatedById" INTEGER,
|
||||
"totalBilled" DECIMAL(10,2) NOT NULL,
|
||||
"totalPaid" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
||||
"totalAdjusted" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
||||
"totalDue" DECIMAL(10,2) NOT NULL,
|
||||
"status" "PaymentStatus" NOT NULL DEFAULT 'PENDING',
|
||||
"notes" TEXT,
|
||||
"icn" TEXT,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
|
||||
CONSTRAINT "Payment_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "ServiceLineTransaction" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"paymentId" INTEGER NOT NULL,
|
||||
"serviceLineId" INTEGER NOT NULL,
|
||||
"transactionId" TEXT,
|
||||
"paidAmount" DECIMAL(10,2) NOT NULL,
|
||||
"adjustedAmount" DECIMAL(10,2) NOT NULL DEFAULT 0.00,
|
||||
"method" "PaymentMethod" NOT NULL,
|
||||
"receivedDate" TIMESTAMP(3) NOT NULL,
|
||||
"payerName" TEXT,
|
||||
"notes" TEXT,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "ServiceLineTransaction_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "DatabaseBackup" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"userId" INTEGER NOT NULL,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "DatabaseBackup_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "BackupDestination" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"userId" INTEGER NOT NULL,
|
||||
"path" TEXT NOT NULL,
|
||||
"isActive" BOOLEAN NOT NULL DEFAULT true,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "BackupDestination_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "Notification" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"userId" INTEGER NOT NULL,
|
||||
"type" "NotificationTypes" NOT NULL,
|
||||
"message" TEXT NOT NULL,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"read" BOOLEAN NOT NULL DEFAULT false,
|
||||
|
||||
CONSTRAINT "Notification_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "CloudFolder" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"userId" INTEGER NOT NULL,
|
||||
"name" TEXT NOT NULL,
|
||||
"parentId" INTEGER,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
|
||||
CONSTRAINT "CloudFolder_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "CloudFile" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"userId" INTEGER NOT NULL,
|
||||
"name" TEXT NOT NULL,
|
||||
"mimeType" TEXT,
|
||||
"fileSize" BIGINT NOT NULL,
|
||||
"folderId" INTEGER,
|
||||
"isComplete" BOOLEAN NOT NULL DEFAULT false,
|
||||
"totalChunks" INTEGER,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
|
||||
CONSTRAINT "CloudFile_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "CloudFileChunk" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"fileId" INTEGER NOT NULL,
|
||||
"seq" INTEGER NOT NULL,
|
||||
"data" BYTEA NOT NULL,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "CloudFileChunk_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "communications" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"patientId" INTEGER NOT NULL,
|
||||
"userId" INTEGER,
|
||||
"channel" "CommunicationChannel" NOT NULL,
|
||||
"direction" "CommunicationDirection" NOT NULL,
|
||||
"status" "CommunicationStatus" NOT NULL,
|
||||
"body" TEXT,
|
||||
"callDuration" INTEGER,
|
||||
"twilioSid" TEXT,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "communications_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "User_username_key" ON "User"("username");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Patient_insuranceId_idx" ON "Patient"("insuranceId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Patient_createdAt_idx" ON "Patient"("createdAt");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Appointment_patientId_idx" ON "Appointment"("patientId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Appointment_date_idx" ON "Appointment"("date");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "AppointmentProcedure_appointmentId_idx" ON "AppointmentProcedure"("appointmentId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "AppointmentProcedure_patientId_idx" ON "AppointmentProcedure"("patientId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "InsuranceCredential_userId_idx" ON "InsuranceCredential"("userId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "InsuranceCredential_userId_siteKey_key" ON "InsuranceCredential"("userId", "siteKey");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "PdfGroup_patientId_idx" ON "PdfGroup"("patientId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "PdfGroup_titleKey_idx" ON "PdfGroup"("titleKey");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "PdfFile_groupId_idx" ON "PdfFile"("groupId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "Payment_claimId_key" ON "Payment"("claimId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Payment_claimId_idx" ON "Payment"("claimId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Payment_patientId_idx" ON "Payment"("patientId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Payment_createdAt_idx" ON "Payment"("createdAt");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "ServiceLineTransaction_paymentId_idx" ON "ServiceLineTransaction"("paymentId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "ServiceLineTransaction_serviceLineId_idx" ON "ServiceLineTransaction"("serviceLineId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "DatabaseBackup_userId_idx" ON "DatabaseBackup"("userId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "DatabaseBackup_createdAt_idx" ON "DatabaseBackup"("createdAt");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Notification_userId_idx" ON "Notification"("userId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "Notification_createdAt_idx" ON "Notification"("createdAt");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "CloudFolder_parentId_idx" ON "CloudFolder"("parentId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "CloudFolder_userId_parentId_name_key" ON "CloudFolder"("userId", "parentId", "name");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "CloudFile_folderId_idx" ON "CloudFile"("folderId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "CloudFileChunk_fileId_seq_idx" ON "CloudFileChunk"("fileId", "seq");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "CloudFileChunk_fileId_seq_key" ON "CloudFileChunk"("fileId", "seq");
|
||||
|
||||
-- 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 CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Appointment" ADD CONSTRAINT "Appointment_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Appointment" ADD CONSTRAINT "Appointment_staffId_fkey" FOREIGN KEY ("staffId") REFERENCES "Staff"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Staff" ADD CONSTRAINT "Staff_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "AppointmentProcedure" ADD CONSTRAINT "AppointmentProcedure_appointmentId_fkey" FOREIGN KEY ("appointmentId") REFERENCES "Appointment"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "AppointmentProcedure" ADD CONSTRAINT "AppointmentProcedure_patientId_fkey" FOREIGN KEY ("patientId") REFERENCES "Patient"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Claim" ADD CONSTRAINT "Claim_patientId_fkey" FOREIGN KEY ("patientId") REFERENCES "Patient"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Claim" ADD CONSTRAINT "Claim_appointmentId_fkey" FOREIGN KEY ("appointmentId") REFERENCES "Appointment"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Claim" ADD CONSTRAINT "Claim_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Claim" ADD CONSTRAINT "Claim_staffId_fkey" FOREIGN KEY ("staffId") REFERENCES "Staff"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "ServiceLine" ADD CONSTRAINT "ServiceLine_claimId_fkey" FOREIGN KEY ("claimId") REFERENCES "Claim"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "ServiceLine" ADD CONSTRAINT "ServiceLine_paymentId_fkey" FOREIGN KEY ("paymentId") REFERENCES "Payment"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "ClaimFile" ADD CONSTRAINT "ClaimFile_claimId_fkey" FOREIGN KEY ("claimId") REFERENCES "Claim"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "InsuranceCredential" ADD CONSTRAINT "InsuranceCredential_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "PdfGroup" ADD CONSTRAINT "PdfGroup_patientId_fkey" FOREIGN KEY ("patientId") REFERENCES "Patient"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "PdfFile" ADD CONSTRAINT "PdfFile_groupId_fkey" FOREIGN KEY ("groupId") REFERENCES "PdfGroup"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Payment" ADD CONSTRAINT "Payment_claimId_fkey" FOREIGN KEY ("claimId") REFERENCES "Claim"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Payment" ADD CONSTRAINT "Payment_patientId_fkey" FOREIGN KEY ("patientId") REFERENCES "Patient"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Payment" ADD CONSTRAINT "Payment_updatedById_fkey" FOREIGN KEY ("updatedById") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "ServiceLineTransaction" ADD CONSTRAINT "ServiceLineTransaction_paymentId_fkey" FOREIGN KEY ("paymentId") REFERENCES "Payment"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "ServiceLineTransaction" ADD CONSTRAINT "ServiceLineTransaction_serviceLineId_fkey" FOREIGN KEY ("serviceLineId") REFERENCES "ServiceLine"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "DatabaseBackup" ADD CONSTRAINT "DatabaseBackup_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "BackupDestination" ADD CONSTRAINT "BackupDestination_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Notification" ADD CONSTRAINT "Notification_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "CloudFolder" ADD CONSTRAINT "CloudFolder_parentId_fkey" FOREIGN KEY ("parentId") REFERENCES "CloudFolder"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "CloudFolder" ADD CONSTRAINT "CloudFolder_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "CloudFile" ADD CONSTRAINT "CloudFile_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "CloudFile" ADD CONSTRAINT "CloudFile_folderId_fkey" FOREIGN KEY ("folderId") REFERENCES "CloudFolder"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "CloudFileChunk" ADD CONSTRAINT "CloudFileChunk_fileId_fkey" FOREIGN KEY ("fileId") REFERENCES "CloudFile"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "communications" ADD CONSTRAINT "communications_patientId_fkey" FOREIGN KEY ("patientId") REFERENCES "Patient"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "communications" ADD CONSTRAINT "communications_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
||||
@@ -0,0 +1,22 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Appointment" ADD COLUMN "procedureCodeNotes" TEXT;
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "NpiProvider" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"userId" INTEGER NOT NULL,
|
||||
"npiNumber" TEXT NOT NULL,
|
||||
"providerName" TEXT NOT NULL,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "NpiProvider_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "NpiProvider_userId_idx" ON "NpiProvider"("userId");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "NpiProvider_userId_npiNumber_key" ON "NpiProvider"("userId", "npiNumber");
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "NpiProvider" ADD CONSTRAINT "NpiProvider_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
3
packages/db/prisma/migrations/migration_lock.toml
Executable file
3
packages/db/prisma/migrations/migration_lock.toml
Executable file
@@ -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"
|
||||
12
packages/db/prisma/prisma.config.ts
Executable file
12
packages/db/prisma/prisma.config.ts
Executable file
@@ -0,0 +1,12 @@
|
||||
import dotenv from "dotenv";
|
||||
import path from "path";
|
||||
import { defineConfig, env } from "prisma/config";
|
||||
|
||||
dotenv.config({ path: path.resolve(__dirname, ".env") });
|
||||
|
||||
export default defineConfig({
|
||||
schema: "schema.prisma",
|
||||
datasource: {
|
||||
url: env("DATABASE_URL"),
|
||||
},
|
||||
});
|
||||
506
packages/db/prisma/schema.prisma
Executable file
506
packages/db/prisma/schema.prisma
Executable file
@@ -0,0 +1,506 @@
|
||||
// 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"
|
||||
}
|
||||
|
||||
model User {
|
||||
id Int @id @default(autoincrement())
|
||||
username String @unique
|
||||
password String
|
||||
patients Patient[]
|
||||
appointments Appointment[]
|
||||
staff Staff[]
|
||||
npiProviders NpiProvider[]
|
||||
claims Claim[]
|
||||
insuranceCredentials InsuranceCredential[]
|
||||
updatedPayments Payment[] @relation("PaymentUpdatedBy")
|
||||
backups DatabaseBackup[]
|
||||
backupDestinations BackupDestination[]
|
||||
notifications Notification[]
|
||||
cloudFolders CloudFolder[]
|
||||
cloudFiles CloudFile[]
|
||||
communications Communication[]
|
||||
}
|
||||
|
||||
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 PatientStatus @default(UNKNOWN)
|
||||
userId Int
|
||||
createdAt DateTime @default(now())
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
appointments Appointment[]
|
||||
procedures AppointmentProcedure[]
|
||||
claims Claim[]
|
||||
groups PdfGroup[]
|
||||
payment Payment[]
|
||||
communications Communication[]
|
||||
documents PatientDocument[]
|
||||
|
||||
@@index([insuranceId])
|
||||
@@index([createdAt])
|
||||
}
|
||||
|
||||
enum PatientStatus {
|
||||
ACTIVE
|
||||
INACTIVE
|
||||
UNKNOWN
|
||||
}
|
||||
|
||||
model Appointment {
|
||||
id Int @id @default(autoincrement())
|
||||
patientId Int
|
||||
userId Int
|
||||
staffId Int
|
||||
title String
|
||||
date DateTime @db.Date
|
||||
startTime String // Store time as "hh:mm"
|
||||
endTime String // Store time as "hh:mm"
|
||||
type String // e.g., "checkup", "cleaning", "filling", etc.
|
||||
notes String?
|
||||
procedureCodeNotes String?
|
||||
status String @default("scheduled") // "scheduled", "completed", "cancelled", "no-show"
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
eligibilityStatus PatientStatus @default(UNKNOWN)
|
||||
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
staff Staff? @relation(fields: [staffId], references: [id])
|
||||
procedures AppointmentProcedure[]
|
||||
claims Claim[]
|
||||
|
||||
@@index([patientId])
|
||||
@@index([date])
|
||||
}
|
||||
|
||||
model Staff {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
name String
|
||||
email String?
|
||||
role String // e.g., "Dentist", "Hygienist", "Assistant"
|
||||
phone String?
|
||||
createdAt DateTime @default(now())
|
||||
user User? @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
appointments Appointment[]
|
||||
claims Claim[] @relation("ClaimStaff")
|
||||
}
|
||||
|
||||
model NpiProvider {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
npiNumber String
|
||||
providerName String
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([userId, npiNumber])
|
||||
@@index([userId])
|
||||
}
|
||||
|
||||
|
||||
enum ProcedureSource {
|
||||
COMBO
|
||||
MANUAL
|
||||
}
|
||||
|
||||
model AppointmentProcedure {
|
||||
id Int @id @default(autoincrement())
|
||||
appointmentId Int
|
||||
patientId Int
|
||||
|
||||
procedureCode String
|
||||
procedureLabel String?
|
||||
fee Decimal? @db.Decimal(10, 2)
|
||||
|
||||
category String?
|
||||
|
||||
toothNumber String?
|
||||
toothSurface String?
|
||||
oralCavityArea String?
|
||||
|
||||
source ProcedureSource @default(MANUAL)
|
||||
comboKey String?
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
appointment Appointment @relation(fields: [appointmentId], references: [id], onDelete: Cascade)
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([appointmentId])
|
||||
@@index([patientId])
|
||||
}
|
||||
|
||||
model Claim {
|
||||
id Int @id @default(autoincrement())
|
||||
patientId Int
|
||||
appointmentId Int
|
||||
userId Int
|
||||
staffId Int
|
||||
patientName String
|
||||
memberId String
|
||||
dateOfBirth DateTime @db.Date
|
||||
remarks String
|
||||
missingTeethStatus MissingTeethStatus @default(No_missing)
|
||||
missingTeeth Json? // { "T_14": "X", "T_G": "O", ... }
|
||||
serviceDate DateTime
|
||||
insuranceProvider String // e.g., "Delta MA"
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
status ClaimStatus @default(PENDING)
|
||||
claimNumber String?
|
||||
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
appointment Appointment @relation(fields: [appointmentId], references: [id], onDelete: Cascade)
|
||||
user User? @relation(fields: [userId], references: [id])
|
||||
staff Staff? @relation("ClaimStaff", fields: [staffId], references: [id])
|
||||
|
||||
serviceLines ServiceLine[]
|
||||
claimFiles ClaimFile[]
|
||||
payment Payment?
|
||||
}
|
||||
|
||||
enum ClaimStatus {
|
||||
PENDING
|
||||
APPROVED
|
||||
CANCELLED
|
||||
REVIEW
|
||||
VOID
|
||||
}
|
||||
|
||||
enum MissingTeethStatus {
|
||||
No_missing
|
||||
endentulous
|
||||
Yes_missing
|
||||
}
|
||||
|
||||
model ServiceLine {
|
||||
id Int @id @default(autoincrement())
|
||||
claimId Int?
|
||||
paymentId Int?
|
||||
procedureCode String
|
||||
procedureDate DateTime @db.Date
|
||||
quad String?
|
||||
arch String?
|
||||
toothNumber String?
|
||||
toothSurface String?
|
||||
totalBilled Decimal @db.Decimal(10, 2)
|
||||
totalPaid Decimal @default(0.00) @db.Decimal(10, 2)
|
||||
totalAdjusted Decimal @default(0.00) @db.Decimal(10, 2)
|
||||
totalDue Decimal @default(0.00) @db.Decimal(10, 2)
|
||||
status ServiceLineStatus @default(UNPAID)
|
||||
|
||||
claim Claim? @relation(fields: [claimId], references: [id], onDelete: Cascade)
|
||||
payment Payment? @relation(fields: [paymentId], references: [id], onDelete: Cascade)
|
||||
|
||||
serviceLineTransactions ServiceLineTransaction[]
|
||||
}
|
||||
|
||||
enum ServiceLineStatus {
|
||||
PENDING
|
||||
PARTIALLY_PAID
|
||||
PAID
|
||||
UNPAID
|
||||
ADJUSTED
|
||||
OVERPAID
|
||||
DENIED
|
||||
}
|
||||
|
||||
model ClaimFile {
|
||||
id Int @id @default(autoincrement())
|
||||
claimId Int
|
||||
filename String
|
||||
mimeType String
|
||||
|
||||
claim Claim @relation(fields: [claimId], references: [id], onDelete: Cascade)
|
||||
}
|
||||
|
||||
model InsuranceCredential {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
siteKey String
|
||||
username String
|
||||
password String
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([userId, siteKey])
|
||||
@@index([userId])
|
||||
}
|
||||
|
||||
model PdfGroup {
|
||||
id Int @id @default(autoincrement())
|
||||
title String
|
||||
titleKey PdfTitleKey @default(OTHER)
|
||||
createdAt DateTime @default(now())
|
||||
patientId Int
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
pdfs PdfFile[]
|
||||
|
||||
@@index([patientId])
|
||||
@@index([titleKey])
|
||||
}
|
||||
|
||||
model PdfFile {
|
||||
id Int @id @default(autoincrement())
|
||||
filename String
|
||||
pdfData Bytes
|
||||
uploadedAt DateTime @default(now())
|
||||
groupId Int
|
||||
group PdfGroup @relation(fields: [groupId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([groupId])
|
||||
}
|
||||
|
||||
enum PdfTitleKey {
|
||||
INSURANCE_CLAIM
|
||||
INSURANCE_CLAIM_PREAUTH
|
||||
ELIGIBILITY_STATUS
|
||||
CLAIM_STATUS
|
||||
OTHER
|
||||
}
|
||||
|
||||
model Payment {
|
||||
id Int @id @default(autoincrement())
|
||||
claimId Int? @unique
|
||||
patientId Int
|
||||
userId Int
|
||||
updatedById Int?
|
||||
totalBilled Decimal @db.Decimal(10, 2)
|
||||
totalPaid Decimal @default(0.00) @db.Decimal(10, 2)
|
||||
totalAdjusted Decimal @default(0.00) @db.Decimal(10, 2)
|
||||
totalDue Decimal @db.Decimal(10, 2)
|
||||
status PaymentStatus @default(PENDING)
|
||||
notes String?
|
||||
icn String?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
claim Claim? @relation(fields: [claimId], references: [id], onDelete: Cascade)
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
updatedBy User? @relation("PaymentUpdatedBy", fields: [updatedById], references: [id])
|
||||
serviceLineTransactions ServiceLineTransaction[]
|
||||
serviceLines ServiceLine[]
|
||||
|
||||
@@index([claimId])
|
||||
@@index([patientId])
|
||||
@@index([createdAt])
|
||||
}
|
||||
|
||||
model ServiceLineTransaction {
|
||||
id Int @id @default(autoincrement())
|
||||
paymentId Int
|
||||
serviceLineId Int
|
||||
transactionId String?
|
||||
paidAmount Decimal @db.Decimal(10, 2)
|
||||
adjustedAmount Decimal @default(0.00) @db.Decimal(10, 2)
|
||||
method PaymentMethod
|
||||
receivedDate DateTime
|
||||
payerName String?
|
||||
notes String?
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
payment Payment @relation(fields: [paymentId], references: [id], onDelete: Cascade)
|
||||
serviceLine ServiceLine @relation(fields: [serviceLineId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([paymentId])
|
||||
@@index([serviceLineId])
|
||||
}
|
||||
|
||||
enum PaymentStatus {
|
||||
PENDING
|
||||
PARTIALLY_PAID
|
||||
PAID
|
||||
OVERPAID
|
||||
DENIED
|
||||
VOID
|
||||
}
|
||||
|
||||
enum PaymentMethod {
|
||||
EFT
|
||||
CHECK
|
||||
CASH
|
||||
CARD
|
||||
OTHER
|
||||
}
|
||||
|
||||
// Database management page
|
||||
model DatabaseBackup {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([userId])
|
||||
@@index([createdAt])
|
||||
}
|
||||
|
||||
model BackupDestination {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
path String
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
}
|
||||
|
||||
model Notification {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
type NotificationTypes
|
||||
message String
|
||||
createdAt DateTime @default(now())
|
||||
read Boolean @default(false)
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([userId])
|
||||
@@index([createdAt])
|
||||
}
|
||||
|
||||
enum NotificationTypes {
|
||||
BACKUP
|
||||
CLAIM
|
||||
PAYMENT
|
||||
ETC
|
||||
}
|
||||
|
||||
model CloudFolder {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
name String
|
||||
parentId Int?
|
||||
parent CloudFolder? @relation("FolderChildren", fields: [parentId], references: [id], onDelete: Cascade)
|
||||
children CloudFolder[] @relation("FolderChildren")
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
files CloudFile[]
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@unique([userId, parentId, name]) // prevents sibling folder name duplicates
|
||||
@@index([parentId])
|
||||
}
|
||||
|
||||
model CloudFile {
|
||||
id Int @id @default(autoincrement())
|
||||
userId Int
|
||||
name String
|
||||
mimeType String?
|
||||
fileSize BigInt @db.BigInt
|
||||
folderId Int? // optional: null => root
|
||||
isComplete Boolean @default(false) // upload completed?
|
||||
totalChunks Int? // optional: expected number of chunks
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
folder CloudFolder? @relation(fields: [folderId], references: [id], onDelete: SetNull)
|
||||
|
||||
chunks CloudFileChunk[]
|
||||
|
||||
@@index([folderId])
|
||||
}
|
||||
|
||||
model CloudFileChunk {
|
||||
id Int @id @default(autoincrement())
|
||||
fileId Int
|
||||
seq Int
|
||||
data Bytes
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
file CloudFile @relation(fields: [fileId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([fileId, seq])
|
||||
@@index([fileId, seq])
|
||||
}
|
||||
|
||||
// patient-connection-
|
||||
enum CommunicationChannel {
|
||||
sms
|
||||
voice
|
||||
}
|
||||
|
||||
enum CommunicationDirection {
|
||||
outbound
|
||||
inbound
|
||||
}
|
||||
|
||||
enum CommunicationStatus {
|
||||
queued
|
||||
sent
|
||||
delivered
|
||||
failed
|
||||
completed
|
||||
busy
|
||||
no_answer
|
||||
}
|
||||
|
||||
model Communication {
|
||||
id Int @id @default(autoincrement())
|
||||
patientId Int
|
||||
userId Int?
|
||||
|
||||
channel CommunicationChannel
|
||||
direction CommunicationDirection
|
||||
status CommunicationStatus
|
||||
|
||||
body String?
|
||||
callDuration Int?
|
||||
twilioSid String?
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
// Relations
|
||||
patient Patient @relation(fields: [patientId], references: [id])
|
||||
user User? @relation(fields: [userId], references: [id])
|
||||
|
||||
@@map("communications")
|
||||
}
|
||||
|
||||
model PatientDocument {
|
||||
id Int @id @default(autoincrement())
|
||||
patientId Int
|
||||
filename String
|
||||
originalName String
|
||||
mimeType String
|
||||
fileSize BigInt
|
||||
filePath String
|
||||
uploadedAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([patientId])
|
||||
@@index([uploadedAt])
|
||||
}
|
||||
93
packages/db/prisma/seed.ts
Executable file
93
packages/db/prisma/seed.ts
Executable file
@@ -0,0 +1,93 @@
|
||||
import { PrismaClient } from "../generated/prisma";
|
||||
const prisma = new PrismaClient();
|
||||
|
||||
function formatTime(date: Date): string {
|
||||
return date.toTimeString().slice(0, 5); // "HH:MM"
|
||||
}
|
||||
|
||||
async function main() {
|
||||
// Create multiple users
|
||||
const users = await prisma.user.createMany({
|
||||
data: [
|
||||
{ username: "admin2", password: "123456" },
|
||||
{ username: "bob", password: "123456" },
|
||||
],
|
||||
});
|
||||
|
||||
const createdUsers = await prisma.user.findMany();
|
||||
|
||||
// Creatin staff
|
||||
await prisma.staff.createMany({
|
||||
data: [
|
||||
{ name: "Dr. Kai Gao", role: "Doctor" },
|
||||
{ name: "Dr. Jane Smith", role: "Doctor" },
|
||||
],
|
||||
});
|
||||
|
||||
const staffMembers = await prisma.staff.findMany();
|
||||
|
||||
// Create multiple patients
|
||||
const patients = await prisma.patient.createMany({
|
||||
data: [
|
||||
{
|
||||
firstName: "Emily",
|
||||
lastName: "Clark",
|
||||
dateOfBirth: new Date("1985-06-15"),
|
||||
gender: "female",
|
||||
phone: "555-0001",
|
||||
email: "emily@example.com",
|
||||
address: "101 Apple Rd",
|
||||
city: "Newtown",
|
||||
zipCode: "10001",
|
||||
userId: createdUsers[0].id,
|
||||
},
|
||||
{
|
||||
firstName: "Michael",
|
||||
lastName: "Brown",
|
||||
dateOfBirth: new Date("1979-09-10"),
|
||||
gender: "male",
|
||||
phone: "555-0002",
|
||||
email: "michael@example.com",
|
||||
address: "202 Banana Ave",
|
||||
city: "Oldtown",
|
||||
zipCode: "10002",
|
||||
userId: createdUsers[1].id,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
const createdPatients = await prisma.patient.findMany();
|
||||
|
||||
// Create multiple appointments
|
||||
await prisma.appointment.createMany({
|
||||
data: [
|
||||
{
|
||||
patientId: createdPatients[0].id,
|
||||
userId: createdUsers[0].id,
|
||||
title: "Initial Consultation",
|
||||
date: new Date("2025-06-01"),
|
||||
startTime: formatTime(new Date("2025-06-01T10:00:00")),
|
||||
endTime: formatTime(new Date("2025-06-01T10:30:00")),
|
||||
type: "consultation",
|
||||
},
|
||||
{
|
||||
patientId: createdPatients[1].id,
|
||||
userId: createdUsers[1].id,
|
||||
title: "Follow-up",
|
||||
date: new Date("2025-06-02"),
|
||||
startTime: formatTime(new Date("2025-06-01T10:00:00")),
|
||||
endTime: formatTime(new Date("2025-06-01T10:30:00")),
|
||||
type: "checkup",
|
||||
},
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
main()
|
||||
.catch((e) => {
|
||||
console.error(e);
|
||||
process.exit(1);
|
||||
})
|
||||
.finally(async () => {
|
||||
await prisma.$disconnect();
|
||||
});
|
||||
274
packages/db/scripts/patch-prisma-imports.ts
Executable file
274
packages/db/scripts/patch-prisma-imports.ts
Executable file
@@ -0,0 +1,274 @@
|
||||
#!/usr/bin/env ts-node
|
||||
/**
|
||||
* patch-prisma-imports.ts (SAFE)
|
||||
*
|
||||
* - Converts value-level imports/exports of `Prisma` -> type-only imports/exports
|
||||
* (splits mixed imports).
|
||||
* - Replaces runtime usages of `Prisma.Decimal` -> `Decimal`.
|
||||
* - Ensures exactly one `import Decimal from "decimal.js";` per file.
|
||||
* - DEDICATED: only modifies TypeScript source files (.ts/.tsx).
|
||||
* - SKIPS: files under packages/db/generated/prisma (the Prisma runtime package).
|
||||
*
|
||||
* Usage:
|
||||
* npx ts-node packages/db/scripts/patch-prisma-imports.ts
|
||||
*
|
||||
* Run after `prisma generate` (and make sure generated runtime .js are restored
|
||||
* if they were modified — see notes below).
|
||||
*/
|
||||
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import fg from "fast-glob";
|
||||
|
||||
const repoRoot = process.cwd();
|
||||
const GENERATED_FRAGMENT = path.join("packages", "db", "generated", "prisma");
|
||||
|
||||
// Only operate on TS sources (do NOT touch .js)
|
||||
const GLOBS = [
|
||||
"packages/db/shared/**/*.ts",
|
||||
"packages/db/shared/**/*.tsx",
|
||||
"packages/db/generated/**/*.ts",
|
||||
"packages/db/generated/**/*.tsx",
|
||||
];
|
||||
|
||||
// -------------------- helpers --------------------
|
||||
|
||||
function isFromGeneratedPrisma(fromPath: string) {
|
||||
// match relative imports that include generated/prisma
|
||||
return (
|
||||
fromPath.includes("generated/prisma") ||
|
||||
fromPath.includes("/generated/prisma") ||
|
||||
fromPath.includes("\\generated\\prisma")
|
||||
);
|
||||
}
|
||||
|
||||
function splitSpecifiers(list: string) {
|
||||
return list
|
||||
.split(",")
|
||||
.map((s) => s.trim())
|
||||
.filter(Boolean);
|
||||
}
|
||||
|
||||
function buildNamedImport(specs: string[]) {
|
||||
return `{ ${specs.join(", ")} }`;
|
||||
}
|
||||
|
||||
function extractDecimalLines(src: string) {
|
||||
const lines = src.split(/\r?\n/);
|
||||
const matches: number[] = [];
|
||||
|
||||
const regexes = [
|
||||
/^import\s+Decimal\s+from\s+['"]decimal\.js['"]\s*;?/,
|
||||
/^import\s+\{\s*Decimal\s*\}\s+from\s+['"]decimal\.js['"]\s*;?/,
|
||||
/^import\s+\*\s+as\s+Decimal\s+from\s+['"]decimal\.js['"]\s*;?/,
|
||||
/^(const|let|var)\s+Decimal\s*=\s*require\(\s*['"]decimal\.js['"]\s*\)\s*;?/,
|
||||
/^(const|let|var)\s+Decimal\s*=\s*require\(\s*['"]decimal\.js['"]\s*\)\.default\s*;?/,
|
||||
];
|
||||
|
||||
lines.forEach((line, i) => {
|
||||
for (const re of regexes) {
|
||||
if (re.test(line)) {
|
||||
matches.push(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return { lines, matches };
|
||||
}
|
||||
|
||||
function ensureSingleDecimalImport(src: string) {
|
||||
const { lines, matches } = extractDecimalLines(src);
|
||||
|
||||
if (matches.length === 0) return src;
|
||||
|
||||
// remove all matched import/require lines
|
||||
// do in reverse index order to keep indices valid
|
||||
matches
|
||||
.slice()
|
||||
.sort((a, b) => b - a)
|
||||
.forEach((idx) => lines.splice(idx, 1));
|
||||
|
||||
let result = lines.join("\n");
|
||||
|
||||
// insert single canonical import if missing
|
||||
if (!/import\s+Decimal\s+from\s+['"]decimal\.js['"]/.test(result)) {
|
||||
const importBlockMatch = result.match(/^(?:\s*import[\s\S]*?;\r?\n)+/);
|
||||
if (importBlockMatch && importBlockMatch.index !== undefined) {
|
||||
const idx = importBlockMatch[0].length;
|
||||
result =
|
||||
result.slice(0, idx) +
|
||||
`\nimport Decimal from "decimal.js";\n` +
|
||||
result.slice(idx);
|
||||
} else {
|
||||
result = `import Decimal from "decimal.js";\n` + result;
|
||||
}
|
||||
}
|
||||
|
||||
// collapse excessive blank lines
|
||||
result = result.replace(/\n{3,}/g, "\n\n");
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
function replacePrismaDecimalRuntime(src: string) {
|
||||
if (!/\bPrisma\.Decimal\b/.test(src)) return { out: src, changed: false };
|
||||
|
||||
// mask import/export-from lines so we don't accidentally change them
|
||||
const placeholder =
|
||||
"__MASK_IMPORT_EXPORT__" + Math.random().toString(36).slice(2);
|
||||
const saved: string[] = [];
|
||||
|
||||
const masked = src.replace(
|
||||
/(^\s*(?:import|export)\s+[\s\S]*?from\s+['"][^'"]+['"]\s*;?)/gm,
|
||||
(m) => {
|
||||
saved.push(m);
|
||||
return `${placeholder}${saved.length - 1}__\n`;
|
||||
}
|
||||
);
|
||||
|
||||
const replaced = masked.replace(/\bPrisma\.Decimal\b/g, "Decimal");
|
||||
|
||||
const restored = replaced.replace(
|
||||
new RegExp(`${placeholder}(\\d+)__\\n`, "g"),
|
||||
(_m, i) => saved[Number(i)] || ""
|
||||
);
|
||||
|
||||
return { out: restored, changed: true };
|
||||
}
|
||||
|
||||
// -------------------- patching logic --------------------
|
||||
|
||||
function patchFileContent(src: string, filePath: string) {
|
||||
// safety: do not edit runtime prisma package files
|
||||
const normalized = path.normalize(filePath);
|
||||
if (normalized.includes(path.normalize(GENERATED_FRAGMENT))) {
|
||||
// skip any files inside packages/db/generated/prisma
|
||||
return { out: src, changed: false, skipped: true };
|
||||
}
|
||||
|
||||
let out = src;
|
||||
let changed = false;
|
||||
|
||||
// 1) Named imports
|
||||
out = out.replace(
|
||||
/import\s+(?!type)(\{[^}]+\})\s+from\s+(['"])([^'"]+)\2\s*;?/gm,
|
||||
(match, specBlock: string, q: string, fromPath: string) => {
|
||||
if (!isFromGeneratedPrisma(fromPath)) return match;
|
||||
|
||||
const specList = specBlock.replace(/^\{|\}$/g, "").trim();
|
||||
const specs = splitSpecifiers(specList);
|
||||
|
||||
const prismaEntries = specs.filter((s) =>
|
||||
/^\s*Prisma(\s+as\s+\w+)?\s*$/.test(s)
|
||||
);
|
||||
const otherEntries = specs.filter(
|
||||
(s) => !/^\s*Prisma(\s+as\s+\w+)?\s*$/.test(s)
|
||||
);
|
||||
|
||||
if (prismaEntries.length === 0) return match;
|
||||
|
||||
changed = true;
|
||||
let replacement = `import type ${buildNamedImport(prismaEntries)} from ${q}${fromPath}${q};`;
|
||||
if (otherEntries.length > 0) {
|
||||
replacement += `\nimport ${buildNamedImport(otherEntries)} from ${q}${fromPath}${q};`;
|
||||
}
|
||||
return replacement;
|
||||
}
|
||||
);
|
||||
|
||||
// 2) Named exports
|
||||
out = out.replace(
|
||||
/export\s+(?!type)(\{[^}]+\})\s+from\s+(['"])([^'"]+)\2\s*;?/gm,
|
||||
(match, specBlock: string, q: string, fromPath: string) => {
|
||||
if (!isFromGeneratedPrisma(fromPath)) return match;
|
||||
|
||||
const specList = specBlock.replace(/^\{|\}$/g, "").trim();
|
||||
const specs = splitSpecifiers(specList);
|
||||
|
||||
const prismaEntries = specs.filter((s) =>
|
||||
/^\s*Prisma(\s+as\s+\w+)?\s*$/.test(s)
|
||||
);
|
||||
const otherEntries = specs.filter(
|
||||
(s) => !/^\s*Prisma(\s+as\s+\w+)?\s*$/.test(s)
|
||||
);
|
||||
|
||||
if (prismaEntries.length === 0) return match;
|
||||
|
||||
changed = true;
|
||||
let replacement = `export type ${buildNamedImport(prismaEntries)} from ${q}${fromPath}${q};`;
|
||||
if (otherEntries.length > 0) {
|
||||
replacement += `\nexport ${buildNamedImport(otherEntries)} from ${q}${fromPath}${q};`;
|
||||
}
|
||||
return replacement;
|
||||
}
|
||||
);
|
||||
|
||||
// 3) Namespace imports
|
||||
out = out.replace(
|
||||
/import\s+\*\s+as\s+([A-Za-z0-9_$]+)\s+from\s+(['"])([^'"]+)\2\s*;?/gm,
|
||||
(match, ns: string, q: string, fromPath: string) => {
|
||||
if (!isFromGeneratedPrisma(fromPath)) return match;
|
||||
changed = true;
|
||||
return `import type * as ${ns} from ${q}${fromPath}${q};`;
|
||||
}
|
||||
);
|
||||
|
||||
// 4) Default imports
|
||||
out = out.replace(
|
||||
/import\s+(?!type)([A-Za-z0-9_$]+)\s+from\s+(['"])([^'"]+)\2\s*;?/gm,
|
||||
(match, binding: string, q: string, fromPath: string) => {
|
||||
if (!isFromGeneratedPrisma(fromPath)) return match;
|
||||
changed = true;
|
||||
return `import type ${binding} from ${q}${fromPath}${q};`;
|
||||
}
|
||||
);
|
||||
|
||||
// 5) Replace Prisma.Decimal -> Decimal safely
|
||||
if (/\bPrisma\.Decimal\b/.test(out)) {
|
||||
const { out: decimalOut, changed: decimalChanged } =
|
||||
replacePrismaDecimalRuntime(out);
|
||||
out = decimalOut;
|
||||
if (decimalChanged) changed = true;
|
||||
// Ensure a single Decimal import exists
|
||||
out = ensureSingleDecimalImport(out);
|
||||
}
|
||||
|
||||
return { out, changed, skipped: false };
|
||||
}
|
||||
|
||||
// -------------------- runner --------------------
|
||||
|
||||
async function run() {
|
||||
const files = await fg(GLOBS, { absolute: true, cwd: repoRoot, dot: true });
|
||||
if (!files || files.length === 0) {
|
||||
console.warn(
|
||||
"No files matched. Check the GLOBS patterns and run from repo root."
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
for (const file of files) {
|
||||
try {
|
||||
const src = fs.readFileSync(file, "utf8");
|
||||
const { out, changed, skipped } = patchFileContent(src, file);
|
||||
if (skipped) {
|
||||
// intentionally skipped runtime-prisma files
|
||||
continue;
|
||||
}
|
||||
if (changed && out !== src) {
|
||||
fs.writeFileSync(file, out, "utf8");
|
||||
console.log("patched:", path.relative(repoRoot, file));
|
||||
}
|
||||
} catch (err) {
|
||||
console.error("failed patching", file, err);
|
||||
}
|
||||
}
|
||||
|
||||
console.log("done.");
|
||||
}
|
||||
|
||||
run().catch((err) => {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
});
|
||||
19
packages/db/scripts/patch-zod-buffer.ts
Executable file
19
packages/db/scripts/patch-zod-buffer.ts
Executable file
@@ -0,0 +1,19 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
const dir = path.resolve(__dirname, '../shared/schemas/objects');
|
||||
|
||||
fs.readdirSync(dir).forEach(file => {
|
||||
if (!file.endsWith('.schema.ts')) return;
|
||||
const full = path.join(dir, file);
|
||||
let content = fs.readFileSync(full, 'utf8');
|
||||
if (content.includes('z.instanceof(Buffer)') && !content.includes("import { Buffer")) {
|
||||
content = `import { Buffer } from 'buffer';\n` + content;
|
||||
fs.writeFileSync(full, content);
|
||||
console.log('Patched:', file);
|
||||
}
|
||||
});
|
||||
2402
packages/db/shared/.prisma-zod-generator-manifest.json
Executable file
2402
packages/db/shared/.prisma-zod-generator-manifest.json
Executable file
File diff suppressed because it is too large
Load Diff
6
packages/db/shared/helpers/decimal-helpers.d.ts
vendored
Normal file
6
packages/db/shared/helpers/decimal-helpers.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import * as z from 'zod';
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
export declare const DecimalJSLikeSchema: z.ZodType<Prisma.DecimalJsLike>;
|
||||
export declare const DECIMAL_STRING_REGEX: RegExp;
|
||||
export declare const isValidDecimalInput: (v?: null | string | number | Prisma.DecimalJsLike) => v is string | number | Prisma.DecimalJsLike;
|
||||
//# sourceMappingURL=decimal-helpers.d.ts.map
|
||||
1
packages/db/shared/helpers/decimal-helpers.d.ts.map
Normal file
1
packages/db/shared/helpers/decimal-helpers.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"decimal-helpers.d.ts","sourceRoot":"","sources":["decimal-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAOrD,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAM9D,CAAC;AAGH,eAAO,MAAM,oBAAoB,QAAuE,CAAC;AAEzG,eAAO,MAAM,mBAAmB,GAC9B,IAAI,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,aAAa,KAChD,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,aAiBhC,CAAC"}
|
||||
71
packages/db/shared/helpers/decimal-helpers.js
Normal file
71
packages/db/shared/helpers/decimal-helpers.js
Normal file
@@ -0,0 +1,71 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isValidDecimalInput = exports.DECIMAL_STRING_REGEX = exports.DecimalJSLikeSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const decimal_js_1 = __importDefault(require("decimal.js"));
|
||||
// DECIMAL HELPERS
|
||||
//------------------------------------------------------
|
||||
exports.DecimalJSLikeSchema = z.object({
|
||||
d: z.array(z.number()),
|
||||
e: z.number(),
|
||||
s: z.number(),
|
||||
// Zod v3/v4 compatible callable check
|
||||
toFixed: z.custom((v) => typeof v === 'function'),
|
||||
});
|
||||
// Accept canonical decimal strings (+/-, optional fraction, optional exponent), or Infinity/NaN.
|
||||
exports.DECIMAL_STRING_REGEX = /^(?:[+-]?(?:[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?|Infinity)|NaN)$/;
|
||||
const isValidDecimalInput = (v) => {
|
||||
if (v === undefined || v === null)
|
||||
return false;
|
||||
return (
|
||||
// Explicit instance checks first
|
||||
v instanceof decimal_js_1.default ||
|
||||
// If Decimal.js is present and imported by the generator, this symbol exists at runtime
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore - Decimal may be undefined when not installed; codegen controls the import
|
||||
(typeof decimal_js_1.default !== 'undefined' && v instanceof decimal_js_1.default) ||
|
||||
(typeof v === 'object' &&
|
||||
'd' in v &&
|
||||
'e' in v &&
|
||||
's' in v &&
|
||||
'toFixed' in v) ||
|
||||
(typeof v === 'string' && exports.DECIMAL_STRING_REGEX.test(v)) ||
|
||||
typeof v === 'number');
|
||||
};
|
||||
exports.isValidDecimalInput = isValidDecimalInput;
|
||||
40
packages/db/shared/helpers/decimal-helpers.ts
Executable file
40
packages/db/shared/helpers/decimal-helpers.ts
Executable file
@@ -0,0 +1,40 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
|
||||
import Decimal from "decimal.js";
|
||||
|
||||
// DECIMAL HELPERS
|
||||
//------------------------------------------------------
|
||||
|
||||
export const DecimalJSLikeSchema: z.ZodType<Prisma.DecimalJsLike> = z.object({
|
||||
d: z.array(z.number()),
|
||||
e: z.number(),
|
||||
s: z.number(),
|
||||
// Zod v3/v4 compatible callable check
|
||||
toFixed: z.custom<Prisma.DecimalJsLike['toFixed']>((v) => typeof v === 'function'),
|
||||
});
|
||||
|
||||
// Accept canonical decimal strings (+/-, optional fraction, optional exponent), or Infinity/NaN.
|
||||
export const DECIMAL_STRING_REGEX = /^(?:[+-]?(?:[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?|Infinity)|NaN)$/;
|
||||
|
||||
export const isValidDecimalInput = (
|
||||
v?: null | string | number | Prisma.DecimalJsLike,
|
||||
): v is string | number | Prisma.DecimalJsLike => {
|
||||
if (v === undefined || v === null) return false;
|
||||
return (
|
||||
// Explicit instance checks first
|
||||
v instanceof Decimal ||
|
||||
// If Decimal.js is present and imported by the generator, this symbol exists at runtime
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore - Decimal may be undefined when not installed; codegen controls the import
|
||||
(typeof Decimal !== 'undefined' && v instanceof Decimal) ||
|
||||
(typeof v === 'object' &&
|
||||
'd' in v &&
|
||||
'e' in v &&
|
||||
's' in v &&
|
||||
'toFixed' in v) ||
|
||||
(typeof v === 'string' && DECIMAL_STRING_REGEX.test(v)) ||
|
||||
typeof v === 'number'
|
||||
);
|
||||
};
|
||||
16
packages/db/shared/helpers/json-helpers.d.ts
vendored
Normal file
16
packages/db/shared/helpers/json-helpers.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import * as z from 'zod';
|
||||
export type JsonPrimitive = string | number | boolean | null;
|
||||
export type JsonValue = JsonPrimitive | JsonValue[] | {
|
||||
[k: string]: JsonValue;
|
||||
};
|
||||
export type InputJsonValue = JsonPrimitive | InputJsonValue[] | {
|
||||
[k: string]: InputJsonValue | null;
|
||||
};
|
||||
export type NullableJsonInput = JsonValue | 'JsonNull' | 'DbNull' | null;
|
||||
export declare const transformJsonNull: (v?: NullableJsonInput) => JsonValue;
|
||||
export declare const JsonValueSchema: z.ZodType<JsonValue>;
|
||||
export declare const InputJsonValueSchema: z.ZodType<InputJsonValue>;
|
||||
export declare const NullableJsonValue: z.ZodEffects<z.ZodUnion<[z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>, z.ZodLiteral<"DbNull">, z.ZodLiteral<"JsonNull">, z.ZodLiteral<null>]>, string | number | boolean | JsonValue[] | {
|
||||
[k: string]: JsonValue;
|
||||
} | null, JsonValue>;
|
||||
//# sourceMappingURL=json-helpers.d.ts.map
|
||||
1
packages/db/shared/helpers/json-helpers.d.ts.map
Normal file
1
packages/db/shared/helpers/json-helpers.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"json-helpers.d.ts","sourceRoot":"","sources":["json-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAC7D,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,SAAS,EAAE,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AACjF,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,cAAc,EAAE,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAAA;CAAE,CAAC;AACvG,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,IAAI,CAAC;AACzE,eAAO,MAAM,iBAAiB,GAAI,IAAI,iBAAiB,cAItD,CAAC;AACF,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAMxB,CAAC;AAC1B,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAM7B,CAAC;AAC/B,eAAO,MAAM,iBAAiB;;oBAEgC,CAAC"}
|
||||
58
packages/db/shared/helpers/json-helpers.js
Normal file
58
packages/db/shared/helpers/json-helpers.js
Normal file
@@ -0,0 +1,58 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.NullableJsonValue = exports.InputJsonValueSchema = exports.JsonValueSchema = exports.transformJsonNull = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const transformJsonNull = (v) => {
|
||||
if (v == null || v === 'DbNull')
|
||||
return null;
|
||||
if (v === 'JsonNull')
|
||||
return null;
|
||||
return v;
|
||||
};
|
||||
exports.transformJsonNull = transformJsonNull;
|
||||
exports.JsonValueSchema = z.lazy(() => z.union([
|
||||
z.string(), z.number(), z.boolean(), z.literal(null),
|
||||
z.record(z.string(), z.lazy(() => exports.JsonValueSchema.optional())),
|
||||
z.array(z.lazy(() => exports.JsonValueSchema)),
|
||||
]));
|
||||
exports.InputJsonValueSchema = z.lazy(() => z.union([
|
||||
z.string(), z.number(), z.boolean(),
|
||||
z.record(z.string(), z.lazy(() => z.union([exports.InputJsonValueSchema, z.literal(null)]))),
|
||||
z.array(z.lazy(() => z.union([exports.InputJsonValueSchema, z.literal(null)]))),
|
||||
]));
|
||||
exports.NullableJsonValue = z
|
||||
.union([exports.JsonValueSchema, z.literal('DbNull'), z.literal('JsonNull'), z.literal(null)])
|
||||
.transform((v) => (0, exports.transformJsonNull)(v));
|
||||
28
packages/db/shared/helpers/json-helpers.ts
Executable file
28
packages/db/shared/helpers/json-helpers.ts
Executable file
@@ -0,0 +1,28 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export type JsonPrimitive = string | number | boolean | null;
|
||||
export type JsonValue = JsonPrimitive | JsonValue[] | { [k: string]: JsonValue };
|
||||
export type InputJsonValue = JsonPrimitive | InputJsonValue[] | { [k: string]: InputJsonValue | null };
|
||||
export type NullableJsonInput = JsonValue | 'JsonNull' | 'DbNull' | null;
|
||||
export const transformJsonNull = (v?: NullableJsonInput) => {
|
||||
if (v == null || v === 'DbNull') return null;
|
||||
if (v === 'JsonNull') return null;
|
||||
return v as JsonValue;
|
||||
};
|
||||
export const JsonValueSchema: z.ZodType<JsonValue> = z.lazy(() =>
|
||||
z.union([
|
||||
z.string(), z.number(), z.boolean(), z.literal(null),
|
||||
z.record(z.string(), z.lazy(() => JsonValueSchema.optional())),
|
||||
z.array(z.lazy(() => JsonValueSchema)),
|
||||
])
|
||||
) as z.ZodType<JsonValue>;
|
||||
export const InputJsonValueSchema: z.ZodType<InputJsonValue> = z.lazy(() =>
|
||||
z.union([
|
||||
z.string(), z.number(), z.boolean(),
|
||||
z.record(z.string(), z.lazy(() => z.union([InputJsonValueSchema, z.literal(null)]))),
|
||||
z.array(z.lazy(() => z.union([InputJsonValueSchema, z.literal(null)]))),
|
||||
])
|
||||
) as z.ZodType<InputJsonValue>;
|
||||
export const NullableJsonValue = z
|
||||
.union([JsonValueSchema, z.literal('DbNull'), z.literal('JsonNull'), z.literal(null)])
|
||||
.transform((v) => transformJsonNull(v as NullableJsonInput));
|
||||
38
packages/db/shared/schemas/aggregateAppointment.schema.d.ts
vendored
Normal file
38
packages/db/shared/schemas/aggregateAppointment.schema.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
export declare const AppointmentAggregateSchema: z.ZodType<Prisma.AppointmentAggregateArgs>;
|
||||
export declare const AppointmentAggregateZodSchema: z.ZodObject<{
|
||||
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.AppointmentOrderByWithRelationInput, z.ZodTypeDef, Prisma.AppointmentOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.AppointmentOrderByWithRelationInput, z.ZodTypeDef, Prisma.AppointmentOrderByWithRelationInput>, "many">]>>;
|
||||
where: z.ZodOptional<z.ZodType<Prisma.AppointmentWhereInput, z.ZodTypeDef, Prisma.AppointmentWhereInput>>;
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.AppointmentWhereUniqueInput, z.ZodTypeDef, Prisma.AppointmentWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.AppointmentCountAggregateInputType, z.ZodTypeDef, Prisma.AppointmentCountAggregateInputType>]>>;
|
||||
_min: z.ZodOptional<z.ZodType<Prisma.AppointmentMinAggregateInputType, z.ZodTypeDef, Prisma.AppointmentMinAggregateInputType>>;
|
||||
_max: z.ZodOptional<z.ZodType<Prisma.AppointmentMaxAggregateInputType, z.ZodTypeDef, Prisma.AppointmentMaxAggregateInputType>>;
|
||||
_avg: z.ZodOptional<z.ZodType<Prisma.AppointmentAvgAggregateInputType, z.ZodTypeDef, Prisma.AppointmentAvgAggregateInputType>>;
|
||||
_sum: z.ZodOptional<z.ZodType<Prisma.AppointmentSumAggregateInputType, z.ZodTypeDef, Prisma.AppointmentSumAggregateInputType>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.AppointmentWhereInput | undefined;
|
||||
_count?: true | Prisma.AppointmentCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.AppointmentOrderByWithRelationInput | Prisma.AppointmentOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.AppointmentWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.AppointmentMinAggregateInputType | undefined;
|
||||
_max?: Prisma.AppointmentMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.AppointmentAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.AppointmentSumAggregateInputType | undefined;
|
||||
}, {
|
||||
where?: Prisma.AppointmentWhereInput | undefined;
|
||||
_count?: true | Prisma.AppointmentCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.AppointmentOrderByWithRelationInput | Prisma.AppointmentOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.AppointmentWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.AppointmentMinAggregateInputType | undefined;
|
||||
_max?: Prisma.AppointmentMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.AppointmentAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.AppointmentSumAggregateInputType | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=aggregateAppointment.schema.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"aggregateAppointment.schema.d.ts","sourceRoot":"","sources":["aggregateAppointment.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,wBAAwB,CAA+sB,CAAC;AAElyB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqpB,CAAC"}
|
||||
47
packages/db/shared/schemas/aggregateAppointment.schema.js
Normal file
47
packages/db/shared/schemas/aggregateAppointment.schema.js
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AppointmentAggregateZodSchema = exports.AppointmentAggregateSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const AppointmentOrderByWithRelationInput_schema_1 = require("./objects/AppointmentOrderByWithRelationInput.schema");
|
||||
const AppointmentWhereInput_schema_1 = require("./objects/AppointmentWhereInput.schema");
|
||||
const AppointmentWhereUniqueInput_schema_1 = require("./objects/AppointmentWhereUniqueInput.schema");
|
||||
const AppointmentCountAggregateInput_schema_1 = require("./objects/AppointmentCountAggregateInput.schema");
|
||||
const AppointmentMinAggregateInput_schema_1 = require("./objects/AppointmentMinAggregateInput.schema");
|
||||
const AppointmentMaxAggregateInput_schema_1 = require("./objects/AppointmentMaxAggregateInput.schema");
|
||||
const AppointmentAvgAggregateInput_schema_1 = require("./objects/AppointmentAvgAggregateInput.schema");
|
||||
const AppointmentSumAggregateInput_schema_1 = require("./objects/AppointmentSumAggregateInput.schema");
|
||||
exports.AppointmentAggregateSchema = z.object({ orderBy: z.union([AppointmentOrderByWithRelationInput_schema_1.AppointmentOrderByWithRelationInputObjectSchema, AppointmentOrderByWithRelationInput_schema_1.AppointmentOrderByWithRelationInputObjectSchema.array()]).optional(), where: AppointmentWhereInput_schema_1.AppointmentWhereInputObjectSchema.optional(), cursor: AppointmentWhereUniqueInput_schema_1.AppointmentWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), AppointmentCountAggregateInput_schema_1.AppointmentCountAggregateInputObjectSchema]).optional(), _min: AppointmentMinAggregateInput_schema_1.AppointmentMinAggregateInputObjectSchema.optional(), _max: AppointmentMaxAggregateInput_schema_1.AppointmentMaxAggregateInputObjectSchema.optional(), _avg: AppointmentAvgAggregateInput_schema_1.AppointmentAvgAggregateInputObjectSchema.optional(), _sum: AppointmentSumAggregateInput_schema_1.AppointmentSumAggregateInputObjectSchema.optional() }).strict();
|
||||
exports.AppointmentAggregateZodSchema = z.object({ orderBy: z.union([AppointmentOrderByWithRelationInput_schema_1.AppointmentOrderByWithRelationInputObjectSchema, AppointmentOrderByWithRelationInput_schema_1.AppointmentOrderByWithRelationInputObjectSchema.array()]).optional(), where: AppointmentWhereInput_schema_1.AppointmentWhereInputObjectSchema.optional(), cursor: AppointmentWhereUniqueInput_schema_1.AppointmentWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), AppointmentCountAggregateInput_schema_1.AppointmentCountAggregateInputObjectSchema]).optional(), _min: AppointmentMinAggregateInput_schema_1.AppointmentMinAggregateInputObjectSchema.optional(), _max: AppointmentMaxAggregateInput_schema_1.AppointmentMaxAggregateInputObjectSchema.optional(), _avg: AppointmentAvgAggregateInput_schema_1.AppointmentAvgAggregateInputObjectSchema.optional(), _sum: AppointmentSumAggregateInput_schema_1.AppointmentSumAggregateInputObjectSchema.optional() }).strict();
|
||||
14
packages/db/shared/schemas/aggregateAppointment.schema.ts
Normal file
14
packages/db/shared/schemas/aggregateAppointment.schema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AppointmentOrderByWithRelationInputObjectSchema as AppointmentOrderByWithRelationInputObjectSchema } from './objects/AppointmentOrderByWithRelationInput.schema';
|
||||
import { AppointmentWhereInputObjectSchema as AppointmentWhereInputObjectSchema } from './objects/AppointmentWhereInput.schema';
|
||||
import { AppointmentWhereUniqueInputObjectSchema as AppointmentWhereUniqueInputObjectSchema } from './objects/AppointmentWhereUniqueInput.schema';
|
||||
import { AppointmentCountAggregateInputObjectSchema as AppointmentCountAggregateInputObjectSchema } from './objects/AppointmentCountAggregateInput.schema';
|
||||
import { AppointmentMinAggregateInputObjectSchema as AppointmentMinAggregateInputObjectSchema } from './objects/AppointmentMinAggregateInput.schema';
|
||||
import { AppointmentMaxAggregateInputObjectSchema as AppointmentMaxAggregateInputObjectSchema } from './objects/AppointmentMaxAggregateInput.schema';
|
||||
import { AppointmentAvgAggregateInputObjectSchema as AppointmentAvgAggregateInputObjectSchema } from './objects/AppointmentAvgAggregateInput.schema';
|
||||
import { AppointmentSumAggregateInputObjectSchema as AppointmentSumAggregateInputObjectSchema } from './objects/AppointmentSumAggregateInput.schema';
|
||||
|
||||
export const AppointmentAggregateSchema: z.ZodType<Prisma.AppointmentAggregateArgs> = 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() }).strict() as unknown as z.ZodType<Prisma.AppointmentAggregateArgs>;
|
||||
|
||||
export const AppointmentAggregateZodSchema = 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() }).strict();
|
||||
38
packages/db/shared/schemas/aggregateAppointmentProcedure.schema.d.ts
vendored
Normal file
38
packages/db/shared/schemas/aggregateAppointmentProcedure.schema.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
export declare const AppointmentProcedureAggregateSchema: z.ZodType<Prisma.AppointmentProcedureAggregateArgs>;
|
||||
export declare const AppointmentProcedureAggregateZodSchema: z.ZodObject<{
|
||||
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.AppointmentProcedureOrderByWithRelationInput, z.ZodTypeDef, Prisma.AppointmentProcedureOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.AppointmentProcedureOrderByWithRelationInput, z.ZodTypeDef, Prisma.AppointmentProcedureOrderByWithRelationInput>, "many">]>>;
|
||||
where: z.ZodOptional<z.ZodType<Prisma.AppointmentProcedureWhereInput, z.ZodTypeDef, Prisma.AppointmentProcedureWhereInput>>;
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.AppointmentProcedureWhereUniqueInput, z.ZodTypeDef, Prisma.AppointmentProcedureWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.AppointmentProcedureCountAggregateInputType, z.ZodTypeDef, Prisma.AppointmentProcedureCountAggregateInputType>]>>;
|
||||
_min: z.ZodOptional<z.ZodType<Prisma.AppointmentProcedureMinAggregateInputType, z.ZodTypeDef, Prisma.AppointmentProcedureMinAggregateInputType>>;
|
||||
_max: z.ZodOptional<z.ZodType<Prisma.AppointmentProcedureMaxAggregateInputType, z.ZodTypeDef, Prisma.AppointmentProcedureMaxAggregateInputType>>;
|
||||
_avg: z.ZodOptional<z.ZodType<Prisma.AppointmentProcedureAvgAggregateInputType, z.ZodTypeDef, Prisma.AppointmentProcedureAvgAggregateInputType>>;
|
||||
_sum: z.ZodOptional<z.ZodType<Prisma.AppointmentProcedureSumAggregateInputType, z.ZodTypeDef, Prisma.AppointmentProcedureSumAggregateInputType>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.AppointmentProcedureWhereInput | undefined;
|
||||
_count?: true | Prisma.AppointmentProcedureCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.AppointmentProcedureOrderByWithRelationInput | Prisma.AppointmentProcedureOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.AppointmentProcedureWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.AppointmentProcedureMinAggregateInputType | undefined;
|
||||
_max?: Prisma.AppointmentProcedureMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.AppointmentProcedureAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.AppointmentProcedureSumAggregateInputType | undefined;
|
||||
}, {
|
||||
where?: Prisma.AppointmentProcedureWhereInput | undefined;
|
||||
_count?: true | Prisma.AppointmentProcedureCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.AppointmentProcedureOrderByWithRelationInput | Prisma.AppointmentProcedureOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.AppointmentProcedureWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.AppointmentProcedureMinAggregateInputType | undefined;
|
||||
_max?: Prisma.AppointmentProcedureMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.AppointmentProcedureAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.AppointmentProcedureSumAggregateInputType | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=aggregateAppointmentProcedure.schema.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"aggregateAppointmentProcedure.schema.d.ts","sourceRoot":"","sources":["aggregateAppointmentProcedure.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,iCAAiC,CAAyyB,CAAC;AAE94B,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsuB,CAAC"}
|
||||
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AppointmentProcedureAggregateZodSchema = exports.AppointmentProcedureAggregateSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const AppointmentProcedureOrderByWithRelationInput_schema_1 = require("./objects/AppointmentProcedureOrderByWithRelationInput.schema");
|
||||
const AppointmentProcedureWhereInput_schema_1 = require("./objects/AppointmentProcedureWhereInput.schema");
|
||||
const AppointmentProcedureWhereUniqueInput_schema_1 = require("./objects/AppointmentProcedureWhereUniqueInput.schema");
|
||||
const AppointmentProcedureCountAggregateInput_schema_1 = require("./objects/AppointmentProcedureCountAggregateInput.schema");
|
||||
const AppointmentProcedureMinAggregateInput_schema_1 = require("./objects/AppointmentProcedureMinAggregateInput.schema");
|
||||
const AppointmentProcedureMaxAggregateInput_schema_1 = require("./objects/AppointmentProcedureMaxAggregateInput.schema");
|
||||
const AppointmentProcedureAvgAggregateInput_schema_1 = require("./objects/AppointmentProcedureAvgAggregateInput.schema");
|
||||
const AppointmentProcedureSumAggregateInput_schema_1 = require("./objects/AppointmentProcedureSumAggregateInput.schema");
|
||||
exports.AppointmentProcedureAggregateSchema = z.object({ orderBy: z.union([AppointmentProcedureOrderByWithRelationInput_schema_1.AppointmentProcedureOrderByWithRelationInputObjectSchema, AppointmentProcedureOrderByWithRelationInput_schema_1.AppointmentProcedureOrderByWithRelationInputObjectSchema.array()]).optional(), where: AppointmentProcedureWhereInput_schema_1.AppointmentProcedureWhereInputObjectSchema.optional(), cursor: AppointmentProcedureWhereUniqueInput_schema_1.AppointmentProcedureWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), AppointmentProcedureCountAggregateInput_schema_1.AppointmentProcedureCountAggregateInputObjectSchema]).optional(), _min: AppointmentProcedureMinAggregateInput_schema_1.AppointmentProcedureMinAggregateInputObjectSchema.optional(), _max: AppointmentProcedureMaxAggregateInput_schema_1.AppointmentProcedureMaxAggregateInputObjectSchema.optional(), _avg: AppointmentProcedureAvgAggregateInput_schema_1.AppointmentProcedureAvgAggregateInputObjectSchema.optional(), _sum: AppointmentProcedureSumAggregateInput_schema_1.AppointmentProcedureSumAggregateInputObjectSchema.optional() }).strict();
|
||||
exports.AppointmentProcedureAggregateZodSchema = z.object({ orderBy: z.union([AppointmentProcedureOrderByWithRelationInput_schema_1.AppointmentProcedureOrderByWithRelationInputObjectSchema, AppointmentProcedureOrderByWithRelationInput_schema_1.AppointmentProcedureOrderByWithRelationInputObjectSchema.array()]).optional(), where: AppointmentProcedureWhereInput_schema_1.AppointmentProcedureWhereInputObjectSchema.optional(), cursor: AppointmentProcedureWhereUniqueInput_schema_1.AppointmentProcedureWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), AppointmentProcedureCountAggregateInput_schema_1.AppointmentProcedureCountAggregateInputObjectSchema]).optional(), _min: AppointmentProcedureMinAggregateInput_schema_1.AppointmentProcedureMinAggregateInputObjectSchema.optional(), _max: AppointmentProcedureMaxAggregateInput_schema_1.AppointmentProcedureMaxAggregateInputObjectSchema.optional(), _avg: AppointmentProcedureAvgAggregateInput_schema_1.AppointmentProcedureAvgAggregateInputObjectSchema.optional(), _sum: AppointmentProcedureSumAggregateInput_schema_1.AppointmentProcedureSumAggregateInputObjectSchema.optional() }).strict();
|
||||
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { AppointmentProcedureOrderByWithRelationInputObjectSchema as AppointmentProcedureOrderByWithRelationInputObjectSchema } from './objects/AppointmentProcedureOrderByWithRelationInput.schema';
|
||||
import { AppointmentProcedureWhereInputObjectSchema as AppointmentProcedureWhereInputObjectSchema } from './objects/AppointmentProcedureWhereInput.schema';
|
||||
import { AppointmentProcedureWhereUniqueInputObjectSchema as AppointmentProcedureWhereUniqueInputObjectSchema } from './objects/AppointmentProcedureWhereUniqueInput.schema';
|
||||
import { AppointmentProcedureCountAggregateInputObjectSchema as AppointmentProcedureCountAggregateInputObjectSchema } from './objects/AppointmentProcedureCountAggregateInput.schema';
|
||||
import { AppointmentProcedureMinAggregateInputObjectSchema as AppointmentProcedureMinAggregateInputObjectSchema } from './objects/AppointmentProcedureMinAggregateInput.schema';
|
||||
import { AppointmentProcedureMaxAggregateInputObjectSchema as AppointmentProcedureMaxAggregateInputObjectSchema } from './objects/AppointmentProcedureMaxAggregateInput.schema';
|
||||
import { AppointmentProcedureAvgAggregateInputObjectSchema as AppointmentProcedureAvgAggregateInputObjectSchema } from './objects/AppointmentProcedureAvgAggregateInput.schema';
|
||||
import { AppointmentProcedureSumAggregateInputObjectSchema as AppointmentProcedureSumAggregateInputObjectSchema } from './objects/AppointmentProcedureSumAggregateInput.schema';
|
||||
|
||||
export const AppointmentProcedureAggregateSchema: z.ZodType<Prisma.AppointmentProcedureAggregateArgs> = z.object({ orderBy: z.union([AppointmentProcedureOrderByWithRelationInputObjectSchema, AppointmentProcedureOrderByWithRelationInputObjectSchema.array()]).optional(), where: AppointmentProcedureWhereInputObjectSchema.optional(), cursor: AppointmentProcedureWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), AppointmentProcedureCountAggregateInputObjectSchema ]).optional(), _min: AppointmentProcedureMinAggregateInputObjectSchema.optional(), _max: AppointmentProcedureMaxAggregateInputObjectSchema.optional(), _avg: AppointmentProcedureAvgAggregateInputObjectSchema.optional(), _sum: AppointmentProcedureSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.AppointmentProcedureAggregateArgs>;
|
||||
|
||||
export const AppointmentProcedureAggregateZodSchema = z.object({ orderBy: z.union([AppointmentProcedureOrderByWithRelationInputObjectSchema, AppointmentProcedureOrderByWithRelationInputObjectSchema.array()]).optional(), where: AppointmentProcedureWhereInputObjectSchema.optional(), cursor: AppointmentProcedureWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), AppointmentProcedureCountAggregateInputObjectSchema ]).optional(), _min: AppointmentProcedureMinAggregateInputObjectSchema.optional(), _max: AppointmentProcedureMaxAggregateInputObjectSchema.optional(), _avg: AppointmentProcedureAvgAggregateInputObjectSchema.optional(), _sum: AppointmentProcedureSumAggregateInputObjectSchema.optional() }).strict();
|
||||
38
packages/db/shared/schemas/aggregateBackupDestination.schema.d.ts
vendored
Normal file
38
packages/db/shared/schemas/aggregateBackupDestination.schema.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
export declare const BackupDestinationAggregateSchema: z.ZodType<Prisma.BackupDestinationAggregateArgs>;
|
||||
export declare const BackupDestinationAggregateZodSchema: z.ZodObject<{
|
||||
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.BackupDestinationOrderByWithRelationInput, z.ZodTypeDef, Prisma.BackupDestinationOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.BackupDestinationOrderByWithRelationInput, z.ZodTypeDef, Prisma.BackupDestinationOrderByWithRelationInput>, "many">]>>;
|
||||
where: z.ZodOptional<z.ZodType<Prisma.BackupDestinationWhereInput, z.ZodTypeDef, Prisma.BackupDestinationWhereInput>>;
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.BackupDestinationWhereUniqueInput, z.ZodTypeDef, Prisma.BackupDestinationWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.BackupDestinationCountAggregateInputType, z.ZodTypeDef, Prisma.BackupDestinationCountAggregateInputType>]>>;
|
||||
_min: z.ZodOptional<z.ZodType<Prisma.BackupDestinationMinAggregateInputType, z.ZodTypeDef, Prisma.BackupDestinationMinAggregateInputType>>;
|
||||
_max: z.ZodOptional<z.ZodType<Prisma.BackupDestinationMaxAggregateInputType, z.ZodTypeDef, Prisma.BackupDestinationMaxAggregateInputType>>;
|
||||
_avg: z.ZodOptional<z.ZodType<Prisma.BackupDestinationAvgAggregateInputType, z.ZodTypeDef, Prisma.BackupDestinationAvgAggregateInputType>>;
|
||||
_sum: z.ZodOptional<z.ZodType<Prisma.BackupDestinationSumAggregateInputType, z.ZodTypeDef, Prisma.BackupDestinationSumAggregateInputType>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.BackupDestinationWhereInput | undefined;
|
||||
_count?: true | Prisma.BackupDestinationCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.BackupDestinationOrderByWithRelationInput | Prisma.BackupDestinationOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.BackupDestinationWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.BackupDestinationMinAggregateInputType | undefined;
|
||||
_max?: Prisma.BackupDestinationMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.BackupDestinationAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.BackupDestinationSumAggregateInputType | undefined;
|
||||
}, {
|
||||
where?: Prisma.BackupDestinationWhereInput | undefined;
|
||||
_count?: true | Prisma.BackupDestinationCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.BackupDestinationOrderByWithRelationInput | Prisma.BackupDestinationOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.BackupDestinationWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.BackupDestinationMinAggregateInputType | undefined;
|
||||
_max?: Prisma.BackupDestinationMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.BackupDestinationAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.BackupDestinationSumAggregateInputType | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=aggregateBackupDestination.schema.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"aggregateBackupDestination.schema.d.ts","sourceRoot":"","sources":["aggregateBackupDestination.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,8BAA8B,CAA2wB,CAAC;AAE12B,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2sB,CAAC"}
|
||||
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.BackupDestinationAggregateZodSchema = exports.BackupDestinationAggregateSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const BackupDestinationOrderByWithRelationInput_schema_1 = require("./objects/BackupDestinationOrderByWithRelationInput.schema");
|
||||
const BackupDestinationWhereInput_schema_1 = require("./objects/BackupDestinationWhereInput.schema");
|
||||
const BackupDestinationWhereUniqueInput_schema_1 = require("./objects/BackupDestinationWhereUniqueInput.schema");
|
||||
const BackupDestinationCountAggregateInput_schema_1 = require("./objects/BackupDestinationCountAggregateInput.schema");
|
||||
const BackupDestinationMinAggregateInput_schema_1 = require("./objects/BackupDestinationMinAggregateInput.schema");
|
||||
const BackupDestinationMaxAggregateInput_schema_1 = require("./objects/BackupDestinationMaxAggregateInput.schema");
|
||||
const BackupDestinationAvgAggregateInput_schema_1 = require("./objects/BackupDestinationAvgAggregateInput.schema");
|
||||
const BackupDestinationSumAggregateInput_schema_1 = require("./objects/BackupDestinationSumAggregateInput.schema");
|
||||
exports.BackupDestinationAggregateSchema = z.object({ orderBy: z.union([BackupDestinationOrderByWithRelationInput_schema_1.BackupDestinationOrderByWithRelationInputObjectSchema, BackupDestinationOrderByWithRelationInput_schema_1.BackupDestinationOrderByWithRelationInputObjectSchema.array()]).optional(), where: BackupDestinationWhereInput_schema_1.BackupDestinationWhereInputObjectSchema.optional(), cursor: BackupDestinationWhereUniqueInput_schema_1.BackupDestinationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), BackupDestinationCountAggregateInput_schema_1.BackupDestinationCountAggregateInputObjectSchema]).optional(), _min: BackupDestinationMinAggregateInput_schema_1.BackupDestinationMinAggregateInputObjectSchema.optional(), _max: BackupDestinationMaxAggregateInput_schema_1.BackupDestinationMaxAggregateInputObjectSchema.optional(), _avg: BackupDestinationAvgAggregateInput_schema_1.BackupDestinationAvgAggregateInputObjectSchema.optional(), _sum: BackupDestinationSumAggregateInput_schema_1.BackupDestinationSumAggregateInputObjectSchema.optional() }).strict();
|
||||
exports.BackupDestinationAggregateZodSchema = z.object({ orderBy: z.union([BackupDestinationOrderByWithRelationInput_schema_1.BackupDestinationOrderByWithRelationInputObjectSchema, BackupDestinationOrderByWithRelationInput_schema_1.BackupDestinationOrderByWithRelationInputObjectSchema.array()]).optional(), where: BackupDestinationWhereInput_schema_1.BackupDestinationWhereInputObjectSchema.optional(), cursor: BackupDestinationWhereUniqueInput_schema_1.BackupDestinationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), BackupDestinationCountAggregateInput_schema_1.BackupDestinationCountAggregateInputObjectSchema]).optional(), _min: BackupDestinationMinAggregateInput_schema_1.BackupDestinationMinAggregateInputObjectSchema.optional(), _max: BackupDestinationMaxAggregateInput_schema_1.BackupDestinationMaxAggregateInputObjectSchema.optional(), _avg: BackupDestinationAvgAggregateInput_schema_1.BackupDestinationAvgAggregateInputObjectSchema.optional(), _sum: BackupDestinationSumAggregateInput_schema_1.BackupDestinationSumAggregateInputObjectSchema.optional() }).strict();
|
||||
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { BackupDestinationOrderByWithRelationInputObjectSchema as BackupDestinationOrderByWithRelationInputObjectSchema } from './objects/BackupDestinationOrderByWithRelationInput.schema';
|
||||
import { BackupDestinationWhereInputObjectSchema as BackupDestinationWhereInputObjectSchema } from './objects/BackupDestinationWhereInput.schema';
|
||||
import { BackupDestinationWhereUniqueInputObjectSchema as BackupDestinationWhereUniqueInputObjectSchema } from './objects/BackupDestinationWhereUniqueInput.schema';
|
||||
import { BackupDestinationCountAggregateInputObjectSchema as BackupDestinationCountAggregateInputObjectSchema } from './objects/BackupDestinationCountAggregateInput.schema';
|
||||
import { BackupDestinationMinAggregateInputObjectSchema as BackupDestinationMinAggregateInputObjectSchema } from './objects/BackupDestinationMinAggregateInput.schema';
|
||||
import { BackupDestinationMaxAggregateInputObjectSchema as BackupDestinationMaxAggregateInputObjectSchema } from './objects/BackupDestinationMaxAggregateInput.schema';
|
||||
import { BackupDestinationAvgAggregateInputObjectSchema as BackupDestinationAvgAggregateInputObjectSchema } from './objects/BackupDestinationAvgAggregateInput.schema';
|
||||
import { BackupDestinationSumAggregateInputObjectSchema as BackupDestinationSumAggregateInputObjectSchema } from './objects/BackupDestinationSumAggregateInput.schema';
|
||||
|
||||
export const BackupDestinationAggregateSchema: z.ZodType<Prisma.BackupDestinationAggregateArgs> = z.object({ orderBy: z.union([BackupDestinationOrderByWithRelationInputObjectSchema, BackupDestinationOrderByWithRelationInputObjectSchema.array()]).optional(), where: BackupDestinationWhereInputObjectSchema.optional(), cursor: BackupDestinationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), BackupDestinationCountAggregateInputObjectSchema ]).optional(), _min: BackupDestinationMinAggregateInputObjectSchema.optional(), _max: BackupDestinationMaxAggregateInputObjectSchema.optional(), _avg: BackupDestinationAvgAggregateInputObjectSchema.optional(), _sum: BackupDestinationSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.BackupDestinationAggregateArgs>;
|
||||
|
||||
export const BackupDestinationAggregateZodSchema = z.object({ orderBy: z.union([BackupDestinationOrderByWithRelationInputObjectSchema, BackupDestinationOrderByWithRelationInputObjectSchema.array()]).optional(), where: BackupDestinationWhereInputObjectSchema.optional(), cursor: BackupDestinationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), BackupDestinationCountAggregateInputObjectSchema ]).optional(), _min: BackupDestinationMinAggregateInputObjectSchema.optional(), _max: BackupDestinationMaxAggregateInputObjectSchema.optional(), _avg: BackupDestinationAvgAggregateInputObjectSchema.optional(), _sum: BackupDestinationSumAggregateInputObjectSchema.optional() }).strict();
|
||||
38
packages/db/shared/schemas/aggregateClaim.schema.d.ts
vendored
Normal file
38
packages/db/shared/schemas/aggregateClaim.schema.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
export declare const ClaimAggregateSchema: z.ZodType<Prisma.ClaimAggregateArgs>;
|
||||
export declare const ClaimAggregateZodSchema: z.ZodObject<{
|
||||
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.ClaimOrderByWithRelationInput, z.ZodTypeDef, Prisma.ClaimOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.ClaimOrderByWithRelationInput, z.ZodTypeDef, Prisma.ClaimOrderByWithRelationInput>, "many">]>>;
|
||||
where: z.ZodOptional<z.ZodType<Prisma.ClaimWhereInput, z.ZodTypeDef, Prisma.ClaimWhereInput>>;
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.ClaimWhereUniqueInput, z.ZodTypeDef, Prisma.ClaimWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.ClaimCountAggregateInputType, z.ZodTypeDef, Prisma.ClaimCountAggregateInputType>]>>;
|
||||
_min: z.ZodOptional<z.ZodType<Prisma.ClaimMinAggregateInputType, z.ZodTypeDef, Prisma.ClaimMinAggregateInputType>>;
|
||||
_max: z.ZodOptional<z.ZodType<Prisma.ClaimMaxAggregateInputType, z.ZodTypeDef, Prisma.ClaimMaxAggregateInputType>>;
|
||||
_avg: z.ZodOptional<z.ZodType<Prisma.ClaimAvgAggregateInputType, z.ZodTypeDef, Prisma.ClaimAvgAggregateInputType>>;
|
||||
_sum: z.ZodOptional<z.ZodType<Prisma.ClaimSumAggregateInputType, z.ZodTypeDef, Prisma.ClaimSumAggregateInputType>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.ClaimWhereInput | undefined;
|
||||
_count?: true | Prisma.ClaimCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.ClaimOrderByWithRelationInput | Prisma.ClaimOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.ClaimWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.ClaimMinAggregateInputType | undefined;
|
||||
_max?: Prisma.ClaimMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.ClaimAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.ClaimSumAggregateInputType | undefined;
|
||||
}, {
|
||||
where?: Prisma.ClaimWhereInput | undefined;
|
||||
_count?: true | Prisma.ClaimCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.ClaimOrderByWithRelationInput | Prisma.ClaimOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.ClaimWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.ClaimMinAggregateInputType | undefined;
|
||||
_max?: Prisma.ClaimMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.ClaimAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.ClaimSumAggregateInputType | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=aggregateClaim.schema.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"aggregateClaim.schema.d.ts","sourceRoot":"","sources":["aggregateClaim.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAmpB,CAAC;AAE1tB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+lB,CAAC"}
|
||||
47
packages/db/shared/schemas/aggregateClaim.schema.js
Normal file
47
packages/db/shared/schemas/aggregateClaim.schema.js
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ClaimAggregateZodSchema = exports.ClaimAggregateSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const ClaimOrderByWithRelationInput_schema_1 = require("./objects/ClaimOrderByWithRelationInput.schema");
|
||||
const ClaimWhereInput_schema_1 = require("./objects/ClaimWhereInput.schema");
|
||||
const ClaimWhereUniqueInput_schema_1 = require("./objects/ClaimWhereUniqueInput.schema");
|
||||
const ClaimCountAggregateInput_schema_1 = require("./objects/ClaimCountAggregateInput.schema");
|
||||
const ClaimMinAggregateInput_schema_1 = require("./objects/ClaimMinAggregateInput.schema");
|
||||
const ClaimMaxAggregateInput_schema_1 = require("./objects/ClaimMaxAggregateInput.schema");
|
||||
const ClaimAvgAggregateInput_schema_1 = require("./objects/ClaimAvgAggregateInput.schema");
|
||||
const ClaimSumAggregateInput_schema_1 = require("./objects/ClaimSumAggregateInput.schema");
|
||||
exports.ClaimAggregateSchema = z.object({ orderBy: z.union([ClaimOrderByWithRelationInput_schema_1.ClaimOrderByWithRelationInputObjectSchema, ClaimOrderByWithRelationInput_schema_1.ClaimOrderByWithRelationInputObjectSchema.array()]).optional(), where: ClaimWhereInput_schema_1.ClaimWhereInputObjectSchema.optional(), cursor: ClaimWhereUniqueInput_schema_1.ClaimWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), ClaimCountAggregateInput_schema_1.ClaimCountAggregateInputObjectSchema]).optional(), _min: ClaimMinAggregateInput_schema_1.ClaimMinAggregateInputObjectSchema.optional(), _max: ClaimMaxAggregateInput_schema_1.ClaimMaxAggregateInputObjectSchema.optional(), _avg: ClaimAvgAggregateInput_schema_1.ClaimAvgAggregateInputObjectSchema.optional(), _sum: ClaimSumAggregateInput_schema_1.ClaimSumAggregateInputObjectSchema.optional() }).strict();
|
||||
exports.ClaimAggregateZodSchema = z.object({ orderBy: z.union([ClaimOrderByWithRelationInput_schema_1.ClaimOrderByWithRelationInputObjectSchema, ClaimOrderByWithRelationInput_schema_1.ClaimOrderByWithRelationInputObjectSchema.array()]).optional(), where: ClaimWhereInput_schema_1.ClaimWhereInputObjectSchema.optional(), cursor: ClaimWhereUniqueInput_schema_1.ClaimWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), ClaimCountAggregateInput_schema_1.ClaimCountAggregateInputObjectSchema]).optional(), _min: ClaimMinAggregateInput_schema_1.ClaimMinAggregateInputObjectSchema.optional(), _max: ClaimMaxAggregateInput_schema_1.ClaimMaxAggregateInputObjectSchema.optional(), _avg: ClaimAvgAggregateInput_schema_1.ClaimAvgAggregateInputObjectSchema.optional(), _sum: ClaimSumAggregateInput_schema_1.ClaimSumAggregateInputObjectSchema.optional() }).strict();
|
||||
14
packages/db/shared/schemas/aggregateClaim.schema.ts
Normal file
14
packages/db/shared/schemas/aggregateClaim.schema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { ClaimOrderByWithRelationInputObjectSchema as ClaimOrderByWithRelationInputObjectSchema } from './objects/ClaimOrderByWithRelationInput.schema';
|
||||
import { ClaimWhereInputObjectSchema as ClaimWhereInputObjectSchema } from './objects/ClaimWhereInput.schema';
|
||||
import { ClaimWhereUniqueInputObjectSchema as ClaimWhereUniqueInputObjectSchema } from './objects/ClaimWhereUniqueInput.schema';
|
||||
import { ClaimCountAggregateInputObjectSchema as ClaimCountAggregateInputObjectSchema } from './objects/ClaimCountAggregateInput.schema';
|
||||
import { ClaimMinAggregateInputObjectSchema as ClaimMinAggregateInputObjectSchema } from './objects/ClaimMinAggregateInput.schema';
|
||||
import { ClaimMaxAggregateInputObjectSchema as ClaimMaxAggregateInputObjectSchema } from './objects/ClaimMaxAggregateInput.schema';
|
||||
import { ClaimAvgAggregateInputObjectSchema as ClaimAvgAggregateInputObjectSchema } from './objects/ClaimAvgAggregateInput.schema';
|
||||
import { ClaimSumAggregateInputObjectSchema as ClaimSumAggregateInputObjectSchema } from './objects/ClaimSumAggregateInput.schema';
|
||||
|
||||
export const ClaimAggregateSchema: z.ZodType<Prisma.ClaimAggregateArgs> = z.object({ orderBy: z.union([ClaimOrderByWithRelationInputObjectSchema, ClaimOrderByWithRelationInputObjectSchema.array()]).optional(), where: ClaimWhereInputObjectSchema.optional(), cursor: ClaimWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), ClaimCountAggregateInputObjectSchema ]).optional(), _min: ClaimMinAggregateInputObjectSchema.optional(), _max: ClaimMaxAggregateInputObjectSchema.optional(), _avg: ClaimAvgAggregateInputObjectSchema.optional(), _sum: ClaimSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.ClaimAggregateArgs>;
|
||||
|
||||
export const ClaimAggregateZodSchema = z.object({ orderBy: z.union([ClaimOrderByWithRelationInputObjectSchema, ClaimOrderByWithRelationInputObjectSchema.array()]).optional(), where: ClaimWhereInputObjectSchema.optional(), cursor: ClaimWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), ClaimCountAggregateInputObjectSchema ]).optional(), _min: ClaimMinAggregateInputObjectSchema.optional(), _max: ClaimMaxAggregateInputObjectSchema.optional(), _avg: ClaimAvgAggregateInputObjectSchema.optional(), _sum: ClaimSumAggregateInputObjectSchema.optional() }).strict();
|
||||
38
packages/db/shared/schemas/aggregateClaimFile.schema.d.ts
vendored
Normal file
38
packages/db/shared/schemas/aggregateClaimFile.schema.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
export declare const ClaimFileAggregateSchema: z.ZodType<Prisma.ClaimFileAggregateArgs>;
|
||||
export declare const ClaimFileAggregateZodSchema: z.ZodObject<{
|
||||
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.ClaimFileOrderByWithRelationInput, z.ZodTypeDef, Prisma.ClaimFileOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.ClaimFileOrderByWithRelationInput, z.ZodTypeDef, Prisma.ClaimFileOrderByWithRelationInput>, "many">]>>;
|
||||
where: z.ZodOptional<z.ZodType<Prisma.ClaimFileWhereInput, z.ZodTypeDef, Prisma.ClaimFileWhereInput>>;
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.ClaimFileWhereUniqueInput, z.ZodTypeDef, Prisma.ClaimFileWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.ClaimFileCountAggregateInputType, z.ZodTypeDef, Prisma.ClaimFileCountAggregateInputType>]>>;
|
||||
_min: z.ZodOptional<z.ZodType<Prisma.ClaimFileMinAggregateInputType, z.ZodTypeDef, Prisma.ClaimFileMinAggregateInputType>>;
|
||||
_max: z.ZodOptional<z.ZodType<Prisma.ClaimFileMaxAggregateInputType, z.ZodTypeDef, Prisma.ClaimFileMaxAggregateInputType>>;
|
||||
_avg: z.ZodOptional<z.ZodType<Prisma.ClaimFileAvgAggregateInputType, z.ZodTypeDef, Prisma.ClaimFileAvgAggregateInputType>>;
|
||||
_sum: z.ZodOptional<z.ZodType<Prisma.ClaimFileSumAggregateInputType, z.ZodTypeDef, Prisma.ClaimFileSumAggregateInputType>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.ClaimFileWhereInput | undefined;
|
||||
_count?: true | Prisma.ClaimFileCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.ClaimFileOrderByWithRelationInput | Prisma.ClaimFileOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.ClaimFileWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.ClaimFileMinAggregateInputType | undefined;
|
||||
_max?: Prisma.ClaimFileMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.ClaimFileAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.ClaimFileSumAggregateInputType | undefined;
|
||||
}, {
|
||||
where?: Prisma.ClaimFileWhereInput | undefined;
|
||||
_count?: true | Prisma.ClaimFileCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.ClaimFileOrderByWithRelationInput | Prisma.ClaimFileOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.ClaimFileWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.ClaimFileMinAggregateInputType | undefined;
|
||||
_max?: Prisma.ClaimFileMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.ClaimFileAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.ClaimFileSumAggregateInputType | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=aggregateClaimFile.schema.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"aggregateClaimFile.schema.d.ts","sourceRoot":"","sources":["aggregateClaimFile.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAA2rB,CAAC;AAE1wB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmoB,CAAC"}
|
||||
47
packages/db/shared/schemas/aggregateClaimFile.schema.js
Normal file
47
packages/db/shared/schemas/aggregateClaimFile.schema.js
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ClaimFileAggregateZodSchema = exports.ClaimFileAggregateSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const ClaimFileOrderByWithRelationInput_schema_1 = require("./objects/ClaimFileOrderByWithRelationInput.schema");
|
||||
const ClaimFileWhereInput_schema_1 = require("./objects/ClaimFileWhereInput.schema");
|
||||
const ClaimFileWhereUniqueInput_schema_1 = require("./objects/ClaimFileWhereUniqueInput.schema");
|
||||
const ClaimFileCountAggregateInput_schema_1 = require("./objects/ClaimFileCountAggregateInput.schema");
|
||||
const ClaimFileMinAggregateInput_schema_1 = require("./objects/ClaimFileMinAggregateInput.schema");
|
||||
const ClaimFileMaxAggregateInput_schema_1 = require("./objects/ClaimFileMaxAggregateInput.schema");
|
||||
const ClaimFileAvgAggregateInput_schema_1 = require("./objects/ClaimFileAvgAggregateInput.schema");
|
||||
const ClaimFileSumAggregateInput_schema_1 = require("./objects/ClaimFileSumAggregateInput.schema");
|
||||
exports.ClaimFileAggregateSchema = z.object({ orderBy: z.union([ClaimFileOrderByWithRelationInput_schema_1.ClaimFileOrderByWithRelationInputObjectSchema, ClaimFileOrderByWithRelationInput_schema_1.ClaimFileOrderByWithRelationInputObjectSchema.array()]).optional(), where: ClaimFileWhereInput_schema_1.ClaimFileWhereInputObjectSchema.optional(), cursor: ClaimFileWhereUniqueInput_schema_1.ClaimFileWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), ClaimFileCountAggregateInput_schema_1.ClaimFileCountAggregateInputObjectSchema]).optional(), _min: ClaimFileMinAggregateInput_schema_1.ClaimFileMinAggregateInputObjectSchema.optional(), _max: ClaimFileMaxAggregateInput_schema_1.ClaimFileMaxAggregateInputObjectSchema.optional(), _avg: ClaimFileAvgAggregateInput_schema_1.ClaimFileAvgAggregateInputObjectSchema.optional(), _sum: ClaimFileSumAggregateInput_schema_1.ClaimFileSumAggregateInputObjectSchema.optional() }).strict();
|
||||
exports.ClaimFileAggregateZodSchema = z.object({ orderBy: z.union([ClaimFileOrderByWithRelationInput_schema_1.ClaimFileOrderByWithRelationInputObjectSchema, ClaimFileOrderByWithRelationInput_schema_1.ClaimFileOrderByWithRelationInputObjectSchema.array()]).optional(), where: ClaimFileWhereInput_schema_1.ClaimFileWhereInputObjectSchema.optional(), cursor: ClaimFileWhereUniqueInput_schema_1.ClaimFileWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), ClaimFileCountAggregateInput_schema_1.ClaimFileCountAggregateInputObjectSchema]).optional(), _min: ClaimFileMinAggregateInput_schema_1.ClaimFileMinAggregateInputObjectSchema.optional(), _max: ClaimFileMaxAggregateInput_schema_1.ClaimFileMaxAggregateInputObjectSchema.optional(), _avg: ClaimFileAvgAggregateInput_schema_1.ClaimFileAvgAggregateInputObjectSchema.optional(), _sum: ClaimFileSumAggregateInput_schema_1.ClaimFileSumAggregateInputObjectSchema.optional() }).strict();
|
||||
14
packages/db/shared/schemas/aggregateClaimFile.schema.ts
Normal file
14
packages/db/shared/schemas/aggregateClaimFile.schema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { ClaimFileOrderByWithRelationInputObjectSchema as ClaimFileOrderByWithRelationInputObjectSchema } from './objects/ClaimFileOrderByWithRelationInput.schema';
|
||||
import { ClaimFileWhereInputObjectSchema as ClaimFileWhereInputObjectSchema } from './objects/ClaimFileWhereInput.schema';
|
||||
import { ClaimFileWhereUniqueInputObjectSchema as ClaimFileWhereUniqueInputObjectSchema } from './objects/ClaimFileWhereUniqueInput.schema';
|
||||
import { ClaimFileCountAggregateInputObjectSchema as ClaimFileCountAggregateInputObjectSchema } from './objects/ClaimFileCountAggregateInput.schema';
|
||||
import { ClaimFileMinAggregateInputObjectSchema as ClaimFileMinAggregateInputObjectSchema } from './objects/ClaimFileMinAggregateInput.schema';
|
||||
import { ClaimFileMaxAggregateInputObjectSchema as ClaimFileMaxAggregateInputObjectSchema } from './objects/ClaimFileMaxAggregateInput.schema';
|
||||
import { ClaimFileAvgAggregateInputObjectSchema as ClaimFileAvgAggregateInputObjectSchema } from './objects/ClaimFileAvgAggregateInput.schema';
|
||||
import { ClaimFileSumAggregateInputObjectSchema as ClaimFileSumAggregateInputObjectSchema } from './objects/ClaimFileSumAggregateInput.schema';
|
||||
|
||||
export const ClaimFileAggregateSchema: z.ZodType<Prisma.ClaimFileAggregateArgs> = z.object({ orderBy: z.union([ClaimFileOrderByWithRelationInputObjectSchema, ClaimFileOrderByWithRelationInputObjectSchema.array()]).optional(), where: ClaimFileWhereInputObjectSchema.optional(), cursor: ClaimFileWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), ClaimFileCountAggregateInputObjectSchema ]).optional(), _min: ClaimFileMinAggregateInputObjectSchema.optional(), _max: ClaimFileMaxAggregateInputObjectSchema.optional(), _avg: ClaimFileAvgAggregateInputObjectSchema.optional(), _sum: ClaimFileSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.ClaimFileAggregateArgs>;
|
||||
|
||||
export const ClaimFileAggregateZodSchema = z.object({ orderBy: z.union([ClaimFileOrderByWithRelationInputObjectSchema, ClaimFileOrderByWithRelationInputObjectSchema.array()]).optional(), where: ClaimFileWhereInputObjectSchema.optional(), cursor: ClaimFileWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), ClaimFileCountAggregateInputObjectSchema ]).optional(), _min: ClaimFileMinAggregateInputObjectSchema.optional(), _max: ClaimFileMaxAggregateInputObjectSchema.optional(), _avg: ClaimFileAvgAggregateInputObjectSchema.optional(), _sum: ClaimFileSumAggregateInputObjectSchema.optional() }).strict();
|
||||
38
packages/db/shared/schemas/aggregateCloudFile.schema.d.ts
vendored
Normal file
38
packages/db/shared/schemas/aggregateCloudFile.schema.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
export declare const CloudFileAggregateSchema: z.ZodType<Prisma.CloudFileAggregateArgs>;
|
||||
export declare const CloudFileAggregateZodSchema: z.ZodObject<{
|
||||
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.CloudFileOrderByWithRelationInput, z.ZodTypeDef, Prisma.CloudFileOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.CloudFileOrderByWithRelationInput, z.ZodTypeDef, Prisma.CloudFileOrderByWithRelationInput>, "many">]>>;
|
||||
where: z.ZodOptional<z.ZodType<Prisma.CloudFileWhereInput, z.ZodTypeDef, Prisma.CloudFileWhereInput>>;
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.CloudFileWhereUniqueInput, z.ZodTypeDef, Prisma.CloudFileWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.CloudFileCountAggregateInputType, z.ZodTypeDef, Prisma.CloudFileCountAggregateInputType>]>>;
|
||||
_min: z.ZodOptional<z.ZodType<Prisma.CloudFileMinAggregateInputType, z.ZodTypeDef, Prisma.CloudFileMinAggregateInputType>>;
|
||||
_max: z.ZodOptional<z.ZodType<Prisma.CloudFileMaxAggregateInputType, z.ZodTypeDef, Prisma.CloudFileMaxAggregateInputType>>;
|
||||
_avg: z.ZodOptional<z.ZodType<Prisma.CloudFileAvgAggregateInputType, z.ZodTypeDef, Prisma.CloudFileAvgAggregateInputType>>;
|
||||
_sum: z.ZodOptional<z.ZodType<Prisma.CloudFileSumAggregateInputType, z.ZodTypeDef, Prisma.CloudFileSumAggregateInputType>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.CloudFileWhereInput | undefined;
|
||||
_count?: true | Prisma.CloudFileCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.CloudFileOrderByWithRelationInput | Prisma.CloudFileOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.CloudFileWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.CloudFileMinAggregateInputType | undefined;
|
||||
_max?: Prisma.CloudFileMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.CloudFileAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.CloudFileSumAggregateInputType | undefined;
|
||||
}, {
|
||||
where?: Prisma.CloudFileWhereInput | undefined;
|
||||
_count?: true | Prisma.CloudFileCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.CloudFileOrderByWithRelationInput | Prisma.CloudFileOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.CloudFileWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.CloudFileMinAggregateInputType | undefined;
|
||||
_max?: Prisma.CloudFileMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.CloudFileAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.CloudFileSumAggregateInputType | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=aggregateCloudFile.schema.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"aggregateCloudFile.schema.d.ts","sourceRoot":"","sources":["aggregateCloudFile.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAA2rB,CAAC;AAE1wB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmoB,CAAC"}
|
||||
47
packages/db/shared/schemas/aggregateCloudFile.schema.js
Normal file
47
packages/db/shared/schemas/aggregateCloudFile.schema.js
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CloudFileAggregateZodSchema = exports.CloudFileAggregateSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const CloudFileOrderByWithRelationInput_schema_1 = require("./objects/CloudFileOrderByWithRelationInput.schema");
|
||||
const CloudFileWhereInput_schema_1 = require("./objects/CloudFileWhereInput.schema");
|
||||
const CloudFileWhereUniqueInput_schema_1 = require("./objects/CloudFileWhereUniqueInput.schema");
|
||||
const CloudFileCountAggregateInput_schema_1 = require("./objects/CloudFileCountAggregateInput.schema");
|
||||
const CloudFileMinAggregateInput_schema_1 = require("./objects/CloudFileMinAggregateInput.schema");
|
||||
const CloudFileMaxAggregateInput_schema_1 = require("./objects/CloudFileMaxAggregateInput.schema");
|
||||
const CloudFileAvgAggregateInput_schema_1 = require("./objects/CloudFileAvgAggregateInput.schema");
|
||||
const CloudFileSumAggregateInput_schema_1 = require("./objects/CloudFileSumAggregateInput.schema");
|
||||
exports.CloudFileAggregateSchema = z.object({ orderBy: z.union([CloudFileOrderByWithRelationInput_schema_1.CloudFileOrderByWithRelationInputObjectSchema, CloudFileOrderByWithRelationInput_schema_1.CloudFileOrderByWithRelationInputObjectSchema.array()]).optional(), where: CloudFileWhereInput_schema_1.CloudFileWhereInputObjectSchema.optional(), cursor: CloudFileWhereUniqueInput_schema_1.CloudFileWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), CloudFileCountAggregateInput_schema_1.CloudFileCountAggregateInputObjectSchema]).optional(), _min: CloudFileMinAggregateInput_schema_1.CloudFileMinAggregateInputObjectSchema.optional(), _max: CloudFileMaxAggregateInput_schema_1.CloudFileMaxAggregateInputObjectSchema.optional(), _avg: CloudFileAvgAggregateInput_schema_1.CloudFileAvgAggregateInputObjectSchema.optional(), _sum: CloudFileSumAggregateInput_schema_1.CloudFileSumAggregateInputObjectSchema.optional() }).strict();
|
||||
exports.CloudFileAggregateZodSchema = z.object({ orderBy: z.union([CloudFileOrderByWithRelationInput_schema_1.CloudFileOrderByWithRelationInputObjectSchema, CloudFileOrderByWithRelationInput_schema_1.CloudFileOrderByWithRelationInputObjectSchema.array()]).optional(), where: CloudFileWhereInput_schema_1.CloudFileWhereInputObjectSchema.optional(), cursor: CloudFileWhereUniqueInput_schema_1.CloudFileWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), CloudFileCountAggregateInput_schema_1.CloudFileCountAggregateInputObjectSchema]).optional(), _min: CloudFileMinAggregateInput_schema_1.CloudFileMinAggregateInputObjectSchema.optional(), _max: CloudFileMaxAggregateInput_schema_1.CloudFileMaxAggregateInputObjectSchema.optional(), _avg: CloudFileAvgAggregateInput_schema_1.CloudFileAvgAggregateInputObjectSchema.optional(), _sum: CloudFileSumAggregateInput_schema_1.CloudFileSumAggregateInputObjectSchema.optional() }).strict();
|
||||
14
packages/db/shared/schemas/aggregateCloudFile.schema.ts
Normal file
14
packages/db/shared/schemas/aggregateCloudFile.schema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { CloudFileOrderByWithRelationInputObjectSchema as CloudFileOrderByWithRelationInputObjectSchema } from './objects/CloudFileOrderByWithRelationInput.schema';
|
||||
import { CloudFileWhereInputObjectSchema as CloudFileWhereInputObjectSchema } from './objects/CloudFileWhereInput.schema';
|
||||
import { CloudFileWhereUniqueInputObjectSchema as CloudFileWhereUniqueInputObjectSchema } from './objects/CloudFileWhereUniqueInput.schema';
|
||||
import { CloudFileCountAggregateInputObjectSchema as CloudFileCountAggregateInputObjectSchema } from './objects/CloudFileCountAggregateInput.schema';
|
||||
import { CloudFileMinAggregateInputObjectSchema as CloudFileMinAggregateInputObjectSchema } from './objects/CloudFileMinAggregateInput.schema';
|
||||
import { CloudFileMaxAggregateInputObjectSchema as CloudFileMaxAggregateInputObjectSchema } from './objects/CloudFileMaxAggregateInput.schema';
|
||||
import { CloudFileAvgAggregateInputObjectSchema as CloudFileAvgAggregateInputObjectSchema } from './objects/CloudFileAvgAggregateInput.schema';
|
||||
import { CloudFileSumAggregateInputObjectSchema as CloudFileSumAggregateInputObjectSchema } from './objects/CloudFileSumAggregateInput.schema';
|
||||
|
||||
export const CloudFileAggregateSchema: z.ZodType<Prisma.CloudFileAggregateArgs> = z.object({ orderBy: z.union([CloudFileOrderByWithRelationInputObjectSchema, CloudFileOrderByWithRelationInputObjectSchema.array()]).optional(), where: CloudFileWhereInputObjectSchema.optional(), cursor: CloudFileWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), CloudFileCountAggregateInputObjectSchema ]).optional(), _min: CloudFileMinAggregateInputObjectSchema.optional(), _max: CloudFileMaxAggregateInputObjectSchema.optional(), _avg: CloudFileAvgAggregateInputObjectSchema.optional(), _sum: CloudFileSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.CloudFileAggregateArgs>;
|
||||
|
||||
export const CloudFileAggregateZodSchema = z.object({ orderBy: z.union([CloudFileOrderByWithRelationInputObjectSchema, CloudFileOrderByWithRelationInputObjectSchema.array()]).optional(), where: CloudFileWhereInputObjectSchema.optional(), cursor: CloudFileWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), CloudFileCountAggregateInputObjectSchema ]).optional(), _min: CloudFileMinAggregateInputObjectSchema.optional(), _max: CloudFileMaxAggregateInputObjectSchema.optional(), _avg: CloudFileAvgAggregateInputObjectSchema.optional(), _sum: CloudFileSumAggregateInputObjectSchema.optional() }).strict();
|
||||
38
packages/db/shared/schemas/aggregateCloudFileChunk.schema.d.ts
vendored
Normal file
38
packages/db/shared/schemas/aggregateCloudFileChunk.schema.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
export declare const CloudFileChunkAggregateSchema: z.ZodType<Prisma.CloudFileChunkAggregateArgs>;
|
||||
export declare const CloudFileChunkAggregateZodSchema: z.ZodObject<{
|
||||
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.CloudFileChunkOrderByWithRelationInput, z.ZodTypeDef, Prisma.CloudFileChunkOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.CloudFileChunkOrderByWithRelationInput, z.ZodTypeDef, Prisma.CloudFileChunkOrderByWithRelationInput>, "many">]>>;
|
||||
where: z.ZodOptional<z.ZodType<Prisma.CloudFileChunkWhereInput, z.ZodTypeDef, Prisma.CloudFileChunkWhereInput>>;
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.CloudFileChunkWhereUniqueInput, z.ZodTypeDef, Prisma.CloudFileChunkWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.CloudFileChunkCountAggregateInputType, z.ZodTypeDef, Prisma.CloudFileChunkCountAggregateInputType>]>>;
|
||||
_min: z.ZodOptional<z.ZodType<Prisma.CloudFileChunkMinAggregateInputType, z.ZodTypeDef, Prisma.CloudFileChunkMinAggregateInputType>>;
|
||||
_max: z.ZodOptional<z.ZodType<Prisma.CloudFileChunkMaxAggregateInputType, z.ZodTypeDef, Prisma.CloudFileChunkMaxAggregateInputType>>;
|
||||
_avg: z.ZodOptional<z.ZodType<Prisma.CloudFileChunkAvgAggregateInputType, z.ZodTypeDef, Prisma.CloudFileChunkAvgAggregateInputType>>;
|
||||
_sum: z.ZodOptional<z.ZodType<Prisma.CloudFileChunkSumAggregateInputType, z.ZodTypeDef, Prisma.CloudFileChunkSumAggregateInputType>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.CloudFileChunkWhereInput | undefined;
|
||||
_count?: true | Prisma.CloudFileChunkCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.CloudFileChunkOrderByWithRelationInput | Prisma.CloudFileChunkOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.CloudFileChunkWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.CloudFileChunkMinAggregateInputType | undefined;
|
||||
_max?: Prisma.CloudFileChunkMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.CloudFileChunkAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.CloudFileChunkSumAggregateInputType | undefined;
|
||||
}, {
|
||||
where?: Prisma.CloudFileChunkWhereInput | undefined;
|
||||
_count?: true | Prisma.CloudFileChunkCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.CloudFileChunkOrderByWithRelationInput | Prisma.CloudFileChunkOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.CloudFileChunkWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.CloudFileChunkMinAggregateInputType | undefined;
|
||||
_max?: Prisma.CloudFileChunkMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.CloudFileChunkAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.CloudFileChunkSumAggregateInputType | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=aggregateCloudFileChunk.schema.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"aggregateCloudFileChunk.schema.d.ts","sourceRoot":"","sources":["aggregateCloudFileChunk.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,2BAA2B,CAA6uB,CAAC;AAEt0B,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgrB,CAAC"}
|
||||
47
packages/db/shared/schemas/aggregateCloudFileChunk.schema.js
Normal file
47
packages/db/shared/schemas/aggregateCloudFileChunk.schema.js
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CloudFileChunkAggregateZodSchema = exports.CloudFileChunkAggregateSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const CloudFileChunkOrderByWithRelationInput_schema_1 = require("./objects/CloudFileChunkOrderByWithRelationInput.schema");
|
||||
const CloudFileChunkWhereInput_schema_1 = require("./objects/CloudFileChunkWhereInput.schema");
|
||||
const CloudFileChunkWhereUniqueInput_schema_1 = require("./objects/CloudFileChunkWhereUniqueInput.schema");
|
||||
const CloudFileChunkCountAggregateInput_schema_1 = require("./objects/CloudFileChunkCountAggregateInput.schema");
|
||||
const CloudFileChunkMinAggregateInput_schema_1 = require("./objects/CloudFileChunkMinAggregateInput.schema");
|
||||
const CloudFileChunkMaxAggregateInput_schema_1 = require("./objects/CloudFileChunkMaxAggregateInput.schema");
|
||||
const CloudFileChunkAvgAggregateInput_schema_1 = require("./objects/CloudFileChunkAvgAggregateInput.schema");
|
||||
const CloudFileChunkSumAggregateInput_schema_1 = require("./objects/CloudFileChunkSumAggregateInput.schema");
|
||||
exports.CloudFileChunkAggregateSchema = z.object({ orderBy: z.union([CloudFileChunkOrderByWithRelationInput_schema_1.CloudFileChunkOrderByWithRelationInputObjectSchema, CloudFileChunkOrderByWithRelationInput_schema_1.CloudFileChunkOrderByWithRelationInputObjectSchema.array()]).optional(), where: CloudFileChunkWhereInput_schema_1.CloudFileChunkWhereInputObjectSchema.optional(), cursor: CloudFileChunkWhereUniqueInput_schema_1.CloudFileChunkWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), CloudFileChunkCountAggregateInput_schema_1.CloudFileChunkCountAggregateInputObjectSchema]).optional(), _min: CloudFileChunkMinAggregateInput_schema_1.CloudFileChunkMinAggregateInputObjectSchema.optional(), _max: CloudFileChunkMaxAggregateInput_schema_1.CloudFileChunkMaxAggregateInputObjectSchema.optional(), _avg: CloudFileChunkAvgAggregateInput_schema_1.CloudFileChunkAvgAggregateInputObjectSchema.optional(), _sum: CloudFileChunkSumAggregateInput_schema_1.CloudFileChunkSumAggregateInputObjectSchema.optional() }).strict();
|
||||
exports.CloudFileChunkAggregateZodSchema = z.object({ orderBy: z.union([CloudFileChunkOrderByWithRelationInput_schema_1.CloudFileChunkOrderByWithRelationInputObjectSchema, CloudFileChunkOrderByWithRelationInput_schema_1.CloudFileChunkOrderByWithRelationInputObjectSchema.array()]).optional(), where: CloudFileChunkWhereInput_schema_1.CloudFileChunkWhereInputObjectSchema.optional(), cursor: CloudFileChunkWhereUniqueInput_schema_1.CloudFileChunkWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), CloudFileChunkCountAggregateInput_schema_1.CloudFileChunkCountAggregateInputObjectSchema]).optional(), _min: CloudFileChunkMinAggregateInput_schema_1.CloudFileChunkMinAggregateInputObjectSchema.optional(), _max: CloudFileChunkMaxAggregateInput_schema_1.CloudFileChunkMaxAggregateInputObjectSchema.optional(), _avg: CloudFileChunkAvgAggregateInput_schema_1.CloudFileChunkAvgAggregateInputObjectSchema.optional(), _sum: CloudFileChunkSumAggregateInput_schema_1.CloudFileChunkSumAggregateInputObjectSchema.optional() }).strict();
|
||||
14
packages/db/shared/schemas/aggregateCloudFileChunk.schema.ts
Normal file
14
packages/db/shared/schemas/aggregateCloudFileChunk.schema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { CloudFileChunkOrderByWithRelationInputObjectSchema as CloudFileChunkOrderByWithRelationInputObjectSchema } from './objects/CloudFileChunkOrderByWithRelationInput.schema';
|
||||
import { CloudFileChunkWhereInputObjectSchema as CloudFileChunkWhereInputObjectSchema } from './objects/CloudFileChunkWhereInput.schema';
|
||||
import { CloudFileChunkWhereUniqueInputObjectSchema as CloudFileChunkWhereUniqueInputObjectSchema } from './objects/CloudFileChunkWhereUniqueInput.schema';
|
||||
import { CloudFileChunkCountAggregateInputObjectSchema as CloudFileChunkCountAggregateInputObjectSchema } from './objects/CloudFileChunkCountAggregateInput.schema';
|
||||
import { CloudFileChunkMinAggregateInputObjectSchema as CloudFileChunkMinAggregateInputObjectSchema } from './objects/CloudFileChunkMinAggregateInput.schema';
|
||||
import { CloudFileChunkMaxAggregateInputObjectSchema as CloudFileChunkMaxAggregateInputObjectSchema } from './objects/CloudFileChunkMaxAggregateInput.schema';
|
||||
import { CloudFileChunkAvgAggregateInputObjectSchema as CloudFileChunkAvgAggregateInputObjectSchema } from './objects/CloudFileChunkAvgAggregateInput.schema';
|
||||
import { CloudFileChunkSumAggregateInputObjectSchema as CloudFileChunkSumAggregateInputObjectSchema } from './objects/CloudFileChunkSumAggregateInput.schema';
|
||||
|
||||
export const CloudFileChunkAggregateSchema: z.ZodType<Prisma.CloudFileChunkAggregateArgs> = z.object({ orderBy: z.union([CloudFileChunkOrderByWithRelationInputObjectSchema, CloudFileChunkOrderByWithRelationInputObjectSchema.array()]).optional(), where: CloudFileChunkWhereInputObjectSchema.optional(), cursor: CloudFileChunkWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), CloudFileChunkCountAggregateInputObjectSchema ]).optional(), _min: CloudFileChunkMinAggregateInputObjectSchema.optional(), _max: CloudFileChunkMaxAggregateInputObjectSchema.optional(), _avg: CloudFileChunkAvgAggregateInputObjectSchema.optional(), _sum: CloudFileChunkSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.CloudFileChunkAggregateArgs>;
|
||||
|
||||
export const CloudFileChunkAggregateZodSchema = z.object({ orderBy: z.union([CloudFileChunkOrderByWithRelationInputObjectSchema, CloudFileChunkOrderByWithRelationInputObjectSchema.array()]).optional(), where: CloudFileChunkWhereInputObjectSchema.optional(), cursor: CloudFileChunkWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), CloudFileChunkCountAggregateInputObjectSchema ]).optional(), _min: CloudFileChunkMinAggregateInputObjectSchema.optional(), _max: CloudFileChunkMaxAggregateInputObjectSchema.optional(), _avg: CloudFileChunkAvgAggregateInputObjectSchema.optional(), _sum: CloudFileChunkSumAggregateInputObjectSchema.optional() }).strict();
|
||||
38
packages/db/shared/schemas/aggregateCloudFolder.schema.d.ts
vendored
Normal file
38
packages/db/shared/schemas/aggregateCloudFolder.schema.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
export declare const CloudFolderAggregateSchema: z.ZodType<Prisma.CloudFolderAggregateArgs>;
|
||||
export declare const CloudFolderAggregateZodSchema: z.ZodObject<{
|
||||
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.CloudFolderOrderByWithRelationInput, z.ZodTypeDef, Prisma.CloudFolderOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.CloudFolderOrderByWithRelationInput, z.ZodTypeDef, Prisma.CloudFolderOrderByWithRelationInput>, "many">]>>;
|
||||
where: z.ZodOptional<z.ZodType<Prisma.CloudFolderWhereInput, z.ZodTypeDef, Prisma.CloudFolderWhereInput>>;
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.CloudFolderWhereUniqueInput, z.ZodTypeDef, Prisma.CloudFolderWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.CloudFolderCountAggregateInputType, z.ZodTypeDef, Prisma.CloudFolderCountAggregateInputType>]>>;
|
||||
_min: z.ZodOptional<z.ZodType<Prisma.CloudFolderMinAggregateInputType, z.ZodTypeDef, Prisma.CloudFolderMinAggregateInputType>>;
|
||||
_max: z.ZodOptional<z.ZodType<Prisma.CloudFolderMaxAggregateInputType, z.ZodTypeDef, Prisma.CloudFolderMaxAggregateInputType>>;
|
||||
_avg: z.ZodOptional<z.ZodType<Prisma.CloudFolderAvgAggregateInputType, z.ZodTypeDef, Prisma.CloudFolderAvgAggregateInputType>>;
|
||||
_sum: z.ZodOptional<z.ZodType<Prisma.CloudFolderSumAggregateInputType, z.ZodTypeDef, Prisma.CloudFolderSumAggregateInputType>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.CloudFolderWhereInput | undefined;
|
||||
_count?: true | Prisma.CloudFolderCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.CloudFolderOrderByWithRelationInput | Prisma.CloudFolderOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.CloudFolderWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.CloudFolderMinAggregateInputType | undefined;
|
||||
_max?: Prisma.CloudFolderMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.CloudFolderAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.CloudFolderSumAggregateInputType | undefined;
|
||||
}, {
|
||||
where?: Prisma.CloudFolderWhereInput | undefined;
|
||||
_count?: true | Prisma.CloudFolderCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.CloudFolderOrderByWithRelationInput | Prisma.CloudFolderOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.CloudFolderWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.CloudFolderMinAggregateInputType | undefined;
|
||||
_max?: Prisma.CloudFolderMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.CloudFolderAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.CloudFolderSumAggregateInputType | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=aggregateCloudFolder.schema.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"aggregateCloudFolder.schema.d.ts","sourceRoot":"","sources":["aggregateCloudFolder.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,wBAAwB,CAA+sB,CAAC;AAElyB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqpB,CAAC"}
|
||||
47
packages/db/shared/schemas/aggregateCloudFolder.schema.js
Normal file
47
packages/db/shared/schemas/aggregateCloudFolder.schema.js
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CloudFolderAggregateZodSchema = exports.CloudFolderAggregateSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const CloudFolderOrderByWithRelationInput_schema_1 = require("./objects/CloudFolderOrderByWithRelationInput.schema");
|
||||
const CloudFolderWhereInput_schema_1 = require("./objects/CloudFolderWhereInput.schema");
|
||||
const CloudFolderWhereUniqueInput_schema_1 = require("./objects/CloudFolderWhereUniqueInput.schema");
|
||||
const CloudFolderCountAggregateInput_schema_1 = require("./objects/CloudFolderCountAggregateInput.schema");
|
||||
const CloudFolderMinAggregateInput_schema_1 = require("./objects/CloudFolderMinAggregateInput.schema");
|
||||
const CloudFolderMaxAggregateInput_schema_1 = require("./objects/CloudFolderMaxAggregateInput.schema");
|
||||
const CloudFolderAvgAggregateInput_schema_1 = require("./objects/CloudFolderAvgAggregateInput.schema");
|
||||
const CloudFolderSumAggregateInput_schema_1 = require("./objects/CloudFolderSumAggregateInput.schema");
|
||||
exports.CloudFolderAggregateSchema = z.object({ orderBy: z.union([CloudFolderOrderByWithRelationInput_schema_1.CloudFolderOrderByWithRelationInputObjectSchema, CloudFolderOrderByWithRelationInput_schema_1.CloudFolderOrderByWithRelationInputObjectSchema.array()]).optional(), where: CloudFolderWhereInput_schema_1.CloudFolderWhereInputObjectSchema.optional(), cursor: CloudFolderWhereUniqueInput_schema_1.CloudFolderWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), CloudFolderCountAggregateInput_schema_1.CloudFolderCountAggregateInputObjectSchema]).optional(), _min: CloudFolderMinAggregateInput_schema_1.CloudFolderMinAggregateInputObjectSchema.optional(), _max: CloudFolderMaxAggregateInput_schema_1.CloudFolderMaxAggregateInputObjectSchema.optional(), _avg: CloudFolderAvgAggregateInput_schema_1.CloudFolderAvgAggregateInputObjectSchema.optional(), _sum: CloudFolderSumAggregateInput_schema_1.CloudFolderSumAggregateInputObjectSchema.optional() }).strict();
|
||||
exports.CloudFolderAggregateZodSchema = z.object({ orderBy: z.union([CloudFolderOrderByWithRelationInput_schema_1.CloudFolderOrderByWithRelationInputObjectSchema, CloudFolderOrderByWithRelationInput_schema_1.CloudFolderOrderByWithRelationInputObjectSchema.array()]).optional(), where: CloudFolderWhereInput_schema_1.CloudFolderWhereInputObjectSchema.optional(), cursor: CloudFolderWhereUniqueInput_schema_1.CloudFolderWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), CloudFolderCountAggregateInput_schema_1.CloudFolderCountAggregateInputObjectSchema]).optional(), _min: CloudFolderMinAggregateInput_schema_1.CloudFolderMinAggregateInputObjectSchema.optional(), _max: CloudFolderMaxAggregateInput_schema_1.CloudFolderMaxAggregateInputObjectSchema.optional(), _avg: CloudFolderAvgAggregateInput_schema_1.CloudFolderAvgAggregateInputObjectSchema.optional(), _sum: CloudFolderSumAggregateInput_schema_1.CloudFolderSumAggregateInputObjectSchema.optional() }).strict();
|
||||
14
packages/db/shared/schemas/aggregateCloudFolder.schema.ts
Normal file
14
packages/db/shared/schemas/aggregateCloudFolder.schema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { CloudFolderOrderByWithRelationInputObjectSchema as CloudFolderOrderByWithRelationInputObjectSchema } from './objects/CloudFolderOrderByWithRelationInput.schema';
|
||||
import { CloudFolderWhereInputObjectSchema as CloudFolderWhereInputObjectSchema } from './objects/CloudFolderWhereInput.schema';
|
||||
import { CloudFolderWhereUniqueInputObjectSchema as CloudFolderWhereUniqueInputObjectSchema } from './objects/CloudFolderWhereUniqueInput.schema';
|
||||
import { CloudFolderCountAggregateInputObjectSchema as CloudFolderCountAggregateInputObjectSchema } from './objects/CloudFolderCountAggregateInput.schema';
|
||||
import { CloudFolderMinAggregateInputObjectSchema as CloudFolderMinAggregateInputObjectSchema } from './objects/CloudFolderMinAggregateInput.schema';
|
||||
import { CloudFolderMaxAggregateInputObjectSchema as CloudFolderMaxAggregateInputObjectSchema } from './objects/CloudFolderMaxAggregateInput.schema';
|
||||
import { CloudFolderAvgAggregateInputObjectSchema as CloudFolderAvgAggregateInputObjectSchema } from './objects/CloudFolderAvgAggregateInput.schema';
|
||||
import { CloudFolderSumAggregateInputObjectSchema as CloudFolderSumAggregateInputObjectSchema } from './objects/CloudFolderSumAggregateInput.schema';
|
||||
|
||||
export const CloudFolderAggregateSchema: z.ZodType<Prisma.CloudFolderAggregateArgs> = z.object({ orderBy: z.union([CloudFolderOrderByWithRelationInputObjectSchema, CloudFolderOrderByWithRelationInputObjectSchema.array()]).optional(), where: CloudFolderWhereInputObjectSchema.optional(), cursor: CloudFolderWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), CloudFolderCountAggregateInputObjectSchema ]).optional(), _min: CloudFolderMinAggregateInputObjectSchema.optional(), _max: CloudFolderMaxAggregateInputObjectSchema.optional(), _avg: CloudFolderAvgAggregateInputObjectSchema.optional(), _sum: CloudFolderSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.CloudFolderAggregateArgs>;
|
||||
|
||||
export const CloudFolderAggregateZodSchema = z.object({ orderBy: z.union([CloudFolderOrderByWithRelationInputObjectSchema, CloudFolderOrderByWithRelationInputObjectSchema.array()]).optional(), where: CloudFolderWhereInputObjectSchema.optional(), cursor: CloudFolderWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), CloudFolderCountAggregateInputObjectSchema ]).optional(), _min: CloudFolderMinAggregateInputObjectSchema.optional(), _max: CloudFolderMaxAggregateInputObjectSchema.optional(), _avg: CloudFolderAvgAggregateInputObjectSchema.optional(), _sum: CloudFolderSumAggregateInputObjectSchema.optional() }).strict();
|
||||
38
packages/db/shared/schemas/aggregateCommunication.schema.d.ts
vendored
Normal file
38
packages/db/shared/schemas/aggregateCommunication.schema.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
export declare const CommunicationAggregateSchema: z.ZodType<Prisma.CommunicationAggregateArgs>;
|
||||
export declare const CommunicationAggregateZodSchema: z.ZodObject<{
|
||||
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.CommunicationOrderByWithRelationInput, z.ZodTypeDef, Prisma.CommunicationOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.CommunicationOrderByWithRelationInput, z.ZodTypeDef, Prisma.CommunicationOrderByWithRelationInput>, "many">]>>;
|
||||
where: z.ZodOptional<z.ZodType<Prisma.CommunicationWhereInput, z.ZodTypeDef, Prisma.CommunicationWhereInput>>;
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.CommunicationWhereUniqueInput, z.ZodTypeDef, Prisma.CommunicationWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.CommunicationCountAggregateInputType, z.ZodTypeDef, Prisma.CommunicationCountAggregateInputType>]>>;
|
||||
_min: z.ZodOptional<z.ZodType<Prisma.CommunicationMinAggregateInputType, z.ZodTypeDef, Prisma.CommunicationMinAggregateInputType>>;
|
||||
_max: z.ZodOptional<z.ZodType<Prisma.CommunicationMaxAggregateInputType, z.ZodTypeDef, Prisma.CommunicationMaxAggregateInputType>>;
|
||||
_avg: z.ZodOptional<z.ZodType<Prisma.CommunicationAvgAggregateInputType, z.ZodTypeDef, Prisma.CommunicationAvgAggregateInputType>>;
|
||||
_sum: z.ZodOptional<z.ZodType<Prisma.CommunicationSumAggregateInputType, z.ZodTypeDef, Prisma.CommunicationSumAggregateInputType>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.CommunicationWhereInput | undefined;
|
||||
_count?: true | Prisma.CommunicationCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.CommunicationOrderByWithRelationInput | Prisma.CommunicationOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.CommunicationWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.CommunicationMinAggregateInputType | undefined;
|
||||
_max?: Prisma.CommunicationMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.CommunicationAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.CommunicationSumAggregateInputType | undefined;
|
||||
}, {
|
||||
where?: Prisma.CommunicationWhereInput | undefined;
|
||||
_count?: true | Prisma.CommunicationCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.CommunicationOrderByWithRelationInput | Prisma.CommunicationOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.CommunicationWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.CommunicationMinAggregateInputType | undefined;
|
||||
_max?: Prisma.CommunicationMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.CommunicationAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.CommunicationSumAggregateInputType | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=aggregateCommunication.schema.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"aggregateCommunication.schema.d.ts","sourceRoot":"","sources":["aggregateCommunication.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAmuB,CAAC;AAE1zB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuqB,CAAC"}
|
||||
47
packages/db/shared/schemas/aggregateCommunication.schema.js
Normal file
47
packages/db/shared/schemas/aggregateCommunication.schema.js
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CommunicationAggregateZodSchema = exports.CommunicationAggregateSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const CommunicationOrderByWithRelationInput_schema_1 = require("./objects/CommunicationOrderByWithRelationInput.schema");
|
||||
const CommunicationWhereInput_schema_1 = require("./objects/CommunicationWhereInput.schema");
|
||||
const CommunicationWhereUniqueInput_schema_1 = require("./objects/CommunicationWhereUniqueInput.schema");
|
||||
const CommunicationCountAggregateInput_schema_1 = require("./objects/CommunicationCountAggregateInput.schema");
|
||||
const CommunicationMinAggregateInput_schema_1 = require("./objects/CommunicationMinAggregateInput.schema");
|
||||
const CommunicationMaxAggregateInput_schema_1 = require("./objects/CommunicationMaxAggregateInput.schema");
|
||||
const CommunicationAvgAggregateInput_schema_1 = require("./objects/CommunicationAvgAggregateInput.schema");
|
||||
const CommunicationSumAggregateInput_schema_1 = require("./objects/CommunicationSumAggregateInput.schema");
|
||||
exports.CommunicationAggregateSchema = z.object({ orderBy: z.union([CommunicationOrderByWithRelationInput_schema_1.CommunicationOrderByWithRelationInputObjectSchema, CommunicationOrderByWithRelationInput_schema_1.CommunicationOrderByWithRelationInputObjectSchema.array()]).optional(), where: CommunicationWhereInput_schema_1.CommunicationWhereInputObjectSchema.optional(), cursor: CommunicationWhereUniqueInput_schema_1.CommunicationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), CommunicationCountAggregateInput_schema_1.CommunicationCountAggregateInputObjectSchema]).optional(), _min: CommunicationMinAggregateInput_schema_1.CommunicationMinAggregateInputObjectSchema.optional(), _max: CommunicationMaxAggregateInput_schema_1.CommunicationMaxAggregateInputObjectSchema.optional(), _avg: CommunicationAvgAggregateInput_schema_1.CommunicationAvgAggregateInputObjectSchema.optional(), _sum: CommunicationSumAggregateInput_schema_1.CommunicationSumAggregateInputObjectSchema.optional() }).strict();
|
||||
exports.CommunicationAggregateZodSchema = z.object({ orderBy: z.union([CommunicationOrderByWithRelationInput_schema_1.CommunicationOrderByWithRelationInputObjectSchema, CommunicationOrderByWithRelationInput_schema_1.CommunicationOrderByWithRelationInputObjectSchema.array()]).optional(), where: CommunicationWhereInput_schema_1.CommunicationWhereInputObjectSchema.optional(), cursor: CommunicationWhereUniqueInput_schema_1.CommunicationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), CommunicationCountAggregateInput_schema_1.CommunicationCountAggregateInputObjectSchema]).optional(), _min: CommunicationMinAggregateInput_schema_1.CommunicationMinAggregateInputObjectSchema.optional(), _max: CommunicationMaxAggregateInput_schema_1.CommunicationMaxAggregateInputObjectSchema.optional(), _avg: CommunicationAvgAggregateInput_schema_1.CommunicationAvgAggregateInputObjectSchema.optional(), _sum: CommunicationSumAggregateInput_schema_1.CommunicationSumAggregateInputObjectSchema.optional() }).strict();
|
||||
14
packages/db/shared/schemas/aggregateCommunication.schema.ts
Normal file
14
packages/db/shared/schemas/aggregateCommunication.schema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { CommunicationOrderByWithRelationInputObjectSchema as CommunicationOrderByWithRelationInputObjectSchema } from './objects/CommunicationOrderByWithRelationInput.schema';
|
||||
import { CommunicationWhereInputObjectSchema as CommunicationWhereInputObjectSchema } from './objects/CommunicationWhereInput.schema';
|
||||
import { CommunicationWhereUniqueInputObjectSchema as CommunicationWhereUniqueInputObjectSchema } from './objects/CommunicationWhereUniqueInput.schema';
|
||||
import { CommunicationCountAggregateInputObjectSchema as CommunicationCountAggregateInputObjectSchema } from './objects/CommunicationCountAggregateInput.schema';
|
||||
import { CommunicationMinAggregateInputObjectSchema as CommunicationMinAggregateInputObjectSchema } from './objects/CommunicationMinAggregateInput.schema';
|
||||
import { CommunicationMaxAggregateInputObjectSchema as CommunicationMaxAggregateInputObjectSchema } from './objects/CommunicationMaxAggregateInput.schema';
|
||||
import { CommunicationAvgAggregateInputObjectSchema as CommunicationAvgAggregateInputObjectSchema } from './objects/CommunicationAvgAggregateInput.schema';
|
||||
import { CommunicationSumAggregateInputObjectSchema as CommunicationSumAggregateInputObjectSchema } from './objects/CommunicationSumAggregateInput.schema';
|
||||
|
||||
export const CommunicationAggregateSchema: z.ZodType<Prisma.CommunicationAggregateArgs> = z.object({ orderBy: z.union([CommunicationOrderByWithRelationInputObjectSchema, CommunicationOrderByWithRelationInputObjectSchema.array()]).optional(), where: CommunicationWhereInputObjectSchema.optional(), cursor: CommunicationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), CommunicationCountAggregateInputObjectSchema ]).optional(), _min: CommunicationMinAggregateInputObjectSchema.optional(), _max: CommunicationMaxAggregateInputObjectSchema.optional(), _avg: CommunicationAvgAggregateInputObjectSchema.optional(), _sum: CommunicationSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.CommunicationAggregateArgs>;
|
||||
|
||||
export const CommunicationAggregateZodSchema = z.object({ orderBy: z.union([CommunicationOrderByWithRelationInputObjectSchema, CommunicationOrderByWithRelationInputObjectSchema.array()]).optional(), where: CommunicationWhereInputObjectSchema.optional(), cursor: CommunicationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), CommunicationCountAggregateInputObjectSchema ]).optional(), _min: CommunicationMinAggregateInputObjectSchema.optional(), _max: CommunicationMaxAggregateInputObjectSchema.optional(), _avg: CommunicationAvgAggregateInputObjectSchema.optional(), _sum: CommunicationSumAggregateInputObjectSchema.optional() }).strict();
|
||||
38
packages/db/shared/schemas/aggregateDatabaseBackup.schema.d.ts
vendored
Normal file
38
packages/db/shared/schemas/aggregateDatabaseBackup.schema.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
export declare const DatabaseBackupAggregateSchema: z.ZodType<Prisma.DatabaseBackupAggregateArgs>;
|
||||
export declare const DatabaseBackupAggregateZodSchema: z.ZodObject<{
|
||||
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.DatabaseBackupOrderByWithRelationInput, z.ZodTypeDef, Prisma.DatabaseBackupOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.DatabaseBackupOrderByWithRelationInput, z.ZodTypeDef, Prisma.DatabaseBackupOrderByWithRelationInput>, "many">]>>;
|
||||
where: z.ZodOptional<z.ZodType<Prisma.DatabaseBackupWhereInput, z.ZodTypeDef, Prisma.DatabaseBackupWhereInput>>;
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.DatabaseBackupWhereUniqueInput, z.ZodTypeDef, Prisma.DatabaseBackupWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.DatabaseBackupCountAggregateInputType, z.ZodTypeDef, Prisma.DatabaseBackupCountAggregateInputType>]>>;
|
||||
_min: z.ZodOptional<z.ZodType<Prisma.DatabaseBackupMinAggregateInputType, z.ZodTypeDef, Prisma.DatabaseBackupMinAggregateInputType>>;
|
||||
_max: z.ZodOptional<z.ZodType<Prisma.DatabaseBackupMaxAggregateInputType, z.ZodTypeDef, Prisma.DatabaseBackupMaxAggregateInputType>>;
|
||||
_avg: z.ZodOptional<z.ZodType<Prisma.DatabaseBackupAvgAggregateInputType, z.ZodTypeDef, Prisma.DatabaseBackupAvgAggregateInputType>>;
|
||||
_sum: z.ZodOptional<z.ZodType<Prisma.DatabaseBackupSumAggregateInputType, z.ZodTypeDef, Prisma.DatabaseBackupSumAggregateInputType>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.DatabaseBackupWhereInput | undefined;
|
||||
_count?: true | Prisma.DatabaseBackupCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.DatabaseBackupOrderByWithRelationInput | Prisma.DatabaseBackupOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.DatabaseBackupWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.DatabaseBackupMinAggregateInputType | undefined;
|
||||
_max?: Prisma.DatabaseBackupMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.DatabaseBackupAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.DatabaseBackupSumAggregateInputType | undefined;
|
||||
}, {
|
||||
where?: Prisma.DatabaseBackupWhereInput | undefined;
|
||||
_count?: true | Prisma.DatabaseBackupCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.DatabaseBackupOrderByWithRelationInput | Prisma.DatabaseBackupOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.DatabaseBackupWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.DatabaseBackupMinAggregateInputType | undefined;
|
||||
_max?: Prisma.DatabaseBackupMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.DatabaseBackupAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.DatabaseBackupSumAggregateInputType | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=aggregateDatabaseBackup.schema.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"aggregateDatabaseBackup.schema.d.ts","sourceRoot":"","sources":["aggregateDatabaseBackup.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,2BAA2B,CAA6uB,CAAC;AAEt0B,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgrB,CAAC"}
|
||||
47
packages/db/shared/schemas/aggregateDatabaseBackup.schema.js
Normal file
47
packages/db/shared/schemas/aggregateDatabaseBackup.schema.js
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DatabaseBackupAggregateZodSchema = exports.DatabaseBackupAggregateSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const DatabaseBackupOrderByWithRelationInput_schema_1 = require("./objects/DatabaseBackupOrderByWithRelationInput.schema");
|
||||
const DatabaseBackupWhereInput_schema_1 = require("./objects/DatabaseBackupWhereInput.schema");
|
||||
const DatabaseBackupWhereUniqueInput_schema_1 = require("./objects/DatabaseBackupWhereUniqueInput.schema");
|
||||
const DatabaseBackupCountAggregateInput_schema_1 = require("./objects/DatabaseBackupCountAggregateInput.schema");
|
||||
const DatabaseBackupMinAggregateInput_schema_1 = require("./objects/DatabaseBackupMinAggregateInput.schema");
|
||||
const DatabaseBackupMaxAggregateInput_schema_1 = require("./objects/DatabaseBackupMaxAggregateInput.schema");
|
||||
const DatabaseBackupAvgAggregateInput_schema_1 = require("./objects/DatabaseBackupAvgAggregateInput.schema");
|
||||
const DatabaseBackupSumAggregateInput_schema_1 = require("./objects/DatabaseBackupSumAggregateInput.schema");
|
||||
exports.DatabaseBackupAggregateSchema = z.object({ orderBy: z.union([DatabaseBackupOrderByWithRelationInput_schema_1.DatabaseBackupOrderByWithRelationInputObjectSchema, DatabaseBackupOrderByWithRelationInput_schema_1.DatabaseBackupOrderByWithRelationInputObjectSchema.array()]).optional(), where: DatabaseBackupWhereInput_schema_1.DatabaseBackupWhereInputObjectSchema.optional(), cursor: DatabaseBackupWhereUniqueInput_schema_1.DatabaseBackupWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), DatabaseBackupCountAggregateInput_schema_1.DatabaseBackupCountAggregateInputObjectSchema]).optional(), _min: DatabaseBackupMinAggregateInput_schema_1.DatabaseBackupMinAggregateInputObjectSchema.optional(), _max: DatabaseBackupMaxAggregateInput_schema_1.DatabaseBackupMaxAggregateInputObjectSchema.optional(), _avg: DatabaseBackupAvgAggregateInput_schema_1.DatabaseBackupAvgAggregateInputObjectSchema.optional(), _sum: DatabaseBackupSumAggregateInput_schema_1.DatabaseBackupSumAggregateInputObjectSchema.optional() }).strict();
|
||||
exports.DatabaseBackupAggregateZodSchema = z.object({ orderBy: z.union([DatabaseBackupOrderByWithRelationInput_schema_1.DatabaseBackupOrderByWithRelationInputObjectSchema, DatabaseBackupOrderByWithRelationInput_schema_1.DatabaseBackupOrderByWithRelationInputObjectSchema.array()]).optional(), where: DatabaseBackupWhereInput_schema_1.DatabaseBackupWhereInputObjectSchema.optional(), cursor: DatabaseBackupWhereUniqueInput_schema_1.DatabaseBackupWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), DatabaseBackupCountAggregateInput_schema_1.DatabaseBackupCountAggregateInputObjectSchema]).optional(), _min: DatabaseBackupMinAggregateInput_schema_1.DatabaseBackupMinAggregateInputObjectSchema.optional(), _max: DatabaseBackupMaxAggregateInput_schema_1.DatabaseBackupMaxAggregateInputObjectSchema.optional(), _avg: DatabaseBackupAvgAggregateInput_schema_1.DatabaseBackupAvgAggregateInputObjectSchema.optional(), _sum: DatabaseBackupSumAggregateInput_schema_1.DatabaseBackupSumAggregateInputObjectSchema.optional() }).strict();
|
||||
14
packages/db/shared/schemas/aggregateDatabaseBackup.schema.ts
Normal file
14
packages/db/shared/schemas/aggregateDatabaseBackup.schema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { DatabaseBackupOrderByWithRelationInputObjectSchema as DatabaseBackupOrderByWithRelationInputObjectSchema } from './objects/DatabaseBackupOrderByWithRelationInput.schema';
|
||||
import { DatabaseBackupWhereInputObjectSchema as DatabaseBackupWhereInputObjectSchema } from './objects/DatabaseBackupWhereInput.schema';
|
||||
import { DatabaseBackupWhereUniqueInputObjectSchema as DatabaseBackupWhereUniqueInputObjectSchema } from './objects/DatabaseBackupWhereUniqueInput.schema';
|
||||
import { DatabaseBackupCountAggregateInputObjectSchema as DatabaseBackupCountAggregateInputObjectSchema } from './objects/DatabaseBackupCountAggregateInput.schema';
|
||||
import { DatabaseBackupMinAggregateInputObjectSchema as DatabaseBackupMinAggregateInputObjectSchema } from './objects/DatabaseBackupMinAggregateInput.schema';
|
||||
import { DatabaseBackupMaxAggregateInputObjectSchema as DatabaseBackupMaxAggregateInputObjectSchema } from './objects/DatabaseBackupMaxAggregateInput.schema';
|
||||
import { DatabaseBackupAvgAggregateInputObjectSchema as DatabaseBackupAvgAggregateInputObjectSchema } from './objects/DatabaseBackupAvgAggregateInput.schema';
|
||||
import { DatabaseBackupSumAggregateInputObjectSchema as DatabaseBackupSumAggregateInputObjectSchema } from './objects/DatabaseBackupSumAggregateInput.schema';
|
||||
|
||||
export const DatabaseBackupAggregateSchema: z.ZodType<Prisma.DatabaseBackupAggregateArgs> = z.object({ orderBy: z.union([DatabaseBackupOrderByWithRelationInputObjectSchema, DatabaseBackupOrderByWithRelationInputObjectSchema.array()]).optional(), where: DatabaseBackupWhereInputObjectSchema.optional(), cursor: DatabaseBackupWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), DatabaseBackupCountAggregateInputObjectSchema ]).optional(), _min: DatabaseBackupMinAggregateInputObjectSchema.optional(), _max: DatabaseBackupMaxAggregateInputObjectSchema.optional(), _avg: DatabaseBackupAvgAggregateInputObjectSchema.optional(), _sum: DatabaseBackupSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.DatabaseBackupAggregateArgs>;
|
||||
|
||||
export const DatabaseBackupAggregateZodSchema = z.object({ orderBy: z.union([DatabaseBackupOrderByWithRelationInputObjectSchema, DatabaseBackupOrderByWithRelationInputObjectSchema.array()]).optional(), where: DatabaseBackupWhereInputObjectSchema.optional(), cursor: DatabaseBackupWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), DatabaseBackupCountAggregateInputObjectSchema ]).optional(), _min: DatabaseBackupMinAggregateInputObjectSchema.optional(), _max: DatabaseBackupMaxAggregateInputObjectSchema.optional(), _avg: DatabaseBackupAvgAggregateInputObjectSchema.optional(), _sum: DatabaseBackupSumAggregateInputObjectSchema.optional() }).strict();
|
||||
38
packages/db/shared/schemas/aggregateInsuranceCredential.schema.d.ts
vendored
Normal file
38
packages/db/shared/schemas/aggregateInsuranceCredential.schema.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
export declare const InsuranceCredentialAggregateSchema: z.ZodType<Prisma.InsuranceCredentialAggregateArgs>;
|
||||
export declare const InsuranceCredentialAggregateZodSchema: z.ZodObject<{
|
||||
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.InsuranceCredentialOrderByWithRelationInput, z.ZodTypeDef, Prisma.InsuranceCredentialOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.InsuranceCredentialOrderByWithRelationInput, z.ZodTypeDef, Prisma.InsuranceCredentialOrderByWithRelationInput>, "many">]>>;
|
||||
where: z.ZodOptional<z.ZodType<Prisma.InsuranceCredentialWhereInput, z.ZodTypeDef, Prisma.InsuranceCredentialWhereInput>>;
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.InsuranceCredentialWhereUniqueInput, z.ZodTypeDef, Prisma.InsuranceCredentialWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.InsuranceCredentialCountAggregateInputType, z.ZodTypeDef, Prisma.InsuranceCredentialCountAggregateInputType>]>>;
|
||||
_min: z.ZodOptional<z.ZodType<Prisma.InsuranceCredentialMinAggregateInputType, z.ZodTypeDef, Prisma.InsuranceCredentialMinAggregateInputType>>;
|
||||
_max: z.ZodOptional<z.ZodType<Prisma.InsuranceCredentialMaxAggregateInputType, z.ZodTypeDef, Prisma.InsuranceCredentialMaxAggregateInputType>>;
|
||||
_avg: z.ZodOptional<z.ZodType<Prisma.InsuranceCredentialAvgAggregateInputType, z.ZodTypeDef, Prisma.InsuranceCredentialAvgAggregateInputType>>;
|
||||
_sum: z.ZodOptional<z.ZodType<Prisma.InsuranceCredentialSumAggregateInputType, z.ZodTypeDef, Prisma.InsuranceCredentialSumAggregateInputType>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.InsuranceCredentialWhereInput | undefined;
|
||||
_count?: true | Prisma.InsuranceCredentialCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.InsuranceCredentialOrderByWithRelationInput | Prisma.InsuranceCredentialOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.InsuranceCredentialWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.InsuranceCredentialMinAggregateInputType | undefined;
|
||||
_max?: Prisma.InsuranceCredentialMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.InsuranceCredentialAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.InsuranceCredentialSumAggregateInputType | undefined;
|
||||
}, {
|
||||
where?: Prisma.InsuranceCredentialWhereInput | undefined;
|
||||
_count?: true | Prisma.InsuranceCredentialCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.InsuranceCredentialOrderByWithRelationInput | Prisma.InsuranceCredentialOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.InsuranceCredentialWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.InsuranceCredentialMinAggregateInputType | undefined;
|
||||
_max?: Prisma.InsuranceCredentialMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.InsuranceCredentialAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.InsuranceCredentialSumAggregateInputType | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=aggregateInsuranceCredential.schema.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"aggregateInsuranceCredential.schema.d.ts","sourceRoot":"","sources":["aggregateInsuranceCredential.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,CAA+xB,CAAC;AAEl4B,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6tB,CAAC"}
|
||||
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.InsuranceCredentialAggregateZodSchema = exports.InsuranceCredentialAggregateSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const InsuranceCredentialOrderByWithRelationInput_schema_1 = require("./objects/InsuranceCredentialOrderByWithRelationInput.schema");
|
||||
const InsuranceCredentialWhereInput_schema_1 = require("./objects/InsuranceCredentialWhereInput.schema");
|
||||
const InsuranceCredentialWhereUniqueInput_schema_1 = require("./objects/InsuranceCredentialWhereUniqueInput.schema");
|
||||
const InsuranceCredentialCountAggregateInput_schema_1 = require("./objects/InsuranceCredentialCountAggregateInput.schema");
|
||||
const InsuranceCredentialMinAggregateInput_schema_1 = require("./objects/InsuranceCredentialMinAggregateInput.schema");
|
||||
const InsuranceCredentialMaxAggregateInput_schema_1 = require("./objects/InsuranceCredentialMaxAggregateInput.schema");
|
||||
const InsuranceCredentialAvgAggregateInput_schema_1 = require("./objects/InsuranceCredentialAvgAggregateInput.schema");
|
||||
const InsuranceCredentialSumAggregateInput_schema_1 = require("./objects/InsuranceCredentialSumAggregateInput.schema");
|
||||
exports.InsuranceCredentialAggregateSchema = z.object({ orderBy: z.union([InsuranceCredentialOrderByWithRelationInput_schema_1.InsuranceCredentialOrderByWithRelationInputObjectSchema, InsuranceCredentialOrderByWithRelationInput_schema_1.InsuranceCredentialOrderByWithRelationInputObjectSchema.array()]).optional(), where: InsuranceCredentialWhereInput_schema_1.InsuranceCredentialWhereInputObjectSchema.optional(), cursor: InsuranceCredentialWhereUniqueInput_schema_1.InsuranceCredentialWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), InsuranceCredentialCountAggregateInput_schema_1.InsuranceCredentialCountAggregateInputObjectSchema]).optional(), _min: InsuranceCredentialMinAggregateInput_schema_1.InsuranceCredentialMinAggregateInputObjectSchema.optional(), _max: InsuranceCredentialMaxAggregateInput_schema_1.InsuranceCredentialMaxAggregateInputObjectSchema.optional(), _avg: InsuranceCredentialAvgAggregateInput_schema_1.InsuranceCredentialAvgAggregateInputObjectSchema.optional(), _sum: InsuranceCredentialSumAggregateInput_schema_1.InsuranceCredentialSumAggregateInputObjectSchema.optional() }).strict();
|
||||
exports.InsuranceCredentialAggregateZodSchema = z.object({ orderBy: z.union([InsuranceCredentialOrderByWithRelationInput_schema_1.InsuranceCredentialOrderByWithRelationInputObjectSchema, InsuranceCredentialOrderByWithRelationInput_schema_1.InsuranceCredentialOrderByWithRelationInputObjectSchema.array()]).optional(), where: InsuranceCredentialWhereInput_schema_1.InsuranceCredentialWhereInputObjectSchema.optional(), cursor: InsuranceCredentialWhereUniqueInput_schema_1.InsuranceCredentialWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), InsuranceCredentialCountAggregateInput_schema_1.InsuranceCredentialCountAggregateInputObjectSchema]).optional(), _min: InsuranceCredentialMinAggregateInput_schema_1.InsuranceCredentialMinAggregateInputObjectSchema.optional(), _max: InsuranceCredentialMaxAggregateInput_schema_1.InsuranceCredentialMaxAggregateInputObjectSchema.optional(), _avg: InsuranceCredentialAvgAggregateInput_schema_1.InsuranceCredentialAvgAggregateInputObjectSchema.optional(), _sum: InsuranceCredentialSumAggregateInput_schema_1.InsuranceCredentialSumAggregateInputObjectSchema.optional() }).strict();
|
||||
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { InsuranceCredentialOrderByWithRelationInputObjectSchema as InsuranceCredentialOrderByWithRelationInputObjectSchema } from './objects/InsuranceCredentialOrderByWithRelationInput.schema';
|
||||
import { InsuranceCredentialWhereInputObjectSchema as InsuranceCredentialWhereInputObjectSchema } from './objects/InsuranceCredentialWhereInput.schema';
|
||||
import { InsuranceCredentialWhereUniqueInputObjectSchema as InsuranceCredentialWhereUniqueInputObjectSchema } from './objects/InsuranceCredentialWhereUniqueInput.schema';
|
||||
import { InsuranceCredentialCountAggregateInputObjectSchema as InsuranceCredentialCountAggregateInputObjectSchema } from './objects/InsuranceCredentialCountAggregateInput.schema';
|
||||
import { InsuranceCredentialMinAggregateInputObjectSchema as InsuranceCredentialMinAggregateInputObjectSchema } from './objects/InsuranceCredentialMinAggregateInput.schema';
|
||||
import { InsuranceCredentialMaxAggregateInputObjectSchema as InsuranceCredentialMaxAggregateInputObjectSchema } from './objects/InsuranceCredentialMaxAggregateInput.schema';
|
||||
import { InsuranceCredentialAvgAggregateInputObjectSchema as InsuranceCredentialAvgAggregateInputObjectSchema } from './objects/InsuranceCredentialAvgAggregateInput.schema';
|
||||
import { InsuranceCredentialSumAggregateInputObjectSchema as InsuranceCredentialSumAggregateInputObjectSchema } from './objects/InsuranceCredentialSumAggregateInput.schema';
|
||||
|
||||
export const InsuranceCredentialAggregateSchema: z.ZodType<Prisma.InsuranceCredentialAggregateArgs> = z.object({ orderBy: z.union([InsuranceCredentialOrderByWithRelationInputObjectSchema, InsuranceCredentialOrderByWithRelationInputObjectSchema.array()]).optional(), where: InsuranceCredentialWhereInputObjectSchema.optional(), cursor: InsuranceCredentialWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), InsuranceCredentialCountAggregateInputObjectSchema ]).optional(), _min: InsuranceCredentialMinAggregateInputObjectSchema.optional(), _max: InsuranceCredentialMaxAggregateInputObjectSchema.optional(), _avg: InsuranceCredentialAvgAggregateInputObjectSchema.optional(), _sum: InsuranceCredentialSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.InsuranceCredentialAggregateArgs>;
|
||||
|
||||
export const InsuranceCredentialAggregateZodSchema = z.object({ orderBy: z.union([InsuranceCredentialOrderByWithRelationInputObjectSchema, InsuranceCredentialOrderByWithRelationInputObjectSchema.array()]).optional(), where: InsuranceCredentialWhereInputObjectSchema.optional(), cursor: InsuranceCredentialWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), InsuranceCredentialCountAggregateInputObjectSchema ]).optional(), _min: InsuranceCredentialMinAggregateInputObjectSchema.optional(), _max: InsuranceCredentialMaxAggregateInputObjectSchema.optional(), _avg: InsuranceCredentialAvgAggregateInputObjectSchema.optional(), _sum: InsuranceCredentialSumAggregateInputObjectSchema.optional() }).strict();
|
||||
38
packages/db/shared/schemas/aggregateNotification.schema.d.ts
vendored
Normal file
38
packages/db/shared/schemas/aggregateNotification.schema.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
export declare const NotificationAggregateSchema: z.ZodType<Prisma.NotificationAggregateArgs>;
|
||||
export declare const NotificationAggregateZodSchema: z.ZodObject<{
|
||||
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.NotificationOrderByWithRelationInput, z.ZodTypeDef, Prisma.NotificationOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.NotificationOrderByWithRelationInput, z.ZodTypeDef, Prisma.NotificationOrderByWithRelationInput>, "many">]>>;
|
||||
where: z.ZodOptional<z.ZodType<Prisma.NotificationWhereInput, z.ZodTypeDef, Prisma.NotificationWhereInput>>;
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.NotificationWhereUniqueInput, z.ZodTypeDef, Prisma.NotificationWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.NotificationCountAggregateInputType, z.ZodTypeDef, Prisma.NotificationCountAggregateInputType>]>>;
|
||||
_min: z.ZodOptional<z.ZodType<Prisma.NotificationMinAggregateInputType, z.ZodTypeDef, Prisma.NotificationMinAggregateInputType>>;
|
||||
_max: z.ZodOptional<z.ZodType<Prisma.NotificationMaxAggregateInputType, z.ZodTypeDef, Prisma.NotificationMaxAggregateInputType>>;
|
||||
_avg: z.ZodOptional<z.ZodType<Prisma.NotificationAvgAggregateInputType, z.ZodTypeDef, Prisma.NotificationAvgAggregateInputType>>;
|
||||
_sum: z.ZodOptional<z.ZodType<Prisma.NotificationSumAggregateInputType, z.ZodTypeDef, Prisma.NotificationSumAggregateInputType>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.NotificationWhereInput | undefined;
|
||||
_count?: true | Prisma.NotificationCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.NotificationWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.NotificationMinAggregateInputType | undefined;
|
||||
_max?: Prisma.NotificationMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.NotificationAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.NotificationSumAggregateInputType | undefined;
|
||||
}, {
|
||||
where?: Prisma.NotificationWhereInput | undefined;
|
||||
_count?: true | Prisma.NotificationCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.NotificationWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.NotificationMinAggregateInputType | undefined;
|
||||
_max?: Prisma.NotificationMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.NotificationAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.NotificationSumAggregateInputType | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=aggregateNotification.schema.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"aggregateNotification.schema.d.ts","sourceRoot":"","sources":["aggregateNotification.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,yBAAyB,CAAytB,CAAC;AAE9yB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8pB,CAAC"}
|
||||
47
packages/db/shared/schemas/aggregateNotification.schema.js
Normal file
47
packages/db/shared/schemas/aggregateNotification.schema.js
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.NotificationAggregateZodSchema = exports.NotificationAggregateSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const NotificationOrderByWithRelationInput_schema_1 = require("./objects/NotificationOrderByWithRelationInput.schema");
|
||||
const NotificationWhereInput_schema_1 = require("./objects/NotificationWhereInput.schema");
|
||||
const NotificationWhereUniqueInput_schema_1 = require("./objects/NotificationWhereUniqueInput.schema");
|
||||
const NotificationCountAggregateInput_schema_1 = require("./objects/NotificationCountAggregateInput.schema");
|
||||
const NotificationMinAggregateInput_schema_1 = require("./objects/NotificationMinAggregateInput.schema");
|
||||
const NotificationMaxAggregateInput_schema_1 = require("./objects/NotificationMaxAggregateInput.schema");
|
||||
const NotificationAvgAggregateInput_schema_1 = require("./objects/NotificationAvgAggregateInput.schema");
|
||||
const NotificationSumAggregateInput_schema_1 = require("./objects/NotificationSumAggregateInput.schema");
|
||||
exports.NotificationAggregateSchema = z.object({ orderBy: z.union([NotificationOrderByWithRelationInput_schema_1.NotificationOrderByWithRelationInputObjectSchema, NotificationOrderByWithRelationInput_schema_1.NotificationOrderByWithRelationInputObjectSchema.array()]).optional(), where: NotificationWhereInput_schema_1.NotificationWhereInputObjectSchema.optional(), cursor: NotificationWhereUniqueInput_schema_1.NotificationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), NotificationCountAggregateInput_schema_1.NotificationCountAggregateInputObjectSchema]).optional(), _min: NotificationMinAggregateInput_schema_1.NotificationMinAggregateInputObjectSchema.optional(), _max: NotificationMaxAggregateInput_schema_1.NotificationMaxAggregateInputObjectSchema.optional(), _avg: NotificationAvgAggregateInput_schema_1.NotificationAvgAggregateInputObjectSchema.optional(), _sum: NotificationSumAggregateInput_schema_1.NotificationSumAggregateInputObjectSchema.optional() }).strict();
|
||||
exports.NotificationAggregateZodSchema = z.object({ orderBy: z.union([NotificationOrderByWithRelationInput_schema_1.NotificationOrderByWithRelationInputObjectSchema, NotificationOrderByWithRelationInput_schema_1.NotificationOrderByWithRelationInputObjectSchema.array()]).optional(), where: NotificationWhereInput_schema_1.NotificationWhereInputObjectSchema.optional(), cursor: NotificationWhereUniqueInput_schema_1.NotificationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), NotificationCountAggregateInput_schema_1.NotificationCountAggregateInputObjectSchema]).optional(), _min: NotificationMinAggregateInput_schema_1.NotificationMinAggregateInputObjectSchema.optional(), _max: NotificationMaxAggregateInput_schema_1.NotificationMaxAggregateInputObjectSchema.optional(), _avg: NotificationAvgAggregateInput_schema_1.NotificationAvgAggregateInputObjectSchema.optional(), _sum: NotificationSumAggregateInput_schema_1.NotificationSumAggregateInputObjectSchema.optional() }).strict();
|
||||
14
packages/db/shared/schemas/aggregateNotification.schema.ts
Normal file
14
packages/db/shared/schemas/aggregateNotification.schema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { NotificationOrderByWithRelationInputObjectSchema as NotificationOrderByWithRelationInputObjectSchema } from './objects/NotificationOrderByWithRelationInput.schema';
|
||||
import { NotificationWhereInputObjectSchema as NotificationWhereInputObjectSchema } from './objects/NotificationWhereInput.schema';
|
||||
import { NotificationWhereUniqueInputObjectSchema as NotificationWhereUniqueInputObjectSchema } from './objects/NotificationWhereUniqueInput.schema';
|
||||
import { NotificationCountAggregateInputObjectSchema as NotificationCountAggregateInputObjectSchema } from './objects/NotificationCountAggregateInput.schema';
|
||||
import { NotificationMinAggregateInputObjectSchema as NotificationMinAggregateInputObjectSchema } from './objects/NotificationMinAggregateInput.schema';
|
||||
import { NotificationMaxAggregateInputObjectSchema as NotificationMaxAggregateInputObjectSchema } from './objects/NotificationMaxAggregateInput.schema';
|
||||
import { NotificationAvgAggregateInputObjectSchema as NotificationAvgAggregateInputObjectSchema } from './objects/NotificationAvgAggregateInput.schema';
|
||||
import { NotificationSumAggregateInputObjectSchema as NotificationSumAggregateInputObjectSchema } from './objects/NotificationSumAggregateInput.schema';
|
||||
|
||||
export const NotificationAggregateSchema: z.ZodType<Prisma.NotificationAggregateArgs> = z.object({ orderBy: z.union([NotificationOrderByWithRelationInputObjectSchema, NotificationOrderByWithRelationInputObjectSchema.array()]).optional(), where: NotificationWhereInputObjectSchema.optional(), cursor: NotificationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), NotificationCountAggregateInputObjectSchema ]).optional(), _min: NotificationMinAggregateInputObjectSchema.optional(), _max: NotificationMaxAggregateInputObjectSchema.optional(), _avg: NotificationAvgAggregateInputObjectSchema.optional(), _sum: NotificationSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.NotificationAggregateArgs>;
|
||||
|
||||
export const NotificationAggregateZodSchema = z.object({ orderBy: z.union([NotificationOrderByWithRelationInputObjectSchema, NotificationOrderByWithRelationInputObjectSchema.array()]).optional(), where: NotificationWhereInputObjectSchema.optional(), cursor: NotificationWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), NotificationCountAggregateInputObjectSchema ]).optional(), _min: NotificationMinAggregateInputObjectSchema.optional(), _max: NotificationMaxAggregateInputObjectSchema.optional(), _avg: NotificationAvgAggregateInputObjectSchema.optional(), _sum: NotificationSumAggregateInputObjectSchema.optional() }).strict();
|
||||
38
packages/db/shared/schemas/aggregateNpiProvider.schema.d.ts
vendored
Normal file
38
packages/db/shared/schemas/aggregateNpiProvider.schema.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
export declare const NpiProviderAggregateSchema: z.ZodType<Prisma.NpiProviderAggregateArgs>;
|
||||
export declare const NpiProviderAggregateZodSchema: z.ZodObject<{
|
||||
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.NpiProviderOrderByWithRelationInput, z.ZodTypeDef, Prisma.NpiProviderOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.NpiProviderOrderByWithRelationInput, z.ZodTypeDef, Prisma.NpiProviderOrderByWithRelationInput>, "many">]>>;
|
||||
where: z.ZodOptional<z.ZodType<Prisma.NpiProviderWhereInput, z.ZodTypeDef, Prisma.NpiProviderWhereInput>>;
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.NpiProviderWhereUniqueInput, z.ZodTypeDef, Prisma.NpiProviderWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.NpiProviderCountAggregateInputType, z.ZodTypeDef, Prisma.NpiProviderCountAggregateInputType>]>>;
|
||||
_min: z.ZodOptional<z.ZodType<Prisma.NpiProviderMinAggregateInputType, z.ZodTypeDef, Prisma.NpiProviderMinAggregateInputType>>;
|
||||
_max: z.ZodOptional<z.ZodType<Prisma.NpiProviderMaxAggregateInputType, z.ZodTypeDef, Prisma.NpiProviderMaxAggregateInputType>>;
|
||||
_avg: z.ZodOptional<z.ZodType<Prisma.NpiProviderAvgAggregateInputType, z.ZodTypeDef, Prisma.NpiProviderAvgAggregateInputType>>;
|
||||
_sum: z.ZodOptional<z.ZodType<Prisma.NpiProviderSumAggregateInputType, z.ZodTypeDef, Prisma.NpiProviderSumAggregateInputType>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.NpiProviderWhereInput | undefined;
|
||||
_count?: true | Prisma.NpiProviderCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.NpiProviderOrderByWithRelationInput | Prisma.NpiProviderOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.NpiProviderWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.NpiProviderMinAggregateInputType | undefined;
|
||||
_max?: Prisma.NpiProviderMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.NpiProviderAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.NpiProviderSumAggregateInputType | undefined;
|
||||
}, {
|
||||
where?: Prisma.NpiProviderWhereInput | undefined;
|
||||
_count?: true | Prisma.NpiProviderCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.NpiProviderOrderByWithRelationInput | Prisma.NpiProviderOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.NpiProviderWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.NpiProviderMinAggregateInputType | undefined;
|
||||
_max?: Prisma.NpiProviderMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.NpiProviderAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.NpiProviderSumAggregateInputType | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=aggregateNpiProvider.schema.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"aggregateNpiProvider.schema.d.ts","sourceRoot":"","sources":["aggregateNpiProvider.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,wBAAwB,CAA+sB,CAAC;AAElyB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqpB,CAAC"}
|
||||
47
packages/db/shared/schemas/aggregateNpiProvider.schema.js
Normal file
47
packages/db/shared/schemas/aggregateNpiProvider.schema.js
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || (function () {
|
||||
var ownKeys = function(o) {
|
||||
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||
var ar = [];
|
||||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||
return ar;
|
||||
};
|
||||
return ownKeys(o);
|
||||
};
|
||||
return function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.NpiProviderAggregateZodSchema = exports.NpiProviderAggregateSchema = void 0;
|
||||
const z = __importStar(require("zod"));
|
||||
const NpiProviderOrderByWithRelationInput_schema_1 = require("./objects/NpiProviderOrderByWithRelationInput.schema");
|
||||
const NpiProviderWhereInput_schema_1 = require("./objects/NpiProviderWhereInput.schema");
|
||||
const NpiProviderWhereUniqueInput_schema_1 = require("./objects/NpiProviderWhereUniqueInput.schema");
|
||||
const NpiProviderCountAggregateInput_schema_1 = require("./objects/NpiProviderCountAggregateInput.schema");
|
||||
const NpiProviderMinAggregateInput_schema_1 = require("./objects/NpiProviderMinAggregateInput.schema");
|
||||
const NpiProviderMaxAggregateInput_schema_1 = require("./objects/NpiProviderMaxAggregateInput.schema");
|
||||
const NpiProviderAvgAggregateInput_schema_1 = require("./objects/NpiProviderAvgAggregateInput.schema");
|
||||
const NpiProviderSumAggregateInput_schema_1 = require("./objects/NpiProviderSumAggregateInput.schema");
|
||||
exports.NpiProviderAggregateSchema = z.object({ orderBy: z.union([NpiProviderOrderByWithRelationInput_schema_1.NpiProviderOrderByWithRelationInputObjectSchema, NpiProviderOrderByWithRelationInput_schema_1.NpiProviderOrderByWithRelationInputObjectSchema.array()]).optional(), where: NpiProviderWhereInput_schema_1.NpiProviderWhereInputObjectSchema.optional(), cursor: NpiProviderWhereUniqueInput_schema_1.NpiProviderWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), NpiProviderCountAggregateInput_schema_1.NpiProviderCountAggregateInputObjectSchema]).optional(), _min: NpiProviderMinAggregateInput_schema_1.NpiProviderMinAggregateInputObjectSchema.optional(), _max: NpiProviderMaxAggregateInput_schema_1.NpiProviderMaxAggregateInputObjectSchema.optional(), _avg: NpiProviderAvgAggregateInput_schema_1.NpiProviderAvgAggregateInputObjectSchema.optional(), _sum: NpiProviderSumAggregateInput_schema_1.NpiProviderSumAggregateInputObjectSchema.optional() }).strict();
|
||||
exports.NpiProviderAggregateZodSchema = z.object({ orderBy: z.union([NpiProviderOrderByWithRelationInput_schema_1.NpiProviderOrderByWithRelationInputObjectSchema, NpiProviderOrderByWithRelationInput_schema_1.NpiProviderOrderByWithRelationInputObjectSchema.array()]).optional(), where: NpiProviderWhereInput_schema_1.NpiProviderWhereInputObjectSchema.optional(), cursor: NpiProviderWhereUniqueInput_schema_1.NpiProviderWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([z.literal(true), NpiProviderCountAggregateInput_schema_1.NpiProviderCountAggregateInputObjectSchema]).optional(), _min: NpiProviderMinAggregateInput_schema_1.NpiProviderMinAggregateInputObjectSchema.optional(), _max: NpiProviderMaxAggregateInput_schema_1.NpiProviderMaxAggregateInputObjectSchema.optional(), _avg: NpiProviderAvgAggregateInput_schema_1.NpiProviderAvgAggregateInputObjectSchema.optional(), _sum: NpiProviderSumAggregateInput_schema_1.NpiProviderSumAggregateInputObjectSchema.optional() }).strict();
|
||||
14
packages/db/shared/schemas/aggregateNpiProvider.schema.ts
Normal file
14
packages/db/shared/schemas/aggregateNpiProvider.schema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
import { NpiProviderOrderByWithRelationInputObjectSchema as NpiProviderOrderByWithRelationInputObjectSchema } from './objects/NpiProviderOrderByWithRelationInput.schema';
|
||||
import { NpiProviderWhereInputObjectSchema as NpiProviderWhereInputObjectSchema } from './objects/NpiProviderWhereInput.schema';
|
||||
import { NpiProviderWhereUniqueInputObjectSchema as NpiProviderWhereUniqueInputObjectSchema } from './objects/NpiProviderWhereUniqueInput.schema';
|
||||
import { NpiProviderCountAggregateInputObjectSchema as NpiProviderCountAggregateInputObjectSchema } from './objects/NpiProviderCountAggregateInput.schema';
|
||||
import { NpiProviderMinAggregateInputObjectSchema as NpiProviderMinAggregateInputObjectSchema } from './objects/NpiProviderMinAggregateInput.schema';
|
||||
import { NpiProviderMaxAggregateInputObjectSchema as NpiProviderMaxAggregateInputObjectSchema } from './objects/NpiProviderMaxAggregateInput.schema';
|
||||
import { NpiProviderAvgAggregateInputObjectSchema as NpiProviderAvgAggregateInputObjectSchema } from './objects/NpiProviderAvgAggregateInput.schema';
|
||||
import { NpiProviderSumAggregateInputObjectSchema as NpiProviderSumAggregateInputObjectSchema } from './objects/NpiProviderSumAggregateInput.schema';
|
||||
|
||||
export const NpiProviderAggregateSchema: z.ZodType<Prisma.NpiProviderAggregateArgs> = z.object({ orderBy: z.union([NpiProviderOrderByWithRelationInputObjectSchema, NpiProviderOrderByWithRelationInputObjectSchema.array()]).optional(), where: NpiProviderWhereInputObjectSchema.optional(), cursor: NpiProviderWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), NpiProviderCountAggregateInputObjectSchema ]).optional(), _min: NpiProviderMinAggregateInputObjectSchema.optional(), _max: NpiProviderMaxAggregateInputObjectSchema.optional(), _avg: NpiProviderAvgAggregateInputObjectSchema.optional(), _sum: NpiProviderSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.NpiProviderAggregateArgs>;
|
||||
|
||||
export const NpiProviderAggregateZodSchema = z.object({ orderBy: z.union([NpiProviderOrderByWithRelationInputObjectSchema, NpiProviderOrderByWithRelationInputObjectSchema.array()]).optional(), where: NpiProviderWhereInputObjectSchema.optional(), cursor: NpiProviderWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), NpiProviderCountAggregateInputObjectSchema ]).optional(), _min: NpiProviderMinAggregateInputObjectSchema.optional(), _max: NpiProviderMaxAggregateInputObjectSchema.optional(), _avg: NpiProviderAvgAggregateInputObjectSchema.optional(), _sum: NpiProviderSumAggregateInputObjectSchema.optional() }).strict();
|
||||
38
packages/db/shared/schemas/aggregatePatient.schema.d.ts
vendored
Normal file
38
packages/db/shared/schemas/aggregatePatient.schema.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { Prisma } from '../../generated/prisma';
|
||||
import * as z from 'zod';
|
||||
export declare const PatientAggregateSchema: z.ZodType<Prisma.PatientAggregateArgs>;
|
||||
export declare const PatientAggregateZodSchema: z.ZodObject<{
|
||||
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<Prisma.PatientOrderByWithRelationInput, z.ZodTypeDef, Prisma.PatientOrderByWithRelationInput>, z.ZodArray<z.ZodType<Prisma.PatientOrderByWithRelationInput, z.ZodTypeDef, Prisma.PatientOrderByWithRelationInput>, "many">]>>;
|
||||
where: z.ZodOptional<z.ZodType<Prisma.PatientWhereInput, z.ZodTypeDef, Prisma.PatientWhereInput>>;
|
||||
cursor: z.ZodOptional<z.ZodType<Prisma.PatientWhereUniqueInput, z.ZodTypeDef, Prisma.PatientWhereUniqueInput>>;
|
||||
take: z.ZodOptional<z.ZodNumber>;
|
||||
skip: z.ZodOptional<z.ZodNumber>;
|
||||
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<Prisma.PatientCountAggregateInputType, z.ZodTypeDef, Prisma.PatientCountAggregateInputType>]>>;
|
||||
_min: z.ZodOptional<z.ZodType<Prisma.PatientMinAggregateInputType, z.ZodTypeDef, Prisma.PatientMinAggregateInputType>>;
|
||||
_max: z.ZodOptional<z.ZodType<Prisma.PatientMaxAggregateInputType, z.ZodTypeDef, Prisma.PatientMaxAggregateInputType>>;
|
||||
_avg: z.ZodOptional<z.ZodType<Prisma.PatientAvgAggregateInputType, z.ZodTypeDef, Prisma.PatientAvgAggregateInputType>>;
|
||||
_sum: z.ZodOptional<z.ZodType<Prisma.PatientSumAggregateInputType, z.ZodTypeDef, Prisma.PatientSumAggregateInputType>>;
|
||||
}, "strict", z.ZodTypeAny, {
|
||||
where?: Prisma.PatientWhereInput | undefined;
|
||||
_count?: true | Prisma.PatientCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.PatientOrderByWithRelationInput | Prisma.PatientOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.PatientWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.PatientMinAggregateInputType | undefined;
|
||||
_max?: Prisma.PatientMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.PatientAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.PatientSumAggregateInputType | undefined;
|
||||
}, {
|
||||
where?: Prisma.PatientWhereInput | undefined;
|
||||
_count?: true | Prisma.PatientCountAggregateInputType | undefined;
|
||||
orderBy?: Prisma.PatientOrderByWithRelationInput | Prisma.PatientOrderByWithRelationInput[] | undefined;
|
||||
cursor?: Prisma.PatientWhereUniqueInput | undefined;
|
||||
take?: number | undefined;
|
||||
skip?: number | undefined;
|
||||
_min?: Prisma.PatientMinAggregateInputType | undefined;
|
||||
_max?: Prisma.PatientMaxAggregateInputType | undefined;
|
||||
_avg?: Prisma.PatientAvgAggregateInputType | undefined;
|
||||
_sum?: Prisma.PatientSumAggregateInputType | undefined;
|
||||
}>;
|
||||
//# sourceMappingURL=aggregatePatient.schema.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"aggregatePatient.schema.d.ts","sourceRoot":"","sources":["aggregatePatient.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAuqB,CAAC;AAElvB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAinB,CAAC"}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user