diff options
Diffstat (limited to 'server/models/author-interface.ts')
-rw-r--r-- | server/models/author-interface.ts | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/server/models/author-interface.ts b/server/models/author-interface.ts deleted file mode 100644 index b57ce2a6b..000000000 --- a/server/models/author-interface.ts +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | import * as Sequelize from 'sequelize' | ||
2 | |||
3 | import { PodInstance } from './pod-interface' | ||
4 | |||
5 | export namespace AuthorMethods { | ||
6 | export type FindOrCreateAuthorCallback = (err: Error, authorInstance?: AuthorInstance) => void | ||
7 | export type FindOrCreateAuthor = (name: string, podId: number, userId: number, transaction: Sequelize.Transaction, callback: FindOrCreateAuthorCallback) => void | ||
8 | } | ||
9 | |||
10 | export interface AuthorClass { | ||
11 | findOrCreateAuthor: AuthorMethods.FindOrCreateAuthor | ||
12 | } | ||
13 | |||
14 | export interface AuthorAttributes { | ||
15 | name: string | ||
16 | } | ||
17 | |||
18 | export interface AuthorInstance extends AuthorClass, AuthorAttributes, Sequelize.Instance<AuthorAttributes> { | ||
19 | id: number | ||
20 | createdAt: Date | ||
21 | updatedAt: Date | ||
22 | |||
23 | podId: number | ||
24 | Pod: PodInstance | ||
25 | } | ||
26 | |||
27 | export interface AuthorModel extends AuthorClass, Sequelize.Model<AuthorInstance, AuthorAttributes> {} | ||