-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from chrsrns/auth-overhaul
- Loading branch information
Showing
24 changed files
with
145 additions
and
533 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
prisma/migrations/20240724063400_auth_overhaul_1/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `addr` on the `User` table. All the data in the column will be lost. | ||
- You are about to drop the column `bdate` on the `User` table. All the data in the column will be lost. | ||
- You are about to drop the column `cnum` on the `User` table. All the data in the column will be lost. | ||
- You are about to drop the column `emailaddr` on the `User` table. All the data in the column will be lost. | ||
- You are about to drop the column `isOnline` on the `User` table. All the data in the column will be lost. | ||
- You are about to drop the column `login_password` on the `User` table. All the data in the column will be lost. | ||
- You are about to drop the column `mname` on the `User` table. All the data in the column will be lost. | ||
- The values [Clinic] on the enum `User_type` will be removed. If these variants are still used in the database, this will fail. | ||
- You are about to drop the `Otp` table. If the table is not empty, all the data it contains will be lost. | ||
*/ | ||
-- DropIndex | ||
DROP INDEX `User_emailaddr_key` ON `User`; | ||
|
||
-- DropIndex | ||
DROP INDEX `User_fname_mname_lname_key` ON `User`; | ||
|
||
-- AlterTable | ||
ALTER TABLE `User` DROP COLUMN `addr`, | ||
DROP COLUMN `bdate`, | ||
DROP COLUMN `cnum`, | ||
DROP COLUMN `emailaddr`, | ||
DROP COLUMN `isOnline`, | ||
DROP COLUMN `login_password`, | ||
DROP COLUMN `mname`, | ||
MODIFY `type` ENUM('Student', 'Teacher', 'Guidance', 'Admin') NOT NULL; | ||
|
||
-- DropTable | ||
DROP TABLE `Otp`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.