Skip to content

Commit

Permalink
🧑‍💻 serve succeeded
Browse files Browse the repository at this point in the history
  • Loading branch information
tktcorporation committed Oct 10, 2022
1 parent 5647ac6 commit b17d2d2
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 31 deletions.
16 changes: 0 additions & 16 deletions api/db/migrations/20210222013102_init_database/migration.sql

This file was deleted.

13 changes: 0 additions & 13 deletions api/db/migrations/20220208231150_create_user/migration.sql

This file was deleted.

36 changes: 36 additions & 0 deletions api/db/migrations/20221010082026_/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
-- CreateTable
CREATE TABLE "Post" (
"id" SERIAL NOT NULL,
"title" TEXT NOT NULL,
"body" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,

CONSTRAINT "Post_pkey" PRIMARY KEY ("id")
);

-- CreateTable
CREATE TABLE "Contact" (
"id" SERIAL NOT NULL,
"name" TEXT NOT NULL,
"email" TEXT NOT NULL,
"message" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,

CONSTRAINT "Contact_pkey" PRIMARY KEY ("id")
);

-- CreateTable
CREATE TABLE "User" (
"id" SERIAL NOT NULL,
"name" TEXT,
"email" TEXT NOT NULL,
"hashedPassword" TEXT NOT NULL,
"salt" TEXT NOT NULL,
"resetToken" TEXT,
"resetTokenExpiresAt" TIMESTAMP(3),

CONSTRAINT "User_pkey" PRIMARY KEY ("id")
);

-- CreateIndex
CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
2 changes: 1 addition & 1 deletion api/db/migrations/migration_lock.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "sqlite"
provider = "postgresql"
2 changes: 1 addition & 1 deletion api/db/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
datasource db {
provider = "sqlite"
provider = "postgresql"
url = env("DATABASE_URL")
}

Expand Down
2 changes: 2 additions & 0 deletions redwood.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@

[web]
port = 8910
host = "0.0.0.0"
apiUrl = "/.netlify/functions"
title = "Redwood Tutorial Blog"
[api]
port = 8911
host = "0.0.0.0"
[browser]
open = true
[experimental]
Expand Down

0 comments on commit b17d2d2

Please sign in to comment.