diff options
Diffstat (limited to 'server/models/tag-interface.ts')
-rw-r--r-- | server/models/tag-interface.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/server/models/tag-interface.ts b/server/models/tag-interface.ts new file mode 100644 index 000000000..f96e1e9c5 --- /dev/null +++ b/server/models/tag-interface.ts | |||
@@ -0,0 +1,19 @@ | |||
1 | import * as Sequelize from 'sequelize' | ||
2 | |||
3 | export namespace TagMethods { | ||
4 | export type FindOrCreateTags = (tags, transaction, callback) => void | ||
5 | } | ||
6 | |||
7 | export interface TagClass { | ||
8 | findOrCreateTags: TagMethods.FindOrCreateTags | ||
9 | } | ||
10 | |||
11 | export interface TagAttributes { | ||
12 | name: string | ||
13 | } | ||
14 | |||
15 | export interface TagInstance extends TagClass, TagAttributes, Sequelize.Instance<TagAttributes> { | ||
16 | id: number | ||
17 | } | ||
18 | |||
19 | export interface TagModel extends TagClass, Sequelize.Model<TagInstance, TagAttributes> {} | ||