dbに保存するようにした
Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
This commit is contained in:
parent
e133a6b6a4
commit
387faf55cf
8 changed files with 160 additions and 42 deletions
11
packages/backend/migration/1699337454434-schedulenote.js
Normal file
11
packages/backend/migration/1699337454434-schedulenote.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
export class Schedulenote1699337454434 {
|
||||
name = 'Schedulenote1699337454434'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`CREATE TABLE "note_schedule" ("id" character varying(32) NOT NULL, "note" jsonb NOT NULL, "userId" character varying(260) NOT NULL, CONSTRAINT "PK_3a1ae2db41988f4994268218436" PRIMARY KEY ("id"))`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`DROP TABLE "note_schedule"`);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue