 "collection_id" int4,
 "field_type" varchar(255) COLLATE "default",
 "field_type_args" jsonb,
-"schema_id" int4,
 "not_null" bool,
-"parent_collection_field_id" int4
+"parent_collection_field_id" int4,
+"schema_id" int4
 )
 WITH (OIDS=FALSE)
 

Target Server Version : 90602
File Encoding         : 65001

Date: 2017-05-03 08:20:43
*/



-- ----------------------------
-- Foreign Key structure for table "public"."collection_field"
-- ----------------------------
ALTER TABLE "public"."collection_field" ADD FOREIGN KEY ("parent_collection_field_id") REFERENCES "public"."collection_field" ("_id") ON DELETE NO ACTION ON UPDATE NO ACTION;
ALTER TABLE "public"."collection_field" ADD FOREIGN KEY ("schema_id") REFERENCES "public"."schema" ("_id") ON DELETE NO ACTION ON UPDATE NO ACTION;
ALTER TABLE "public"."collection_field" ADD FOREIGN KEY ("collection_id") REFERENCES "public"."collection" ("_id") ON DELETE NO ACTION ON UPDATE NO ACTION;

-- ----------------------------
