Skip to content

Commit

Permalink
update annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
leafo committed Aug 8, 2017
1 parent e435a22 commit ff75374
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion models/api_keys.moon
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import generate_key from require "helpers.models"
-- source character varying(255),
-- actions integer DEFAULT 0 NOT NULL,
-- created_at timestamp without time zone NOT NULL,
-- updated_at timestamp without time zone NOT NULL
-- updated_at timestamp without time zone NOT NULL,
-- comment text
-- );
-- ALTER TABLE ONLY api_keys
-- ADD CONSTRAINT api_keys_pkey PRIMARY KEY (key);
Expand Down
5 changes: 3 additions & 2 deletions models/followings.moon
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ import safe_insert from require "helpers.models"
-- object_type smallint NOT NULL,
-- object_id integer NOT NULL,
-- created_at timestamp without time zone NOT NULL,
-- updated_at timestamp without time zone NOT NULL
-- updated_at timestamp without time zone NOT NULL,
-- type smallint DEFAULT 1 NOT NULL
-- );
-- ALTER TABLE ONLY followings
-- ADD CONSTRAINT followings_pkey PRIMARY KEY (source_user_id, object_type, object_id);
-- ADD CONSTRAINT followings_pkey PRIMARY KEY (source_user_id, object_type, object_id, type);
-- CREATE INDEX followings_object_type_object_id_idx ON followings USING btree (object_type, object_id);
--
class Followings extends Model
Expand Down
3 changes: 2 additions & 1 deletion models/modules.moon
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ import safe_insert from require "helpers.models"
-- display_name character varying(255),
-- has_dev_version boolean DEFAULT false NOT NULL,
-- followers_count integer DEFAULT 0 NOT NULL,
-- labels text[]
-- labels text[],
-- stars_count integer DEFAULT 0 NOT NULL
-- );
-- ALTER TABLE ONLY modules
-- ADD CONSTRAINT modules_pkey PRIMARY KEY (id);
Expand Down
7 changes: 5 additions & 2 deletions models/users.moon
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@ import strip_non_ascii from require "helpers.strings"
-- CREATE TABLE users (
-- id integer NOT NULL,
-- username character varying(255) NOT NULL,
-- encrypted_password character varying(255) NOT NULL,
-- encrypted_password character varying(255),
-- email character varying(255) NOT NULL,
-- slug character varying(255) NOT NULL,
-- flags integer DEFAULT 0 NOT NULL,
-- created_at timestamp without time zone NOT NULL,
-- updated_at timestamp without time zone NOT NULL,
-- following_count integer DEFAULT 0 NOT NULL,
-- modules_count integer DEFAULT 0 NOT NULL,
-- last_active_at timestamp without time zone
-- last_active_at timestamp without time zone,
-- followers_count integer DEFAULT 0 NOT NULL,
-- display_name character varying(255),
-- stared_count integer DEFAULT 0 NOT NULL
-- );
-- ALTER TABLE ONLY users
-- ADD CONSTRAINT users_pkey PRIMARY KEY (id);
Expand Down

0 comments on commit ff75374

Please sign in to comment.