-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstock.sql
executable file
·104 lines (85 loc) · 2.6 KB
/
stock.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
-- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Nov 02, 2016 at 04:32 PM
-- Server version: 5.6.26
-- PHP Version: 5.5.28
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `stock`
--
-- --------------------------------------------------------
--
-- Table structure for table `accounts`
--
CREATE TABLE IF NOT EXISTS `accounts` (
`uid` int(11) NOT NULL,
`username` varchar(50) NOT NULL,
`password` varchar(200) NOT NULL,
`no_of_comp` int(11) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `accounts`
--
INSERT INTO `accounts` (`uid`, `username`, `password`, `no_of_comp`) VALUES
(1, 'admin', 'admin123', NULL),
(2, 'aklab', 'aklab123', NULL),
(3, 'jblab', 'jblab123', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `request`
--
CREATE TABLE IF NOT EXISTS `request` (
`request_id` int(5) NOT NULL,
`requested_by` varchar(10) DEFAULT NULL,
`device_name` char(15) DEFAULT NULL,
`quantity` int(5) DEFAULT NULL,
`description` varchar(150) DEFAULT NULL,
`request_status` varchar(10) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `request`
--
INSERT INTO `request` (`request_id`, `requested_by`, `device_name`, `quantity`, `description`, `request_status`) VALUES
(1, 'jblab', 'mouse', 12, 'dfsgfhgkll', 'accept'),
(2, 'jblab', 'keyboard', 1, 'asd', 'new'),
(3, 'aklab', 'm', 0, 'qwer', 'new'),
(4, 'aklab', 'Keyboard', 2, 'Broken', 'new'),
(5, 'aklab', 'Monitor', 5, 'Broken', 'new'),
(6, 'aklab', 'CPU', 6, 'LOst', 'new');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `accounts`
--
ALTER TABLE `accounts`
ADD PRIMARY KEY (`uid`);
--
-- Indexes for table `request`
--
ALTER TABLE `request`
ADD PRIMARY KEY (`request_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `accounts`
--
ALTER TABLE `accounts`
MODIFY `uid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `request`
--
ALTER TABLE `request`
MODIFY `request_id` int(5) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;