Merge pull request #10 from asommer70/postgres

Created PostgreSQL schema.
This commit is contained in:
Abhishek Das
2014-05-13 12:04:39 +05:30
2 changed files with 20 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
.sass-cache
config.js
lib-cov
*.swp
*.seed
*.log
*.csv
+19
View File
@@ -0,0 +1,19 @@
CREATE TABLE IF NOT EXISTS "Tasks" (
id serial primary key,
content varchar(1000) NOT NULL,
timestamp integer,
parent_id integer,
parent char(30),
is_completed boolean,
"updatedAt" TIMESTAMP WITH TIME ZONE,
"createdAt" TIMESTAMP WITH TIME ZONE
);
INSERT INTO "Tasks" (id, content, timestamp, parent_id) VALUES
(96, 'Welcome to HackFlowy!', 1365610846, 0),
(99, 'An open-source WorkFlowy clone', 1365610837, 0),
(101, 'Built using Backbone + Socket.IO', 1365610824, 0),
(102, 'I pulled this together in a few hours to learn Backbone', 1365610861, 0),
(104, 'Feel free to try it out and hack on it', 1365610859, 0),
(106, 'Good Luck!', 1365610865, 0);