57 lines
1.6 KiB
JavaScript
57 lines
1.6 KiB
JavaScript
|
|
db.createCollection("users")
|
|
db.createCollection("groups")
|
|
db.users.insert({
|
|
"_id" : "979888c6-656f-4af7-b7a4-97a02a3cc13d",
|
|
"namespace" : "parcoursmob",
|
|
"authentication" : {
|
|
"local" : {
|
|
"username" : "admin@parcoursmob.fr",
|
|
"password" : "$2a$10$XVq9C9az1O0w.kCzqcMZtOAMxur1ODRT5vF9/GmILyHc1Xjalzymu",
|
|
"email" : "",
|
|
"email_validation" : {
|
|
"validated" : false,
|
|
"validation_code" : ""
|
|
},
|
|
"phone_number" : "",
|
|
"phone_number_validation" : {
|
|
"validated" : false,
|
|
"validation_code" : ""
|
|
}
|
|
}
|
|
},
|
|
"data" : {
|
|
"first_name" : "Admin",
|
|
"last_name" : "Parcoursmob",
|
|
"phone_number" : "+33600000000",
|
|
"email" : "noreply@parcoursmob.fr",
|
|
"groups" : [
|
|
"483280d0-db2d-4f06-b361-02e4be5012d2",
|
|
"483280d0-db2d-4f06-b361-02e4be5012d2:admin",
|
|
],
|
|
"display_name" : "Admin Parcoursmob"
|
|
},
|
|
"metadata" : {
|
|
"created" : ISODate("2022-08-09T10:14:51.879+0000")
|
|
}
|
|
})
|
|
|
|
db.groups.insert({
|
|
"_id" : "483280d0-db2d-4f06-b361-02e4be5012d2",
|
|
"namespace" : "parcoursmob_organizations",
|
|
"members" : [],
|
|
"data" : {
|
|
"modules" : {
|
|
"groups_management" : true,
|
|
"vehicles_management" : true,
|
|
"directory" : true,
|
|
"administration" : true,
|
|
"agenda" : true,
|
|
"vehicles" : true,
|
|
"support" : true,
|
|
"beneficiaries" : true,
|
|
"journeys" : true
|
|
},
|
|
"name" : "COOPGO"
|
|
}
|
|
}) |