PeerTube/server/models/avatar/avatar.ts

18 lines
298 B
TypeScript
Raw Normal View History

2017-12-12 19:53:50 +03:00
import { AllowNull, Column, CreatedAt, Model, Table, UpdatedAt } from 'sequelize-typescript'
2017-12-04 12:34:40 +03:00
2017-12-12 19:53:50 +03:00
@Table({
tableName: 'avatar'
})
export class AvatarModel extends Model<AvatarModel> {
2017-12-04 12:34:40 +03:00
2017-12-12 19:53:50 +03:00
@AllowNull(false)
@Column
filename: string
2017-12-04 12:34:40 +03:00
2017-12-12 19:53:50 +03:00
@CreatedAt
createdAt: Date
2017-12-04 12:34:40 +03:00
2017-12-12 19:53:50 +03:00
@UpdatedAt
updatedAt: Date
2017-12-04 12:34:40 +03:00
}