-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
124 additions
and
517 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,79 @@ | ||
model { | ||
|
||
extend provider { | ||
pg = database 'PostgreSQL' { | ||
description 'Database for storing relational data' | ||
style { | ||
icon https://icons.terrastruct.com/dev%2Fpostgresql.svg | ||
} | ||
|
||
tbl_customers = db_table '[ customers ]' { | ||
technology 'private schema' | ||
} | ||
|
||
tbl_sessions = db_table '[ sessions ]' { | ||
technology 'private schema' | ||
description ' | ||
Active sessions | ||
' | ||
} | ||
tbl_sessions -> tbl_customers 'belongs to' | ||
} | ||
} | ||
|
||
extend cloud.backend { | ||
|
||
graphql = app 'GraphQL' { | ||
description ' | ||
The GraphQL API | ||
of the cloud system | ||
' | ||
} | ||
graphql = service 'GraphQL API' { | ||
description 'The GraphQL API of the cloud system' | ||
|
||
cms = app 'CMS' { | ||
description 'The CMS of the cloud system' | ||
-> provider.pg.tbl_sessions 'reads/writes' | ||
-> provider.pg.tbl_customers 'reads/writes' | ||
} | ||
|
||
graphql -> cms 'read and write' | ||
graphql -> amazon.cognito 'authenticate' | ||
graphql -> amazon.rds.pg 'read and write' | ||
graphql -> cloud.billing.subscriptions 'verify access' | ||
|
||
cms -> amazon.rds.mysql 'store media' | ||
} | ||
|
||
} | ||
|
||
views { | ||
|
||
view cloud_graphql of graphql { | ||
title "[context] Backend GraphQL" | ||
view cloud_backend of cloud.backend { | ||
|
||
include | ||
*, | ||
cloud, | ||
cloud.backend | ||
|
||
exclude | ||
-> amazon.* | ||
|
||
include | ||
graphql -> amazon.* | ||
provider, | ||
provider.pg, | ||
cloud.backend.* -> provider.pg.* | ||
|
||
style * { | ||
color secondary | ||
} | ||
|
||
style cloud, amazon, cloud.backend { | ||
style cloud, provider, provider.pg { | ||
color muted | ||
} | ||
|
||
style graphql { | ||
style cloud.backend, cloud.backend.* { | ||
color green | ||
} | ||
} | ||
|
||
view cloud_cms of cms { | ||
title "[context] Backend CMS" | ||
|
||
view provider_pg of provider.pg { | ||
title 'Databases' | ||
include | ||
*, | ||
cloud, | ||
cloud.backend | ||
|
||
exclude | ||
-> amazon.* | ||
|
||
include | ||
cms -> amazon.* | ||
cloud.* -> provider.pg.* | ||
|
||
style * { | ||
color secondary | ||
} | ||
|
||
style cloud, amazon, cloud.backend { | ||
style cloud, provider, provider.pg { | ||
color muted | ||
} | ||
|
||
style cms { | ||
style provider.pg.* { | ||
color green | ||
} | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.