Draft: move to Prisma ORM#125
Conversation
d01120d to
bd6d2b3
Compare
…orkflows - Introduced architecture.md detailing system context, high-level diagram, tenant access flow, and cross-entrypoint consistency. - Created bpmn-lifecycle.md outlining the onboarding and eligibility process with a BPMN-style flow diagram. - Added discord-sources.md to reference authoritative Discord API and Discord.js documentation. - Established github-sources.md to track project-level GitHub issues and repository references. - Developed issue-93-specification.md as an umbrella epic for bot refactor and web app delivery, including MVP definition and implementation phases. - Defined mvp-scope.md to clarify in-scope and out-of-scope features for the MVP. - Outlined non-mvp-roadmap.md for planned features post-MVP and suggested delivery order. - Documented state-machine.md to illustrate the membership lifecycle and critical guard rules. - Created traceability-matrix.md to map rules to specifications, GitHub issues, and implementation targets.
… and command deployment chore: modify docker-compose command to use entrypoint script refactor: simplify index.ts by removing config read and initializing DatadropClient with intents only fix: remove env-gen script from package.json and update dotenvx dependency version feat: enhance prisma.config.ts to support external tables for cron jobs delete: remove old migration SQL file and create new migration for users and guild configurations fix: update guild member events to fetch configuration dynamically fix: update command handler to fetch configuration for authorization checks feat: implement deploy command for synchronizing slash commands with Discord chore: update PrismaDatabaseService to use PostgreSQL adapter and improve configuration handling
AugustinMauroy
left a comment
There was a problem hiding this comment.
Autre truc que tu peux utiliser pour simplifier ton workfow de deployment the le node --run à la place de yarn
| strategy: | ||
| matrix: | ||
| node-version: [20.x] | ||
| node-version: [25.x] |
There was a problem hiding this comment.
pk une matrix de une seul version utilise la LTS
|
|
||
| const database = new PrismaClient(); | ||
|
|
||
| async function main() { |
| "type": "module", | ||
| "main": "./build/index.js", | ||
| "prisma": { | ||
| "seed": "tsx prisma/seed.ts" |
There was a problem hiding this comment.
| "seed": "tsx prisma/seed.ts" | |
| "seed": "node prisma/seed.ts" |
sur les dernières version de node tu peux run du typescript sans problème
| @@ -0,0 +1,20 @@ | |||
| // This file was generated by Prisma, and assumes you have installed the following: | |||
| // npm install --save-dev prisma dotenv | |||
| import "dotenv/config"; | |||
There was a problem hiding this comment.
| import "dotenv/config"; |
| // npm install --save-dev prisma dotenv | ||
| import "dotenv/config"; | ||
| import { defineConfig } from "prisma/config"; | ||
|
|
There was a problem hiding this comment.
https://nodejs.org/docs/latest/api/process.html#processloadenvfilepath
| loadEnvFile(); |
| "noImplicitAny": false, | ||
| "rootDir": ".", | ||
| "outDir": "build", | ||
| "resolvePackageJsonImports": true |
There was a problem hiding this comment.
| "resolvePackageJsonImports": true | |
| "resolvePackageJsonImports": true, | |
| "erasableSyntaxOnly": true |
| "homepage": "https://github.com/section-IG/DataDrop#readme", | ||
| "dependencies": { | ||
| "@dotenvx/dotenvx": "^1.51.0", | ||
| "@dotenvx/dotenvx": "^1.71.2", |
There was a problem hiding this comment.
| "@dotenvx/dotenvx": "^1.71.2", |
| "@types/node": "^25.9.2", | ||
| "@types/nodemailer": "^8.0.0", | ||
| "prisma": "^7.8.0", | ||
| "tsx": "^4.22.4", |
There was a problem hiding this comment.
| "tsx": "^4.22.4", |
| "rootDir": ".", | ||
| "outDir": "build", | ||
| "resolvePackageJsonImports": true | ||
| } |
There was a problem hiding this comment.
ts vas fails, tu dois utiliser "types": []
|



No description provided.