]>
Commit | Line | Data |
---|---|---|
e02643f3 | 1 | import * as Sequelize from 'sequelize' |
6fcd19ba | 2 | import * as Promise from 'bluebird' |
e02643f3 C |
3 | |
4 | export namespace TagMethods { | |
6fcd19ba | 5 | export type FindOrCreateTags = (tags: string[], transaction: Sequelize.Transaction) => Promise<TagInstance[]> |
e02643f3 C |
6 | } |
7 | ||
8 | export interface TagClass { | |
9 | findOrCreateTags: TagMethods.FindOrCreateTags | |
10 | } | |
11 | ||
12 | export interface TagAttributes { | |
13 | name: string | |
14 | } | |
15 | ||
16 | export interface TagInstance extends TagClass, TagAttributes, Sequelize.Instance<TagAttributes> { | |
17 | id: number | |
18 | } | |
19 | ||
20 | export interface TagModel extends TagClass, Sequelize.Model<TagInstance, TagAttributes> {} |