mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 06:34:15 +00:00
feat: submitting and validation
custom images of the mii are still not implemented
This commit is contained in:
parent
fb4d790b3d
commit
49c6206623
14 changed files with 514 additions and 63 deletions
|
|
@ -1,9 +0,0 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `pictures` on the `miis` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "miis" DROP COLUMN "pictures",
|
||||
ADD COLUMN "images" TEXT[];
|
||||
|
|
@ -45,7 +45,9 @@ CREATE TABLE "miis" (
|
|||
"id" SERIAL NOT NULL,
|
||||
"userId" INTEGER NOT NULL,
|
||||
"name" VARCHAR(64) NOT NULL,
|
||||
"pictures" TEXT[],
|
||||
"qrCodeUrl" TEXT NOT NULL,
|
||||
"studioUrl" TEXT NOT NULL,
|
||||
"images" TEXT[],
|
||||
"tags" TEXT[],
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE "miis" ALTER COLUMN "qrCodeUrl" DROP NOT NULL,
|
||||
ALTER COLUMN "studioUrl" DROP NOT NULL;
|
||||
Loading…
Add table
Add a link
Reference in a new issue