feat: starting appbar notifications

This commit is contained in:
canove
2020-08-24 17:16:26 -03:00
parent 3fe436fd34
commit ea4ff654ff
17 changed files with 1113 additions and 305 deletions

View File

@@ -0,0 +1,261 @@
"use strict";
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.bulkInsert(
"Tickets",
[
{
status: "pending",
lastMessage: "hello!",
contactId: 1,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 1,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 1,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 1,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 2,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 2,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 2,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 2,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 2,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 2,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 3,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 3,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 3,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 3,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 3,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 3,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 3,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 4,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 4,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 4,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 4,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 4,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 4,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 4,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 4,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 1,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 1,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 1,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 1,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 2,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 2,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 2,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 2,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 2,
createdAt: new Date(),
updatedAt: new Date(),
},
{
status: "pending",
lastMessage: "hello!",
contactId: 1,
createdAt: new Date(),
updatedAt: new Date(),
},
],
{}
);
},
down: (queryInterface, Sequelize) => {
return queryInterface.bulkDelete("Tickets", null, {});
},
};