PeerTube/server/models/avatar/avatar.ts
2017-12-13 16:50:33 +01:00

18 lines
298 B
TypeScript

import { AllowNull, Column, CreatedAt, Model, Table, UpdatedAt } from 'sequelize-typescript'
@Table({
tableName: 'avatar'
})
export class AvatarModel extends Model<AvatarModel> {
@AllowNull(false)
@Column
filename: string
@CreatedAt
createdAt: Date
@UpdatedAt
updatedAt: Date
}