Вы находитесь на странице: 1из 6

Old Database Design

Old Table Name Fields Names Data Type


Department DEPT_CODE NUMBER(11)
DEPT_NAME VARCHAR2(100)
DEPT_NAME_ARB VARCHAR2(100)
DEPT_REF_IN VARCHAR2(20)
DEPT_REF_OUT VARCHAR2(20)
DEPT_REF_INT VARCHAR2(20)

User_Mast
USER_ID VARCHAR2(10)
PASSWORD VARCHAR2(10)
DEPT_CODE NUMBER(11)
USER_NAME VARCHAR2(100
DESIG_CODE CHAR(10)

CATEGORY_MAST
CATG_CODE NUMBER(10)
CATG_DESC VARCHAR2(100)

PROFILE_MAST
PROFILE_CODE NUMBER(10)
PROFILE_NAME VARCHAR2(100)
CATG_CODE NUMBER(10)

LABEL_MAST
LBLCODE NUMBER(18)
LBLCAPTION VARCHAR2(50)
LBLPROFILE CHAR(2)
LBLVISIBLE NUMBER(1)
LBLLIST NUMBER(1)
LBLNUMBER NUMBER(1)
LBLCATEGORY NUMBER(10)
LBLMANDATORY NUMBER(1)

MODULE_MAST
Module_Code Number(6)
Module_Name VARCHAR2(100)

PRIVILAGES_MAST
PRIVILAGE_CODE NUMBER(6)
PRIVILAGE_NAME VARCHAR2(100)
MODULE_CODE NUMBER(6)

PRIVILAGESET_MAST
PSET_CODE NUMBER(6)
PSET_NAME VARCHAR2(100)

Prvilage_Sets
New Database Design
New Table Name Field Names Data Type
DepartmentMaster DeptCode number(5)
DeptName varchar2(20)
NameInArabic nvarchar(20)

UserMaster
UserId number(4)
UserName varchar2(25)
DisplayName varchar2(25)
DeptCode Number(5)

CategoryMaster
categorycode number(5)
Categorydescription varchar2(25)

ProfileMaster
ProfileCode number(5)
ProfileName varchar2(25)
CategoryCode number(5)

FormDesignMaster
CategoryCode number(5)
ProfileCode number(5)
FieldName varchar(20)
FieldLabel varchar(20)
FieldType varchar(20)
Field DataType varchar(10)
Visibility boolean
Mandatory boolean

ModuleMaster
Modulecode number(5)
ModuleName varchar(20)

PrivilageMaster
Privilagecode
privilagename
modulecode

RoleMaster
RoleCode number(5)
RoleName varchar(25)

Role_PrivilageMaster
Listbox privilageCode number(5)
Listbox Rolecode number(5)
DomainMaster
AD Config

SmtpMaster

SlaMaster
like qmd

Ref Initial ID Confiuration


Single Field

SMSConfig
tabase Design
Constraint Reference Table
Primary Key, Check
Not Null, Unique

Primary Key
Not Null

Foreign Key Department Cascade Update

Primary Key
Unique

Primary Key

Foreign Key CategoryMaster

Foreign Key
Foreign Key

Ex: List, Text, Checkbox


Numeric, String, Date

Primary Key

Primary Key
Unique
Foreign Key

Primary Key

Foreign Key
Foreign Key

Оценить