refactor api and sdk
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- DropIndex
|
||||
DROP INDEX "profiles_project_id_external_id_key";
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "profiles" ALTER COLUMN "external_id" DROP NOT NULL;
|
||||
@@ -69,7 +69,7 @@ model Event {
|
||||
|
||||
model Profile {
|
||||
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
|
||||
external_id String
|
||||
external_id String?
|
||||
first_name String?
|
||||
last_name String?
|
||||
email String?
|
||||
@@ -82,7 +82,6 @@ model Profile {
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now()) @updatedAt
|
||||
|
||||
@@unique([project_id, external_id])
|
||||
@@map("profiles")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user