Migrated all models to string ids

This commit is contained in:
Mathias Wagner 2023-11-13 12:28:07 +01:00
parent 5e4c7e0168
commit 2f03ee334b
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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
}

View File

@ -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
}

View File

@ -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