diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-12 17:53:50 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-13 16:50:33 +0100 |
commit | 3fd3ab2d34d512b160a5e6084d7609be7b4f4452 (patch) | |
tree | e5ca358287fca6ecacce83defcf23af1e8e9f419 /server/models/video/video-share-interface.ts | |
parent | c893d4514e6ecbf282c7985fe5f82b8acd8a1137 (diff) | |
download | PeerTube-3fd3ab2d34d512b160a5e6084d7609be7b4f4452.tar.gz PeerTube-3fd3ab2d34d512b160a5e6084d7609be7b4f4452.tar.zst PeerTube-3fd3ab2d34d512b160a5e6084d7609be7b4f4452.zip |
Move models to typescript-sequelize
Diffstat (limited to 'server/models/video/video-share-interface.ts')
-rw-r--r-- | server/models/video/video-share-interface.ts | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/server/models/video/video-share-interface.ts b/server/models/video/video-share-interface.ts deleted file mode 100644 index 3946303f1..000000000 --- a/server/models/video/video-share-interface.ts +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | import * as Bluebird from 'bluebird' | ||
2 | import * as Sequelize from 'sequelize' | ||
3 | import { AccountInstance } from '../account/account-interface' | ||
4 | import { VideoInstance } from './video-interface' | ||
5 | |||
6 | export namespace VideoShareMethods { | ||
7 | export type LoadAccountsByShare = (videoId: number, t: Sequelize.Transaction) => Bluebird<AccountInstance[]> | ||
8 | export type Load = (accountId: number, videoId: number, t: Sequelize.Transaction) => Bluebird<VideoShareInstance> | ||
9 | } | ||
10 | |||
11 | export interface VideoShareClass { | ||
12 | loadAccountsByShare: VideoShareMethods.LoadAccountsByShare | ||
13 | load: VideoShareMethods.Load | ||
14 | } | ||
15 | |||
16 | export interface VideoShareAttributes { | ||
17 | accountId: number | ||
18 | videoId: number | ||
19 | } | ||
20 | |||
21 | export interface VideoShareInstance extends VideoShareClass, VideoShareAttributes, Sequelize.Instance<VideoShareAttributes> { | ||
22 | id: number | ||
23 | createdAt: Date | ||
24 | updatedAt: Date | ||
25 | |||
26 | Account?: AccountInstance | ||
27 | Video?: VideoInstance | ||
28 | } | ||
29 | |||
30 | export interface VideoShareModel extends VideoShareClass, Sequelize.Model<VideoShareInstance, VideoShareAttributes> {} | ||