More refactors, adding wider support
This commit is contained in:
@@ -37,12 +37,14 @@ model IamRole {
|
||||
accountId String
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
policies IamRoleIamPolicyAttachment[]
|
||||
|
||||
@@unique([accountId, name])
|
||||
}
|
||||
|
||||
model IamPolicy {
|
||||
id String
|
||||
version Int @default(1)
|
||||
version Int @default(1)
|
||||
isDefault Boolean
|
||||
path String?
|
||||
name String
|
||||
@@ -57,6 +59,15 @@ model IamPolicy {
|
||||
@@unique([accountId, path, name])
|
||||
}
|
||||
|
||||
model IamRoleIamPolicyAttachment {
|
||||
iamRoleId String
|
||||
iamPolicyId String
|
||||
|
||||
role IamRole @relation(fields: [iamRoleId], references: [id])
|
||||
|
||||
@@id([iamRoleId, iamPolicyId])
|
||||
}
|
||||
|
||||
model KmsAlias {
|
||||
name String
|
||||
accountId String
|
||||
|
||||
Reference in New Issue
Block a user