diff options
Diffstat (limited to 'server/models/user-video-rate-interface.ts')
-rw-r--r-- | server/models/user-video-rate-interface.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/server/models/user-video-rate-interface.ts b/server/models/user-video-rate-interface.ts new file mode 100644 index 000000000..57d2e2b91 --- /dev/null +++ b/server/models/user-video-rate-interface.ts | |||
@@ -0,0 +1,21 @@ | |||
1 | import * as Sequelize from 'sequelize' | ||
2 | |||
3 | export namespace UserVideoRateMethods { | ||
4 | export type Load = (userId, videoId, transaction, callback) => void | ||
5 | } | ||
6 | |||
7 | export interface UserVideoRateClass { | ||
8 | load: UserVideoRateMethods.Load | ||
9 | } | ||
10 | |||
11 | export interface UserVideoRateAttributes { | ||
12 | type: string | ||
13 | } | ||
14 | |||
15 | export interface UserVideoRateInstance extends Sequelize.Instance<UserVideoRateAttributes> { | ||
16 | id: number | ||
17 | createdAt: Date | ||
18 | updatedAt: Date | ||
19 | } | ||
20 | |||
21 | export interface UserVideoRateModel extends UserVideoRateClass, Sequelize.Model<UserVideoRateInstance, UserVideoRateAttributes> {} | ||