funky-framadate-front/mocks/db.json

166 lines
3.6 KiB
JSON
Raw Permalink Normal View History

2020-05-12 19:16:23 +02:00
{
"owners": [
2020-06-25 22:42:26 +02:00
{ "id": 1, "email": "titi@gafam.com", "pseudo": "TITI", "role": "REGISTERED" },
{ "id": 2, "email": "toto@gafam.com", "pseudo": "TOTO", "role": "REGISTERED" }
2020-05-12 19:16:23 +02:00
],
"polls": [
{
"id": 1,
"custom_url": "picnic",
2020-05-12 19:16:23 +02:00
"configuration": {
2020-06-12 19:17:39 +02:00
"id": 1,
2020-05-12 19:16:23 +02:00
"isAboutDate": true,
"isProtectedByPassword": false,
"isOwnerNotifiedByEmailOnNewVote": false,
"isOwnerNotifiedByEmailOnNewComment": false,
"isMaybeAnswerAvailable": true,
"areResultsPublic": true,
"dateCreated": "2020-05-17",
"expires": "2020-12-31"
2020-05-12 19:16:23 +02:00
},
"ownerId": 1,
2020-10-29 18:43:19 +01:00
"title": "Quelle date pour le picnic ?",
2020-06-12 19:17:39 +02:00
"description": "Gros badass picnic en plein air ! Come on !"
2020-05-12 19:16:23 +02:00
},
{
"id": 2,
"custom_url": "vacances",
2020-05-12 19:16:23 +02:00
"configuration": {
2020-06-12 19:17:39 +02:00
"id": 2,
2020-05-12 19:16:23 +02:00
"isAboutDate": true,
"isProtectedByPassword": false,
"isOwnerNotifiedByEmailOnNewVote": false,
"isOwnerNotifiedByEmailOnNewComment": false,
"isMaybeAnswerAvailable": true,
"areResultsPublic": true,
"dateCreated": "2020-05-17",
"expires": "2020-11-30"
2020-05-12 19:16:23 +02:00
},
"ownerId": 2,
2020-10-29 18:43:19 +01:00
"title": "On fait quoi pendant les vacances ?",
2020-06-12 19:17:39 +02:00
"description": "Vacances en famille"
2020-05-12 19:16:23 +02:00
}
],
"choices": [
{
"id": 1,
"pollId": 1,
"pollSlug": "picnic",
"label": "samedi",
"participants": [
2020-06-12 19:17:39 +02:00
[
"YES",
[
{ "pseudo": "TOTO", "token": "TOTO-TOKEN" },
{ "pseudo": "TITI", "token": "TITI-TOKEN" }
]
],
["NO", []],
["MAYBE", [{ "pseudo": "TATA", "token": "TATA-TOKEN" }]]
2020-05-12 19:16:23 +02:00
]
},
{
"id": 2,
"pollId": 1,
"pollSlug": "picnic",
"label": "dimanche",
"participants": [
2020-06-12 19:17:39 +02:00
[
"YES",
[
{ "pseudo": "TATA", "token": "TATA-TOKEN" },
{ "pseudo": "TETE", "token": "TETE-TOKEN" }
]
],
["NO", [{ "pseudo": "TOTO", "token": "TOTO-TOKEN" }]],
["MAYBE", [{ "pseudo": "TITI", "token": "TITI-TOKEN" }]]
2020-05-12 19:16:23 +02:00
]
},
{
"id": 3,
"pollId": 2,
"pollSlug": "vacances",
"label": "bateau",
"participants": [
2020-06-12 19:17:39 +02:00
[
"YES",
[
{ "pseudo": "TOTO", "token": "TOTO-TOKEN" },
{ "pseudo": "TITI", "token": "TITI-TOKEN" }
]
],
["NO", [{ "pseudo": "TETE", "token": "TETE-TOKEN" }]],
["MAYBE", [{ "pseudo": "TATA", "token": "TATA-TOKEN" }]]
2020-05-12 19:16:23 +02:00
]
},
{
"id": 4,
"pollId": 2,
"pollSlug": "vacances",
"label": "montagne",
"participants": [
2020-06-12 19:17:39 +02:00
[
"YES",
[
{ "pseudo": "TOTO", "token": "TOTO-TOKEN" },
{ "pseudo": "TITI", "token": "TITI-TOKEN" }
]
],
["NO", [{ "pseudo": "TETE", "token": "TETE-TOKEN" }]],
["MAYBE", [{ "pseudo": "TATA", "token": "TATA-TOKEN" }]]
2020-05-12 19:16:23 +02:00
]
},
{
"id": 5,
"pollId": 2,
"pollSlug": "vacances",
"label": "quad",
"participants": [
2020-06-12 19:17:39 +02:00
[
"YES",
[
{ "pseudo": "TOTO", "token": "TOTO-TOKEN" },
{ "pseudo": "TITI", "token": "TITI-TOKEN" }
]
],
["NO", [{ "pseudo": "TETE", "token": "TETE-TOKEN" }]],
["MAYBE", [{ "pseudo": "TATA", "token": "TATA-TOKEN" }]]
2020-05-12 19:16:23 +02:00
]
}
],
"comments": [
{
"id": 1,
"pollId": 1,
"pollSlug": "picnic",
"content": "Les picnics, cest trop bien, jadore!",
"author": "TATA",
"dateCreated": 1589111111111
},
{
"id": 2,
"pollId": 1,
"pollSlug": "picnic",
"content": "Oué, grave!",
"author": "TETE",
"dateCreated": 1589222222222
},
{
"id": 3,
"pollId": 2,
"pollSlug": "vacances",
"content": "Désolé je pourrai pas être là, mais je penserai bien à vous. Mamie",
"author": "MAMIE",
"dateCreated": 1589333333333
},
{
"id": 4,
"pollId": 2,
"pollSlug": "vacances",
"content": "Arf, trop dommage.",
"author": "Tom",
"dateCreated": 1589444444444
}
]
}