Last active
October 13, 2022 07:04
-
-
Save brandonchadlange/c6aefd86ef9f920ca2e0640f19de8114 to your computer and use it in GitHub Desktop.
Event service models
This file contains hidden or 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
model Event { | |
id Int @id @default(autoincrement()) | |
name String | |
actions Action[] | |
} | |
model Action { | |
id Int @id @default(autoincrement()) | |
name String | |
endpoint String | |
event Event @relation(fields: [event_id], references: [id]) | |
event_id Int | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment