added pgsql schema

This commit is contained in:
cornernote 2015-08-08 02:11:40 +09:30
parent d103605468
commit 926ec2ba12

View File

@ -0,0 +1,8 @@
CREATE TABLE packages (
id SERIAL,
name varchar(255) NOT NULL UNIQUE ,
url varchar(512) NOT NULL UNIQUE ,
hits integer NOT NULL DEFAULT 0,
created_at timestamp NOT NULL,
updated_at timestamp NOT NULL
);