0% found this document useful (0 votes)
25 views13 pages

Info Management

The document describes a database project for a company management system with tables for companies, departments, employees, equipment, projects, and services. Data is inserted into the tables to demonstrate the relationships between the entities.

Uploaded by

Mark Cruz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views13 pages

Info Management

The document describes a database project for a company management system with tables for companies, departments, employees, equipment, projects, and services. Data is inserted into the tables to demonstrate the relationships between the entities.

Uploaded by

Mark Cruz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Republic of the Philippines

WESTERN MINDANAO STATE UNIVERSITY


Normal Rd, Baliwasan, Zamboanga City

GROUP PROJECT
IN INFORMATION MANAGEMENT

SUBMITTED BY:
ARAJANI, ALGHABID D.
PANTALEON, JOHN CHHRIS M.
CRUZ,DANNADANE
RODRIGO, JOHN DINO F.
BARA, ABDULWAKIL M.
RADAO, RENEL JOY
CONCEPTUAL MODEL

LOGICAL MODEL
PHYSICAL MODEL

jcp_strOnly.sql
/*
SQLyog Ultimate v11.11 (64 bit)
MySQL - 5.5.5-10.4.27-MariaDB : Database - jcp
*********************************************************************
*/

/*!40101 SET NAMES utf8 */;

/*!40101 SET SQL_MODE=''*/;

/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;


/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS,
FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO'
*/;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*Table structure for table `company` */

CREATE TABLE `company` (


`company_id` int(11) NOT NULL AUTO_INCREMENT,
`company_name` varchar(255) NOT NULL,
`company_address` varchar(255) NOT NULL,
`company_contact_person` varchar(255) NOT NULL,
`company_contact_number` varchar(255) NOT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`company_id`),
UNIQUE KEY `company_name` (`company_name`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;

/*Table structure for table `department` */

CREATE TABLE `department` (


`department_id` int(11) NOT NULL AUTO_INCREMENT,
`department_name` varchar(255) NOT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`department_id`),
UNIQUE KEY `department_name` (`department_name`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;

/*Table structure for table `employees` */

CREATE TABLE `employees` (


`employee_id` int(11) NOT NULL AUTO_INCREMENT,
`first_name` varchar(255) NOT NULL,
`last_name` varchar(255) NOT NULL,
`company` int(11) NOT NULL,
`email` varchar(255) NOT NULL,
`gender` varchar(255) NOT NULL,
`department` int(11) NOT NULL,
`address` varchar(255) NOT NULL,
`contact_number` varchar(25) NOT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`employee_id`),
KEY `department` (`department`),
KEY `company` (`company`),
CONSTRAINT `employees_ibfk_1` FOREIGN KEY (`department`) REFERENCES
`department` (`department_id`),
CONSTRAINT `employees_ibfk_2` FOREIGN KEY (`company`) REFERENCES
`company` (`company_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;

/*Table structure for table `equipments` */

CREATE TABLE `equipments` (


`equipment_id` int(11) NOT NULL AUTO_INCREMENT,
`equipment_name` varchar(255) NOT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`equipment_id`),
UNIQUE KEY `equipment_id` (`equipment_name`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;

/*Table structure for table `projects` */


CREATE TABLE `projects` (
`project_id` int(11) NOT NULL AUTO_INCREMENT,
`project_name` varchar(255) NOT NULL,
`project_description` varchar(255) NOT NULL,
`company` int(11) NOT NULL,
`personnel` int(11) NOT NULL,
`equipment` int(11) NOT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`project_id`),
KEY `company` (`company`),
KEY `personnel` (`personnel`),
KEY `equipment` (`equipment`),
CONSTRAINT `projects_ibfk_1` FOREIGN KEY (`company`) REFERENCES
`company` (`company_id`),
CONSTRAINT `projects_ibfk_2` FOREIGN KEY (`personnel`) REFERENCES
`employees` (`employee_id`),
CONSTRAINT `projects_ibfk_3` FOREIGN KEY (`equipment`) REFERENCES
`equipments` (`equipment_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;

/*Table structure for table `services` */

CREATE TABLE `services` (


`service_id` int(11) NOT NULL AUTO_INCREMENT,
`service_name` varchar(255) NOT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`service_id`),
UNIQUE KEY `service_name` (`service_name`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;


/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

jcp_strNdata.sql
/*
SQLyog Ultimate v11.11 (64 bit)
MySQL - 5.5.5-10.4.27-MariaDB : Database - jcp
*********************************************************************
*/

/*!40101 SET NAMES utf8 */;

/*!40101 SET SQL_MODE=''*/;

/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;


/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS,
FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO'
*/;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*Table structure for table `company` */

CREATE TABLE `company` (


`company_id` int(11) NOT NULL AUTO_INCREMENT,
`company_name` varchar(255) NOT NULL,
`company_address` varchar(255) NOT NULL,
`company_contact_person` varchar(255) NOT NULL,
`company_contact_number` varchar(255) NOT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`company_id`),
UNIQUE KEY `company_name` (`company_name`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;

/*Data for the table `company` */

insert into
`company`(`company_id`,`company_name`,`company_address`,`company_contact_p
erson`,`company_contact_number`,`date_created`) values (1,'J.CO','Gov.
Camins, KCC Mall de Zamboanga','Jollibee','0987790','2023-05-07
16:37:56');
insert into
`company`(`company_id`,`company_name`,`company_address`,`company_contact_p
erson`,`company_contact_number`,`date_created`) values (2,'Liwayway
MArketing Corp.','Anabu I, City of Imus, Province of Cavite','Oishi
Fisda','09556','2023-05-07 17:18:17');

/*Table structure for table `department` */

CREATE TABLE `department` (


`department_id` int(11) NOT NULL AUTO_INCREMENT,
`department_name` varchar(255) NOT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`department_id`),
UNIQUE KEY `department_name` (`department_name`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;

/*Data for the table `department` */

insert into
`department`(`department_id`,`department_name`,`date_created`) values
(5,'Admin Department','2023-05-07 10:36:13');
insert into
`department`(`department_id`,`department_name`,`date_created`) values
(6,'Finance Department','2023-05-07 10:36:33');

/*Table structure for table `employees` */

CREATE TABLE `employees` (


`employee_id` int(11) NOT NULL AUTO_INCREMENT,
`first_name` varchar(255) NOT NULL,
`last_name` varchar(255) NOT NULL,
`company` int(11) NOT NULL,
`email` varchar(255) NOT NULL,
`gender` varchar(255) NOT NULL,
`department` int(11) NOT NULL,
`address` varchar(255) NOT NULL,
`contact_number` varchar(25) NOT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`employee_id`),
KEY `department` (`department`),
KEY `company` (`company`),
CONSTRAINT `employees_ibfk_1` FOREIGN KEY (`department`) REFERENCES
`department` (`department_id`),
CONSTRAINT `employees_ibfk_2` FOREIGN KEY (`company`) REFERENCES
`company` (`company_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;

/*Data for the table `employees` */

insert into
`employees`(`employee_id`,`first_name`,`last_name`,`company`,`email`,`gend
er`,`department`,`address`,`contact_number`,`date_created`) values
(7,'Angry','Bird',1,'[email protected]','male',6,'12345656','123','2023-05-
07 10:52:14');

/*Table structure for table `equipments` */

CREATE TABLE `equipments` (


`equipment_id` int(11) NOT NULL AUTO_INCREMENT,
`equipment_name` varchar(255) NOT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`equipment_id`),
UNIQUE KEY `equipment_id` (`equipment_name`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;

/*Data for the table `equipments` */

insert into `equipments`(`equipment_id`,`equipment_name`,`date_created`)


values (6,'Equipment 1','2023-05-07 12:45:22');
insert into `equipments`(`equipment_id`,`equipment_name`,`date_created`)
values (9,'Equipment 2','2023-05-07 12:48:10');

/*Table structure for table `projects` */

CREATE TABLE `projects` (


`project_id` int(11) NOT NULL AUTO_INCREMENT,
`project_name` varchar(255) NOT NULL,
`project_description` varchar(255) NOT NULL,
`company` int(11) NOT NULL,
`personnel` int(11) NOT NULL,
`equipment` int(11) NOT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`project_id`),
KEY `company` (`company`),
KEY `personnel` (`personnel`),
KEY `equipment` (`equipment`),
CONSTRAINT `projects_ibfk_1` FOREIGN KEY (`company`) REFERENCES
`company` (`company_id`),
CONSTRAINT `projects_ibfk_2` FOREIGN KEY (`personnel`) REFERENCES
`employees` (`employee_id`),
CONSTRAINT `projects_ibfk_3` FOREIGN KEY (`equipment`) REFERENCES
`equipments` (`equipment_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;

/*Data for the table `projects` */

insert into
`projects`(`project_id`,`project_name`,`project_description`,`company`,`pe
rsonnel`,`equipment`,`date_created`) values (2,'Sample Project 1','Ambot
sa kanding nga naay bangs',2,7,9,'2023-05-07 20:30:08');

/*Table structure for table `services` */

CREATE TABLE `services` (


`service_id` int(11) NOT NULL AUTO_INCREMENT,
`service_name` varchar(255) NOT NULL,
`date_created` datetime NOT NULL,
PRIMARY KEY (`service_id`),
UNIQUE KEY `service_name` (`service_name`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_general_ci;

/*Data for the table `services` */

insert into `services`(`service_id`,`service_name`,`date_created`) values


(1,'Service 1','2023-05-07 17:56:39');
insert into `services`(`service_id`,`service_name`,`date_created`) values
(2,'Service 2','2023-05-07 17:56:42');
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

jcp_dataOnly.sql
/*
SQLyog Ultimate v11.11 (64 bit)
MySQL - 5.5.5-10.4.27-MariaDB : Database - jcp
*********************************************************************
*/

/*!40101 SET NAMES utf8 */;

/*!40101 SET SQL_MODE=''*/;

/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;


/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS,
FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO'
*/;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*Data for the table `company` */

insert into
`company`(`company_id`,`company_name`,`company_address`,`company_contact_p
erson`,`company_contact_number`,`date_created`) values (1,'J.CO','Gov.
Camins, KCC Mall de Zamboanga','Jollibee','0987790','2023-05-07
16:37:56');
insert into
`company`(`company_id`,`company_name`,`company_address`,`company_contact_p
erson`,`company_contact_number`,`date_created`) values (2,'Liwayway
MArketing Corp.','Anabu I, City of Imus, Province of Cavite','Oishi
Fisda','09556','2023-05-07 17:18:17');

/*Data for the table `department` */


insert into
`department`(`department_id`,`department_name`,`date_created`) values
(5,'Admin Department','2023-05-07 10:36:13');
insert into
`department`(`department_id`,`department_name`,`date_created`) values
(6,'Finance Department','2023-05-07 10:36:33');

/*Data for the table `employees` */

insert into
`employees`(`employee_id`,`first_name`,`last_name`,`company`,`email`,`gend
er`,`department`,`address`,`contact_number`,`date_created`) values
(7,'Angry','Bird',1,'[email protected]','male',6,'12345656','123','2023-05-
07 10:52:14');

/*Data for the table `equipments` */

insert into `equipments`(`equipment_id`,`equipment_name`,`date_created`)


values (6,'Equipment 1','2023-05-07 12:45:22');
insert into `equipments`(`equipment_id`,`equipment_name`,`date_created`)
values (9,'Equipment 2','2023-05-07 12:48:10');

/*Data for the table `projects` */

insert into
`projects`(`project_id`,`project_name`,`project_description`,`company`,`pe
rsonnel`,`equipment`,`date_created`) values (2,'Sample Project 1','Ambot
sa kanding nga naay bangs',2,7,9,'2023-05-07 20:30:08');

/*Data for the table `services` */

insert into `services`(`service_id`,`service_name`,`date_created`) values


(1,'Service 1','2023-05-07 17:56:39');
insert into `services`(`service_id`,`service_name`,`date_created`) values
(2,'Service 2','2023-05-07 17:56:42');

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;


/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

You might also like