set up sqlite

This commit is contained in:
Takeshi Kimata
2024-02-04 18:38:48 +09:00
parent cdaa99b89a
commit 45f64df1f9
12 changed files with 4227 additions and 112 deletions

30
backend/seeders/seed.js Normal file
View File

@@ -0,0 +1,30 @@
'use strict';
module.exports = {
up: async (queryInterface, Sequelize) => {
return queryInterface.bulkInsert('Projects', [
{
name: 'Project 1',
detail: 'Details of Project 1',
createdAt: new Date(),
updatedAt: new Date(),
},
{
name: 'Project 2',
detail: 'Details of Project 2',
createdAt: new Date(),
updatedAt: new Date(),
},
{
name: 'Project 3',
detail: 'Details of Project 3',
createdAt: new Date(),
updatedAt: new Date(),
},
]);
},
down: async (queryInterface, Sequelize) => {
// do nothing
},
};