-
Notifications
You must be signed in to change notification settings - Fork 18
/
ms-transcription-task.js
31 lines (27 loc) · 1.11 KB
/
ms-transcription-task.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
const uuid = require('uuid/v4');
'use strict';
module.exports = (sequelize, DataTypes) => {
var MSTranscriptionTask = sequelize.define('MSTranscriptionTask', {
id: { type: DataTypes.UUID, primaryKey: true },
videoLocalLocation: DataTypes.TEXT,
audioLocalLocation: DataTypes.TEXT,
videoHashsum: DataTypes.TEXT,
audioHashsum: DataTypes.TEXT,
wavAudioLocalFile: DataTypes.TEXT,
wavHashsum: DataTypes.TEXT,
srtFileLocation: DataTypes.TEXT,
log: DataTypes.TEXT,
altVideoLocalLocation: DataTypes.TEXT,
altVideoHashsum: DataTypes.TEXT
});
MSTranscriptionTask.associate = function (models) {
models.MSTranscriptionTask.belongsTo(models.User, { foreignKey: 'taskCreatorUserId' });
};
return MSTranscriptionTask;
};
//******************************************************************
// var tempId = {termId: courses[0].termName,
// deptId: courses[0].deptName,
// }
// var offeringId = getOfferingId(tempId, courses[0].section);
//******************************************************************