1. Trang chủ
  2. » Công Nghệ Thông Tin

Tài liệu thiết kế cơ sở dữ liệu

10 239 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 10
Dung lượng 157,58 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

1. Định nghĩa: là một tập hợp thông tin có cấu trúc. Tuy nhiên, thuật ngữ này thường dùng trong công nghệ thông tin và nó thường được hiểu rõ hơn dưới dạng một tập hợp liên kết các dữ liệu, thường đủ lớn để lưu trên một thiết bị lưu trữ như đĩa hay băng. Dữ liệu này được duy trì dưới dạng một tập hợp các tập tin trong hệ điều hành hay được lưu trữ trong các hệ quản trị cơ sở dữ liệu. 2. Ưu điểm: Giảm sự trùng lặp thông tin xuống mức thấp nhất. Do đó đảm bảo thông tin có tính nhất quán và toàn vẹn dữ liệu. Đảm bảo dữ liệu có thể được truy xuất theo nhiều cách khác nhau. Nhiều người có thể sử dụng một cơ sở dữ liệu. 3. Nhược điểm: Tính chủ quyền của dữ liệu: Thể hiện ở phương diện an toàn dữ liệu. Khả năng biểu diễn mỗi liên hệ ngữ nghĩa của dữ liệu và tính chính xác của dữ liệu. Người khai thác cơ sở dữ liệu phải cập nhật cho CSDL những thông tin mới nhất. Tính bảo mật và quyền khai thác thông tin của người sử dụng: Do ưu điểm CSDL có thể cho nhiều người khai thác đồng thời. nên cần phải có một cơ chế bảo mật phân quyền khai thác CSDL. Các hệ điều hành nhiều người sử dụng hay cục bộ đều cung cấp cơ chế này. Tranh chấp dữ liệu: Khi nhiều người cùng truy nhập CSDL với các mục đích khác nhau. Rất có thể sẽ xảy ra hiện tượng tranh chấp dữ liệu. Cần có cơ chế ưu tiên khi truy cập CSDL. Ví dụ: admin luôn có thể truy cập cơ sở dữ liệu. Cấp quyền ưu tiên cho từng người khai thác. Cần đảm bảo an toàn dữ liệu khi có sự cố: Khi CSDL nhiều và được quản lý tập trung. Khả năng rủi ro mất dữ liệu rất cao. Các nguyên nhân chính là mất điện đột ngột hoặc hỏng thiết bị lưu trữ. Hiện tại có một số hệ điều hành đã có cơ chế tự động sao lưu ổ cứng và fix lỗi khi có sự cố xảy ra. Tuy nhiên: cẩn tắc vô áy náy. Chúng ta nên sao lưu dự phòng cho dữ liệu đề phòng trường hợp xấu xảy ra.

Trang 1

PROJECT PAYROLL AND HUMAN

RESOURCE

Database Design Document

Le Quang Phuc

Le Nguyen Tien

Trang 2

Revision document history

on

<08/03/2018> <1.0> Database Design Document

Integration Human Resources & Payroll System

Le Quang Phuc

Trang 3

Table of contents

I INTRODUCTION 4

1 Purpose 4

2 Scope 4

3 Intended Audience 4

II DATABASE 4

1 Payroll 4

1.1 Database Schema 4

1.2 Table Structer 5

1.2.1 pay_rates table 5

1.2.2 employee table 5

1.2.3 users table 6

2 Human Resource 7

2.1 Database Schema 7

2.2 Table Structer 7

2.2.1 Emergency_Contacts 7

2.2.2 Personal 8

2.2.3 Job_History 9

2.2.4 Employment 10

Trang 4

1 Purpose

This document describes the design of integrated developing integrated Human Resources and Payroll System, it is used to develop this system Based on this document, team should development Payroll system and Human resource to application which accesses to the efficient database with sufficient data structure

2 Scope

This document describes the Database Schema and Table Structure.No will help

programmers can rely on it to write the code that performs system development purposes

It doesn’t describe in detail the trigger or store procedure developed within this schema

3 Intended Audience

This document is used by Project Manager (PM), Tester, Developer and Coder

Project Manager

(PM),

Follow up and update the DB development progress and Check the document

Tester inspection, review, and correct mistakes

Developer Develop DB schema

Coder based on the tables and write code

II DATABASE

1 Payroll

1.1 Database Schema

Trang 5

1.2 Table Structer

1.2.1 pay_rates table

Field name Description Field Type Allow Nulls Key

idPay_Rates Id of pay rates Int Primate key Pay_Rate_name Name of pay rate Varchar(40)

Value Value of pay rate Decimal(10,0)

Tax_Percentage Tax percentage Decimal(10,0)

Pay_Type Type pay Int

Pay_Amount Amount pay Decimal(10,0)

PT_Level_C Level pay Decimal(10,0)

Trang 6

idEmployee ID of Employee

which is unique for each person

in the system

Int(11)

Last_name The last name

of the person who is dentified

in the system

Varchar(45)

First_name The first name

of the person who is dentified

in the system

Varchar(45)

SSN Social security

number of personal

Decimal(10,0)

Pay_rate Name of pay

rate Varchar(40) Payrates_id ID of the pay

rate Int(11) Vacation_Days Vaction days of

employee Int(11) Paid_to_date Salary current Decimal(2,0)

Paid_last_year Salary last year Decimal(2,0)

1.2.3 users table

Field name Description Field Type Allow Nulls Key

User_ID User’s account Int(10) Primate key

User_Name The last name of

user who is identified in the system

Varchar(25)

Password The passwords of

user TEXT

Trang 7

Email The email of user Varchar(25)

Active TINYINT(1)

2 Human Resource

2.1 Database Schema

2.2 Table Structer

2.2.1 Emergency_Contacts

Field name Description Field Type Allow Nulls Key

Employee_ID ID of Employee

which is unique for

Int Primate

key

Trang 8

Phone_Number Phone of the

emergency contracts

int

2.2.2 Personal

Field name Description Field Type Allow Nulls Key

Employee_ID ID of Employee

which is unique for each person in the system

Int Primate

key

First_Name The first name

of the person who is

identified in the system

Varchar()

Last_Name The last name

of the person who is

identified in the system

Varchar()

Middle_Intitial

Address1 personal’s

address 1

Varchar()

Address2 personal’s

address 2 Varchar() City personal’s city Varchar()

State personal’s

state Varchar() Zip personal’s zip Varchar()

Email personal’s Varchar()

Trang 9

Phone_number personal’s

phone number Social_Security_Number Social Security

number of personal Drivers_License

Marital_Status

Gender Gender of

personal Shareholder_Status

Benefits_Plans Benefit plan of

each person

2.2.3 Job_History

Nulls Key

Id ID of the job

history numeric(18, 0) Primary key Employee_ID Employee’s ID numeric(18,

0) Foreign key Department Department Nvarchar (50)

Division Floor of the

Department Nvarchar (50) Start_Date The date when

employee starts job

Date time

End_Date The date when

employee ends Date time

Trang 10

0) Job_Category Catalogory of

job Nvarchar (50) Location Location of the

history job Nvarchar (50) Department_Code Code number

of department Numeric (18, 0) Salary_Type Type of Salary numeric(18,

0) Pay_Period Nvarchar (50)

Hours_per_Week numeric(18,

0) Hazardous_Training bit

2.2.4 Employment

Nulls Key

Employee_ID ID of the

employment numeric(18, 0) Primary key Employment_Status Status of the

Employment Nvarchar (50) Hire_Date Hire date of

the Employment

Date time

Workers_Comp_Code Code number

of workers components

Nvarchar (50)

Termination_Date Termination

date of the Employment

Date time

Rehire_Date Rehire date of

the employment

Date time

Last_Review_Date Date time

Ngày đăng: 15/03/2018, 22:21

TỪ KHÓA LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm

w