@@ -10,6 +10,7 @@ import cars_MyS_resource from './resources/cars_MyS.js';
1010import cars_PG_resource from './resources/cars_PG.js' ;
1111import cars_Mongo_resource from './resources/cars_mongo.js' ;
1212import cars_Ch_resource from './resources/cars_Ch.js' ;
13+
1314import auditLogsResource from "./resources/auditLogs.js"
1415import { FICTIONAL_CAR_BRANDS , FICTIONAL_CAR_MODELS_BY_BRAND , ENGINE_TYPES , BODY_TYPES } from './custom/cars_data.js' ;
1516import passkeysResource from './resources/passkeys.js' ;
@@ -199,7 +200,7 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
199200 for ( let i = 0 ; i < 100 ; i ++ ) {
200201 const engine_type = ENGINE_TYPES [ Math . floor ( Math . random ( ) * ENGINE_TYPES . length ) ] . value ;
201202 await admin . resource ( 'cars_sl' ) . create ( {
202- id : crypto . randomUUID ( ) ,
203+ id : ` ${ i } ` ,
203204 model : `${ FICTIONAL_CAR_BRANDS [ Math . floor ( Math . random ( ) * FICTIONAL_CAR_BRANDS . length ) ] } ${ FICTIONAL_CAR_MODELS_BY_BRAND [ FICTIONAL_CAR_BRANDS [ Math . floor ( Math . random ( ) * FICTIONAL_CAR_BRANDS . length ) ] ] [ Math . floor ( Math . random ( ) * 4 ) ] } ` ,
204205 price : Decimal ( Math . random ( ) * 10000 ) . toFixed ( 2 ) ,
205206 engine_type : engine_type ,
@@ -215,7 +216,7 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
215216 for ( let i = 0 ; i < 100 ; i ++ ) {
216217 const engine_type = ENGINE_TYPES [ Math . floor ( Math . random ( ) * ENGINE_TYPES . length ) ] . value ;
217218 await admin . resource ( 'cars_mongo' ) . create ( {
218- _id : crypto . randomUUID ( ) ,
219+ _id : ` ${ i } ` ,
219220 model : `${ FICTIONAL_CAR_BRANDS [ Math . floor ( Math . random ( ) * FICTIONAL_CAR_BRANDS . length ) ] } ${ FICTIONAL_CAR_MODELS_BY_BRAND [ FICTIONAL_CAR_BRANDS [ Math . floor ( Math . random ( ) * FICTIONAL_CAR_BRANDS . length ) ] ] [ Math . floor ( Math . random ( ) * 4 ) ] } ` ,
220221 price : Decimal ( Math . random ( ) * 10000 ) . toFixed ( 2 ) ,
221222 engine_type : engine_type ,
@@ -232,7 +233,7 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
232233 for ( let i = 0 ; i < 100 ; i ++ ) {
233234 const engine_type = ENGINE_TYPES [ Math . floor ( Math . random ( ) * ENGINE_TYPES . length ) ] . value ;
234235 await admin . resource ( 'cars_mysql' ) . create ( {
235- id : crypto . randomUUID ( ) ,
236+ id : ` ${ i } ` ,
236237 model : `${ FICTIONAL_CAR_BRANDS [ Math . floor ( Math . random ( ) * FICTIONAL_CAR_BRANDS . length ) ] } ${ FICTIONAL_CAR_MODELS_BY_BRAND [ FICTIONAL_CAR_BRANDS [ Math . floor ( Math . random ( ) * FICTIONAL_CAR_BRANDS . length ) ] ] [ Math . floor ( Math . random ( ) * 4 ) ] } ` ,
237238 price : Decimal ( Math . random ( ) * 10000 ) . toFixed ( 2 ) ,
238239 engine_type : engine_type ,
@@ -249,7 +250,7 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
249250 for ( let i = 0 ; i < 100 ; i ++ ) {
250251 const engine_type = ENGINE_TYPES [ Math . floor ( Math . random ( ) * ENGINE_TYPES . length ) ] . value ;
251252 await admin . resource ( 'cars_pg' ) . create ( {
252- id : crypto . randomUUID ( ) ,
253+ id : ` ${ i } ` ,
253254 model : `${ FICTIONAL_CAR_BRANDS [ Math . floor ( Math . random ( ) * FICTIONAL_CAR_BRANDS . length ) ] } ${ FICTIONAL_CAR_MODELS_BY_BRAND [ FICTIONAL_CAR_BRANDS [ Math . floor ( Math . random ( ) * FICTIONAL_CAR_BRANDS . length ) ] ] [ Math . floor ( Math . random ( ) * 4 ) ] } ` ,
254255 price : Decimal ( Math . random ( ) * 10000 ) . toFixed ( 2 ) ,
255256 engine_type : engine_type ,
@@ -266,7 +267,7 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
266267 for ( let i = 0 ; i < 100 ; i ++ ) {
267268 const engine_type = ENGINE_TYPES [ Math . floor ( Math . random ( ) * ENGINE_TYPES . length ) ] . value ;
268269 await admin . resource ( 'cars_ch' ) . create ( {
269- id : crypto . randomUUID ( ) ,
270+ id : ` ${ i } ` ,
270271 model : `${ FICTIONAL_CAR_BRANDS [ Math . floor ( Math . random ( ) * FICTIONAL_CAR_BRANDS . length ) ] } ${ FICTIONAL_CAR_MODELS_BY_BRAND [ FICTIONAL_CAR_BRANDS [ Math . floor ( Math . random ( ) * FICTIONAL_CAR_BRANDS . length ) ] ] [ Math . floor ( Math . random ( ) * 4 ) ] } ` ,
271272 price : Decimal ( Math . random ( ) * 10000 ) . toFixed ( 2 ) ,
272273 engine_type : engine_type ,
0 commit comments