-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple_note_app.sql
More file actions
133 lines (112 loc) · 4.56 KB
/
simple_note_app.sql
File metadata and controls
133 lines (112 loc) · 4.56 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 19, 2019 at 05:26 PM
-- Generation Time: Jun 18, 2019 at 03:41 PM
-- Server version: 10.1.38-MariaDB
-- PHP Version: 7.3.3
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: `simple_note_app`
--
-- --------------------------------------------------------
--
-- Table structure for table `category`
--
CREATE TABLE `category` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `category`
--
INSERT INTO `category` (`id`, `name`, `timestamp`) VALUES
(1, 'Sports', '2019-06-17 16:12:49'),
(2, 'programming', '2019-06-19 03:01:34'),
(3, 'Nature', '2019-06-19 14:35:52');
(1, 'Sports', '2019-06-17 16:12:49');
-- --------------------------------------------------------
--
-- Table structure for table `notes`
--
CREATE TABLE `notes` (
`id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`note` varchar(255) NOT NULL,
`time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`time` date NOT NULL,
`category_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `notes`
--
INSERT INTO `notes` (`id`, `title`, `note`, `time`, `category_id`) VALUES
(1, 'Make a new Project', 'Tomorrow i should completed some new project from my office', '2019-06-17 17:01:00', 1),
(4, 'Playing Basketball', 'Lorem ipsum dolor set amet', '2019-06-17 17:03:00', 2),
(6, 'Mandi', 'ayo mandi!', '2019-06-17 17:04:00', 1),
(7, 'Test', 'Lorem ipsum dolor sit amet', '2019-06-19 20:39:51', 2),
(8, 'Test2', 'Lorem ipsum dolor sit amet', '2019-06-19 20:39:51', 1),
(9, 'Test3', 'Lorem ipsum dolor sit amet', '2019-06-19 20:39:51', 1),
(10, 'Test4', 'Lorem ipsum dolor sit amet', '2019-06-19 20:39:51', 2),
(11, 'Test5', 'Lorem ipsum dolor sit amet', '2019-06-19 20:39:51', 1),
(12, 'Test6', 'Lorem ipsum dolor sit amet', '2019-06-19 20:39:51', 2),
(13, 'Test7', 'Lorem ipsum dolor sit amet', '2019-06-19 20:39:51', 2),
(14, 'Test8', 'Lorem ipsum dolor sit amet', '2019-06-19 20:39:51', 1),
(15, 'Tes10', 'Lorem ipsum dolor set amet dolor kolor', '2019-06-19 21:43:20', 3),
(16, 'Tes11', 'Lorem ipsum dolor set amet dolor kolor', '2019-06-19 21:43:20', 3),
(17, 'Tes12', 'Lorem ipsum dolor set amet dolor kolor', '2019-06-19 21:43:20', 2),
(18, 'Tes10', 'Lorem ipsum dolor set amet dolor kolor', '2019-06-19 21:43:28', 3),
(19, 'Tes11', 'Lorem ipsum dolor set amet dolor kolor', '2019-06-19 21:43:28', 3),
(20, 'Tes12', 'Lorem ipsum dolor set amet dolor kolor', '2019-06-19 21:43:28', 2),
(21, 'Tes10', 'Lorem ipsum dolor set amet dolor kolor', '2019-06-19 21:43:30', 3),
(22, 'Tes11', 'Lorem ipsum dolor set amet dolor kolor', '2019-06-19 21:43:30', 3),
(23, 'Tes12', 'Lorem ipsum dolor set amet dolor kolor', '2019-06-19 21:43:30', 2),
(24, 'Tes10', 'Lorem ipsum dolor set amet dolor kolor', '2019-06-19 21:43:31', 3),
(25, 'Tes11', 'Lorem ipsum dolor set amet dolor kolor', '2019-06-19 21:43:31', 3),
(26, 'Tes12', 'Lorem ipsum dolor set amet dolor kolor', '2019-06-19 21:43:31', 2);
(1, 'Make a new Project', 'Tomorrow i should completed some new project from my office', '2019-06-17', 1),
(3, 'Finish Project First', 'Lets go ahead for finished the new project with awesome.', '2019-06-17', 1),
(4, 'Playing Basketball', 'Lorem ipsum dolor set amet', '2019-06-17', 2),
(6, 'Mandi', 'ayo mandi!', '2019-06-17', 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `category`
--
ALTER TABLE `category`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `notes`
--
ALTER TABLE `notes`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `category`
--
ALTER TABLE `category`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `notes`
--
ALTER TABLE `notes`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
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 */;