mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-10-30 03:28:26 +03:00
18 lines
298 B
TypeScript
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
|
|
}
|