import { AttributesOnly } from '@shared/typescript-utils' import { Model } from 'sequelize' // Thanks to sequelize-typescript: https://github.com/RobinBuschmann/sequelize-typescript export type Diff = ({ [P in T]: P } & { [P in U]: never } & { [ x: string ]: never })[T] export type Omit = { [P in Diff]: T[P] } export type RecursivePartial = { [P in keyof T]?: RecursivePartial } export type FilteredModelAttributes> = Partial> & { id?: number | any createdAt?: Date | any updatedAt?: Date | any deletedAt?: Date | any version?: number | any }