From 7770685f4b6cfd0f68ff5e5d5ecfafbcbd58a69e Mon Sep 17 00:00:00 2001 From: Dm1tr1y147 Date: Sat, 3 Oct 2020 18:30:35 +0500 Subject: [PATCH] Changed prisma schema and migrated changes --- package-lock.json | 73 +++ package.json | 3 +- prisma/dev.db | Bin 0 -> 65536 bytes .../README.md | 103 ++++ .../schema.prisma | 46 ++ .../steps.json | 551 ++++++++++++++++++ prisma/migrations/migrate.lock | 3 + prisma/schema.prisma | 37 +- 8 files changed, 814 insertions(+), 2 deletions(-) create mode 100644 package-lock.json create mode 100644 prisma/dev.db create mode 100644 prisma/migrations/20201003131039-initial-structure/README.md create mode 100644 prisma/migrations/20201003131039-initial-structure/schema.prisma create mode 100644 prisma/migrations/20201003131039-initial-structure/steps.json create mode 100644 prisma/migrations/migrate.lock diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..069c3db --- /dev/null +++ b/package-lock.json @@ -0,0 +1,73 @@ +{ + "name": "backend", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@prisma/cli": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/@prisma/cli/-/cli-2.7.1.tgz", + "integrity": "sha512-0uA+gWkNQ35DveVHDPltiTCTr4wcXtEhnPs463IEM+Xn8dTv9x0gtZiYHSuQM3t7uwlOxj1rurBsqSbiljynfQ==", + "dev": true + }, + "@prisma/client": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-2.7.1.tgz", + "integrity": "sha512-IEWDCuvIaQTira8/jAyf+uY+AuPPUFDIXMSN4zEA/gvoJv2woq7RmkaubS+NQVgDbbyOR6F3UcXLiFTYQDzZkQ==", + "requires": { + "pkg-up": "^3.1.0" + } + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "requires": { + "locate-path": "^3.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" + }, + "pkg-up": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", + "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", + "requires": { + "find-up": "^3.0.0" + } + } + } +} diff --git a/package.json b/package.json index 56f6809..bf79765 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,14 @@ "main": "src/index.ts", "license": "MIT", "dependencies": { + "@prisma/client": "^2.7.1", "graphql-yoga": "^1.18.3" }, "scripts": { "dev": "ts-node src/index.ts" }, "devDependencies": { - "@prisma/cli": "^2.8.0", + "@prisma/cli": "^2.7.1", "ts-node": "^9.0.0", "typescript": "^4.0.3" } diff --git a/prisma/dev.db b/prisma/dev.db new file mode 100644 index 0000000000000000000000000000000000000000..6f8ead2e6be40c2690373ab6937357a48e18dc3b GIT binary patch literal 65536 zcmeHQ&2QVt6}NVic;ij7X@S6K7YlF)C~9Y&z}Xy%3MdlQW){NQN@B}tQg0y8;@BaU zqGWz}Z5Tcz?Y6f)_RxQ&e?@P-_tI1UhQ1jNhvbm7D2Yle_Zb!>@nh!AZ{EBwzBk%_ zzG3-P+wZ$Q!`B|p-JYw}<{oR>+}zwPc-@BA$MCuWuWRBR-uPcF`f$$st-1S;{&f>B zn7{th+^xUf{Krk}#*I&Ze*Hi275@+cL;w*$1P}p401-e0=3dTUTfBFtc4j#yJ$}}= z?fae`9CQN5It(cLzOc5XH`=ZDt*x#s@W!7!-O`)iw0Pf3B+=8dwxvJOxAfMUzO9kxf&>5ohOo>)S=Tpo zfNxtDqkuy@&(;~DYmM!-#=5?+{Pu^d^NU}6QTtPaBNa6gy?>I%DmpwFSOb{a9H1=U zrWvGi5D>SgN6(mIw2{C2s9ScloB>VhbzN(~ z*eQfV@C#?{d`@zy;Zw5#+{9+L-Q3hAvjG!??6kJC1+3EUu(R9k#^$qJ_7c>l!QFu& zj0WzrkFPC$^;PW^ht@l^!RzXH^e~`KmnvVcrT|w?E;&YzuE3qkZ<`3SFNHW^9m zbtQE-;gn7^U97_l7xH$^QZ}j>m6@!ti0ylWR;Rl{NevKG|fo;)PxFzp# zVbxHxvuAX_&q_0BQ+C(!d^*T!oL#VIc(l`taL5usUAOP%+zSM|!1^6S@P3l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