mirror of
https://github.com/cheveguerra/Whaticket.git
synced 2026-04-18 03:29:14 +00:00
24 lines
490 B
TypeScript
24 lines
490 B
TypeScript
import { QueryInterface } from "sequelize";
|
|
import { v4 as uuidv4 } from "uuid";
|
|
|
|
module.exports = {
|
|
up: (queryInterface: QueryInterface) => {
|
|
return queryInterface.bulkInsert(
|
|
"Settings",
|
|
[
|
|
{
|
|
key: "userApiToken",
|
|
value: uuidv4(),
|
|
createdAt: new Date(),
|
|
updatedAt: new Date()
|
|
}
|
|
],
|
|
{}
|
|
);
|
|
},
|
|
|
|
down: (queryInterface: QueryInterface) => {
|
|
return queryInterface.bulkDelete("Settings", {});
|
|
}
|
|
};
|