Skip to content

Commit

Permalink
feat(Cardinalities): update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
JaronZ committed Jun 19, 2024
1 parent 4717d7e commit 51d54f8
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 32 deletions.
Binary file added ERMize/images/cardinality-exactly-one.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ERMize/images/cardinality-one-or-many.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ERMize/images/cardinality-zero-or-many.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ERMize/images/cardinality-zero-or-one.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ERMize/images/mixed-cardinality.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions ERMize/snippets/cardinality-exactly-one.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
entity User {
username <pi> USRNAME <M>
}

entity TaskList {
title <pi> TITLE <M>
description DESC
}

User -|--|- TaskList : TaskListOfUser
3 changes: 0 additions & 3 deletions ERMize/snippets/cardinality-one-or-many.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
entity User {
username <pi> USRNAME <M>
}

entity TaskList {
title <pi> TITLE <M>
description DESC
}

User }|--|{ TaskList : TaskListOfUser
3 changes: 0 additions & 3 deletions ERMize/snippets/cardinality-zero-or-many.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
entity User {
username <pi> USRNAME <M>
}

entity TaskList {
title <pi> TITLE <M>
description DESC
}

User }o--o{ TaskList : TaskListOfUser
3 changes: 0 additions & 3 deletions ERMize/snippets/cardinality-zero-or-one.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
entity User {
username <pi> USRNAME <M>
}

entity TaskList {
title <pi> TITLE <M>
description DESC
}

User -o--o- TaskList : TaskListOfUser
10 changes: 0 additions & 10 deletions ERMize/snippets/mixed-cardinality.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
entity User {
username <pi> USRNAME <M>
}

entity UserEmail {
email <pi> EMAIL <M>
}

entity TaskList {
title <pi> TITLE <M>
description DESC
}

entity Task {
title <pi> TITLE <M>
description DESC
start_date SDATE <M>
end_date EDATE <M>
start_time STIME
end_time ETIME
}

User -|--|{ UserEmail : EmailOfUser
Expand Down
20 changes: 10 additions & 10 deletions ERMize/topics/Relationship/Cardinalities.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ A user can have zero or one task lists and a task list can have zero or one user

### Output

<note>This is a concept image and not the actual result of the application.</note>
<note>The result of this output is still a work in progress and may still change.</note>

![](cardinality-zero-or-one.svg)
![](cardinality-zero-or-one.png)

## Exactly One

Expand All @@ -33,9 +33,9 @@ A user always has one task lists and a task list always has one user.

### Output {id="output_1"}

<note>This is a concept image and not the actual result of the application.</note>
<note>The result of this output is still a work in progress and may still change.</note>

![](cardinality-exactly-one.svg)
![](cardinality-exactly-one.png)

## Zero or Many

Expand All @@ -47,9 +47,9 @@ A user can have zero or more task lists and a task list can have zero or more us

### Output {id="output_2"}

<note>This is a concept image and not the actual result of the application.</note>
<note>The result of this output is still a work in progress and may still change.</note>

![](cardinality-zero-or-many.svg)
![](cardinality-zero-or-many.png)

## One or Many

Expand All @@ -61,9 +61,9 @@ A user always has one or more task lists and a task list always has one or more

### Output {id="output_3"}

<note>This is a concept image and not the actual result of the application.</note>
<note>The result of this output is still a work in progress and may still change.</note>

![](cardinality-one-or-many.svg)
![](cardinality-one-or-many.png)

## Mixing Cardinality Types

Expand All @@ -86,6 +86,6 @@ The following applies in this diagram:

### Output {id="output_4"}

<note>This is a concept image and not the actual result of the application.</note>
<note>The result of this output is still a work in progress and may still change.</note>

![](mixed-cardinality.svg)
![](mixed-cardinality.png)

0 comments on commit 51d54f8

Please sign in to comment.