-
Notifications
You must be signed in to change notification settings - Fork 0
/
airnav (1).sql
160 lines (129 loc) · 3.93 KB
/
airnav (1).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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Aug 04, 2016 at 01:05 PM
-- Server version: 10.1.8-MariaDB
-- PHP Version: 5.6.14
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: `airnav`
--
-- --------------------------------------------------------
--
-- Table structure for table `data_maskapai`
--
CREATE TABLE `data_maskapai` (
`id` int(9) NOT NULL,
`nama_pesawat` varchar(255) DEFAULT NULL,
`kategori_tarif` varchar(100) DEFAULT NULL,
`faktor_berat` int(8) DEFAULT NULL,
`faktor_jarak` int(8) DEFAULT NULL,
`unit_rate_flight_dom` float DEFAULT NULL,
`unit_rate_flight_int` float DEFAULT NULL,
`alokasi` float DEFAULT NULL,
`bobot_saw` decimal(10,2) DEFAULT NULL,
`harga` decimal(19,2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `data_maskapai`
--
INSERT INTO `data_maskapai` (`id`, `nama_pesawat`, `kategori_tarif`, `faktor_berat`, `faktor_jarak`, `unit_rate_flight_dom`, `unit_rate_flight_int`, `alokasi`, `bobot_saw`, `harga`) VALUES
(0, 'Air Asia and Citilink', 'A1', 93000, 3000, 0.65, 0.6, 0.4, '2.76', '1112000.00'),
(1, NULL, 'A2', 95000, 2000, 0.5, 0.65, 0.5, '2.44', '72280.00'),
(2, NULL, 'A3', 95000, 1500, 0.75, 0.65, 0.2, '1.72', '3336000.00'),
(3, NULL, 'A4', 95000, 25000, 0.75, 0.25, 0.35, '3.24', '1112000.00'),
(4, 'Garuda AZHT', 'A45', 95120, 4000, 0.7, 0.9, 0.98, '3.40', '72280.00'),
(5, 'Air Asia YYYY', 'A6', 1, 0, 0.3, 0.3, 4300, '1.48', '722800.00');
-- --------------------------------------------------------
--
-- Table structure for table `data_pesawat`
--
CREATE TABLE `data_pesawat` (
`id` int(9) NOT NULL,
`nama_pesawat` varchar(20) DEFAULT NULL,
`kategori_tarif` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `data_pesawat`
--
INSERT INTO `data_pesawat` (`id`, `nama_pesawat`, `kategori_tarif`) VALUES
(1, NULL, NULL),
(2, 'Air Asia ZZZ', 'A6');
-- --------------------------------------------------------
--
-- Table structure for table `role`
--
CREATE TABLE `role` (
`id` smallint(100) NOT NULL,
`type` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `role`
--
INSERT INTO `role` (`id`, `type`) VALUES
(1, 'admin'),
(2, 'maskapai'),
(3, 'manager');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` tinyint(100) NOT NULL,
`id_role` tinyint(100) DEFAULT NULL,
`username` varchar(100) DEFAULT NULL,
`password` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `id_role`, `username`, `password`) VALUES
(1, 1, 'admin', 'dfgh'),
(2, 2, 'admin_maskapai', 'dfgh'),
(3, 3, 'manager', 'dfgh');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `data_maskapai`
--
ALTER TABLE `data_maskapai`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `data_pesawat`
--
ALTER TABLE `data_pesawat`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `role`
--
ALTER TABLE `role`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `data_maskapai`
--
ALTER TABLE `data_maskapai`
MODIFY `id` int(9) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `data_pesawat`
--
ALTER TABLE `data_pesawat`
MODIFY `id` int(9) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
/*!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 */;