Fix createdAt/updatedAt issues
This commit is contained in:
parent
c28bcdd10a
commit
4f0f2ab228
2 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,8 @@ import { AccountModel } from '../account/account'
|
||||||
]
|
]
|
||||||
}))
|
}))
|
||||||
@Table({
|
@Table({
|
||||||
tableName: 'application'
|
tableName: 'application',
|
||||||
|
timestamps: false
|
||||||
})
|
})
|
||||||
export class ApplicationModel extends Model<ApplicationModel> {
|
export class ApplicationModel extends Model<ApplicationModel> {
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ import * as Sequelize from 'sequelize'
|
||||||
|
|
||||||
@Table({
|
@Table({
|
||||||
tableName: 'videoView',
|
tableName: 'videoView',
|
||||||
|
updatedAt: false,
|
||||||
indexes: [
|
indexes: [
|
||||||
{
|
{
|
||||||
fields: [ 'videoId' ]
|
fields: [ 'videoId' ]
|
||||||
|
|
Loading…
Reference in a new issue