kfreelance-project-postgresql-prisma 1.0.8 → 1.0.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/generated/prisma/edge.js +6 -5
- package/generated/prisma/index-browser.js +1 -1
- package/generated/prisma/index.d.ts +34 -34
- package/generated/prisma/index.js +6 -5
- package/generated/prisma/package.json +1 -1
- package/generated/prisma/schema.prisma +1 -1
- package/generated/prisma/wasm.js +6 -5
- package/package.json +1 -1
- package/prisma/migrations/20251006071441_update_user_columns_name/migration.sql +10 -0
- package/prisma/schema.prisma +1 -1
package/generated/prisma/edge.js
CHANGED
|
@@ -96,7 +96,7 @@ exports.Prisma.UserScalarFieldEnum = {
|
|
|
96
96
|
id: 'id',
|
|
97
97
|
username: 'username',
|
|
98
98
|
email: 'email',
|
|
99
|
-
|
|
99
|
+
password_hash: 'password_hash',
|
|
100
100
|
is_active: 'is_active',
|
|
101
101
|
must_reset_password: 'must_reset_password',
|
|
102
102
|
created_at: 'created_at',
|
|
@@ -155,7 +155,8 @@ const config = {
|
|
|
155
155
|
"isCustomOutput": true
|
|
156
156
|
},
|
|
157
157
|
"relativeEnvPaths": {
|
|
158
|
-
"rootEnvPath": null
|
|
158
|
+
"rootEnvPath": null,
|
|
159
|
+
"schemaEnvPath": "../../.env"
|
|
159
160
|
},
|
|
160
161
|
"relativePath": "../../prisma",
|
|
161
162
|
"clientVersion": "6.16.3",
|
|
@@ -173,13 +174,13 @@ const config = {
|
|
|
173
174
|
}
|
|
174
175
|
}
|
|
175
176
|
},
|
|
176
|
-
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(uuid())\n username String @unique\n email String @unique\n
|
|
177
|
-
"inlineSchemaHash": "
|
|
177
|
+
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(uuid())\n username String @unique\n email String @unique\n password_hash String // Hashed password\n is_active Boolean\n must_reset_password Boolean\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n PasswordResetTokens PasswordResetToken[]\n}\n\nmodel PasswordResetToken {\n id String @id @default(uuid())\n user User @relation(fields: [user_id], references: [id])\n user_id String\n reset_token String // Hashed\n expires_at DateTime\n used Boolean\n}\n",
|
|
178
|
+
"inlineSchemaHash": "2a65c6976c9e459b7dacf63229c0ec52b834209155e1c96268afebb32d46b818",
|
|
178
179
|
"copyEngine": true
|
|
179
180
|
}
|
|
180
181
|
config.dirname = '/'
|
|
181
182
|
|
|
182
|
-
config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"username\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"
|
|
183
|
+
config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"username\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password_hash\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"is_active\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"must_reset_password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"PasswordResetTokens\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"PasswordResetToken\",\"nativeType\":null,\"relationName\":\"PasswordResetTokenToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"PasswordResetToken\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"PasswordResetTokenToUser\",\"relationFromFields\":[\"user_id\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reset_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"used\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}")
|
|
183
184
|
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
184
185
|
config.engineWasm = undefined
|
|
185
186
|
config.compilerWasm = undefined
|
|
@@ -124,7 +124,7 @@ exports.Prisma.UserScalarFieldEnum = {
|
|
|
124
124
|
id: 'id',
|
|
125
125
|
username: 'username',
|
|
126
126
|
email: 'email',
|
|
127
|
-
|
|
127
|
+
password_hash: 'password_hash',
|
|
128
128
|
is_active: 'is_active',
|
|
129
129
|
must_reset_password: 'must_reset_password',
|
|
130
130
|
created_at: 'created_at',
|
|
@@ -995,7 +995,7 @@ export namespace Prisma {
|
|
|
995
995
|
id: string | null
|
|
996
996
|
username: string | null
|
|
997
997
|
email: string | null
|
|
998
|
-
|
|
998
|
+
password_hash: string | null
|
|
999
999
|
is_active: boolean | null
|
|
1000
1000
|
must_reset_password: boolean | null
|
|
1001
1001
|
created_at: Date | null
|
|
@@ -1006,7 +1006,7 @@ export namespace Prisma {
|
|
|
1006
1006
|
id: string | null
|
|
1007
1007
|
username: string | null
|
|
1008
1008
|
email: string | null
|
|
1009
|
-
|
|
1009
|
+
password_hash: string | null
|
|
1010
1010
|
is_active: boolean | null
|
|
1011
1011
|
must_reset_password: boolean | null
|
|
1012
1012
|
created_at: Date | null
|
|
@@ -1017,7 +1017,7 @@ export namespace Prisma {
|
|
|
1017
1017
|
id: number
|
|
1018
1018
|
username: number
|
|
1019
1019
|
email: number
|
|
1020
|
-
|
|
1020
|
+
password_hash: number
|
|
1021
1021
|
is_active: number
|
|
1022
1022
|
must_reset_password: number
|
|
1023
1023
|
created_at: number
|
|
@@ -1030,7 +1030,7 @@ export namespace Prisma {
|
|
|
1030
1030
|
id?: true
|
|
1031
1031
|
username?: true
|
|
1032
1032
|
email?: true
|
|
1033
|
-
|
|
1033
|
+
password_hash?: true
|
|
1034
1034
|
is_active?: true
|
|
1035
1035
|
must_reset_password?: true
|
|
1036
1036
|
created_at?: true
|
|
@@ -1041,7 +1041,7 @@ export namespace Prisma {
|
|
|
1041
1041
|
id?: true
|
|
1042
1042
|
username?: true
|
|
1043
1043
|
email?: true
|
|
1044
|
-
|
|
1044
|
+
password_hash?: true
|
|
1045
1045
|
is_active?: true
|
|
1046
1046
|
must_reset_password?: true
|
|
1047
1047
|
created_at?: true
|
|
@@ -1052,7 +1052,7 @@ export namespace Prisma {
|
|
|
1052
1052
|
id?: true
|
|
1053
1053
|
username?: true
|
|
1054
1054
|
email?: true
|
|
1055
|
-
|
|
1055
|
+
password_hash?: true
|
|
1056
1056
|
is_active?: true
|
|
1057
1057
|
must_reset_password?: true
|
|
1058
1058
|
created_at?: true
|
|
@@ -1136,7 +1136,7 @@ export namespace Prisma {
|
|
|
1136
1136
|
id: string
|
|
1137
1137
|
username: string
|
|
1138
1138
|
email: string
|
|
1139
|
-
|
|
1139
|
+
password_hash: string
|
|
1140
1140
|
is_active: boolean
|
|
1141
1141
|
must_reset_password: boolean
|
|
1142
1142
|
created_at: Date
|
|
@@ -1164,7 +1164,7 @@ export namespace Prisma {
|
|
|
1164
1164
|
id?: boolean
|
|
1165
1165
|
username?: boolean
|
|
1166
1166
|
email?: boolean
|
|
1167
|
-
|
|
1167
|
+
password_hash?: boolean
|
|
1168
1168
|
is_active?: boolean
|
|
1169
1169
|
must_reset_password?: boolean
|
|
1170
1170
|
created_at?: boolean
|
|
@@ -1177,7 +1177,7 @@ export namespace Prisma {
|
|
|
1177
1177
|
id?: boolean
|
|
1178
1178
|
username?: boolean
|
|
1179
1179
|
email?: boolean
|
|
1180
|
-
|
|
1180
|
+
password_hash?: boolean
|
|
1181
1181
|
is_active?: boolean
|
|
1182
1182
|
must_reset_password?: boolean
|
|
1183
1183
|
created_at?: boolean
|
|
@@ -1188,7 +1188,7 @@ export namespace Prisma {
|
|
|
1188
1188
|
id?: boolean
|
|
1189
1189
|
username?: boolean
|
|
1190
1190
|
email?: boolean
|
|
1191
|
-
|
|
1191
|
+
password_hash?: boolean
|
|
1192
1192
|
is_active?: boolean
|
|
1193
1193
|
must_reset_password?: boolean
|
|
1194
1194
|
created_at?: boolean
|
|
@@ -1199,14 +1199,14 @@ export namespace Prisma {
|
|
|
1199
1199
|
id?: boolean
|
|
1200
1200
|
username?: boolean
|
|
1201
1201
|
email?: boolean
|
|
1202
|
-
|
|
1202
|
+
password_hash?: boolean
|
|
1203
1203
|
is_active?: boolean
|
|
1204
1204
|
must_reset_password?: boolean
|
|
1205
1205
|
created_at?: boolean
|
|
1206
1206
|
updated_at?: boolean
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
1209
|
-
export type UserOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "username" | "email" | "
|
|
1209
|
+
export type UserOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "username" | "email" | "password_hash" | "is_active" | "must_reset_password" | "created_at" | "updated_at", ExtArgs["result"]["user"]>
|
|
1210
1210
|
export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
1211
1211
|
PasswordResetTokens?: boolean | User$PasswordResetTokensArgs<ExtArgs>
|
|
1212
1212
|
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
@@ -1223,7 +1223,7 @@ export namespace Prisma {
|
|
|
1223
1223
|
id: string
|
|
1224
1224
|
username: string
|
|
1225
1225
|
email: string
|
|
1226
|
-
|
|
1226
|
+
password_hash: string
|
|
1227
1227
|
is_active: boolean
|
|
1228
1228
|
must_reset_password: boolean
|
|
1229
1229
|
created_at: Date
|
|
@@ -1655,7 +1655,7 @@ export namespace Prisma {
|
|
|
1655
1655
|
readonly id: FieldRef<"User", 'String'>
|
|
1656
1656
|
readonly username: FieldRef<"User", 'String'>
|
|
1657
1657
|
readonly email: FieldRef<"User", 'String'>
|
|
1658
|
-
readonly
|
|
1658
|
+
readonly password_hash: FieldRef<"User", 'String'>
|
|
1659
1659
|
readonly is_active: FieldRef<"User", 'Boolean'>
|
|
1660
1660
|
readonly must_reset_password: FieldRef<"User", 'Boolean'>
|
|
1661
1661
|
readonly created_at: FieldRef<"User", 'DateTime'>
|
|
@@ -3166,7 +3166,7 @@ export namespace Prisma {
|
|
|
3166
3166
|
id: 'id',
|
|
3167
3167
|
username: 'username',
|
|
3168
3168
|
email: 'email',
|
|
3169
|
-
|
|
3169
|
+
password_hash: 'password_hash',
|
|
3170
3170
|
is_active: 'is_active',
|
|
3171
3171
|
must_reset_password: 'must_reset_password',
|
|
3172
3172
|
created_at: 'created_at',
|
|
@@ -3267,7 +3267,7 @@ export namespace Prisma {
|
|
|
3267
3267
|
id?: StringFilter<"User"> | string
|
|
3268
3268
|
username?: StringFilter<"User"> | string
|
|
3269
3269
|
email?: StringFilter<"User"> | string
|
|
3270
|
-
|
|
3270
|
+
password_hash?: StringFilter<"User"> | string
|
|
3271
3271
|
is_active?: BoolFilter<"User"> | boolean
|
|
3272
3272
|
must_reset_password?: BoolFilter<"User"> | boolean
|
|
3273
3273
|
created_at?: DateTimeFilter<"User"> | Date | string
|
|
@@ -3279,7 +3279,7 @@ export namespace Prisma {
|
|
|
3279
3279
|
id?: SortOrder
|
|
3280
3280
|
username?: SortOrder
|
|
3281
3281
|
email?: SortOrder
|
|
3282
|
-
|
|
3282
|
+
password_hash?: SortOrder
|
|
3283
3283
|
is_active?: SortOrder
|
|
3284
3284
|
must_reset_password?: SortOrder
|
|
3285
3285
|
created_at?: SortOrder
|
|
@@ -3294,7 +3294,7 @@ export namespace Prisma {
|
|
|
3294
3294
|
AND?: UserWhereInput | UserWhereInput[]
|
|
3295
3295
|
OR?: UserWhereInput[]
|
|
3296
3296
|
NOT?: UserWhereInput | UserWhereInput[]
|
|
3297
|
-
|
|
3297
|
+
password_hash?: StringFilter<"User"> | string
|
|
3298
3298
|
is_active?: BoolFilter<"User"> | boolean
|
|
3299
3299
|
must_reset_password?: BoolFilter<"User"> | boolean
|
|
3300
3300
|
created_at?: DateTimeFilter<"User"> | Date | string
|
|
@@ -3306,7 +3306,7 @@ export namespace Prisma {
|
|
|
3306
3306
|
id?: SortOrder
|
|
3307
3307
|
username?: SortOrder
|
|
3308
3308
|
email?: SortOrder
|
|
3309
|
-
|
|
3309
|
+
password_hash?: SortOrder
|
|
3310
3310
|
is_active?: SortOrder
|
|
3311
3311
|
must_reset_password?: SortOrder
|
|
3312
3312
|
created_at?: SortOrder
|
|
@@ -3323,7 +3323,7 @@ export namespace Prisma {
|
|
|
3323
3323
|
id?: StringWithAggregatesFilter<"User"> | string
|
|
3324
3324
|
username?: StringWithAggregatesFilter<"User"> | string
|
|
3325
3325
|
email?: StringWithAggregatesFilter<"User"> | string
|
|
3326
|
-
|
|
3326
|
+
password_hash?: StringWithAggregatesFilter<"User"> | string
|
|
3327
3327
|
is_active?: BoolWithAggregatesFilter<"User"> | boolean
|
|
3328
3328
|
must_reset_password?: BoolWithAggregatesFilter<"User"> | boolean
|
|
3329
3329
|
created_at?: DateTimeWithAggregatesFilter<"User"> | Date | string
|
|
@@ -3389,7 +3389,7 @@ export namespace Prisma {
|
|
|
3389
3389
|
id?: string
|
|
3390
3390
|
username: string
|
|
3391
3391
|
email: string
|
|
3392
|
-
|
|
3392
|
+
password_hash: string
|
|
3393
3393
|
is_active: boolean
|
|
3394
3394
|
must_reset_password: boolean
|
|
3395
3395
|
created_at?: Date | string
|
|
@@ -3401,7 +3401,7 @@ export namespace Prisma {
|
|
|
3401
3401
|
id?: string
|
|
3402
3402
|
username: string
|
|
3403
3403
|
email: string
|
|
3404
|
-
|
|
3404
|
+
password_hash: string
|
|
3405
3405
|
is_active: boolean
|
|
3406
3406
|
must_reset_password: boolean
|
|
3407
3407
|
created_at?: Date | string
|
|
@@ -3413,7 +3413,7 @@ export namespace Prisma {
|
|
|
3413
3413
|
id?: StringFieldUpdateOperationsInput | string
|
|
3414
3414
|
username?: StringFieldUpdateOperationsInput | string
|
|
3415
3415
|
email?: StringFieldUpdateOperationsInput | string
|
|
3416
|
-
|
|
3416
|
+
password_hash?: StringFieldUpdateOperationsInput | string
|
|
3417
3417
|
is_active?: BoolFieldUpdateOperationsInput | boolean
|
|
3418
3418
|
must_reset_password?: BoolFieldUpdateOperationsInput | boolean
|
|
3419
3419
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -3425,7 +3425,7 @@ export namespace Prisma {
|
|
|
3425
3425
|
id?: StringFieldUpdateOperationsInput | string
|
|
3426
3426
|
username?: StringFieldUpdateOperationsInput | string
|
|
3427
3427
|
email?: StringFieldUpdateOperationsInput | string
|
|
3428
|
-
|
|
3428
|
+
password_hash?: StringFieldUpdateOperationsInput | string
|
|
3429
3429
|
is_active?: BoolFieldUpdateOperationsInput | boolean
|
|
3430
3430
|
must_reset_password?: BoolFieldUpdateOperationsInput | boolean
|
|
3431
3431
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -3437,7 +3437,7 @@ export namespace Prisma {
|
|
|
3437
3437
|
id?: string
|
|
3438
3438
|
username: string
|
|
3439
3439
|
email: string
|
|
3440
|
-
|
|
3440
|
+
password_hash: string
|
|
3441
3441
|
is_active: boolean
|
|
3442
3442
|
must_reset_password: boolean
|
|
3443
3443
|
created_at?: Date | string
|
|
@@ -3448,7 +3448,7 @@ export namespace Prisma {
|
|
|
3448
3448
|
id?: StringFieldUpdateOperationsInput | string
|
|
3449
3449
|
username?: StringFieldUpdateOperationsInput | string
|
|
3450
3450
|
email?: StringFieldUpdateOperationsInput | string
|
|
3451
|
-
|
|
3451
|
+
password_hash?: StringFieldUpdateOperationsInput | string
|
|
3452
3452
|
is_active?: BoolFieldUpdateOperationsInput | boolean
|
|
3453
3453
|
must_reset_password?: BoolFieldUpdateOperationsInput | boolean
|
|
3454
3454
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -3459,7 +3459,7 @@ export namespace Prisma {
|
|
|
3459
3459
|
id?: StringFieldUpdateOperationsInput | string
|
|
3460
3460
|
username?: StringFieldUpdateOperationsInput | string
|
|
3461
3461
|
email?: StringFieldUpdateOperationsInput | string
|
|
3462
|
-
|
|
3462
|
+
password_hash?: StringFieldUpdateOperationsInput | string
|
|
3463
3463
|
is_active?: BoolFieldUpdateOperationsInput | boolean
|
|
3464
3464
|
must_reset_password?: BoolFieldUpdateOperationsInput | boolean
|
|
3465
3465
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -3566,7 +3566,7 @@ export namespace Prisma {
|
|
|
3566
3566
|
id?: SortOrder
|
|
3567
3567
|
username?: SortOrder
|
|
3568
3568
|
email?: SortOrder
|
|
3569
|
-
|
|
3569
|
+
password_hash?: SortOrder
|
|
3570
3570
|
is_active?: SortOrder
|
|
3571
3571
|
must_reset_password?: SortOrder
|
|
3572
3572
|
created_at?: SortOrder
|
|
@@ -3577,7 +3577,7 @@ export namespace Prisma {
|
|
|
3577
3577
|
id?: SortOrder
|
|
3578
3578
|
username?: SortOrder
|
|
3579
3579
|
email?: SortOrder
|
|
3580
|
-
|
|
3580
|
+
password_hash?: SortOrder
|
|
3581
3581
|
is_active?: SortOrder
|
|
3582
3582
|
must_reset_password?: SortOrder
|
|
3583
3583
|
created_at?: SortOrder
|
|
@@ -3588,7 +3588,7 @@ export namespace Prisma {
|
|
|
3588
3588
|
id?: SortOrder
|
|
3589
3589
|
username?: SortOrder
|
|
3590
3590
|
email?: SortOrder
|
|
3591
|
-
|
|
3591
|
+
password_hash?: SortOrder
|
|
3592
3592
|
is_active?: SortOrder
|
|
3593
3593
|
must_reset_password?: SortOrder
|
|
3594
3594
|
created_at?: SortOrder
|
|
@@ -3867,7 +3867,7 @@ export namespace Prisma {
|
|
|
3867
3867
|
id?: string
|
|
3868
3868
|
username: string
|
|
3869
3869
|
email: string
|
|
3870
|
-
|
|
3870
|
+
password_hash: string
|
|
3871
3871
|
is_active: boolean
|
|
3872
3872
|
must_reset_password: boolean
|
|
3873
3873
|
created_at?: Date | string
|
|
@@ -3878,7 +3878,7 @@ export namespace Prisma {
|
|
|
3878
3878
|
id?: string
|
|
3879
3879
|
username: string
|
|
3880
3880
|
email: string
|
|
3881
|
-
|
|
3881
|
+
password_hash: string
|
|
3882
3882
|
is_active: boolean
|
|
3883
3883
|
must_reset_password: boolean
|
|
3884
3884
|
created_at?: Date | string
|
|
@@ -3905,7 +3905,7 @@ export namespace Prisma {
|
|
|
3905
3905
|
id?: StringFieldUpdateOperationsInput | string
|
|
3906
3906
|
username?: StringFieldUpdateOperationsInput | string
|
|
3907
3907
|
email?: StringFieldUpdateOperationsInput | string
|
|
3908
|
-
|
|
3908
|
+
password_hash?: StringFieldUpdateOperationsInput | string
|
|
3909
3909
|
is_active?: BoolFieldUpdateOperationsInput | boolean
|
|
3910
3910
|
must_reset_password?: BoolFieldUpdateOperationsInput | boolean
|
|
3911
3911
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -3916,7 +3916,7 @@ export namespace Prisma {
|
|
|
3916
3916
|
id?: StringFieldUpdateOperationsInput | string
|
|
3917
3917
|
username?: StringFieldUpdateOperationsInput | string
|
|
3918
3918
|
email?: StringFieldUpdateOperationsInput | string
|
|
3919
|
-
|
|
3919
|
+
password_hash?: StringFieldUpdateOperationsInput | string
|
|
3920
3920
|
is_active?: BoolFieldUpdateOperationsInput | boolean
|
|
3921
3921
|
must_reset_password?: BoolFieldUpdateOperationsInput | boolean
|
|
3922
3922
|
created_at?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -97,7 +97,7 @@ exports.Prisma.UserScalarFieldEnum = {
|
|
|
97
97
|
id: 'id',
|
|
98
98
|
username: 'username',
|
|
99
99
|
email: 'email',
|
|
100
|
-
|
|
100
|
+
password_hash: 'password_hash',
|
|
101
101
|
is_active: 'is_active',
|
|
102
102
|
must_reset_password: 'must_reset_password',
|
|
103
103
|
created_at: 'created_at',
|
|
@@ -156,7 +156,8 @@ const config = {
|
|
|
156
156
|
"isCustomOutput": true
|
|
157
157
|
},
|
|
158
158
|
"relativeEnvPaths": {
|
|
159
|
-
"rootEnvPath": null
|
|
159
|
+
"rootEnvPath": null,
|
|
160
|
+
"schemaEnvPath": "../../.env"
|
|
160
161
|
},
|
|
161
162
|
"relativePath": "../../prisma",
|
|
162
163
|
"clientVersion": "6.16.3",
|
|
@@ -174,8 +175,8 @@ const config = {
|
|
|
174
175
|
}
|
|
175
176
|
}
|
|
176
177
|
},
|
|
177
|
-
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(uuid())\n username String @unique\n email String @unique\n
|
|
178
|
-
"inlineSchemaHash": "
|
|
178
|
+
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(uuid())\n username String @unique\n email String @unique\n password_hash String // Hashed password\n is_active Boolean\n must_reset_password Boolean\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n PasswordResetTokens PasswordResetToken[]\n}\n\nmodel PasswordResetToken {\n id String @id @default(uuid())\n user User @relation(fields: [user_id], references: [id])\n user_id String\n reset_token String // Hashed\n expires_at DateTime\n used Boolean\n}\n",
|
|
179
|
+
"inlineSchemaHash": "2a65c6976c9e459b7dacf63229c0ec52b834209155e1c96268afebb32d46b818",
|
|
179
180
|
"copyEngine": true
|
|
180
181
|
}
|
|
181
182
|
|
|
@@ -196,7 +197,7 @@ if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) {
|
|
|
196
197
|
config.isBundled = true
|
|
197
198
|
}
|
|
198
199
|
|
|
199
|
-
config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"username\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"
|
|
200
|
+
config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"username\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password_hash\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"is_active\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"must_reset_password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"PasswordResetTokens\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"PasswordResetToken\",\"nativeType\":null,\"relationName\":\"PasswordResetTokenToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"PasswordResetToken\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"PasswordResetTokenToUser\",\"relationFromFields\":[\"user_id\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"reset_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"used\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}")
|
|
200
201
|
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
201
202
|
config.engineWasm = undefined
|
|
202
203
|
config.compilerWasm = undefined
|
|
@@ -18,7 +18,7 @@ model User {
|
|
|
18
18
|
id String @id @default(uuid())
|
|
19
19
|
username String @unique
|
|
20
20
|
email String @unique
|
|
21
|
-
|
|
21
|
+
password_hash String // Hashed password
|
|
22
22
|
is_active Boolean
|
|
23
23
|
must_reset_password Boolean
|
|
24
24
|
created_at DateTime @default(now())
|
package/generated/prisma/wasm.js
CHANGED
|
@@ -96,7 +96,7 @@ exports.Prisma.UserScalarFieldEnum = {
|
|
|
96
96
|
id: 'id',
|
|
97
97
|
username: 'username',
|
|
98
98
|
email: 'email',
|
|
99
|
-
|
|
99
|
+
password_hash: 'password_hash',
|
|
100
100
|
is_active: 'is_active',
|
|
101
101
|
must_reset_password: 'must_reset_password',
|
|
102
102
|
created_at: 'created_at',
|
|
@@ -155,7 +155,8 @@ const config = {
|
|
|
155
155
|
"isCustomOutput": true
|
|
156
156
|
},
|
|
157
157
|
"relativeEnvPaths": {
|
|
158
|
-
"rootEnvPath": null
|
|
158
|
+
"rootEnvPath": null,
|
|
159
|
+
"schemaEnvPath": "../../.env"
|
|
159
160
|
},
|
|
160
161
|
"relativePath": "../../prisma",
|
|
161
162
|
"clientVersion": "6.16.3",
|
|
@@ -173,13 +174,13 @@ const config = {
|
|
|
173
174
|
}
|
|
174
175
|
}
|
|
175
176
|
},
|
|
176
|
-
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(uuid())\n username String @unique\n email String @unique\n
|
|
177
|
-
"inlineSchemaHash": "
|
|
177
|
+
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(uuid())\n username String @unique\n email String @unique\n password_hash String // Hashed password\n is_active Boolean\n must_reset_password Boolean\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n PasswordResetTokens PasswordResetToken[]\n}\n\nmodel PasswordResetToken {\n id String @id @default(uuid())\n user User @relation(fields: [user_id], references: [id])\n user_id String\n reset_token String // Hashed\n expires_at DateTime\n used Boolean\n}\n",
|
|
178
|
+
"inlineSchemaHash": "2a65c6976c9e459b7dacf63229c0ec52b834209155e1c96268afebb32d46b818",
|
|
178
179
|
"copyEngine": true
|
|
179
180
|
}
|
|
180
181
|
config.dirname = '/'
|
|
181
182
|
|
|
182
|
-
config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"
|
|
183
|
+
config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password_hash\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"is_active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"must_reset_password\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"created_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"PasswordResetTokens\",\"kind\":\"object\",\"type\":\"PasswordResetToken\",\"relationName\":\"PasswordResetTokenToUser\"}],\"dbName\":null},\"PasswordResetToken\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"PasswordResetTokenToUser\"},{\"name\":\"user_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"reset_token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"used\",\"kind\":\"scalar\",\"type\":\"Boolean\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}")
|
|
183
184
|
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
184
185
|
config.engineWasm = {
|
|
185
186
|
getRuntime: async () => require('./query_engine_bg.js'),
|
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `passwordHash` on the `User` table. All the data in the column will be lost.
|
|
5
|
+
- Added the required column `password_hash` to the `User` table without a default value. This is not possible if the table is not empty.
|
|
6
|
+
|
|
7
|
+
*/
|
|
8
|
+
-- AlterTable
|
|
9
|
+
ALTER TABLE "User" DROP COLUMN "passwordHash",
|
|
10
|
+
ADD COLUMN "password_hash" TEXT NOT NULL;
|
package/prisma/schema.prisma
CHANGED
|
@@ -18,7 +18,7 @@ model User {
|
|
|
18
18
|
id String @id @default(uuid())
|
|
19
19
|
username String @unique
|
|
20
20
|
email String @unique
|
|
21
|
-
|
|
21
|
+
password_hash String // Hashed password
|
|
22
22
|
is_active Boolean
|
|
23
23
|
must_reset_password Boolean
|
|
24
24
|
created_at DateTime @default(now())
|