PeerTube/server/models/avatar/avatar.ts

18 lines
298 B
TypeScript
Raw Normal View History

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