Skip to content

Commit

Permalink
baseline db
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewmorris committed Feb 8, 2024
1 parent e03c9a0 commit c85d21c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
-- CreateTable
CREATE TABLE `cards` (
`id` VARCHAR(191) NOT NULL,
`name` TEXT NOT NULL,
`scryfall_id` VARCHAR(191) NOT NULL,
`scryfall_uri` TEXT NOT NULL,
`image_status` TEXT NOT NULL,
`image_uris` JSON NULL,
`layout` TEXT NOT NULL,

UNIQUE INDEX `cards_scryfall_id_key`(`scryfall_id`),
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- CreateTable
CREATE TABLE `Collection` (
`id` VARCHAR(191) NOT NULL,
`userId` VARCHAR(191) NOT NULL,
`name` VARCHAR(191) NOT NULL DEFAULT 'My Collection',
`description` VARCHAR(191) NOT NULL,
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
`updatedAt` DATETIME(3) NOT NULL,

Expand Down Expand Up @@ -59,3 +76,4 @@ CREATE TABLE `VerificationToken` (
UNIQUE INDEX `VerificationToken_token_key`(`token`),
UNIQUE INDEX `VerificationToken_identifier_token_key`(`identifier`, `token`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

23 changes: 0 additions & 23 deletions prisma/migrations/20231221073818_add_card_table/migration.sql

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions prisma/migrations/migration_lock.toml

This file was deleted.

0 comments on commit c85d21c

Please sign in to comment.