-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSQL.sql
More file actions
105 lines (86 loc) · 2.33 KB
/
SQL.sql
File metadata and controls
105 lines (86 loc) · 2.33 KB
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
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: Feb 15, 2019 at 08:42 PM
-- Server version: 5.7.23
-- PHP Version: 7.2.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `deb7255_mark`
--
-- --------------------------------------------------------
--
-- Table structure for table `Forum`
--
CREATE TABLE `Forum` (
`ID` int(11) NOT NULL,
`who` varchar(255) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`what` varchar(255) NOT NULL,
`BindToPostID` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `Payup_Transactionhistory`
--
CREATE TABLE `Payup_Transactionhistory` (
`ID` int(11) NOT NULL,
`From_bankaccountID` int(11) NOT NULL,
`To_bankaccountID` int(11) NOT NULL,
`Value` int(11) NOT NULL,
`Date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`why` mediumtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `Payup_Users`
--
CREATE TABLE `Payup_Users` (
`ID` int(11) NOT NULL,
`First_Name` varchar(255) NOT NULL,
`Last_Name` varchar(255) NOT NULL,
`Password` varchar(255) NOT NULL,
`Net_Worth` int(11) NOT NULL,
`Username` varchar(255) NOT NULL,
`Sign_Up_Date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `Forum`
--
ALTER TABLE `Forum`
ADD PRIMARY KEY (`ID`);
--
-- Indexes for table `Payup_Transactionhistory`
--
ALTER TABLE `Payup_Transactionhistory`
ADD PRIMARY KEY (`ID`);
--
-- Indexes for table `Payup_Users`
--
ALTER TABLE `Payup_Users`
ADD PRIMARY KEY (`ID`),
ADD UNIQUE KEY `Username` (`Username`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `Forum`
--
ALTER TABLE `Forum`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Payup_Transactionhistory`
--
ALTER TABLE `Payup_Transactionhistory`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Payup_Users`
--
ALTER TABLE `Payup_Users`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;