Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NirashaMadubhashini committed Jan 6, 2022
0 parents commit a8bd324
Show file tree
Hide file tree
Showing 289 changed files with 12,330 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/jfoenix_8_0_8.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions .idea/libraries/lib.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/mysql_connector_java_8_0_25.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions InventoryManagementSystem.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="jfoenix-8.0.8" level="project" />
<orderEntry type="library" name="mysql-connector-java-8.0.25" level="project" />
<orderEntry type="library" name="lib" level="project" />
</component>
</module>
Binary file added lib/bcprov-jdk15on-1.64.jar
Binary file not shown.
Binary file added lib/castor-core-1.4.1.jar
Binary file not shown.
Binary file added lib/castor-xml-1.4.1.jar
Binary file not shown.
Binary file added lib/commons-beanutils-1.9.4.jar
Binary file not shown.
Binary file added lib/commons-collections-3.2.2.jar
Binary file not shown.
Binary file added lib/commons-collections4-4.2.jar
Binary file not shown.
Binary file added lib/commons-digester-2.1.jar
Binary file not shown.
Binary file added lib/commons-lang3-3.4.jar
Binary file not shown.
Binary file added lib/commons-logging-1.1.1.jar
Binary file not shown.
Binary file added lib/ecj-3.21.0.jar
Binary file not shown.
Binary file added lib/itext-2.1.7.js8.jar
Binary file not shown.
Binary file added lib/jackson-annotations-2.12.2.jar
Binary file not shown.
Binary file added lib/jackson-core-2.12.2.jar
Binary file not shown.
Binary file added lib/jackson-databind-2.12.2.jar
Binary file not shown.
Binary file added lib/jasperreports-6.17.0.jar
Binary file not shown.
Binary file added lib/javax.inject-1.jar
Binary file not shown.
Binary file added lib/jcommon-1.0.23.jar
Binary file not shown.
Binary file added lib/jfoenix-8.0.8.jar
Binary file not shown.
Binary file added lib/jfreechart-1.0.19.jar
Binary file not shown.
Binary file added lib/mysql-connector-java-8.0.25.jar
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
137 changes: 137 additions & 0 deletions out/production/InventoryManagementSystem/script.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
DROP DATABASE IF EXISTS InventoryManagementSystem;
CREATE DATABASE IF NOT EXISTS InventoryManagementSystem;
SHOW DATABASES ;
USE InventoryManagementSystem;



DROP TABLE IF EXISTS Category;
CREATE TABLE IF NOT EXISTS Category(
categoryId INT(10) NOT NULL AUTO_INCREMENT,
categoryName VARCHAR(45) NOT NULL DEFAULT 'Unknown',
description VARCHAR(15),
date DATE,
time VARCHAR(15),
CONSTRAINT PRIMARY KEY (categoryId)
);
SHOW TABLES ;
DESCRIBE Category;



DROP TABLE IF EXISTS Brand;
CREATE TABLE IF NOT EXISTS Brand(
brandId INT(10) NOT NULL AUTO_INCREMENT,
brandCategoryId INT,
brandName VARCHAR(45) NOT NULL DEFAULT 'Unknown',
date DATE,
time VARCHAR(15),
CONSTRAINT PRIMARY KEY (brandId),
CONSTRAINT FOREIGN KEY (brandCategoryId ) REFERENCES Category(categoryId) ON DELETE CASCADE ON UPDATE CASCADE
);
SHOW TABLES ;
DESCRIBE Brand;



DROP TABLE IF EXISTS Product;
CREATE TABLE IF NOT EXISTS Product(
productId INT(10) NOT NULL AUTO_INCREMENT,
serialNumber VARCHAR(15),
brandId INT,
productName VARCHAR(45) NOT NULL DEFAULT 'Unknown',
qty INT,
price DOUBLE,
date DATE,
time VARCHAR(15),
CONSTRAINT PRIMARY KEY (productId),
CONSTRAINT FOREIGN KEY (brandId) REFERENCES Brand(brandId) ON DELETE CASCADE ON UPDATE CASCADE
);
SHOW TABLES ;
DESCRIBE Product;



DROP TABLE IF EXISTS ;
CREATE TABLE IF NOT EXISTS Supplier(
supplierNIC VARCHAR(15),
supplierName VARCHAR(45) NOT NULL DEFAULT 'Unknown',
email VARCHAR(15),
description VARCHAR(15),
CONSTRAINT PRIMARY KEY (supplierNIC)
);
SHOW TABLES ;
DESCRIBE Supplier;



DROP TABLE IF EXISTS Customer;
CREATE TABLE IF NOT EXISTS Customer(
customerNIC VARCHAR(15),
name VARCHAR(45) NOT NULL DEFAULT 'Unknown',
mobileNumber VARCHAR(15),
CONSTRAINT PRIMARY KEY (customerNIC)
);
SHOW TABLES ;
DESCRIBE Customer;



CREATE TABLE IF NOT EXISTS CustomerOrder(
customerOrderId VARCHAR(15),
customerNIC VARCHAR(15),
date DATE,
time VARCHAR(15),
CONSTRAINT PRIMARY KEY (customerOrderId),
CONSTRAINT FOREIGN KEY (customerNIC) REFERENCES Customer(customerNIC) ON DELETE CASCADE ON UPDATE CASCADE
);
SHOW TABLES ;
DESCRIBE CustomerOrder;



DROP TABLE IF EXISTS CustomerOrderDetail;
CREATE TABLE IF NOT EXISTS CustomerOrderDetail(
customerOrderId VARCHAR(15),
productId INT,
unitPrice DOUBLE,
qtyOnHand INT,
total DOUBLE,
date DATE,
time VARCHAR(15),
CONSTRAINT PRIMARY KEY (customerOrderId,productId)
);
SHOW TABLES ;
DESCRIBE CustomerOrderDetail;



DROP TABLE IF EXISTS SupplierOrder;
CREATE TABLE IF NOT EXISTS SupplierOrder(
orderId VARCHAR(15),
supplierNIC VARCHAR(15),
orderDate DATE,
orderTime VARCHAR(15),
CONSTRAINT PRIMARY KEY (orderId),
CONSTRAINT FOREIGN KEY (supplierNIC) REFERENCES Supplier(supplierNIC) ON DELETE CASCADE ON UPDATE CASCADE
);
SHOW TABLES ;
DESCRIBE SupplierOrder;



DROP TABLE IF EXISTS SupplierOrderDetail;
CREATE TABLE IF NOT EXISTS SupplierOrderDetail(
orderId VARCHAR(15),
productId INT,
unitPrice DOUBLE,
total DOUBLE,
qty INT,
date DATE,
time VARCHAR(15),
CONSTRAINT PRIMARY KEY (orderId, productId)
);
SHOW TABLES ;
DESCRIBE SupplierOrderDetail;


Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit a8bd324

Please sign in to comment.