1
0
Fork 0
peertube/server/models/avatar/avatar.ts
2017-12-13 16:50:33 +01:00

17 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
}