【Software Engineering】Database Design Manual

Database Design Manual (GB8567-88)
1 Introduction
1.1 Purpose of Writing
This document describes the design of the database of the computer room charging system, provides the visibility of the database design and the information required for software support, and is used in the early stage of the development of the computer room charging system , to guide the direction of the later database design, and also to provide reference and reference for the system program design.
Intended readers are database designers, database administrators
1.2 Background
a. Name of software to be developed: computer room charging system
b. Project proposer: Professor Mi Xinjiang
Developer : Cao Xiangming
User: All staff and students of Langfang Normal University Computation center or computer network center that
realizes the software: LAN of Langfang Normal University
C. The basic mutual relationship between the software system and other institutions : Technical support is provided by the Information Technology Improvement Class of Langfang Normal University.
1.3 Definition
Registered Consume Amount Recharge
On Duty Return Card

1.4 References
[1] "Software Engineering Affairs" Liu Xuejun Li Jifang Liu Hanzhong edited by Zhejiang University Press
[2] Database Design Manual (GB8657-88)
2 External design
2.1 Identifier and status
Contact purpose, detailed description is used to uniquely identify The code, name or identifier of the database, and additional descriptive information are to be given. If the database is still experimental, still in testing, or temporarily used, describe this feature and its effective time frame.
Table Name Description Information Status
Basic Data Setting BasicData_Info Basic Data Information Temporary Use
Refund CancelCard_Info Card Refund Information Experiment
Daily Bill CheckDay_Info Daily Checkout Information Experiment
Weekly Statement CheckWeek_Info Weekly Checkout Information
Experiment Online_Info Login Information Experiment
       Recharge Recharge_Info In recharge information experiment
Student information Student_Info Student information temporarily used
User information User_Info User information temporarily used On
duty WorkLog_Info On duty information experiment

2.2 Programs that use it
List all applications that will use or access this database, and for each of these applications, give its name and version number.
Application Name Version Number
Student Information Query General User Module 1.0
Student Information Management Operator Module 1.0
System Management Administrator Module 1.0

2.3 Conventions
State the conventions for creating labels and identifications that a programmer or a system analyst needs to know in order to be able to use the database, such as conventions for identifying different versions of the database and for identifying individual volumes, records, Naming conventions for data items, etc.
1) Basic data setting (BasicData_Info)
prefix description
HalfCharge Half-hour fee
IncreaseTime Increment time
LeastTime Minimum machine time
ReadyTime Machine preparation time
LeastCash Minimum balance in
the card 2) Refund information (CancelCard_Info)
prefix description
StudentNo student number
CardNo card number
CancelCash refund Card Amount
Date Date
Time
UserID Username
Status Status
3) Daily Statement (CheckDay_Info)
Prefix Description
RemainCash Balance
RechargeCash Recharge Amount
ConsumeCash Consumption Amount
CancelCash Refund Amount
AllCash All Amount
Date Date
Time Time
4) Weekly Statement (CheckWeek_Info)
Prefix Description
RemainCash Balance
RechargeCash Recharge Amount ConsumeCash
Consumption Amount
CancelCash Card Refund Amount AllCash
All Amount
Date Date
Time Time 5) Online
Information (Online_Info)
Prefix Description
CardNo Card Number CardType
Card Type Machine Date OnTime Computer Time Computer 6) Recharge Record (Recharge_Info) Prefix Description StudentNo Student Number CardNo Card Number AddMoney Recharge Amount Date Date Time UserID Username Status Status 7) Student Information (Student_Info) Prefix Description StudentNo Student Number CardNo Card Number




















StudentName Student Name
Department Department
Sex Gender
Grade Grade
Class Class
Cash Amount
Explain Remarks
UserID Username
Status Status
IsCheck Checkout
8) User Information (User_Info)
Prefix Description
UserID Account
PWD Password
Level Level
UserName Username
9) Duty Information (WorkLog_Info)
Prefix Description
UserID Username
Level Level
LoginDate Login date
LogoutTime Login time
LogoutDate Logout date

2.4 Special guidance
Provide ready to engage in the generation, testing and maintenance of this database, such as the format and standard of the data to be sent into the database, and the operating procedures and steps to be sent into the database for generating, Instructions for modifying, updating or using these data volumes. If these instructions are lengthy, list the names and chapters of the documents available for reference.
Reference materials: Software Engineering Harbin Institute of Technology Geng Jianling Video
Database Design Specification
2.5 Support Software
Briefly introduce the support software directly related to this database, such as database management systems, storage location programs, and programs for loading, generating, modifying, and updating databases, etc. . Explain the name, version number and main functional characteristics of these software, such as the type of data model used, the allowed data capacity, etc. List the titles, numbers, and sources of these technical documents supporting the software.

Version No. Main Function
6.0 Enterprise Edition Visual Advanced Development Language
2014 Database Establishment and Management

3 Structural Design
3.1 Conceptual Structural Design
Explain the original data form of entities, attributes and relationships between them in the real world that this database will reflect, including identifiers, definitions, types of data items, records, departments, and files , unit of measure and value range to establish each user view of this database.
3.1.1 Data Entities - Relationship Diagram

3.1.2 Data Entity Description

Data Entity Name Data Table Name Data Entity Description
User User_Info User Information
Student Student_Info Student Information
Basic Data BasicData_Info Basic Data Setting
Online_Info Login Information
Recharge Recharge_Info Recharge Record
Refund CancelCard_Info Refund
Information Onwork Onwork Duty Information
Daily Checkout CheckDay Daily Checkout Information
Weekly checkout CheckWeek Weekly checkout information
3.1.3 Entity relationship description
1. General user: student information (1:N)
Relationship description: general user is responsible for querying students and computer status
2. Operator: student information (1:N)
Relationship description: An operator can register, recharge, and withdraw cards for each student.
3. Administrator: Operator (1:N)
Administrator: General user (1:N)
Relationship description: An administrator can add or delete multiple Operators and general users
4. Operator: work record (1:1)
relationship description: one operator corresponds to a work record
5. Administrator: basic data (1:1)
relationship description: the administrator is responsible for setting the system The basic data of
6. Admin: Bill (1:N)
Relationship Description: The administrator checks the bill every day and queries the bill for any period of time

3.2 Logical structure design
Describe the global logical structure of the database after decomposing and merging the above-mentioned original data, including the determined keywords and attributes, the re-determined record structure and file structure, and the relationship between the established files. Interrelationships form the database administrator's view of the database.
A total of 10 tables have been established in the computer room charging system, as follows:
1) Basic data setting (BasicData_Info)
describes the field name, data type, length,
half- hour fee, HalfCharge Char 10,
Increment time, IncreaseTime, Char 10
, minimum computer time, LeastTime, Char 10
, computer preparation time. ReadyTime Char 10
Minimum balance in the card LeastCash Char 10
Date Date Char 10
Time Time Char 10
2) Refund information (CancelCard_Info)
Description Field name Data type length
Student number StudentNo Char 10
Card number CardNo Char 10
Refund amount CancelCash numeric (18,1 )
Date Date Char 10
Time Time Char 10
Username UserID Char 10
Status Status Char 10
3) CheckDay_Info
Description Field Name Data Type Length
BalanceRemainCash numeric (18,0)
Recharge
amountRechargeCash numeric (18,0)ConsumeCash numeric (18,0)
Refund amountCancelCash numeric (18,0)
All AmountAllCash numeric (18,0)
Date Date Char
10Time Time Char 10
4) Weekly Statement (CheckWeek_Info)
Description Field Name Data Type Length
Balance RemainCash numeric (18,0)
Recharge amount RechargeCash numeric (18,0)
ConsumeCash numeric (18,0)
Refund amount CancelCash numeric (18 ,0)
All Amount AllCash numeric (18,0)
Date Date Char 10
Time Time Char 10
5) Online_Info
Description Field Name Data Type Length
Card Number CardNo Char 10
Card Type CardType Char 10
Student Number StudentNo Char 10
Student NameStudentName Char 10
Department Department Char 10
Gender Sex Char 10
Computer Date OnDate Char 10 Computer
Time OnTime Char 10
Computer Char 10
6) Recharge Record (Recharge_Info)
Description Field Name Data Type Length
Student Number StudentNo Char 10
Card Number CardNo Char 10
Recharge Amount AddMoney Numeric 10
Date Date Char (19,4)
Time Time Char 10
Username UserID Char 10
Status Status Char 10
7) Student Information (Student_Info)
Description Field Name Data Type Length
Student Number StudentNo Char 10
Card Number CardNo Char 10
Student Name StudentName Char 10
Department Department Char 10GenderSex
CharGrade 10Grade
Char
10Class Class Char
10AmountCash Numeric (10,3)
RemarksExplain Varchar 50
Username UserID Char 10
Status Status Char 10
Checkout IsCheck Char 10
Date Date Char 10
Time Time Char 10
8) User Information (User_Info)
Description Field Name Data Type Length
Account UserID Char 10
Password PWD Char 10
Level Level Char 8
Username UserName Char 10
9) Duty Information (WorkLog_Info)
Description Field Name Data Type Length
Username UserID Char 10
Level Level Char 10
Login Date LoginDate Char 10
Login Time LogoutTime Char 10
Logout Date LogoutDate Char 10
Logout Time LogoutTime Char 10
Computer Name Computer Char 10
Status Status Char 10

3.3 Physical Structure Design
Establish a system programmer's view, including:
a. Arrangement of data in memory, including design of index area and buffer area;
b. The organization of the used external memory devices and external memory space, including the organization and division of index areas and data blocks;
c. Ways to access data.

4 Application Design
4.1 Data Dictionary Design
For various items involved in database design, such as data items, records, departments, files, schemas, sub-schemas, etc., a data dictionary is generally established to describe their identifiers, synonyms, etc. name and related information. Basic considerations for the design of this data dictionary are described in this section.
1) Basic data setting (BasicData_Info)
Data item number Data item name Storage structure alias
001 Half-hour fee Char(10) HalfCharge
002 Increment time Char(10) IncreaseTime
003 Minimum computer time Char(10) LeastTime
004 Computer preparation time Char(10) ReadyTime
005 Minimum balance in the card Char(10) LeastCash
006 Set date Char(10) Date
007 Set time Char(10) Time
2) CancelCard_Info
Data item number Data item name Storage structure alias
010 Refund amount Numeric(18,1) CancelCash
3) Data item number of daily/weekly statement (CheckDay_Info)
Data item name Storage structure alias
012 All amount numeric(18,0) AllCash
4) Online_Info
data item No. Data item name Storage structure alias
013 On-board date Char(10) OnDate
014 Computer time Char(10) OnTime
015 Computer name Char(10) Computer
5) Recharge record (Recharge_Info)
data item number Data item name Storage structure alias
016 Recharge amount Numeric(10) AddMoney
6) Student information (Student_Info)
data item Number Data Item Name Storage Structure Alias
​​017 Student Number Char(10) StudentNo
018 Card Number Char(10) CardNo
019 Student Name Char(10) StudentName
020 Department Char(10) Department
021 Gender Char(10) Sex
022 Grade Char(10 ) Grade
023 Class Char(10) Class
024 Amount Numeric(10,3) Cash
025 Remarks Varchar(50) Explain
026 Username Char(10) UserID
027 Status Char(10) Status
028 Checkout Char(10) IsCheck
029 Register Date Char(10) Date
030 Registration time Char(10) Time
7) User information (User_Info)
Data Item Number Data Item Name Storage Structure Alias
​​031 Account Char(10) UserID
032 Password Char(10) PWD
033 Level Char(10) Level
034 User Name Char(10) UserName
8) Duty Information (WorkLog_Info)
Data Item Number Data Item Name Storage Structure Alias
​​035 Login Date Char(10) LoginDate
036 Login Time Char(10) LogoutTime
037 Logout Date Char(10) LogoutDate
038 Logout Time Char(10) LogoutTime

4.2 Security and Confidentiality Design
Explain in the design of the database, how to consider the security and confidentiality of the database obtained by distinguishing different visitors, different access types and different data objects.
The system mainly has three administrative user levels, each with different administrative rights. The details are as follows:
  General User Operator Administrator
Student Information Management √ √ √User
Information Management √Incomes and
Expenditure Account Management √ √System
Information Management √

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325758528&siteId=291194637