Skip to content

Draft: move to Prisma ORM#125

Draft
HunteRoi wants to merge 11 commits into
masterfrom
111-change-orm-to-prisma
Draft

Draft: move to Prisma ORM#125
HunteRoi wants to merge 11 commits into
masterfrom
111-change-orm-to-prisma

Conversation

@HunteRoi

Copy link
Copy Markdown
Member

No description provided.

@HunteRoi HunteRoi linked an issue May 27, 2026 that may be closed by this pull request
@HunteRoi HunteRoi force-pushed the 111-change-orm-to-prisma branch from d01120d to bd6d2b3 Compare May 27, 2026 14:27
HunteRoi added 9 commits May 28, 2026 00:09
…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 AugustinMauroy left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pk une matrix de une seul version utilise la LTS

Comment thread prisma/seed.ts

const database = new PrismaClient();

async function main() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pourquoi cette fonction ?

Comment thread package.json
"type": "module",
"main": "./build/index.js",
"prisma": {
"seed": "tsx prisma/seed.ts"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"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

Comment thread prisma.config.ts
@@ -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";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import "dotenv/config";

Comment thread prisma.config.ts
// npm install --save-dev prisma dotenv
import "dotenv/config";
import { defineConfig } from "prisma/config";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread tsconfig.json
"noImplicitAny": false,
"rootDir": ".",
"outDir": "build",
"resolvePackageJsonImports": true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"resolvePackageJsonImports": true
"resolvePackageJsonImports": true,
"erasableSyntaxOnly": true

Comment thread package.json
"homepage": "https://github.com/section-IG/DataDrop#readme",
"dependencies": {
"@dotenvx/dotenvx": "^1.51.0",
"@dotenvx/dotenvx": "^1.71.2",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"@dotenvx/dotenvx": "^1.71.2",

Comment thread package.json
"@types/node": "^25.9.2",
"@types/nodemailer": "^8.0.0",
"prisma": "^7.8.0",
"tsx": "^4.22.4",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"tsx": "^4.22.4",

Comment thread tsconfig.json
"rootDir": ".",
"outDir": "build",
"resolvePackageJsonImports": true
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change ORM to Prisma

2 participants