mirror of
https://github.com/r-ca/kidshift-be.git
synced 2024-10-25 16:14:02 +00:00
unique制約追加
This commit is contained in:
parent
0fae9ff7cd
commit
734ff66574
|
@ -0,0 +1,8 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- A unique constraint covering the columns `[code]` on the table `ActiveLoginCode` will be added. If there are existing duplicate values, this will fail.
|
||||
|
||||
*/
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "ActiveLoginCode_code_key" ON "ActiveLoginCode"("code");
|
|
@ -76,7 +76,7 @@ model TaskChildLinkage {
|
|||
model ActiveLoginCode {
|
||||
id String @id @default(cuid())
|
||||
child_id String
|
||||
code Int
|
||||
code Int @unique
|
||||
created_at DateTime @default(now())
|
||||
child Child @relation(fields: [child_id], references: [id])
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user