first commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const AppointmentScalarFieldEnumSchema = z.enum([
|
||||
'id',
|
||||
'patientId',
|
||||
'userId',
|
||||
'title',
|
||||
'date',
|
||||
'startTime',
|
||||
'endTime',
|
||||
'type',
|
||||
'notes',
|
||||
'status',
|
||||
'createdAt',
|
||||
]);
|
||||
3
packages/db/shared/schemas/enums/NullsOrder.schema.ts
Normal file
3
packages/db/shared/schemas/enums/NullsOrder.schema.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const NullsOrderSchema = z.enum(['first', 'last']);
|
||||
@@ -0,0 +1,23 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const PatientScalarFieldEnumSchema = z.enum([
|
||||
'id',
|
||||
'firstName',
|
||||
'lastName',
|
||||
'dateOfBirth',
|
||||
'gender',
|
||||
'phone',
|
||||
'email',
|
||||
'address',
|
||||
'city',
|
||||
'zipCode',
|
||||
'insuranceProvider',
|
||||
'insuranceId',
|
||||
'groupNumber',
|
||||
'policyHolder',
|
||||
'allergies',
|
||||
'medicalConditions',
|
||||
'status',
|
||||
'userId',
|
||||
'createdAt',
|
||||
]);
|
||||
3
packages/db/shared/schemas/enums/QueryMode.schema.ts
Normal file
3
packages/db/shared/schemas/enums/QueryMode.schema.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const QueryModeSchema = z.enum(['default', 'insensitive']);
|
||||
3
packages/db/shared/schemas/enums/SortOrder.schema.ts
Normal file
3
packages/db/shared/schemas/enums/SortOrder.schema.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const SortOrderSchema = z.enum(['asc', 'desc']);
|
||||
@@ -0,0 +1,8 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const TransactionIsolationLevelSchema = z.enum([
|
||||
'ReadUncommitted',
|
||||
'ReadCommitted',
|
||||
'RepeatableRead',
|
||||
'Serializable',
|
||||
]);
|
||||
@@ -0,0 +1,3 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const UserScalarFieldEnumSchema = z.enum(['id', 'username', 'password']);
|
||||
Reference in New Issue
Block a user