mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Type models
This commit is contained in:
parent
65fcc3119c
commit
e02643f32e
76 changed files with 1710 additions and 816 deletions
21
server/models/user-video-rate-interface.ts
Normal file
21
server/models/user-video-rate-interface.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
import * as Sequelize from 'sequelize'
|
||||
|
||||
export namespace UserVideoRateMethods {
|
||||
export type Load = (userId, videoId, transaction, callback) => void
|
||||
}
|
||||
|
||||
export interface UserVideoRateClass {
|
||||
load: UserVideoRateMethods.Load
|
||||
}
|
||||
|
||||
export interface UserVideoRateAttributes {
|
||||
type: string
|
||||
}
|
||||
|
||||
export interface UserVideoRateInstance extends Sequelize.Instance<UserVideoRateAttributes> {
|
||||
id: number
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
}
|
||||
|
||||
export interface UserVideoRateModel extends UserVideoRateClass, Sequelize.Model<UserVideoRateInstance, UserVideoRateAttributes> {}
|
Loading…
Add table
Add a link
Reference in a new issue