Migrated all models to string ids
This commit is contained in:
parent
5e4c7e0168
commit
2f03ee334b
@ -4,7 +4,7 @@ import {DataTypes, InferAttributes, InferCreationAttributes, Model} from "sequel
|
||||
|
||||
export interface IMedia extends Model<InferAttributes<IMedia>, InferCreationAttributes<IMedia>> {
|
||||
assetId?: string
|
||||
clientId: number
|
||||
clientId: string
|
||||
assetName: string
|
||||
assetEnding: string
|
||||
assetDescription?: string
|
||||
|
@ -5,7 +5,7 @@ import {DataTypes, InferAttributes, InferCreationAttributes, Model} from "sequel
|
||||
export interface IShortenedLink extends Model<InferAttributes<IShortenedLink>, InferCreationAttributes<IShortenedLink>> {
|
||||
shortenedId?: string
|
||||
originalUrl: string
|
||||
clientId?: number
|
||||
clientId?: string
|
||||
clicks?: number
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@ export enum TokenType {
|
||||
|
||||
export interface IToken extends Model<InferAttributes<IToken>, InferCreationAttributes<IToken>> {
|
||||
token?: string
|
||||
clientId: number
|
||||
clientId: string
|
||||
type?: TokenType
|
||||
userAgent?: string
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ export enum Rank {
|
||||
}
|
||||
|
||||
export interface IUser extends Model<InferAttributes<IUser>, InferCreationAttributes<IUser>> {
|
||||
clientId: number
|
||||
clientId: string
|
||||
username: string
|
||||
locale?: string
|
||||
rank?: Rank
|
||||
|
Loading…
x
Reference in New Issue
Block a user