mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
23 lines
551 B
TypeScript
23 lines
551 B
TypeScript
import * as Sequelize from 'sequelize'
|
|
|
|
export namespace JobMethods {
|
|
export type ListWithLimit = (limit, state, callback) => void
|
|
}
|
|
|
|
export interface JobClass {
|
|
listWithLimit: JobMethods.ListWithLimit
|
|
}
|
|
|
|
export interface JobAttributes {
|
|
state: string
|
|
handlerName: string
|
|
handlerInputData: object
|
|
}
|
|
|
|
export interface JobInstance extends JobClass, JobAttributes, Sequelize.Instance<JobAttributes> {
|
|
id: number
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}
|
|
|
|
export interface JobModel extends JobClass, Sequelize.Model<JobInstance, JobAttributes> {}
|