mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-27 22:24:14 +00:00
feat: docker
This commit is contained in:
parent
487a1a658d
commit
99c3aa5add
7 changed files with 53 additions and 12 deletions
|
|
@ -1,9 +0,0 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `images` on the `miis` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "miis" DROP COLUMN "images",
|
||||
ADD COLUMN "imageCount" INTEGER NOT NULL DEFAULT 0;
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE "users" ADD COLUMN "usernameUpdatedAt" TIMESTAMP(3);
|
||||
|
|
@ -8,6 +8,7 @@ CREATE TABLE "users" (
|
|||
"image" TEXT,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
"usernameUpdatedAt" TIMESTAMP(3),
|
||||
|
||||
CONSTRAINT "users_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
|
@ -45,7 +46,7 @@ CREATE TABLE "miis" (
|
|||
"id" SERIAL NOT NULL,
|
||||
"userId" INTEGER NOT NULL,
|
||||
"name" VARCHAR(64) NOT NULL,
|
||||
"images" TEXT[],
|
||||
"imageCount" INTEGER NOT NULL DEFAULT 0,
|
||||
"tags" TEXT[],
|
||||
"firstName" TEXT NOT NULL,
|
||||
"lastName" TEXT NOT NULL,
|
||||
Loading…
Add table
Add a link
Reference in a new issue