mirror of
https://github.com/massbug/judge4c.git
synced 2025-07-05 08:30:50 +00:00
Add the answerType key to restrict the type of answer. Add the lengthOfArray key to rule the length of array or matrix. While if a single number just put null. Add new content of seed.ts like above all.
14 lines
448 B
SQL
14 lines
448 B
SQL
/*
|
|
Warnings:
|
|
|
|
- Added the required column `type` to the `Problem` table without a default value. This is not possible if the table is not empty.
|
|
|
|
*/
|
|
-- CreateEnum
|
|
CREATE TYPE "Type" AS ENUM ('NS', 'INT', 'FLOAT', 'CHAR', 'INTARRAY', 'FLOATARRAY', 'STRING', 'MATRIX');
|
|
|
|
-- AlterTable
|
|
ALTER TABLE "Problem" ADD COLUMN "isRandom" BOOLEAN NOT NULL DEFAULT false,
|
|
ADD COLUMN "lengthOfArray" INTEGER[],
|
|
ADD COLUMN "type" "Type" NOT NULL;
|