Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-119
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-119
2021-119
Commits
29727127
Commit
29727127
authored
Nov 26, 2021
by
Thumuladhanujaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db
parent
77a56b59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
141 additions
and
0 deletions
+141
-0
train_app/sql/trainsystem.sql
train_app/sql/trainsystem.sql
+141
-0
No files found.
train_app/sql/trainsystem.sql
0 → 100644
View file @
29727127
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 14, 2021 at 09:16 PM
-- Server version: 10.1.26-MariaDB
-- PHP Version: 8.0.9
SET
SQL_MODE
=
"NO_AUTO_VALUE_ON_ZERO"
;
START
TRANSACTION
;
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: `trainsystem`
--
-- --------------------------------------------------------
--
-- Table structure for table `details`
--
CREATE
TABLE
`details`
(
`id`
int
(
11
)
NOT
NULL
,
`name`
varchar
(
250
)
NOT
NULL
,
`value`
varchar
(
250
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `details`
--
INSERT
INTO
`details`
(
`id`
,
`name`
,
`value`
)
VALUES
(
1
,
'Wind Speed'
,
'3.16'
),
(
2
,
'Average Speed'
,
'0'
),
(
3
,
'Distance'
,
'90.20'
),
(
4
,
'Weather'
,
'Partially Cloudy'
),
(
5
,
'Delay Time'
,
'5'
);
-- --------------------------------------------------------
--
-- Table structure for table `stations`
--
CREATE
TABLE
`stations`
(
`id`
int
(
11
)
NOT
NULL
,
`name`
varchar
(
250
)
NOT
NULL
,
`Latitude`
double
NOT
NULL
,
`Longitude`
double
NOT
NULL
,
`f1`
double
NOT
NULL
,
`f2`
double
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `stations`
--
INSERT
INTO
`stations`
(
`id`
,
`name`
,
`Latitude`
,
`Longitude`
,
`f1`
,
`f2`
)
VALUES
(
1
,
'waskaduwa'
,
6
.
628330297471689
,
79
.
94337231171029
,
25
,
65
),
(
2
,
'waskaduwa'
,
6
.
679860387484086
,
79
.
9796325227334
,
25
,
65
),
(
3
,
'Alothiyawa'
,
6
.
744739913112401
,
79
.
97410457597128
,
17
.
687212
,
8900
.
509034
),
(
4
,
'Kesbewa'
,
6
.
8005249625021
,
79
.
93724996599644
,
10
.
637071
,
8896
.
570015
),
(
5
,
'Papiliyana'
,
6
.
857599476190894
,
79
.
89077776607394
,
5
.
318122
,
8891
.
574552
);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE
TABLE
`users`
(
`id`
int
(
11
)
NOT
NULL
,
`fname`
varchar
(
250
)
NOT
NULL
,
`lname`
varchar
(
250
)
NOT
NULL
,
`email`
varchar
(
250
)
NOT
NULL
,
`password`
varchar
(
250
)
NOT
NULL
,
`userType`
int
(
11
)
NOT
NULL
,
`access`
int
(
11
)
NOT
NULL
DEFAULT
'0'
,
`image`
varchar
(
1000
)
DEFAULT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `users`
--
--
-- Indexes for dumped tables
--
--
-- Indexes for table `details`
--
ALTER
TABLE
`details`
ADD
PRIMARY
KEY
(
`id`
);
--
-- Indexes for table `stations`
--
ALTER
TABLE
`stations`
ADD
PRIMARY
KEY
(
`id`
);
--
-- Indexes for table `users`
--
ALTER
TABLE
`users`
ADD
PRIMARY
KEY
(
`id`
);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `details`
--
ALTER
TABLE
`details`
MODIFY
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
6
;
--
-- AUTO_INCREMENT for table `stations`
--
ALTER
TABLE
`stations`
MODIFY
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
6
;
--
-- AUTO_INCREMENT for table `users`
--
ALTER
TABLE
`users`
MODIFY
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
5
;
COMMIT
;
/*!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 */
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment