create-zhx-monorepo 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +0 -11
- package/package.json +1 -1
- package/templates/monorepo-starter/README.md +28 -0
- package/templates/monorepo-starter/server/.env.example +1 -0
- package/templates/monorepo-starter/server/prisma/generated/browser.ts +0 -54
- package/templates/monorepo-starter/server/prisma/generated/client.ts +0 -76
- package/templates/monorepo-starter/server/prisma/generated/commonInputTypes.ts +0 -577
- package/templates/monorepo-starter/server/prisma/generated/enums.ts +0 -68
- package/templates/monorepo-starter/server/prisma/generated/internal/class.ts +0 -250
- package/templates/monorepo-starter/server/prisma/generated/internal/prismaNamespace.ts +0 -1436
- package/templates/monorepo-starter/server/prisma/generated/internal/prismaNamespaceBrowser.ts +0 -227
- package/templates/monorepo-starter/server/prisma/generated/models/BackupCode.ts +0 -1375
- package/templates/monorepo-starter/server/prisma/generated/models/Notification.ts +0 -1587
- package/templates/monorepo-starter/server/prisma/generated/models/Otp.ts +0 -1488
- package/templates/monorepo-starter/server/prisma/generated/models/RefreshToken.ts +0 -1515
- package/templates/monorepo-starter/server/prisma/generated/models/RoleAssignment.ts +0 -1385
- package/templates/monorepo-starter/server/prisma/generated/models/SecuritySetting.ts +0 -1422
- package/templates/monorepo-starter/server/prisma/generated/models/User.ts +0 -2498
- package/templates/monorepo-starter/server/prisma/generated/models.ts +0 -18
- package/templates/monorepo-starter/server/prisma/migrations/20251218164821_init/migration.sql +0 -210
- package/templates/monorepo-starter/server/prisma/migrations/migration_lock.toml +0 -3
package/templates/monorepo-starter/server/prisma/generated/internal/prismaNamespaceBrowser.ts
DELETED
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// biome-ignore-all lint: generated file
|
|
5
|
-
// @ts-nocheck
|
|
6
|
-
/*
|
|
7
|
-
* WARNING: This is an internal file that is subject to change!
|
|
8
|
-
*
|
|
9
|
-
* 🛑 Under no circumstances should you import this file directly! 🛑
|
|
10
|
-
*
|
|
11
|
-
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
|
|
12
|
-
* While this enables partial backward compatibility, it is not part of the stable public API.
|
|
13
|
-
*
|
|
14
|
-
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
15
|
-
* model files in the `model` directory!
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import * as runtime from "@prisma/client/runtime/index-browser"
|
|
19
|
-
|
|
20
|
-
export type * from '../models'
|
|
21
|
-
export type * from './prismaNamespace'
|
|
22
|
-
|
|
23
|
-
export const Decimal = runtime.Decimal
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export const NullTypes = {
|
|
27
|
-
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
|
|
28
|
-
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
|
|
29
|
-
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
33
|
-
*
|
|
34
|
-
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
35
|
-
*/
|
|
36
|
-
export const DbNull = runtime.DbNull
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
40
|
-
*
|
|
41
|
-
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
42
|
-
*/
|
|
43
|
-
export const JsonNull = runtime.JsonNull
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
47
|
-
*
|
|
48
|
-
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
49
|
-
*/
|
|
50
|
-
export const AnyNull = runtime.AnyNull
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export const ModelName = {
|
|
54
|
-
User: 'User',
|
|
55
|
-
RoleAssignment: 'RoleAssignment',
|
|
56
|
-
SecuritySetting: 'SecuritySetting',
|
|
57
|
-
BackupCode: 'BackupCode',
|
|
58
|
-
RefreshToken: 'RefreshToken',
|
|
59
|
-
Otp: 'Otp',
|
|
60
|
-
Notification: 'Notification'
|
|
61
|
-
} as const
|
|
62
|
-
|
|
63
|
-
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
64
|
-
|
|
65
|
-
/*
|
|
66
|
-
* Enums
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
|
-
export const TransactionIsolationLevel = {
|
|
70
|
-
ReadUncommitted: 'ReadUncommitted',
|
|
71
|
-
ReadCommitted: 'ReadCommitted',
|
|
72
|
-
RepeatableRead: 'RepeatableRead',
|
|
73
|
-
Serializable: 'Serializable'
|
|
74
|
-
} as const
|
|
75
|
-
|
|
76
|
-
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
export const UserScalarFieldEnum = {
|
|
80
|
-
id: 'id',
|
|
81
|
-
username: 'username',
|
|
82
|
-
password: 'password',
|
|
83
|
-
firstName: 'firstName',
|
|
84
|
-
lastName: 'lastName',
|
|
85
|
-
displayName: 'displayName',
|
|
86
|
-
imageUrl: 'imageUrl',
|
|
87
|
-
email: 'email',
|
|
88
|
-
phone: 'phone',
|
|
89
|
-
isEmailVerified: 'isEmailVerified',
|
|
90
|
-
isPhoneVerified: 'isPhoneVerified',
|
|
91
|
-
lastLoginAt: 'lastLoginAt',
|
|
92
|
-
createdAt: 'createdAt',
|
|
93
|
-
updatedAt: 'updatedAt',
|
|
94
|
-
deletedAt: 'deletedAt'
|
|
95
|
-
} as const
|
|
96
|
-
|
|
97
|
-
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
export const RoleAssignmentScalarFieldEnum = {
|
|
101
|
-
id: 'id',
|
|
102
|
-
userId: 'userId',
|
|
103
|
-
role: 'role',
|
|
104
|
-
createdAt: 'createdAt',
|
|
105
|
-
updatedAt: 'updatedAt',
|
|
106
|
-
revokedAt: 'revokedAt'
|
|
107
|
-
} as const
|
|
108
|
-
|
|
109
|
-
export type RoleAssignmentScalarFieldEnum = (typeof RoleAssignmentScalarFieldEnum)[keyof typeof RoleAssignmentScalarFieldEnum]
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
export const SecuritySettingScalarFieldEnum = {
|
|
113
|
-
id: 'id',
|
|
114
|
-
userId: 'userId',
|
|
115
|
-
preferredMfa: 'preferredMfa',
|
|
116
|
-
recoveryEmail: 'recoveryEmail',
|
|
117
|
-
recoveryPhone: 'recoveryPhone',
|
|
118
|
-
isMfaEnabled: 'isMfaEnabled',
|
|
119
|
-
loginAlerts: 'loginAlerts',
|
|
120
|
-
createdAt: 'createdAt',
|
|
121
|
-
updatedAt: 'updatedAt'
|
|
122
|
-
} as const
|
|
123
|
-
|
|
124
|
-
export type SecuritySettingScalarFieldEnum = (typeof SecuritySettingScalarFieldEnum)[keyof typeof SecuritySettingScalarFieldEnum]
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
export const BackupCodeScalarFieldEnum = {
|
|
128
|
-
id: 'id',
|
|
129
|
-
userId: 'userId',
|
|
130
|
-
code: 'code',
|
|
131
|
-
usedAt: 'usedAt',
|
|
132
|
-
createdAt: 'createdAt',
|
|
133
|
-
expiresAt: 'expiresAt'
|
|
134
|
-
} as const
|
|
135
|
-
|
|
136
|
-
export type BackupCodeScalarFieldEnum = (typeof BackupCodeScalarFieldEnum)[keyof typeof BackupCodeScalarFieldEnum]
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
export const RefreshTokenScalarFieldEnum = {
|
|
140
|
-
id: 'id',
|
|
141
|
-
token: 'token',
|
|
142
|
-
userId: 'userId',
|
|
143
|
-
ip: 'ip',
|
|
144
|
-
userAgent: 'userAgent',
|
|
145
|
-
lastUsed: 'lastUsed',
|
|
146
|
-
createdAt: 'createdAt',
|
|
147
|
-
expiresAt: 'expiresAt',
|
|
148
|
-
isActive: 'isActive',
|
|
149
|
-
blacklisted: 'blacklisted'
|
|
150
|
-
} as const
|
|
151
|
-
|
|
152
|
-
export type RefreshTokenScalarFieldEnum = (typeof RefreshTokenScalarFieldEnum)[keyof typeof RefreshTokenScalarFieldEnum]
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
export const OtpScalarFieldEnum = {
|
|
156
|
-
id: 'id',
|
|
157
|
-
userId: 'userId',
|
|
158
|
-
purpose: 'purpose',
|
|
159
|
-
type: 'type',
|
|
160
|
-
secret: 'secret',
|
|
161
|
-
expiresAt: 'expiresAt',
|
|
162
|
-
usedAt: 'usedAt',
|
|
163
|
-
createdAt: 'createdAt',
|
|
164
|
-
updatedAt: 'updatedAt'
|
|
165
|
-
} as const
|
|
166
|
-
|
|
167
|
-
export type OtpScalarFieldEnum = (typeof OtpScalarFieldEnum)[keyof typeof OtpScalarFieldEnum]
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
export const NotificationScalarFieldEnum = {
|
|
171
|
-
id: 'id',
|
|
172
|
-
userId: 'userId',
|
|
173
|
-
type: 'type',
|
|
174
|
-
title: 'title',
|
|
175
|
-
message: 'message',
|
|
176
|
-
purpose: 'purpose',
|
|
177
|
-
metadata: 'metadata',
|
|
178
|
-
status: 'status',
|
|
179
|
-
sentAt: 'sentAt',
|
|
180
|
-
readAt: 'readAt',
|
|
181
|
-
createdAt: 'createdAt',
|
|
182
|
-
updatedAt: 'updatedAt'
|
|
183
|
-
} as const
|
|
184
|
-
|
|
185
|
-
export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum]
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
export const SortOrder = {
|
|
189
|
-
asc: 'asc',
|
|
190
|
-
desc: 'desc'
|
|
191
|
-
} as const
|
|
192
|
-
|
|
193
|
-
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
export const NullableJsonNullValueInput = {
|
|
197
|
-
DbNull: 'DbNull',
|
|
198
|
-
JsonNull: 'JsonNull'
|
|
199
|
-
} as const
|
|
200
|
-
|
|
201
|
-
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
export const QueryMode = {
|
|
205
|
-
default: 'default',
|
|
206
|
-
insensitive: 'insensitive'
|
|
207
|
-
} as const
|
|
208
|
-
|
|
209
|
-
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
export const NullsOrder = {
|
|
213
|
-
first: 'first',
|
|
214
|
-
last: 'last'
|
|
215
|
-
} as const
|
|
216
|
-
|
|
217
|
-
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
export const JsonNullValueFilter = {
|
|
221
|
-
DbNull: 'DbNull',
|
|
222
|
-
JsonNull: 'JsonNull',
|
|
223
|
-
AnyNull: 'AnyNull'
|
|
224
|
-
} as const
|
|
225
|
-
|
|
226
|
-
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
|
|
227
|
-
|