Commit 5726e98c authored by Sayed Hosseini's avatar Sayed Hosseini
Browse files

add ScopeOfWork

parent 22f8b912
Applikationsdesign-NotRuf-App @ 22f8b912
Subproject commit 22f8b912521c13e2724d23eef40018db7c0b5e7b
This diff is collapsed.
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 24, 2017 at 03:39 PM
-- Server version: 10.1.28-MariaDB
-- PHP Version: 7.1.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
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: `notfallambulanz`
--
-- --------------------------------------------------------
--
-- Table structure for table `ambulance`
--
CREATE TABLE `ambulance` (
`Amb_ID` int(255) NOT NULL,
`Amb_NO` int(255) NOT NULL,
`Amb_Type` varchar(255) NOT NULL,
`Amb_Loation` varchar(255) NOT NULL,
`Amb_Status` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `emergency`
--
CREATE TABLE `emergency` (
`Em_ID` int(255) NOT NULL,
`Em_Date` date NOT NULL,
`Em_Time` time(6) NOT NULL,
`Em_Type` int(255) NOT NULL,
`Em_Location` varchar(255) NOT NULL,
`Em_Note` varchar(255) NOT NULL,
`Em_Result` varchar(255) NOT NULL,
`Em_Status` varchar(255) NOT NULL,
`Pat_ID` int(11) NOT NULL,
`Do_ID` int(11) NOT NULL,
`Dr_ID` int(11) NOT NULL,
`Amb_ID` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `medgroup`
--
CREATE TABLE `medgroup` (
`MG_Id` int(11) NOT NULL,
`MG_Name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `meduser`
--
CREATE TABLE `meduser` (
`Mu_ID` int(11) NOT NULL,
`Mu_FName` varchar(255) NOT NULL,
`Mu_LName` varchar(255) NOT NULL,
`Mu_Address` varchar(255) NOT NULL,
`Mu_Phone` int(15) NOT NULL,
`Mu_Mobile` int(15) NOT NULL,
`Mu_Speci` varchar(255) NOT NULL,
`MG_Id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `patient`
--
CREATE TABLE `patient` (
`Pat_Id` int(255) NOT NULL,
`Pat_Name` text NOT NULL,
`Pat_LName` text NOT NULL,
`Pat_BGroup` varchar(500) NOT NULL,
`Pat_Address` varchar(500) NOT NULL,
`Pat_Phone` int(15) NOT NULL,
`Pat_Mobile` int(15) NOT NULL,
`Pat_AltMobile` int(15) NOT NULL,
`Pat_Info` varchar(500) NOT NULL,
`Pat_Speci` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `usergroup`
--
CREATE TABLE `usergroup` (
`UG_Id` int(11) NOT NULL,
`UG_Name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`User_ID` int(255) NOT NULL,
`User_FName` varchar(255) NOT NULL,
`User_LName` varchar(255) NOT NULL,
`User_Address` varchar(255) NOT NULL,
`User_Phone` int(15) NOT NULL,
`User_Mobile` int(15) NOT NULL,
`UG_Id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `ambulance`
--
ALTER TABLE `ambulance`
ADD PRIMARY KEY (`Amb_ID`);
--
-- Indexes for table `emergency`
--
ALTER TABLE `emergency`
ADD KEY `Pat_ID` (`Pat_ID`),
ADD KEY `Do_ID` (`Do_ID`),
ADD KEY `Dr_ID` (`Dr_ID`),
ADD KEY `Amb_ID` (`Amb_ID`);
ALTER TABLE `emergency` ADD FULLTEXT KEY `Em_Location` (`Em_Location`);
--
-- Indexes for table `medgroup`
--
ALTER TABLE `medgroup`
ADD PRIMARY KEY (`MG_Id`);
--
-- Indexes for table `meduser`
--
ALTER TABLE `meduser`
ADD PRIMARY KEY (`Mu_ID`),
ADD UNIQUE KEY `MG_Id` (`MG_Id`);
--
-- Indexes for table `patient`
--
ALTER TABLE `patient`
ADD PRIMARY KEY (`Pat_Id`);
--
-- Indexes for table `usergroup`
--
ALTER TABLE `usergroup`
ADD PRIMARY KEY (`UG_Id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`User_ID`),
ADD UNIQUE KEY `UG_Id` (`UG_Id`);
--
-- Constraints for dumped tables
--
--
-- Constraints for table `emergency`
--
ALTER TABLE `emergency`
ADD CONSTRAINT `emergency_ibfk_1` FOREIGN KEY (`Amb_ID`) REFERENCES `ambulance` (`Amb_ID`),
ADD CONSTRAINT `emergency_ibfk_2` FOREIGN KEY (`Do_ID`) REFERENCES `meduser` (`Mu_ID`),
ADD CONSTRAINT `emergency_ibfk_3` FOREIGN KEY (`Dr_ID`) REFERENCES `users` (`User_ID`),
ADD CONSTRAINT `emergency_ibfk_4` FOREIGN KEY (`Pat_ID`) REFERENCES `patient` (`Pat_Id`);
--
-- Constraints for table `medgroup`
--
ALTER TABLE `medgroup`
ADD CONSTRAINT `medgroup_ibfk_1` FOREIGN KEY (`MG_Id`) REFERENCES `meduser` (`MG_Id`);
--
-- Constraints for table `usergroup`
--
ALTER TABLE `usergroup`
ADD CONSTRAINT `usergroup_ibfk_1` FOREIGN KEY (`UG_Id`) REFERENCES `users` (`UG_Id`);
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 */;
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe, Version: 5.7.20-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
This source diff could not be displayed because it is too large. You can view the blob instead.
[auto]
server-uuid=46cccd21-d12f-11e7-9905-54ee75c1414b
default-character-set=utf8
default-collation=utf8_general_ci
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment