Code Monkey home page Code Monkey logo

grpprojo's Introduction

-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net

-- Host: 127.0.0.1 -- Generation Time: Sep 25, 2017 at 11:03 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.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: police_report_system


-- -- Table structure for table cases

CREATE TABLE cases ( OB_ID int(100) NOT NULL, Description varchar(1000) NOT NULL, Attachment longblob NOT NULL, ID_No varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1;


-- -- Table structure for table inspector

CREATE TABLE inspector ( Insp_ID varchar(100) NOT NULL, Name text NOT NULL, OB_ID int(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1;


-- -- Table structure for table officer

CREATE TABLE officer ( Officer_No varchar(100) NOT NULL, Name text NOT NULL, On_duty tinyint(1) NOT NULL, Insp_ID varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1;


-- -- Table structure for table reporter

CREATE TABLE reporter ( ID_No varchar(100) NOT NULL, Name text NOT NULL, Location varchar(100) NOT NULL, E-mail varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- -- Indexes for dumped tables

-- -- Indexes for table cases

ALTER TABLE cases ADD PRIMARY KEY (OB_ID), ADD KEY ID_No (ID_No);

-- -- Indexes for table inspector

ALTER TABLE inspector ADD PRIMARY KEY (Insp_ID), ADD KEY OB_ID (OB_ID);

-- -- Indexes for table officer

ALTER TABLE officer ADD PRIMARY KEY (Officer_No), ADD UNIQUE KEY Insp_ID (Insp_ID);

-- -- Indexes for table reporter

ALTER TABLE reporter ADD PRIMARY KEY (ID_No);

-- -- AUTO_INCREMENT for dumped tables

-- -- AUTO_INCREMENT for table cases

ALTER TABLE cases MODIFY OB_ID int(100) NOT NULL AUTO_INCREMENT;

-- Constraints for dumped tables

-- -- Constraints for table cases

ALTER TABLE cases ADD CONSTRAINT cases_ibfk_1 FOREIGN KEY (ID_No) REFERENCES reporter (ID_No) ON DELETE CASCADE ON UPDATE CASCADE;

-- -- Constraints for table inspector

ALTER TABLE inspector ADD CONSTRAINT inspector_ibfk_1 FOREIGN KEY (OB_ID) REFERENCES cases (OB_ID) ON DELETE CASCADE ON UPDATE CASCADE;

-- -- Constraints for table officer

ALTER TABLE officer ADD CONSTRAINT officer_ibfk_1 FOREIGN KEY (Insp_ID) REFERENCES inspector (Insp_ID) ON DELETE CASCADE ON UPDATE CASCADE;

/*!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 */;

grpprojo's People

Contributors

davidjonkariz avatar richardmbingi avatar koomeidah avatar

Watchers

James Cloos avatar

grpprojo's Issues

Report

It will be undertaken by David.

Feedback Module

It is to be done by Idah and Richard, due by Friday 20th.

  • Feedback was to be from the officer assigned to the case, to the reporter.
  • If there are any changes, please inform the group through both github and WhatsApp.

Case Assignement Module

Here, the Inspector is to be provided with a module that allows him or her to assign an officer to a case. it will be a simple UPDATE table SQL code.
To be done by Austin and Joy.

  • Involve a displayed list of available officers, from which the Inspector will chose from. You can use a form and dropdown (or allow the Inspector to type in the Officer's ID Number), to input the Officer ID. You can consult either Richard or David on the Database.
    Due by Thursday

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.