update,
This commit is contained in:
26
hk1234566/SQL/Assessment1/ER/dot2.bat
Normal file
26
hk1234566/SQL/Assessment1/ER/dot2.bat
Normal file
@@ -0,0 +1,26 @@
|
||||
@echo off
|
||||
|
||||
setlocal
|
||||
|
||||
if [%2] equ [] (
|
||||
echo dot2 ext dotfile
|
||||
exit /b
|
||||
)
|
||||
|
||||
set extension=%1
|
||||
set dotFile=%2
|
||||
set dotFile_=%~n2%
|
||||
|
||||
if not exist %dotFile% (
|
||||
echo %dotFile% does not exist
|
||||
exit /b
|
||||
)
|
||||
|
||||
dot -T%extension% -o%dotFile_%.%extension% %dotFile%
|
||||
|
||||
if %errorlevel% neq 0 (
|
||||
echo ErrorLevel: %errorlevel%
|
||||
exit /b
|
||||
)
|
||||
|
||||
@REM start %dotFile_%.%extension%
|
63
hk1234566/SQL/Assessment1/ER/helloworld copy.dot
Normal file
63
hk1234566/SQL/Assessment1/ER/helloworld copy.dot
Normal file
@@ -0,0 +1,63 @@
|
||||
graph ER {
|
||||
size="15,15"
|
||||
fontname="Helvetica,Arial,sans-serif"
|
||||
node [fontname="Helvetica,Arial,sans-serif", fontsize=10;]
|
||||
edge [fontname="Helvetica,Arial,sans-serif"]
|
||||
layout=neato
|
||||
|
||||
node [shape=triangle,color=red]; "ISA";
|
||||
node [shape=box, color=black]; course; institute; student; Customers;
|
||||
|
||||
node [shape=box, color=black]; Customers;
|
||||
node [shape=ellipse]; AccountNumber; EMailAddress; Name; Forename; Surname;
|
||||
node [shape=ellipse]; {node [label="Name"] name0; name1; name2;}
|
||||
|
||||
Customers -- AccountNumber [len=2.0];
|
||||
Customers -- EMailAddress [len=1.0];
|
||||
Customers -- name0 [len=1.0];
|
||||
Name -- Forename [len=1.5];
|
||||
Name -- Surname [len=1.0];
|
||||
|
||||
node [shape=box,color=black, peripheries=2]; "Characters";
|
||||
node [shape=ellipse, peripheries=1]; AccountNumber; Forename; surname; EMailAddress; CharacterCreationDate; CharacterExpiryDate; CharacterName; CharacterType; Level; ExperiencePoints; MaxHealth; Health; AttackinScore; DefenceScore; StealthScore; ManaScore; Moneybank; Moneywallet;
|
||||
Characters -- Level [len=2.0];
|
||||
Characters -- Type [len=2.0];
|
||||
Characters -- Name [len=2.0];
|
||||
Characters -- MaxHealth [len=2.0];
|
||||
Characters -- StealthScore [len=2.0];
|
||||
Characters -- ExperiencePoints [len=2.0];
|
||||
Characters -- DefenceScore [len=2.0];
|
||||
Characters -- MoneyBank [len=2.0];
|
||||
Characters -- AttackInScore [len=2.0];
|
||||
Characters -- MoneyWallet [len=2.0];
|
||||
Characters -- Health [len=2.0];
|
||||
Characters -- ManaScore [len=2.0];
|
||||
Characters -- Date [len=2.0];
|
||||
Date -- Creation [len=2.0];
|
||||
Date -- Expiry [len=2.0];
|
||||
Date -- BillDuration [len=2.0];
|
||||
|
||||
|
||||
node [shape=ellipse]; {node [label="name"] name0; name1; name2;} code; grade; number;
|
||||
node [shape=diamond,color=black, peripheries=2]; "C-I"; "S-C"; "S-I";
|
||||
node [shape=box,color=black, peripheries=2]; "RECT2";
|
||||
node [shape=ellipse,color=black, peripheries=2]; "ellipse2";
|
||||
|
||||
RECT2 -- ellipse2 [label="n",len=3.00, color="black:white:black"];
|
||||
|
||||
name0 -- course;
|
||||
code -- course;
|
||||
course -- "C-I" [label="n",len=1.00];
|
||||
"C-I" -- institute [label="1",len=1.00];
|
||||
institute -- name1;
|
||||
institute -- "S-I" [label="1",len=1.00];
|
||||
"S-I" -- student [label="n",len=1.00];
|
||||
student -- grade;
|
||||
student -- name2;
|
||||
student -- number;
|
||||
student -- "S-C" [label="m",len=1.00];
|
||||
"S-C" -- course [label="n",len=1.00];
|
||||
|
||||
label = "\n\nEntity Relation Diagram\ndrawn by NEATO";
|
||||
fontsize=10;
|
||||
}
|
27
hk1234566/SQL/Assessment1/ER/helloworld.dot
Normal file
27
hk1234566/SQL/Assessment1/ER/helloworld.dot
Normal file
@@ -0,0 +1,27 @@
|
||||
graph ER {
|
||||
|
||||
fontname="Helvetica,Arial,sans-serif"
|
||||
node [fontname="Helvetica,Arial,sans-serif", fontsize=10]
|
||||
edge [fontname="Helvetica,Arial,sans-serif"]
|
||||
layout=neato
|
||||
node [shape=box]; course; institute; student;
|
||||
node [shape=ellipse]; {node [label="name"] name0; name1; name2;}
|
||||
code; grade; number;
|
||||
node [shape=diamond,style=filled,color=lightgrey]; "C-I"; "S-C"; "S-I";
|
||||
|
||||
name0 -- course;
|
||||
code -- course;
|
||||
course -- "C-I" [label="n",len=1.00];
|
||||
"C-I" -- institute [label="1",len=1.00];
|
||||
institute -- name1;
|
||||
institute -- "S-I" [label="1",len=1.00];
|
||||
"S-I" -- student [label="n",len=1.00];
|
||||
student -- grade;
|
||||
student -- name2;
|
||||
student -- number;
|
||||
student -- "S-C" [label="m",len=1.00];
|
||||
"S-C" -- course [label="n",len=1.00];
|
||||
|
||||
label = "\n\nEntity Relation Diagram\ndrawn by NEATO";
|
||||
fontsize=20;
|
||||
}
|
BIN
hk1234566/SQL/Assessment1/ER/helloworld.png
(Stored with Git LFS)
Normal file
BIN
hk1234566/SQL/Assessment1/ER/helloworld.png
(Stored with Git LFS)
Normal file
Binary file not shown.
12
hk1234566/SQL/Assessment1/ER/index.html
Normal file
12
hk1234566/SQL/Assessment1/ER/index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<img src="helloworld.png" />
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user