-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.js
285 lines (283 loc) · 10.5 KB
/
init.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
// Generated by CoffeeScript 1.9.3
(function() {
module.exports = function(db) {
var Contest, ContestProblemList, Group, Issue, IssueReply, Judge, Membership, Message, Problem, Submission, SubmissionCode, User, testContest, testGroup, testProblem, testUser;
Contest = db.models.contest;
ContestProblemList = db.models.contest_problem_list;
Group = db.models.group;
Judge = db.models.judge;
Membership = db.models.membership;
Problem = db.models.problem;
Submission = db.models.submission;
SubmissionCode = db.models.submission_code;
User = db.models.user;
Message = db.models.message;
Issue = db.models.issue;
IssueReply = db.models.issue_reply;
testUser = void 0;
testGroup = void 0;
testContest = void 0;
testProblem = void 0;
return db.Promise.resolve().then(function() {
var P, i, len, user, users;
users = [
{
school: "北京理工大学-计算机学院",
nickname: "迟泽闻",
username: "friend_1",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-1"
}, {
school: "北京理工大学-软件学院",
nickname: "姜天洋",
username: "friend_3",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-3"
}, {
school: "北京邮电大学",
nickname: "李世昊",
username: "friend_5",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-5"
}, {
school: "北京林业大学",
nickname: "于浩源",
username: "friend_7",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-7"
}, {
school: "北京理工大学-软件学院",
nickname: "蔡晓帆",
username: "friend_9",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-9"
}, {
school: "北京理工大学-软件学院",
nickname: "黄少勤",
username: "friend_11",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-11"
}, {
school: "北京邮电大学",
nickname: "杨炫越",
username: "friend_13",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-13"
}, {
school: "中国地质大学",
nickname: "曲文天",
username: "friend_15",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-15"
}, {
school: "中国地质大学",
nickname: "朱质宁",
username: "friend_17",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-17"
}, {
school: "北京理工大学-计算机学院",
nickname: "黄轩成",
username: "friend_19",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-19"
}, {
school: "中国地质大学",
nickname: "邹卓君",
username: "friend_21",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-21"
}, {
school: "中国地质大学",
nickname: "高翔",
username: "friend_23",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-23"
}, {
school: "中国地质大学",
nickname: "申则宇",
username: "friend_25",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-25"
}, {
school: "北京理工大学-计算机学院",
nickname: "张大猷",
username: "friend_27",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-27"
}, {
school: "北京科技大学",
nickname: "陈笑天",
username: "friend_29",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-29"
}, {
school: "北京林业大学",
nickname: "易彰彪",
username: "friend_31",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-31"
}, {
school: "中国地质大学",
nickname: "赵嘉诚",
username: "friend_33",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-33"
}, {
school: "中国地质大学",
nickname: "张文慧",
username: "friend_35",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-35"
}, {
school: "北京理工大学-软件学院",
nickname: "罗艺康",
username: "friend_37",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-37"
}, {
school: "中国地质大学",
nickname: "焦帅玉",
username: "friend_39",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-39"
}, {
school: "北京师范大学",
nickname: "孙文琦",
username: "friend_41",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-41"
}, {
school: "北京邮电大学",
nickname: "杨清平",
username: "friend_43",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-43"
}, {
school: "北京邮电大学",
nickname: "刘润涛",
username: "friend_45",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-45"
}, {
school: "北京交通大学",
nickname: "张彦潇",
username: "friend_47",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-47"
}, {
school: "中国地质大学",
nickname: "门一凡",
username: "friend_49",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-49"
}, {
school: "北京林业大学",
nickname: "熊瑞麒",
username: "friend_51",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-51"
}, {
school: "北京邮电大学",
nickname: "任琪宇",
username: "friend_53",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-53"
}, {
school: "北京师范大学",
nickname: "曾耀辉",
username: "friend_55",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-55"
}, {
school: "北京邮电大学",
nickname: "张晓宇",
username: "friend_57",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-57"
}, {
school: "北京林业大学",
nickname: "贾梓健",
username: "friend_59",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-59"
}, {
school: "北京邮电大学",
nickname: "郝绍明",
username: "friend_61",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-61"
}, {
school: "北京林业大学",
nickname: "胡轶群",
username: "friend_63",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-63"
}, {
school: "北京林业大学",
nickname: "刘超懿",
username: "friend_65",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-65"
}, {
school: "北京理工大学-软件学院",
nickname: "颜苏卿",
username: "friend_67",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-67"
}, {
school: "北京理工大学-软件学院",
nickname: "段然杰",
username: "friend_69",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-69"
}, {
school: "北京理工大学-计算机学院",
nickname: "张世强",
username: "friend_71",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-71"
}, {
school: "北京邮电大学",
nickname: "崔颢",
username: "friend_73",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-73"
}, {
school: "北京邮电大学",
nickname: "李松远",
username: "friend_75",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-75"
}, {
school: "北京师范大学",
nickname: "卜凡",
username: "friend_77",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-77"
}, {
school: "北京邮电大学",
nickname: "刘玉栋",
username: "friend_79",
password: "sha1$fe745f41$1$1179f8a080a75bd243764e66fc4832d2a2db55d0",
description: "504-79"
}
];
P = [];
for (i = 0, len = users.length; i < len; i++) {
user = users[i];
P.push(User.create({
username: user.username,
password: user.password,
nickname: user.nickname,
description: user.description,
school: user.school
}));
}
return db.Promise.all(P);
}).then(function() {
return console.log("Success");
});
};
}).call(this);
//# sourceMappingURL=init.js.map