Skip to content

Commit

Permalink
Merge pull request #46 from Nutlope/decrease-default-generations
Browse files Browse the repository at this point in the history
Decreased default generations to 3 credits
  • Loading branch information
Nutlope authored Mar 24, 2023
2 parents 7c3e742 + 0103594 commit cc792bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pages/dream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const Home: NextPage = () => {
maxFileCount: 1,
mimeTypes: ["image/jpeg", "image/png", "image/jpg"],
editor: { images: { crop: false } },
tags: [data?.remainingGenerations > 5 ? "paid" : "free"],
tags: [data?.remainingGenerations > 3 ? "paid" : "free"],
styles: {
colors: {
primary: "#2563EB", // Primary buttons & links
Expand Down Expand Up @@ -278,7 +278,7 @@ const Home: NextPage = () => {
<div className="h-[250px] flex flex-col items-center space-y-6 max-w-[670px] -mt-8">
<div className="max-w-xl text-gray-300">
Sign in below with Google to create a free account and
redesign your room today. You will get 5 generations for
redesign your room today. You will get 3 generations for
free.
</div>
<button
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "User" ALTER COLUMN "credits" SET DEFAULT 3;
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ model User {
email String? @unique
emailVerified DateTime?
image String?
credits Int @default(5)
credits Int @default(3)
boughtCredits Int @default(0) // remove boughtCredits
accounts Account[]
sessions Session[]
Expand Down

1 comment on commit cc792bb

@vercel
Copy link

@vercel vercel bot commented on cc792bb Mar 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.