forked from mikethomas/drag-and-drop-autosave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_DB.sql
22 lines (18 loc) · 798 Bytes
/
sample_DB.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- Sample AutoSave Drag & Drop MySQL Database Structure
-- First, create database named "tracking", then import the following SQL:
-- Table structure for table `projects`
CREATE TABLE `projects` (
`id` int(11) NOT NULL,
`project` varchar(90) NOT NULL,
`project_order` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Sample data for table `projects`
INSERT INTO `projects` (`id`, `project`, `project_order`) VALUES
(1, 'TestA - Person 1 - January 1', 1),
(2, 'TestB - Person 1 - January 1', 2),
(3, 'TestC - Person 1 - January 1', 3),
(4, 'TestD - Person 1 - January 1', 4);
-- Indexes for table `projects`
ALTER TABLE `projects` ADD PRIMARY KEY (`id`);
-- AUTO_INCREMENT for table `projects`
ALTER TABLE `projects` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;