-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement app guide module (#5115)
* add user task table * update desktop guide * desktop guide done * delete Deprecated API * support verifyAppToken * update desktop prisma * launchpad guide * update db * add desktop api * db guide done * update launchpad api * appstore done * update * fix desktop autolaunch * fix desktop refresh * update * update desktop * fix password login * fix fontweight * desktop add check * update db * update desktop * checkDeductionBalanceAndCreateTasks * update deploy * update check * update task title
- Loading branch information
Showing
100 changed files
with
3,111 additions
and
1,001 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
frontend/desktop/prisma/global/migrations/20240926064719_add_user_task_table/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
-- CreateEnum | ||
CREATE TYPE "TaskType" AS ENUM ('LAUNCHPAD', 'COSTCENTER', 'DATABASE', 'DESKTOP', 'APPSTORE'); | ||
|
||
-- CreateEnum | ||
CREATE TYPE "TaskStatus" AS ENUM ('NOT_COMPLETED', 'COMPLETED'); | ||
|
||
-- CreateTable | ||
CREATE TABLE "Task" ( | ||
"id" UUID NOT NULL DEFAULT gen_random_uuid(), | ||
"title" STRING NOT NULL, | ||
"description" STRING NOT NULL, | ||
"reward" INT8 NOT NULL, | ||
"order" INT4 NOT NULL, | ||
"isActive" BOOL NOT NULL DEFAULT true, | ||
"isNewUserTask" BOOL NOT NULL DEFAULT false, | ||
"taskType" "TaskType" NOT NULL, | ||
"createdAt" TIMESTAMPTZ(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"updatedAt" TIMESTAMPTZ(3) NOT NULL, | ||
|
||
CONSTRAINT "Task_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "UserTask" ( | ||
"id" UUID NOT NULL DEFAULT gen_random_uuid(), | ||
"userUid" UUID NOT NULL, | ||
"taskId" UUID NOT NULL, | ||
"status" "TaskStatus" NOT NULL, | ||
"rewardStatus" "TaskStatus" NOT NULL, | ||
"completedAt" TIMESTAMP(3) NOT NULL, | ||
"createdAt" TIMESTAMPTZ(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"updatedAt" TIMESTAMPTZ(3) NOT NULL, | ||
|
||
CONSTRAINT "UserTask_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateIndex | ||
CREATE INDEX "UserTask_taskId_idx" ON "UserTask"("taskId"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "UserTask_userUid_taskId_key" ON "UserTask"("userUid", "taskId"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.