-
Notifications
You must be signed in to change notification settings - Fork 0
/
20221118100203-demoUsers.js
65 lines (63 loc) · 1.99 KB
/
20221118100203-demoUsers.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
'use strict';
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up (queryInterface, Sequelize) {
return queryInterface.bulkInsert('users', [{
id: 1,
email: "example1@example.com",
password: "$2b$10$3xeB7GV.66DkZaguZyOEL.p503SoTW2.vuIdZ6tX8WdJlRVNabome", //Password in plain is "sicura"
name: "David",
surname: "Brown",
dateOfBirth: "1998-08-25",
province: "Milano",
gender: "M",
token: "ceb8437df3dca8646ecdece10373e695eaf24f54",
lockerList: "6;22;",
createdAt: new Date(),
updatedAt: new Date()
}, {
id: 2,
email: "example2@example.com",
password: "$2b$10$PY8jZV6nWqovuYqhcHCrFOnO9Io7Tk40KCTZKGBpV2Ga.tA4qSqTa", //Password in plain is "sicura"
name: "Mark",
surname: "Brown",
dateOfBirth: "1999-02-10",
province: "Milano",
gender: "M",
token: "bcdece0d0650b29adeba7dde520bc0ede0a49b08",
lockerList: "24;30;",
createdAt: new Date(),
updatedAt: new Date()
}, {
id: 3,
email: "example3@example.com",
password: "$2b$10$1bZMWzPTuGss2UZTNt1oye2m4/76xqu.jZfV5O6OkiuOif.n/ixQO", //Password in plain is "sicura"
name: "Elizabeth",
surname: "Brown",
dateOfBirth: "2001-12-21",
province: "Torino",
gender: "F",
token: "d75bee755d79eea0ad8f0a76a688d9479253b2dd",
lockerList: "4;10;",
createdAt: new Date(),
updatedAt: new Date()
}, {
id: 4,
email: "example4@example.com",
password: "$2b$10$R70Jjr0cVtvbb6Tn7vAfPeOSCZcH7s.8yjIyxKASj2wvDHQGg.2L.", //Password in plain is "sicura"
name: "Andrew",
surname: "Brown",
dateOfBirth: "1990-01-12",
province: "Torino",
gender: "*",
token: "b17139c6a4ef4dd3c0965b6aa7160cb819eaf747",
lockerList: "2;4;",
createdAt: new Date(),
updatedAt: new Date()
}
])
},
async down (queryInterface, Sequelize) {
return queryInterface.bulkDelete('users', null, {});
}
};