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