From 5b87bbbac112e5d49c3405862618b8fede92d5f0 Mon Sep 17 00:00:00 2001 From: shio <85730998+dino3616@users.noreply.github.com> Date: Sun, 29 Oct 2023 00:30:12 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9A=B0=EF=B8=8F=20(drizzle/migration?= =?UTF-8?q?s)=20meta=20=E3=83=87=E3=83=BC=E3=82=BF=E3=82=92=E5=89=8A?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/meta/0000_snapshot.json | 269 ------------------ .../drizzle/migrations/meta/_journal.json | 13 - 2 files changed, 282 deletions(-) delete mode 100644 apps/api/src/infra/drizzle/migrations/meta/0000_snapshot.json delete mode 100644 apps/api/src/infra/drizzle/migrations/meta/_journal.json diff --git a/apps/api/src/infra/drizzle/migrations/meta/0000_snapshot.json b/apps/api/src/infra/drizzle/migrations/meta/0000_snapshot.json deleted file mode 100644 index aa533da..0000000 --- a/apps/api/src/infra/drizzle/migrations/meta/0000_snapshot.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "version": "5", - "dialect": "pg", - "id": "e2f86b4a-8bec-4b67-9dfd-ccbf74b3e121", - "prevId": "00000000-0000-0000-0000-000000000000", - "tables": { - "drawers": { - "name": "drawers", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "serial", - "primaryKey": true, - "notNull": true - }, - "locker_id": { - "name": "locker_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": { - "drawers_locker_id_lockers_id_fk": { - "name": "drawers_locker_id_lockers_id_fk", - "tableFrom": "drawers", - "tableTo": "lockers", - "columnsFrom": [ - "locker_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "no action", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "lockers": { - "name": "lockers", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "name": { - "name": "name", - "type": "varchar(32)", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "lockers_name_unique": { - "name": "lockers_name_unique", - "nullsNotDistinct": false, - "columns": [ - "name" - ] - } - } - }, - "lost_items": { - "name": "lost_items", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "image_urls": { - "name": "image_urls", - "type": "text[]", - "primaryKey": false, - "notNull": true - }, - "drawer_id": { - "name": "drawer_id", - "type": "serial", - "primaryKey": false, - "notNull": true - }, - "reporter_id": { - "name": "reporter_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "owner_id": { - "name": "owner_id", - "type": "uuid", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "delivered_at": { - "name": "delivered_at", - "type": "timestamp", - "primaryKey": false, - "notNull": false - }, - "retrieved_at": { - "name": "retrieved_at", - "type": "timestamp", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": { - "lost_items_drawer_id_drawers_id_fk": { - "name": "lost_items_drawer_id_drawers_id_fk", - "tableFrom": "lost_items", - "tableTo": "drawers", - "columnsFrom": [ - "drawer_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "no action", - "onUpdate": "no action" - }, - "lost_items_reporter_id_users_id_fk": { - "name": "lost_items_reporter_id_users_id_fk", - "tableFrom": "lost_items", - "tableTo": "users", - "columnsFrom": [ - "reporter_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "no action", - "onUpdate": "no action" - }, - "lost_items_owner_id_users_id_fk": { - "name": "lost_items_owner_id_users_id_fk", - "tableFrom": "lost_items", - "tableTo": "users", - "columnsFrom": [ - "owner_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "no action", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - }, - "users": { - "name": "users", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "auth_id": { - "name": "auth_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "fingerprint_id": { - "name": "fingerprint_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lost_and_found_state": { - "name": "lost_and_found_state", - "type": "lost_and_found_state", - "primaryKey": false, - "notNull": true, - "default": "'NONE'" - }, - "avatar_url": { - "name": "avatar_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "users_auth_id_unique": { - "name": "users_auth_id_unique", - "nullsNotDistinct": false, - "columns": [ - "auth_id" - ] - }, - "users_fingerprint_id_unique": { - "name": "users_fingerprint_id_unique", - "nullsNotDistinct": false, - "columns": [ - "fingerprint_id" - ] - } - } - } - }, - "enums": { - "lost_and_found_state": { - "name": "lost_and_found_state", - "values": { - "NONE": "NONE", - "DELIVERING": "DELIVERING", - "RETRIEVING": "RETRIEVING" - } - } - }, - "schemas": {}, - "_meta": { - "schemas": {}, - "tables": {}, - "columns": {} - } -} \ No newline at end of file diff --git a/apps/api/src/infra/drizzle/migrations/meta/_journal.json b/apps/api/src/infra/drizzle/migrations/meta/_journal.json deleted file mode 100644 index 015b464..0000000 --- a/apps/api/src/infra/drizzle/migrations/meta/_journal.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "version": "5", - "dialect": "pg", - "entries": [ - { - "idx": 0, - "version": "5", - "when": 1698323978271, - "tag": "0000_material_warpath", - "breakpoints": true - } - ] -} \ No newline at end of file