Skip to content

Commit

Permalink
Merge branch 'yadhap/asr-domain-category-relation' of https://github.…
Browse files Browse the repository at this point in the history
…com/hpcc-systems/Tombolo into yadhap/asr-domain-category-relation
  • Loading branch information
ydahal1 committed Mar 19, 2024
2 parents 9b685c5 + 900a5cb commit 24b740d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 33 deletions.
73 changes: 41 additions & 32 deletions server/seeders/20200204185532-rules.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,47 @@
'use strict';
const { v4: uuidv4 } = require('uuid');
"use strict";
const { v4: uuidv4 } = require("uuid");

module.exports = {
up: (queryInterface, Sequelize) => {

return queryInterface.bulkInsert('rules', [{
id: uuidv4(),
name : 'Date Validate',
createdAt : new Date(),
updatedAt : new Date()
},{
id: uuidv4(),
name : 'Phone Validate',
createdAt : new Date(),
updatedAt : new Date()
},{
id: uuidv4(),
name : 'Integer Validate',
createdAt : new Date(),
updatedAt : new Date()
},{
id: uuidv4(),
name : 'Not Empty',
createdAt : new Date(),
updatedAt : new Date()
},{
id: uuidv4(),
name : 'Assert',
createdAt : new Date(),
updatedAt : new Date()
}], {});

return queryInterface.bulkInsert(
"rules",
[
{
id: uuidv4(),
name: "Date Validate",
createdAt: new Date(),
updatedAt: new Date(),
},
{
id: uuidv4(),
name: "Phone Validate",
createdAt: new Date(),
updatedAt: new Date(),
},
{
id: uuidv4(),
name: "Integer Validate",
createdAt: new Date(),
updatedAt: new Date(),
},
{
id: uuidv4(),
name: "Not Empty",
createdAt: new Date(),
updatedAt: new Date(),
},
{
id: uuidv4(),
name: "Assert",
createdAt: new Date(),
updatedAt: new Date(),
},
],
{}
);
},

down: (queryInterface, Sequelize) => {
}
down: async (queryInterface, Sequelize) => {
return queryInterface.bulkDelete("rules", null, {});
},
};
4 changes: 3 additions & 1 deletion server/seeders/20220818180347-constraints.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@ module.exports = {
);
},

down: (queryInterface, Sequelize) => {},
down: async (queryInterface, Sequelize) => {
return queryInterface.bulkDelete("constraint", null, {});
},
};

0 comments on commit 24b740d

Please sign in to comment.