add pgcrypto to postgres via extension preview

This commit is contained in:
Francis Cao 2023-01-17 10:36:16 -08:00
parent 1bb33f7aff
commit 529b7a35c3
2 changed files with 4 additions and 2 deletions

View File

@ -107,5 +107,5 @@ CREATE TABLE `team_user` (
PRIMARY KEY (`team_user_id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-- CreateAdminUser
INSERT INTO account (username, password, is_admin) values ('admin', '$2b$10$BUli0c.muyCW1ErNJc3jL.vFRFtFJWrT8/GcR4A.sUdCznaXiqFXa', true);
-- AddSystemUser
INSERT INTO `user` (user_id, username, role, password) VALUES ('41e2b680-648e-4b09-bcd7-3e2b10c06264' , 'admin', 'admin', '$2b$10$BUli0c.muyCW1ErNJc3jL.vFRFtFJWrT8/GcR4A.sUdCznaXiqFXa');

View File

@ -1,11 +1,13 @@
generator client {
provider = "prisma-client-js"
previewFeatures = ["postgresqlExtensions"]
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
relationMode = "prisma"
extensions = [pgcrypto]
}
model User {