diff --git a/prisma/schema.prisma b/prisma/schema.prisma index a048230..d48a24d 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -38,9 +38,9 @@ model Rooms { model GateWayIdentity { id String @id @default(auto()) @map("_id") @db.ObjectId semaphoreIdentity String @unique - discordId String + discordId String? jubmojii String[] - steamId64 String + steamId64 String? ethereumAddresses String[] roomIds String[] @default([]) @db.ObjectId rooms Rooms[] @relation(fields: [roomIds], references: [id]) diff --git a/src/data/db/create.ts b/src/data/db/create.ts index 0d912ae..9c7180e 100644 --- a/src/data/db/create.ts +++ b/src/data/db/create.ts @@ -68,8 +68,6 @@ export async function createRoom( gateways: { create: mockUsers.map((user) => ({ semaphoreIdentity: user, - discordId: '', - steamId64: '' })) } } diff --git a/src/data/db/update.ts b/src/data/db/update.ts index b242d16..8ef1b58 100644 --- a/src/data/db/update.ts +++ b/src/data/db/update.ts @@ -86,8 +86,6 @@ export async function updateClaimCode( gateways: { create: { semaphoreIdentity: idc, - discordId: '', - steamId64: '' } } } @@ -154,8 +152,6 @@ export async function addIdentityToIdentityListRooms( gateways: { create: { semaphoreIdentity: identityCommitment, - discordId: '', - steamId64: '' } } } @@ -239,8 +235,6 @@ export async function addIdentityToBandadaRooms( gateways: { create: { semaphoreIdentity: identityCommitment, - discordId: '', - steamId64: '', } } } diff --git a/src/types/index.ts b/src/types/index.ts index ef3b273..7d4d835 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -21,8 +21,6 @@ export interface ClaimCodeI { export interface GateWayIdentityI { semaphoreIdentity: string; - discordId: string; - steamId64: string; roomIds: string[]; usedClaimCodes: string[]; }