Library Management System Database Design(Part1)

Thinking of LMS(Library Management System) Design___________________________________ 2

Author: Michael Tan Data:2010-05-21 Version:1.0_______________________________________________________ 2

Chapter1: Data modeling concept design_____________________________________________________ 2

Chapter2: Transaction Design_______________________________________________________________ 5

 


 

Thinking of LMS(Library Management System) Design

Author: Michael Tan Data:2010-05-21 Version:1.0

 

Chapter1: Data modeling concept design

1.      Module Level design digram;

2.      Data Scope design;

3.      Naming Rules: Database name, Table name, column name;

4.      Data Dictionary;

5.      Entity – Relation diagram;

6.      IDEFE1X

 

Notice

1.       Module Level design include monitor module.

2.       Need to design all data dependence relation according to mathimatic model before design key.

3.       Updatetimestamp is needed in every table design.

4.       Delete flag is needed in every table design and use define program to delete data.

5.       Summary table should design sysid as PK.

6.       Tranaction table should design sysid as PK when necessary.

7.       All Table design need to raise the 2nd normal form. Entity-Relation level must raise 3th normal form.

8.       Metadata should not be ambigous.

9.       Table should not be reverse.

 

Ø  Transaction design

Ø  Summary design

Ø  View Design

Ø  Monitor Design

 

 

 

Ø  Data modeling concept design.

1.      Module Level design digram

All data concept module is from inside entity to outside report,every shell will use it’s contain data but should not confuse will the inner data.

Entity-Relation cycle will contain entities and their attributes,they will have relationships but will not show if no transaction is occur.On this level, these entities is indepence.These entities contains physical entities and concept entities such as product name, recipe name.

Transaction cycle will show the tansaction of the activities of all entities. All relationships of the entities are display in this cycle.They depend on the entities and their actions.

Summary cycle is the history of all transactions.Summary will use Transaction and entity-relation data as reference.

Report face to user using Summary, Transaction, Entity-Relation data.

2.      Data Scope design;

3.       Naming Rules

Logic Naming Rules:

Entity Physical or Concept things must be a Noun.

Transaction must begin with a Verb.

Summary must follow the Transaction name and add “history” after the Transaction name.

Reports are dynamic as user request.

Physical Naming Rules:

Database name: DB_LMS;

Table name:  LMS_TB_ER_EntityName; LMS_TB_TR_TransactionName; LMS_TB_SM_SummaryName; LMS_TB_RP_ReportName; They are different level data according to the module level design.

Column name:  Must be include a Noun, separated by “_”; Noun or Adjective_Noun.

Column sufix

Meanings

example

Remark

_ID

ID must be a string unique to the entity or transaction, but they do not need to show off some meaning.

Book_ID=2010052301230031; EMP_ID=E019824; Reader_ID=R003241; Room_Id=L0210; TXN_ID=T123456789;

 

_Name

Name must have define meaning of the entity, but Name may be the same in some situation.

Book_Name=L’insoutenable legerete de l’etre

Author_Name=Milan Kundera

 

_CNT

CNT must be a integer number as count.

Borrow_CNT=101;

Fix_CNT=0;

Book_CNT=12;

 

_Num

 

 

 

 

 

 

 

 

 

4.       Data Dictionary

DataDictionary.xlsx

Vocabulary

Abbreviation

Description

Example

Related function

Identity

ID

   
     
     
     

Reader

 

All person have registed in Librarian are readers,reader have unique Reader_ID assigned by Lirarian system.

  
     

Librarian

    
     
     
     

 

5.       Entity-Relation digram

6.       IDEFE1X

 

Chapter2: Transaction Design

 

1.      Transaction type;

2.      Transaction relationship;

3.      Naming Rules: Database name, Table name, column name;

4.      Data Dictionary;

5.      Entity – Relation diagram;

6.      IDEFE1X

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值