Skip to content

Commit

Permalink
Fix/prisma migration remove (#112)
Browse files Browse the repository at this point in the history
* Removing extra migration file

* Attempting to fix prisma again

---------

Co-authored-by: Ed Morgan <[email protected]>
  • Loading branch information
ebm5025 and Ed Morgan authored Jun 12, 2024
1 parent 9ebf22c commit b0cac1e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 30 deletions.
14 changes: 14 additions & 0 deletions prisma/migrations/20240612225922_bot/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- CreateTable
CREATE TABLE "bot" (
"class" TEXT NOT NULL,
"name" TEXT NOT NULL,
"location" TEXT NOT NULL,
"level" TEXT NOT NULL,
"currentPilot" TEXT NOT NULL,
"checkoutTime" TEXT NOT NULL,
"bindLocation" TEXT NOT NULL,
"requiredRoles" TEXT[]
);

-- CreateIndex
CREATE UNIQUE INDEX "bot_name_key" ON "bot"("name");
60 changes: 30 additions & 30 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -28,46 +28,57 @@ model invite_simple {
}

model item {
id Int @id
name String
type bank_item_types?
price String?
updatedAt DateTime @updatedAt @default(now())
stock slot[]
id Int @id
name String
price String?
type bank_item_types?
updatedAt DateTime @default(now()) @updatedAt
stock slot[]
}

model slot {
id Int @id @default(autoincrement())
charSlot String @unique
slot String
charName String
updatedAt DateTime @updatedAt @default(now())
itemId Int?
count Int? @default(1)
char char @relation(fields: [charName], references: [name])
item item? @relation(fields: [itemId], references: [id])
id Int @id @default(autoincrement())
charSlot String @unique
slot String
charName String
itemId Int?
count Int? @default(1)
updatedAt DateTime @default(now()) @updatedAt
char char @relation(fields: [charName], references: [name])
item item? @relation(fields: [itemId], references: [id])
}

model char {
id Int @id @default(autoincrement())
name String @unique
id Int @id @default(autoincrement())
name String @unique
charType String
updatedAt DateTime @updatedAt @default(now())
updatedAt DateTime @default(now()) @updatedAt
inventory slot[]
}

model typeorm_metadata {
id Int @id @default(autoincrement())
type String @db.VarChar
database String? @db.VarChar
schema String? @db.VarChar
table String? @db.VarChar
name String? @db.VarChar
value String?
id Int @id @default(autoincrement())
@@ignore
}

model bot {
class String
name String @unique
location String
level String
currentPilot String
checkoutTime String
bindLocation String
requiredRoles String[]
}

enum bank_hour_day_enum {
Monday
Tuesday
Expand All @@ -88,14 +99,3 @@ enum bank_item_types {
raid_reagent
not_available
}

model bot {
class String
name String @unique
location String
level String
currentPilot String
checkoutTime String
bindLocation String
requiredRoles String[]
}

0 comments on commit b0cac1e

Please sign in to comment.