This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
biller.sql
94 lines (75 loc) · 2.74 KB
/
biller.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
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 21, 2014 at 05:02 PM
-- Server version: 5.5.24-log
-- PHP Version: 5.4.3
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 utf8 */;
--
-- Database: `biller`
--
-- --------------------------------------------------------
--
-- Table structure for table `cheques`
--
CREATE TABLE IF NOT EXISTS `cheques` (
`cheque_id` int(10) NOT NULL AUTO_INCREMENT,
`cheque_number` varchar(100) NOT NULL,
`cheque_amount` decimal(12,2) NOT NULL,
`cheque_date` date NOT NULL,
PRIMARY KEY (`cheque_id`),
UNIQUE KEY `cheque_number` (`cheque_number`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1010 ;
-- --------------------------------------------------------
--
-- Table structure for table `clients`
--
CREATE TABLE IF NOT EXISTS `clients` (
`client_id` int(10) NOT NULL AUTO_INCREMENT,
`client_name` varchar(200) NOT NULL,
`client_address` text NOT NULL,
`client_email` varchar(250) NOT NULL,
PRIMARY KEY (`client_id`),
UNIQUE KEY `client_email` (`client_email`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
-- --------------------------------------------------------
--
-- Table structure for table `payments`
--
CREATE TABLE IF NOT EXISTS `payments` (
`payment_id` int(10) NOT NULL AUTO_INCREMENT,
`payment_date` date NOT NULL,
`client_id` int(10) NOT NULL,
`cheque_id` int(10) NOT NULL,
`payment_ack` tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`payment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`user_id` int(10) NOT NULL AUTO_INCREMENT,
`user_name` varchar(200) NOT NULL,
`user_email` varchar(250) NOT NULL,
`user_password` varchar(50) NOT NULL,
`user_valid` tinyint(4) NOT NULL DEFAULT '0',
`user_admin` tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`user_id`),
UNIQUE KEY `user_email` (`user_email`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1000000002 ;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`user_id`, `user_name`, `user_email`, `user_password`, `user_valid`, `user_admin`) VALUES
(1000000001, 'Administrator', '[email protected]', '5f4dcc3b5aa765d61d8327deb882cf99', 1, 1);
/*!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 */;