update,
This commit is contained in:
230
hk1234566/SQL/Assessment1/ER.html
Normal file
230
hk1234566/SQL/Assessment1/ER.html
Normal file
@@ -0,0 +1,230 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
|
||||
<script>
|
||||
mermaid.initialize({
|
||||
startOnLoad: true
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="mermaid">
|
||||
---
|
||||
title: Order example
|
||||
---
|
||||
erDiagram
|
||||
CUSTOMER |o--o{ Warrior : Own
|
||||
CUSTOMER |o--o{ Thief : Own
|
||||
CUSTOMER |o--o{ Mage : Own
|
||||
CUSTOMER |o--o{ Merchant : Own
|
||||
|
||||
ITEMS |o--o{ Warrior : Own
|
||||
ITEMS |o--o{ Thief : Own
|
||||
ITEMS |o--o{ Mage : Own
|
||||
ITEMS |o--o{ Merchant : Own
|
||||
|
||||
Warrior }o--o{ COMBAT : Attack
|
||||
Thief }o--o{ COMBAT : Attack
|
||||
Mage }o--o{ COMBAT : Attack
|
||||
Merchant }o--o{ COMBAT : Attack
|
||||
|
||||
Warrior }o--o{ COMBAT : Defense
|
||||
Thief }o--o{ COMBAT : Defense
|
||||
Mage }o--o{ COMBAT : Defense
|
||||
Merchant }o--o{ COMBAT : Defense
|
||||
|
||||
COMBAT }o--o{ BATTLE : Own
|
||||
|
||||
CUSTOMER {
|
||||
string AccountNumber PK
|
||||
string e-mail_Address
|
||||
string Forename
|
||||
string surname
|
||||
}
|
||||
|
||||
Merchant {
|
||||
int AccountNumber FK
|
||||
string CharacterCreationDate
|
||||
string CharacterExpiryDate
|
||||
string CharacterName
|
||||
string CharacterType
|
||||
string Level
|
||||
string ExperiencePoints
|
||||
string MaxHealth
|
||||
string Health
|
||||
string AttackinScore
|
||||
string DefenceScore
|
||||
string StealthScore
|
||||
string ManaScore
|
||||
string MoneyBank
|
||||
string MoneyWallet
|
||||
}
|
||||
|
||||
Mage {
|
||||
int AccountNumber FK
|
||||
string CharacterCreationDate
|
||||
string CharacterExpiryDate
|
||||
string CharacterName
|
||||
string CharacterType
|
||||
string Level
|
||||
string ExperiencePoints
|
||||
string MaxHealth
|
||||
string Health
|
||||
string AttackinScore
|
||||
string DefenceScore
|
||||
string StealthScore
|
||||
string ManaScore
|
||||
string MoneyBank
|
||||
string MoneyWallet
|
||||
}
|
||||
|
||||
Thief {
|
||||
int AccountNumber FK
|
||||
string CharacterCreationDate
|
||||
string CharacterExpiryDate
|
||||
string CharacterName
|
||||
string CharacterType
|
||||
string Level
|
||||
string ExperiencePoints
|
||||
string MaxHealth
|
||||
string Health
|
||||
string AttackinScore
|
||||
string DefenceScore
|
||||
string StealthScore
|
||||
string ManaScore
|
||||
string MoneyBank
|
||||
string MoneyWallet
|
||||
}
|
||||
|
||||
Warrior {
|
||||
int AccountNumber FK
|
||||
string CharacterCreationDate
|
||||
string CharacterExpiryDate
|
||||
string CharacterName
|
||||
string CharacterType
|
||||
string Level
|
||||
string ExperiencePoints
|
||||
string MaxHealth
|
||||
string Health
|
||||
string AttackinScore
|
||||
string DefenceScore
|
||||
string StealthScore
|
||||
string ManaScore
|
||||
string MoneyBank
|
||||
string MoneyWallet
|
||||
}
|
||||
|
||||
Score {
|
||||
int characterKey FK
|
||||
string ManaScore
|
||||
string StealthScore
|
||||
string DefenceScore
|
||||
string AttackInScore
|
||||
}
|
||||
|
||||
COMBAT {
|
||||
int AccountNumber_CharacterName FK
|
||||
string BattleDate
|
||||
string BattleNo
|
||||
string Attacker
|
||||
string Defender
|
||||
string Weapon
|
||||
string Result
|
||||
string Damage
|
||||
}
|
||||
|
||||
ITEMS {
|
||||
string Character
|
||||
string Item
|
||||
string Item_Type
|
||||
string WeaponType
|
||||
string Range
|
||||
string Price
|
||||
string Quantity
|
||||
string DefendScore
|
||||
string AttackScore
|
||||
string HealingScore
|
||||
string ManaScore
|
||||
string SingleUse
|
||||
string wearable
|
||||
string worn
|
||||
string BodyPart
|
||||
string Equipped
|
||||
}
|
||||
|
||||
ARMOUR {
|
||||
string Price
|
||||
string Quantity
|
||||
string DefendScore
|
||||
string SingleUse
|
||||
string wearable
|
||||
string worn
|
||||
string BodyPart
|
||||
string Equipped
|
||||
}
|
||||
|
||||
ARTEFACT {
|
||||
string Price
|
||||
string Quantity
|
||||
string DefendScore
|
||||
string AttackScore
|
||||
string ManaScore
|
||||
string SingleUse
|
||||
string wearable
|
||||
string Equipped
|
||||
}
|
||||
|
||||
CLOTHING {
|
||||
string Price
|
||||
string Quantity
|
||||
string DefendScore
|
||||
string ManaScore
|
||||
string SingleUse
|
||||
string wearable
|
||||
string worn
|
||||
string BodyPart
|
||||
string Equipped
|
||||
}
|
||||
|
||||
FOOD {
|
||||
string Price
|
||||
string Quantity
|
||||
string HealingScore
|
||||
string SingleUse
|
||||
string wearable
|
||||
string worn
|
||||
string Equipped
|
||||
}
|
||||
|
||||
WEAPON {
|
||||
string WeaponType
|
||||
string Range
|
||||
string Price
|
||||
string Quantity
|
||||
string DefendScore
|
||||
string AttackScore
|
||||
string HealingScore
|
||||
string SingleUse
|
||||
string wearable
|
||||
string Equipped
|
||||
}
|
||||
|
||||
BATTLE {
|
||||
string BattleDate
|
||||
string BattleNo
|
||||
}
|
||||
|
||||
COMBAT {
|
||||
string Attacker FK
|
||||
string Defender FK
|
||||
string Weapon
|
||||
string Result
|
||||
string Damage
|
||||
}
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user