Raccoon-Influencer-Search/seeders/seed-games-channels.js
2024-02-25 16:55:59 +01:00

40 lines
874 B
JavaScript

"use strict";
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.bulkInsert(
"Games",
[
{
name: "Stardew Valley",
createdAt: new Date(),
updatedAt: new Date(),
channels: ["12345"],
},
],
{},
);
await queryInterface.bulkInsert(
"Channels",
[
{
name: "Super youtuber",
channelId: "12345",
createdAt: new Date(),
updatedAt: new Date(),
game: 1,
medianViews: 12,
minutesPlayed: 100,
videosCount: 5,
videosDates: ["2024-01-01"],
},
],
{},
);
},
down: async (queryInterface, Sequelize) => {
await queryInterface.bulkDelete("Games", null, {});
await queryInterface.bulkDelete("Channels", null, {});
},
};