You are on page 1of 10

Structural Visualization Platform

Database design
Date Version Change history Changed by
22 May 2021 1.0 Created Viet

Removed User sheet as customer don't want


to manage user at this time. We will add it
later. Change the column types so it fit
5 July 2021 3.0 MySQL DBMS. Viet
Removed Properties related tables to
increase the performance of uploading
7 July 2021 4.0 files/projects
Approved by
No. Table of content Description
1 FileContentTables Stored models in a file
2 ProjectFileTables Project related information
3 Configuration System configuration information
System
Name Type
Id BigInt
FK_ParentSystemId BigInt
BlockType VARCHAR(255)
Name VARCHAR(255)
SID VARCHAR(255)
FK_ProjectFileId BigInt (not null)
Properties MEDIUMTEXT

Line
Name Type
Id BigInt
FK_SystemId BigInt (not null)
FK_ProjectFileId BigInt (not null)
Properties MEDIUMTEXT

Branch
Name Type
Id BigInt
FK_LineId BigInt
FK_ProjectFileId BigInt (not null)
Properties MEDIUMTEXT

Port
Name Type
Id BigInt
FK_SystemId BigInt
FK_ProjectFileId BigInt (not null)
Properties MEDIUMTEXT

List
Name Type
Id BigInt
FK_SystemId BigInt
FK_ProjectFileId BigInt (not null)
Properties MEDIUMTEXT

InstanceData
Name Type
Id BigInt
FK_SystemId BigInt
FK_ProjectFileId BigInt (not null)
Properties MEDIUMTEXT
Stores systems, sub-systems, and blocks
Description
primary key
0: root, otherwise: its parent id

primary key
Stores properties of systems, sub-systems, and blocks

Stores lines in a given system


Description
primary key

primary key
Stores properties of lines

Stores branches in a line


Description
primary key

primary key
Stores properties of a branch

Stores ports inside a block


Description
primary key

primary key
Stores properties of a port

Stores lists inside a block


Description
primary key

primary key
Stores properties of lists

Stores InstanceData inside a block


Description
primary key

primary key
Stores properties of an InstanceData
Project
Name Type
Id BigInt (not null)
Name VARCHAR(255) (NOT NULL)
Path VARCHAR(4000)
Description MediumText
MatlabVersion VARCHAR(255)

ProjectFile
Name Type
Id BigInt (not null)
Name VARCHAR(255) (NOT NULL)
Path VARCHAR(4000)
FK_ProjectId BigInt (not null)
Stores SVP projects
Description
primary key, auto-increase

Store in: [Root/Projects] folder

Stores SVP files belong to a project


Description
primary key, auto-increase

path to the physical file


Configuration Stores system configuration
Name Type Description
Key VARCHAR(255)
Value MEDIUMTEXT

You might also like