Renamed Student to Attendee

This commit is contained in:
Jose Selesan
2026-09-17 18:58:00 -03:00
parent e8bca3a5ae
commit fa30fe2cff
22 changed files with 120 additions and 104 deletions

View File

@@ -0,0 +1,16 @@
-- Rename Student model (students table) to Attendee (attendees table)
-- AlterTable
ALTER TABLE "students" RENAME TO "attendees";
-- AlterTable
ALTER TABLE "payments" RENAME COLUMN "studentId" TO "attendeeId";
-- RenameIndex
ALTER INDEX "students_groupId_idx" RENAME TO "attendees_groupId_idx";
-- RenameIndex
ALTER INDEX "payments_studentId_idx" RENAME TO "payments_attendeeId_idx";
-- RenameForeignKey
ALTER TABLE "payments" RENAME CONSTRAINT "payments_studentId_fkey" TO "payments_attendeeId_fkey";