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

View File

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

View File

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

View File

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