-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathAdminAnalyticsUsageVersionLog.js
More file actions
40 lines (40 loc) · 1010 Bytes
/
Copy pathAdminAnalyticsUsageVersionLog.js
File metadata and controls
40 lines (40 loc) · 1010 Bytes
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
const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
return sequelize.define('AdminAnalyticsUsageVersionLog', {
id: {
autoIncrement: true,
type: DataTypes.INTEGER.UNSIGNED,
allowNull: false,
primaryKey: true,
comment: "Log ID"
},
last_viewed_in_version: {
type: DataTypes.STRING(50),
allowNull: false,
comment: "Viewer last viewed on product version",
unique: "ADMIN_ANALYTICS_USAGE_VERSION_LOG_LAST_VIEWED_IN_VERSION"
}
}, {
sequelize,
tableName: 'admin_analytics_usage_version_log',
timestamps: false,
indexes: [
{
name: "PRIMARY",
unique: true,
using: "BTREE",
fields: [
{ name: "id" },
]
},
{
name: "ADMIN_ANALYTICS_USAGE_VERSION_LOG_LAST_VIEWED_IN_VERSION",
unique: true,
using: "BTREE",
fields: [
{ name: "last_viewed_in_version" },
]
},
]
});
};