-
Notifications
You must be signed in to change notification settings - Fork 0
/
friends.sql
115 lines (94 loc) · 2.99 KB
/
friends.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 10, 2024 at 04:31 PM
-- Server version: 8.0.36
-- PHP Version: 8.2.25
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: `friends`
--
-- --------------------------------------------------------
--
-- Table structure for table `contacts`
--
CREATE TABLE `contacts` (
`id` int NOT NULL,
`name` varchar(100) COLLATE utf8mb4_general_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`phone` int NOT NULL,
`dob` date NOT NULL,
`address` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`note` text COLLATE utf8mb4_general_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `contacts`
--
INSERT INTO `contacts` (`id`, `name`, `email`, `phone`, `dob`, `address`, `note`) VALUES
(1, 'Rahim', '[email protected]', 1234, '2001-01-04', 'habijabi address', ''),
(2, 'Karim', '[email protected]', 2345, '2003-11-13', 'jana nai', '');
-- --------------------------------------------------------
--
-- Table structure for table `loans`
--
CREATE TABLE `loans` (
`id` int NOT NULL,
`name` varchar(100) COLLATE utf8mb4_general_ci NOT NULL,
`amount` int NOT NULL,
`type` varchar(10) COLLATE utf8mb4_general_ci NOT NULL,
`date` date NOT NULL,
`return_date` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `loans`
--
INSERT INTO `loans` (`id`, `name`, `amount`, `type`, `date`, `return_date`) VALUES
(1, 'Rahim', 100, 'L', '2024-11-05', NULL),
(2, 'Rahim', 500, 'L', '2024-11-20', NULL),
(3, 'Karim', 250, 'L', '2024-11-03', NULL),
(4, 'Jahid', 1000, 'B', '2024-11-01', NULL),
(5, 'Dulal', 2000, 'L', '2024-11-12', NULL),
(7, 'Minhaz', 5000, 'B', '2024-11-03', NULL),
(8, 'Miraz', 500, 'B', '2024-11-03', NULL),
(9, 'Munir', 500, 'L', '2024-11-03', NULL),
(10, 'Munir', 500, 'L', '2024-11-03', NULL),
(11, 'Ali', 750, 'B', '2024-11-02', NULL),
(12, 'Sara', 1000, 'L', '2024-11-01', NULL);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `contacts`
--
ALTER TABLE `contacts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `loans`
--
ALTER TABLE `loans`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `contacts`
--
ALTER TABLE `contacts`
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `loans`
--
ALTER TABLE `loans`
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
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 */;