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>> {
|
export interface IMedia extends Model<InferAttributes<IMedia>, InferCreationAttributes<IMedia>> {
|
||||||
assetId?: string
|
assetId?: string
|
||||||
clientId: number
|
clientId: string
|
||||||
assetName: string
|
assetName: string
|
||||||
assetEnding: string
|
assetEnding: string
|
||||||
assetDescription?: string
|
assetDescription?: string
|
||||||
|
@ -5,7 +5,7 @@ import {DataTypes, InferAttributes, InferCreationAttributes, Model} from "sequel
|
|||||||
export interface IShortenedLink extends Model<InferAttributes<IShortenedLink>, InferCreationAttributes<IShortenedLink>> {
|
export interface IShortenedLink extends Model<InferAttributes<IShortenedLink>, InferCreationAttributes<IShortenedLink>> {
|
||||||
shortenedId?: string
|
shortenedId?: string
|
||||||
originalUrl: string
|
originalUrl: string
|
||||||
clientId?: number
|
clientId?: string
|
||||||
clicks?: number
|
clicks?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ export enum TokenType {
|
|||||||
|
|
||||||
export interface IToken extends Model<InferAttributes<IToken>, InferCreationAttributes<IToken>> {
|
export interface IToken extends Model<InferAttributes<IToken>, InferCreationAttributes<IToken>> {
|
||||||
token?: string
|
token?: string
|
||||||
clientId: number
|
clientId: string
|
||||||
type?: TokenType
|
type?: TokenType
|
||||||
userAgent?: string
|
userAgent?: string
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ export enum Rank {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface IUser extends Model<InferAttributes<IUser>, InferCreationAttributes<IUser>> {
|
export interface IUser extends Model<InferAttributes<IUser>, InferCreationAttributes<IUser>> {
|
||||||
clientId: number
|
clientId: string
|
||||||
username: string
|
username: string
|
||||||
locale?: string
|
locale?: string
|
||||||
rank?: Rank
|
rank?: Rank
|
||||||
|
Loading…
x
Reference in New Issue
Block a user