From bf02c4c10d40462cd550bc3c2a052b951a19f055 Mon Sep 17 00:00:00 2001 From: ewandor Date: Mon, 21 Apr 2025 15:38:09 +0200 Subject: [PATCH] Adding entity fixtures --- api/fixtures/entities.js | 355 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 355 insertions(+) create mode 100644 api/fixtures/entities.js diff --git a/api/fixtures/entities.js b/api/fixtures/entities.js new file mode 100644 index 0000000..932eb83 --- /dev/null +++ b/api/fixtures/entities.js @@ -0,0 +1,355 @@ +db.Entity.insertMany([ + { + "_id": ObjectId("640e297191d0c1b8d9caa30c"), + "address": "Barbareno Road - Chumash, SA", + "created_at": "2023-03-12T18:46:23.366Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Nathaniel", + "middlename": "", + "lastname": "Toshi", + "surnames": [], + "day_of_birth": "1992-08-11T00:00:00.000Z", + "place_of_birth": "Port Angeles, WA" + }, + "label": "Nathaniel Toshi", + "updated_at": "2023-03-12T19:35:13.750Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("640e5b7391d0c1b8d9caa311"), + "address": "", + "created_at": "2023-03-12T18:46:23.366Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Nina", + "middlename": "", + "lastname": "Domingo", + "surnames": [], + "day_of_birth": null, + "place_of_birth": "" + }, + "label": "Nina Cooper", + "updated_at": "2023-03-12T23:08:35.082Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("640e5bb991d0c1b8d9caa312"), + "address": "", + "created_at": "2023-03-12T18:46:23.366Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Derek", + "middlename": "", + "lastname": "Hillman", + "surnames": [], + "day_of_birth": null, + "place_of_birth": "" + }, + "label": "Derek Hillman", + "updated_at": "2023-03-12T23:09:45.939Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("64105c7642f24b3cb93244cc"), + "address": "", + "created_at": "2023-03-13T18:03:45.999Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Andrew", + "middlename": "", + "lastname": "Moore", + "surnames": [], + "day_of_birth": "2002-03-12T00:00:00.000Z", + "place_of_birth": "" + }, + "label": "Johnny Blackhand", + "updated_at": "2023-03-14T11:37:26.398Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("64105ce142f24b3cb93244ce"), + "address": "El Rancho Boulevard - Los Santos, SA", + "created_at": "2023-03-13T18:03:45.999Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "corporation", + "title": "East Custom", + "activity": "réparation de véhicule", + "employees": [ + { + "position": "Dirigeant", + "entity_id": ObjectId("64105c7642f24b3cb93244cc") + } + ] + }, + "label": "Benny's", + "updated_at": "2023-03-14T11:39:13.143Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("6410721842f24b3cb93244da"), + "address": "", + "created_at": "2023-03-13T18:03:45.999Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Gary", + "middlename": "", + "lastname": "Terry", + "surnames": [], + "day_of_birth": null, + "place_of_birth": "" + }, + "label": "Gary Terry", + "updated_at": "2023-03-14T13:09:44.325Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("6410724342f24b3cb93244dc"), + "address": "", + "created_at": "2023-03-13T18:03:45.999Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Wayne", + "middlename": "", + "lastname": "Terry", + "surnames": [], + "day_of_birth": null, + "place_of_birth": "" + }, + "label": "Wayne Terry", + "updated_at": "2023-03-14T13:10:27.808Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("6410e1b1c64aae93833c8f67"), + "address": "South Boulevard Del Perro - Los Santos, SA", + "created_at": "2023-03-14T14:07:16.735Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "corporation", + "title": "ROCKFORD", + "activity": "production et diffusion musicale", + "employees": [] + }, + "label": "RockFord", + "updated_at": "2023-03-14T21:05:53.499Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("6410e21dc64aae93833c8f68"), + "address": "Murrieta Street - Los Santos, SA", + "created_at": "2023-03-14T14:07:16.735Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Lay", + "middlename": "", + "lastname": "Parks", + "surnames": [], + "day_of_birth": "2003-07-26T00:00:00.000Z", + "place_of_birth": "Philadelphie, PN" + }, + "label": "Lay Parks", + "updated_at": "2023-03-14T21:07:41.072Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("6410e2aec64aae93833c8f69"), + "address": "", + "created_at": "2023-03-14T14:07:16.735Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Franklin", + "middlename": "", + "lastname": "Woods", + "surnames": [], + "day_of_birth": null, + "place_of_birth": "" + }, + "label": "Franklin Woods", + "updated_at": "2023-03-14T21:10:06.643Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("64132ba1dfeec019e7312277"), + "address": "", + "created_at": "2023-03-16T14:41:43.613Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Richard", + "middlename": "", + "lastname": "Malfaisant", + "surnames": ["Mauvaisefoi", "Ricard Malaisant", "Faisantmal"], + "day_of_birth": null, + "place_of_birth": "" + }, + "label": "Richard \"Mauvaisefoi\" Malfaisant", + "updated_at": "2023-03-16T14:45:53.483Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("6413493fdfeec019e731227e"), + "address": "Eclipse Tower", + "created_at": "2023-03-16T14:41:43.613Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "corporation", + "title": "LSHD", + "activity": "Hopital", + "employees": [] + }, + "label": "LSHD", + "updated_at": "2023-03-16T16:52:15.119Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("64134981dfeec019e731227f"), + "address": "Avenue San Andreas", + "created_at": "2023-03-16T14:41:43.613Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "corporation", + "title": "BurgerShot", + "activity": "Restaurant", + "employees": [] + }, + "label": "BurgerShot", + "updated_at": "2023-03-16T16:53:21.827Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("641349bddfeec019e7312280"), + "address": "", + "created_at": "2023-03-16T14:41:43.613Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Angelo", + "middlename": "", + "lastname": "Martinez", + "surnames": [], + "day_of_birth": null, + "place_of_birth": "" + }, + "label": "Angelo Martinez", + "updated_at": "2023-03-16T16:54:21.552Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("64134a22dfeec019e7312281"), + "address": "", + "created_at": "2023-03-16T14:41:43.613Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Naytia", + "middlename": "", + "lastname": "Galloway", + "surnames": ["Nana"], + "day_of_birth": null, + "place_of_birth": "" + }, + "label": "Naytia \"Nana\" Galloway", + "updated_at": "2023-03-16T16:56:02.133Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("641390fbdfeec019e7312286"), + "address": "", + "created_at": "2023-03-16T14:41:43.613Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Ezrah", + "middlename": "", + "lastname": "KREIGHTON", + "surnames": [], + "day_of_birth": null, + "place_of_birth": "" + }, + "label": "Ezrah KREIGHTON", + "updated_at": "2023-03-16T21:58:19.571Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("6414920ddfeec019e7312288"), + "address": "", + "created_at": "2023-03-16T14:41:43.613Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Kono", + "middlename": "", + "lastname": "Taylor", + "surnames": [], + "day_of_birth": null, + "place_of_birth": "" + }, + "label": "Kono Taylor", + "updated_at": "2023-03-17T16:15:09.367Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("6414b4e1dfeec019e731228b"), + "address": "", + "created_at": "2023-03-16T14:41:43.613Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Travis", + "middlename": "", + "lastname": "Ndiaye", + "surnames": [], + "day_of_birth": null, + "place_of_birth": "" + }, + "label": "Travis Ndiaye", + "updated_at": "2023-03-17T18:43:45.434Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("6414bcd2dfeec019e731228e"), + "address": "Grove Street - Los Santos, SA", + "created_at": "2023-03-16T14:41:43.613Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Junior", + "middlename": "", + "lastname": "Myles", + "surnames": ["Juicy"], + "day_of_birth": "1998-09-16T00:00:00.000Z", + "place_of_birth": "Los Santos, SA" + }, + "label": "Junior \"Juicy\" Miles", + "updated_at": "2023-03-17T19:17:38.654Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + }, + { + "_id": ObjectId("64175041e0e97628a53dc362"), + "address": "", + "created_at": "2023-03-19T13:00:28.665Z", + "created_by": ObjectId("67f248427ad1b215ae859319"), + "entity_data": { + "type": "individual", + "firstname": "Cranston", + "middlename": "", + "lastname": "Bennett", + "surnames": [], + "day_of_birth": "1999-02-14T00:00:00.000Z", + "place_of_birth": "" + }, + "label": "Cranston Bennett", + "updated_at": "2023-03-19T18:11:13.712Z", + "updated_by": ObjectId("67f248427ad1b215ae859319") + } +])