aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/models/job-interface.ts
blob: ad4e2d2b0e4a8e3abf18fc5e2e71ecead99c867a (plain) (tree)






















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