Skip to content

Commit

Permalink
Added SQL scripts with made up data so that we can all have the same …
Browse files Browse the repository at this point in the history
…data on our databases when testing
  • Loading branch information
niconunez committed Apr 30, 2015
1 parent fc7cb91 commit 4f16931
Show file tree
Hide file tree
Showing 29 changed files with 134 additions and 40 deletions.
Binary file modified .data/desktop/00000000/00000010.jdb
Binary file not shown.
Binary file modified desktop/classes/.data/desktop.cdi
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee$1.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee$2.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee$3.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee$4.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee$5.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee$6.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee$7.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Employee.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$1.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$2.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$3.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$4.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$5.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$6.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$7.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$8.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile$9.class
Binary file not shown.
Binary file modified desktop/classes/desktop/ManagerProfile.class
Binary file not shown.
Binary file modified desktop/classes/desktop/Table.class
Binary file not shown.
58 changes: 43 additions & 15 deletions desktop/src/desktop/Employee.form
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
<Property name="iconImage" type="java.awt.Image" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
<Connection code="img.getImage()" type="code"/>
</Property>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
<Connection code="new Dimension(xSize, ySize)" type="code"/>
</Property>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
Expand All @@ -36,7 +33,7 @@
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="20" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jScrollPane2" pref="489" max="32767" attributes="0"/>
<Component id="jScrollPane2" pref="483" max="32767" attributes="0"/>
<Component id="ModifyLabel" max="32767" attributes="0"/>
<Group type="102" alignment="1" attributes="0">
<Group type="103" groupAlignment="0" max="-2" attributes="0">
Expand All @@ -50,16 +47,14 @@
</Group>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Component id="LabelContainingPicture" pref="6" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<EmptySpace type="unrelated" min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="PicturePanel" max="32767" attributes="0"/>
<Group type="102" attributes="0">
<Component id="PictureLabel" min="-2" pref="291" max="-2" attributes="0"/>
<EmptySpace min="0" pref="32" max="32767" attributes="0"/>
<EmptySpace min="0" pref="50" max="32767" attributes="0"/>
</Group>
</Group>
<EmptySpace min="-2" pref="23" max="-2" attributes="0"/>
Expand All @@ -70,7 +65,7 @@
<EmptySpace min="-2" pref="85" max="-2" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="55" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="67" max="-2" attributes="0"/>
<Component id="RestaurantLogoLabel" min="-2" pref="317" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
</Group>
Expand All @@ -88,8 +83,7 @@
</Group>
<EmptySpace min="-2" pref="7" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="LabelContainingPicture" max="32767" attributes="0"/>
<Component id="jScrollPane2" pref="350" max="32767" attributes="0"/>
<Component id="jScrollPane2" pref="368" max="32767" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<Component id="InformationLabel" min="-2" pref="38" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
Expand Down Expand Up @@ -132,15 +126,51 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="27" max="-2" attributes="0"/>
<Component id="jPanel1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
<Group type="102" alignment="0" attributes="0">
<Component id="jPanel1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel1">

<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="LabelContainingPicture" min="-2" pref="254" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="LabelContainingPicture" min="-2" pref="308" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JLabel" name="LabelContainingPicture">
</Component>
</SubComponents>
</Container>
</SubComponents>
</Container>
<Component class="javax.swing.JLabel" name="PictureLabel">
<Properties>
Expand Down Expand Up @@ -309,8 +339,6 @@
</Component>
<Component class="javax.swing.JLabel" name="RestaurantLogoLabel">
</Component>
<Component class="javax.swing.JLabel" name="LabelContainingPicture">
</Component>
<Container class="javax.swing.JScrollPane" name="jScrollPane1">
<AuxValues>
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
Expand Down
44 changes: 32 additions & 12 deletions desktop/src/desktop/Employee.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public Employee() throws SQLException, IOException {
private void initComponents() {//GEN-BEGIN:initComponents

PicturePanel = new javax.swing.JPanel();
jPanel1 = new javax.swing.JPanel();
LabelContainingPicture = new javax.swing.JLabel();
PictureLabel = new javax.swing.JLabel();
InformationLabel = new javax.swing.JLabel();
jScrollPane2 = new javax.swing.JScrollPane();
Expand All @@ -83,28 +85,48 @@ private void initComponents() {//GEN-BEGIN:initComponents
DeleteEmployee = new javax.swing.JButton();
AddtoDB = new javax.swing.JButton();
RestaurantLogoLabel = new javax.swing.JLabel();
LabelContainingPicture = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
InfoTextArea = new javax.swing.JTextArea();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Tabit");
setBackground(new java.awt.Color(0, 153, 153));
setIconImage(img.getImage());
setPreferredSize(new Dimension(xSize, ySize));

PicturePanel.setBackground(new java.awt.Color(255, 255, 255));
PicturePanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));

javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(LabelContainingPicture, javax.swing.GroupLayout.PREFERRED_SIZE, 254, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(LabelContainingPicture, javax.swing.GroupLayout.PREFERRED_SIZE, 308, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);

javax.swing.GroupLayout PicturePanelLayout = new javax.swing.GroupLayout(PicturePanel);
PicturePanel.setLayout(PicturePanelLayout);
PicturePanelLayout.setHorizontalGroup(
PicturePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 0, Short.MAX_VALUE)
.addGroup(PicturePanelLayout.createSequentialGroup()
.addGap(27, 27, 27)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
PicturePanelLayout.setVerticalGroup(
PicturePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 0, Short.MAX_VALUE)
.addGroup(PicturePanelLayout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
);

PictureLabel.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N
Expand Down Expand Up @@ -225,7 +247,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addGroup(layout.createSequentialGroup()
.addGap(20, 20, 20)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 489, Short.MAX_VALUE)
.addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 483, Short.MAX_VALUE)
.addComponent(ModifyLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
Expand All @@ -235,23 +257,21 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(Exit, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)
.addComponent(AddtoDB, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(LabelContainingPicture, javax.swing.GroupLayout.DEFAULT_SIZE, 6, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(PicturePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addComponent(PictureLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 291, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 32, Short.MAX_VALUE)))
.addGap(0, 50, Short.MAX_VALUE)))
.addGap(23, 23, 23)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 318, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(InformationLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 291, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(85, 85, 85))
.addGroup(layout.createSequentialGroup()
.addGap(55, 55, 55)
.addGap(67, 67, 67)
.addComponent(RestaurantLogoLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
);
Expand All @@ -264,8 +284,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addComponent(ModifyLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(7, 7, 7)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(LabelContainingPicture, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)
.addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 368, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addComponent(InformationLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
Expand Down Expand Up @@ -563,6 +582,7 @@ public void run() {
private javax.swing.JLabel PictureLabel;
private javax.swing.JPanel PicturePanel;
private javax.swing.JLabel RestaurantLogoLabel;
private javax.swing.JPanel jPanel1;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JScrollPane jScrollPane2;
// End of variables declaration//GEN-END:variables
Expand Down
1 change: 1 addition & 0 deletions desktop/src/desktop/ManagerProfile.form
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<Properties>
<Property name="defaultCloseOperation" type="int" value="3"/>
<Property name="title" type="java.lang.String" value="Tabit"/>
<Property name="resizable" type="boolean" value="false"/>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
Expand Down
4 changes: 4 additions & 0 deletions desktop/src/desktop/ManagerProfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import static java.lang.String.valueOf;

import javax.swing.DefaultListModel;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.ListSelectionModel;
Expand All @@ -22,9 +23,11 @@ public class ManagerProfile extends javax.swing.JFrame {
//public static TableList tableList = new TableList();
public static String[] strings = new String[1000]; //strings stores the table name in the List
public static TableList tableList = new TableList();
ImageIcon img = new ImageIcon("C:\\Users\\Nicolas Nunez\\Desktop\\tabit\\desktop\\src\\desktop\\logo.png");
/** Creates new form ManagerProfile */
public ManagerProfile() {
initComponents();
setIconImage(img.getImage());
this.setLocationRelativeTo(getRootPane());
}

Expand Down Expand Up @@ -59,6 +62,7 @@ private void initComponents() {//GEN-BEGIN:initComponents

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Tabit");
setResizable(false);

modifyScheduleButton.setBackground(new java.awt.Color(0, 0, 153));
modifyScheduleButton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
Expand Down
20 changes: 10 additions & 10 deletions sqlscripts/addEmployee.sql
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
INSERT INTO Employee
VALUES
( 1, 'NUNEZ', 'NICOLAS', 'APR/27/1991', 'MANAGER', 100000, '347-440-4158', 'NicolasNunez.png');
( 1, 'NUNEZ', 'NICOLAS', 'APR/27/1991', 'MANAGER', 100000, '347-440-4158', 'NicolasNunez.png', '1032 W Cleveland St', 1, 0, 'nanunezr', 'tabit00427');

INSERT INTO Employee
VALUES
( 2, 'BRUCKNER', 'MARTIN', 'NOV/14/1992', 'MANAGER', 90000, '479-799-6376', 'MartinBruckner.png');
( 2, 'BRUCKNER', 'MARTIN', 'NOV/14/1992', 'MANAGER', 90000, '479-799-6376', 'MartinBruckner.png', '831 W Center St', 1, 0, 'mbruckner', 'tabit1014');

INSERT INTO Employee
VALUES
( 3, 'FOSTER', 'BRANDON', 'MAY/15/1986', 'MANAGER', 80000, '470-876-0987', 'BrandonFoster.png');
( 3, 'FOSTER', 'BRANDON', 'MAY/15/1986', 'MANAGER', 80000, '470-876-0987', 'BrandonFoster.png', '45 W PilInn St', 1, 0, 'bfoster', 'tabit1234');

INSERT INTO Employee
VALUES
( 4, 'ORDORICA', 'ADRIAN', 'JAN/22/1993', 'MANAGER', 70000, '501-223-4658', 'AdrianOrdorica.png');
( 4, 'ORDORICA', 'ADRIAN', 'JAN/22/1993', 'MANAGER', 70000, '501-223-4658', 'AdrianOrdorica.png', '1234 Melmar Dr', 1, 0, 'aordorica', 'tabit5678');

INSERT INTO Employee
VALUES
( 5, 'PATITZ', 'MAT', 'JUN/07/1977', 'MANAGER', 500000, '479-777-7777', 'MattPatitz.png');
( 5, 'PATITZ', 'MAT', 'JUN/07/1977', 'MANAGER', 500000, '479-777-7777', 'MattPatitz.png', '1234 Madison St Apt 78', 1, 0, 'mpatitz', 'tabit7');

INSERT INTO Employee
VALUES
( 6, 'FU', 'ZHANG', 'APR/04/1991', 'CASHIER', 20000, '501-440-4158', 'FuZhang.png');
( 6, 'FU', 'ZHANG', 'APR/04/1991', 'CASHIER', 20000, '501-440-4158', 'FuZhang.png', '735 W Cleveland St Apt 10', 0, 1, '', '');

INSERT INTO Employee
VALUES
( 7, 'ANDRES', 'DISCUA', 'NOV/14/1992', 'CASHIER', 20000, '501-799-6376', 'AndresDiscua.png');
( 7, 'ANDRES', 'DISCUA', 'NOV/14/1992', 'CASHIER', 20000, '501-799-6376', 'AndresDiscua.png', '311 Garden Park Apt 4', 0, 1,'', '');

INSERT INTO Employee
VALUES
( 8, 'ARROYO', 'MARVIN', 'MAY/15/1986', 'CASHIER', 20000, '501-876-0987', 'MarvinArroyo.png');
( 8, 'ARROYO', 'MARVIN', 'MAY/15/1986', 'CASHIER', 20000, '501-876-0987', 'MarvinArroyo.png', '381 W Center St Apt 1', 0, 1,'', '');

INSERT INTO Employee
VALUES
( 9, 'CHANG', 'GALO', 'JUL/22/1988', 'CASHIER', 20000, '501-223-4658', 'GaloChang.png');
( 9, 'CHANG', 'GALO', 'JUL/22/1988', 'CASHIER', 20000, '501-223-4658', 'GaloChang.png', '381 W Center St Apt 1', 0, 1,'', '');

INSERT INTO Employee
VALUES
( 10, 'BENAVIDES', 'MARIA', 'APR/07/1977', 'CASHIER', 20000, '501-121-7777', 'MariaBenavides.png');
( 10, 'BENAVIDES', 'MARIA', 'APR/07/1977', 'CASHIER', 20000, '501-121-7777', 'MariaBenavides.png', '381 W Center St Apt 1', 0, 1,'', '');
38 changes: 37 additions & 1 deletion sqlscripts/addInventory.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,40 @@
INSERT
INTO Inventory
VALUES
( 1, 'Carnitas', 2, 'AUG/23/2015', 3, 6, 9, 1, 'Walmart', 1);
( 1, 'CLEAR PLASTIC PLATES', 2, 'APR/23/2015', 3, 6, 9, 1, 'WALMART', 1);

INSERT
INTO Inventory
VALUES
( 2, 'JARRITOS SODA PACK', 2, 'APR/23/2015', 3, 6, 9, 1, 'JUAN DEL SUR', 5);

INSERT
INTO Inventory
VALUES
( 3, 'PALETA PAYASO', 2, 'APR/23/2015', 3, 6, 9, 1, 'BELLAGGIO', 6);

INSERT
INTO Inventory
VALUES
( 4, 'DUVALIN', 2, 'APR/23/2015', 3, 6, 9, 1, 'BELLAGGIO', 1);

INSERT
INTO Inventory
VALUES
( 5, 'SALSA VALENTINA PRIMAVERA', 2, 'APR/23/2015', 3, 6, 9, 1, 'LA VECINITA', 4);

INSERT
INTO Inventory
VALUES
( 6, 'TORTILLA LA HOYA GUEVARA', 2, 'APR/23/2015', 3, 6, 9, 1, 'LA VECINITA', 4);

INSERT
INTO Inventory
VALUES
( 7, 'PRIMAVERA CHIPS PACK', 2, 'APR/23/2015', 3, 6, 9, 1, 'TIENDA AMIGA', 2);

INSERT
INTO Inventory
VALUES
( 8, 'PLASTIC FORKS GIANT PACK', 2, 'APR/23/2015', 3, 6, 9, 1, 'WALMART', 1);

7 changes: 6 additions & 1 deletion sqlscripts/employeeTable.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ DOB date,
Position varchar(20),
Salary number(6),
PhoneNo varchar(20),
PictureFile varchar(20),
PictureFile varchar(30),
Address varchar(70),
HasRank number(1),
IsHourly number(1),
UserName varchar(20),
PassWord varchar(20),
PRIMARY KEY (Id)
)
2 changes: 1 addition & 1 deletion sqlscripts/inventoryTable.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CREATE TABLE Inventory
(
Id int NOT NULL,
ProductName varchar(30) NOT NULL,
ProductName varchar(60) NOT NULL,
Quantity int,
Date_In date,
Cost_Unit decimal(5,2),
Expand Down

0 comments on commit 4f16931

Please sign in to comment.