{
  "name": "testdb",
  "tables": [
    {
      "name": "public.users",
      "type": "BASE TABLE",
      "comment": "Users table",
      "columns": [
        {
          "name": "id",
          "type": "integer",
          "nullable": false,
          "default": "nextval('users_id_seq'::regclass)",
          "comment": ""
        },
        {
          "name": "username",
          "type": "varchar(50)",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "password",
          "type": "varchar(50)",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "email",
          "type": "varchar(355)",
          "nullable": false,
          "default": null,
          "comment": "ex. user@example.com"
        },
        {
          "name": "created",
          "type": "timestamp without time zone",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "updated",
          "type": "timestamp without time zone",
          "nullable": true,
          "default": null,
          "comment": ""
        }
      ],
      "indexes": [
        {
          "name": "users_pkey",
          "def": "CREATE UNIQUE INDEX users_pkey ON public.users USING btree (id)",
          "table": "public.users",
          "columns": [
            "id"
          ]
        },
        {
          "name": "users_username_key",
          "def": "CREATE UNIQUE INDEX users_username_key ON public.users USING btree (username)",
          "table": "public.users",
          "columns": [
            "username"
          ]
        },
        {
          "name": "users_email_key",
          "def": "CREATE UNIQUE INDEX users_email_key ON public.users USING btree (email)",
          "table": "public.users",
          "columns": [
            "email"
          ]
        }
      ],
      "constraints": [
        {
          "name": "users_username_check",
          "type": "CHECK",
          "def": "CHECK ((char_length((username)::text) \u003e 4))",
          "table": "public.users",
          "referenced_table": "",
          "columns": [
            "username"
          ],
          "referenced_columns": [
            ""
          ]
        },
        {
          "name": "users_pkey",
          "type": "PRIMARY KEY",
          "def": "PRIMARY KEY (id)",
          "table": "public.users",
          "referenced_table": "",
          "columns": [
            "id"
          ],
          "referenced_columns": [
            ""
          ]
        },
        {
          "name": "users_username_key",
          "type": "UNIQUE",
          "def": "UNIQUE (username)",
          "table": "public.users",
          "referenced_table": "",
          "columns": [
            "username"
          ],
          "referenced_columns": [
            ""
          ]
        },
        {
          "name": "users_email_key",
          "type": "UNIQUE",
          "def": "UNIQUE (email)",
          "table": "public.users",
          "referenced_table": "",
          "columns": [
            "email"
          ],
          "referenced_columns": [
            ""
          ]
        }
      ],
      "triggers": [
        {
          "name": "update_users_updated",
          "def": "CREATE TRIGGER update_users_updated AFTER INSERT OR UPDATE ON public.users FOR EACH ROW EXECUTE PROCEDURE update_updated()"
        }
      ],
      "def": ""
    },
    {
      "name": "public.user_options",
      "type": "BASE TABLE",
      "comment": "User options table",
      "columns": [
        {
          "name": "user_id",
          "type": "integer",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "show_email",
          "type": "boolean",
          "nullable": false,
          "default": "false",
          "comment": ""
        },
        {
          "name": "created",
          "type": "timestamp without time zone",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "updated",
          "type": "timestamp without time zone",
          "nullable": true,
          "default": null,
          "comment": ""
        }
      ],
      "indexes": [
        {
          "name": "user_options_pkey",
          "def": "CREATE UNIQUE INDEX user_options_pkey ON public.user_options USING btree (user_id)",
          "table": "public.user_options",
          "columns": [
            "user_id"
          ]
        }
      ],
      "constraints": [
        {
          "name": "user_options_user_id_fk",
          "type": "FOREIGN KEY",
          "def": "FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE",
          "table": "public.user_options",
          "referenced_table": "users",
          "columns": [
            "user_id"
          ],
          "referenced_columns": [
            "id"
          ]
        },
        {
          "name": "user_options_pkey",
          "type": "PRIMARY KEY",
          "def": "PRIMARY KEY (user_id)",
          "table": "public.user_options",
          "referenced_table": "",
          "columns": [
            "user_id"
          ],
          "referenced_columns": [
            ""
          ]
        }
      ],
      "triggers": [],
      "def": ""
    },
    {
      "name": "public.posts",
      "type": "BASE TABLE",
      "comment": "Posts table",
      "columns": [
        {
          "name": "id",
          "type": "bigint",
          "nullable": false,
          "default": "nextval('posts_id_seq'::regclass)",
          "comment": ""
        },
        {
          "name": "user_id",
          "type": "integer",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "title",
          "type": "varchar(255)",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "body",
          "type": "text",
          "nullable": false,
          "default": null,
          "comment": "post body"
        },
        {
          "name": "post_type",
          "type": "post_types",
          "nullable": false,
          "default": null,
          "comment": "public/private/draft"
        },
        {
          "name": "labels",
          "type": "array",
          "nullable": true,
          "default": null,
          "comment": ""
        },
        {
          "name": "created",
          "type": "timestamp without time zone",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "updated",
          "type": "timestamp without time zone",
          "nullable": true,
          "default": null,
          "comment": ""
        }
      ],
      "indexes": [
        {
          "name": "posts_id_pk",
          "def": "CREATE UNIQUE INDEX posts_id_pk ON public.posts USING btree (id)",
          "table": "public.posts",
          "columns": [
            "id"
          ]
        },
        {
          "name": "posts_user_id_title_key",
          "def": "CREATE UNIQUE INDEX posts_user_id_title_key ON public.posts USING btree (user_id, title)",
          "table": "public.posts",
          "columns": [
            "title",
            "user_id"
          ]
        },
        {
          "name": "posts_user_id_idx",
          "def": "CREATE INDEX posts_user_id_idx ON public.posts USING btree (user_id)",
          "table": "public.posts",
          "columns": [
            "user_id"
          ]
        }
      ],
      "constraints": [
        {
          "name": "update_posts_updated",
          "type": "TRIGGER",
          "def": "CREATE CONSTRAINT TRIGGER update_posts_updated AFTER INSERT OR UPDATE ON public.posts NOT DEFERRABLE INITIALLY IMMEDIATE FOR EACH ROW EXECUTE PROCEDURE update_updated()",
          "table": "public.posts",
          "referenced_table": "",
          "columns": [
            "updated",
            "tableoid",
            "cmax",
            "xmax",
            "cmin",
            "xmin",
            "ctid",
            "id",
            "user_id",
            "title",
            "body",
            "post_type",
            "labels",
            "created"
          ],
          "referenced_columns": [
            ""
          ]
        },
        {
          "name": "posts_user_id_fk",
          "type": "FOREIGN KEY",
          "def": "FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE",
          "table": "public.posts",
          "referenced_table": "users",
          "columns": [
            "user_id"
          ],
          "referenced_columns": [
            "id"
          ]
        },
        {
          "name": "posts_id_pk",
          "type": "PRIMARY KEY",
          "def": "PRIMARY KEY (id)",
          "table": "public.posts",
          "referenced_table": "",
          "columns": [
            "id"
          ],
          "referenced_columns": [
            ""
          ]
        },
        {
          "name": "posts_user_id_title_key",
          "type": "UNIQUE",
          "def": "UNIQUE (user_id, title)",
          "table": "public.posts",
          "referenced_table": "",
          "columns": [
            "user_id",
            "title"
          ],
          "referenced_columns": [
            ""
          ]
        }
      ],
      "triggers": [
        {
          "name": "update_posts_updated",
          "def": "CREATE CONSTRAINT TRIGGER update_posts_updated AFTER INSERT OR UPDATE ON public.posts NOT DEFERRABLE INITIALLY IMMEDIATE FOR EACH ROW EXECUTE PROCEDURE update_updated()"
        }
      ],
      "def": ""
    },
    {
      "name": "public.comments",
      "type": "BASE TABLE",
      "comment": "Comments\nMulti-line\r\ntable\rcomment",
      "columns": [
        {
          "name": "id",
          "type": "bigint",
          "nullable": false,
          "default": "nextval('comments_id_seq'::regclass)",
          "comment": ""
        },
        {
          "name": "post_id",
          "type": "bigint",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "user_id",
          "type": "integer",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "comment",
          "type": "text",
          "nullable": false,
          "default": null,
          "comment": "Comment\nMulti-line\r\ncolumn\rcomment"
        },
        {
          "name": "created",
          "type": "timestamp without time zone",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "updated",
          "type": "timestamp without time zone",
          "nullable": true,
          "default": null,
          "comment": ""
        }
      ],
      "indexes": [
        {
          "name": "comments_id_pk",
          "def": "CREATE UNIQUE INDEX comments_id_pk ON public.comments USING btree (id)",
          "table": "public.comments",
          "columns": [
            "id"
          ]
        },
        {
          "name": "comments_post_id_user_id_key",
          "def": "CREATE UNIQUE INDEX comments_post_id_user_id_key ON public.comments USING btree (post_id, user_id)",
          "table": "public.comments",
          "columns": [
            "post_id",
            "user_id"
          ]
        },
        {
          "name": "comments_post_id_user_id_idx",
          "def": "CREATE INDEX comments_post_id_user_id_idx ON public.comments USING btree (post_id, user_id)",
          "table": "public.comments",
          "columns": [
            "post_id",
            "user_id"
          ]
        }
      ],
      "constraints": [
        {
          "name": "comments_user_id_fk",
          "type": "FOREIGN KEY",
          "def": "FOREIGN KEY (user_id) REFERENCES users(id)",
          "table": "public.comments",
          "referenced_table": "users",
          "columns": [
            "user_id"
          ],
          "referenced_columns": [
            "id"
          ]
        },
        {
          "name": "comments_post_id_fk",
          "type": "FOREIGN KEY",
          "def": "FOREIGN KEY (post_id) REFERENCES posts(id)",
          "table": "public.comments",
          "referenced_table": "posts",
          "columns": [
            "post_id"
          ],
          "referenced_columns": [
            "id"
          ]
        },
        {
          "name": "comments_id_pk",
          "type": "PRIMARY KEY",
          "def": "PRIMARY KEY (id)",
          "table": "public.comments",
          "referenced_table": "",
          "columns": [
            "id"
          ],
          "referenced_columns": [
            ""
          ]
        },
        {
          "name": "comments_post_id_user_id_key",
          "type": "UNIQUE",
          "def": "UNIQUE (post_id, user_id)",
          "table": "public.comments",
          "referenced_table": "",
          "columns": [
            "post_id",
            "user_id"
          ],
          "referenced_columns": [
            ""
          ]
        }
      ],
      "triggers": [],
      "def": ""
    },
    {
      "name": "public.comment_stars",
      "type": "BASE TABLE",
      "comment": "",
      "columns": [
        {
          "name": "id",
          "type": "uuid",
          "nullable": false,
          "default": "uuid_generate_v4()",
          "comment": ""
        },
        {
          "name": "user_id",
          "type": "integer",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "comment_post_id",
          "type": "bigint",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "comment_user_id",
          "type": "integer",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "created",
          "type": "timestamp without time zone",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "updated",
          "type": "timestamp without time zone",
          "nullable": true,
          "default": null,
          "comment": ""
        }
      ],
      "indexes": [
        {
          "name": "comment_stars_user_id_comment_post_id_comment_user_id_key",
          "def": "CREATE UNIQUE INDEX comment_stars_user_id_comment_post_id_comment_user_id_key ON public.comment_stars USING btree (user_id, comment_post_id, comment_user_id)",
          "table": "public.comment_stars",
          "columns": [
            "comment_post_id",
            "comment_user_id",
            "user_id"
          ]
        }
      ],
      "constraints": [
        {
          "name": "comment_stars_user_id_fk",
          "type": "FOREIGN KEY",
          "def": "FOREIGN KEY (comment_user_id) REFERENCES users(id)",
          "table": "public.comment_stars",
          "referenced_table": "users",
          "columns": [
            "comment_user_id"
          ],
          "referenced_columns": [
            "id"
          ]
        },
        {
          "name": "comment_stars_user_id_post_id_fk",
          "type": "FOREIGN KEY",
          "def": "FOREIGN KEY (comment_post_id, comment_user_id) REFERENCES comments(post_id, user_id)",
          "table": "public.comment_stars",
          "referenced_table": "comments",
          "columns": [
            "comment_post_id",
            "comment_post_id",
            "comment_user_id",
            "comment_user_id"
          ],
          "referenced_columns": [
            "post_id",
            "user_id",
            "post_id",
            "user_id"
          ]
        },
        {
          "name": "comment_stars_user_id_comment_post_id_comment_user_id_key",
          "type": "UNIQUE",
          "def": "UNIQUE (user_id, comment_post_id, comment_user_id)",
          "table": "public.comment_stars",
          "referenced_table": "",
          "columns": [
            "user_id",
            "comment_post_id",
            "comment_user_id"
          ],
          "referenced_columns": [
            ""
          ]
        }
      ],
      "triggers": [],
      "def": ""
    },
    {
      "name": "public.logs",
      "type": "BASE TABLE",
      "comment": "audit log table",
      "columns": [
        {
          "name": "id",
          "type": "uuid",
          "nullable": false,
          "default": "uuid_generate_v4()",
          "comment": ""
        },
        {
          "name": "user_id",
          "type": "integer",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "post_id",
          "type": "bigint",
          "nullable": true,
          "default": null,
          "comment": ""
        },
        {
          "name": "comment_id",
          "type": "bigint",
          "nullable": true,
          "default": null,
          "comment": ""
        },
        {
          "name": "comment_star_id",
          "type": "uuid",
          "nullable": true,
          "default": null,
          "comment": ""
        },
        {
          "name": "payload",
          "type": "text",
          "nullable": true,
          "default": null,
          "comment": ""
        },
        {
          "name": "created",
          "type": "timestamp without time zone",
          "nullable": false,
          "default": null,
          "comment": ""
        }
      ],
      "indexes": [],
      "constraints": [],
      "triggers": [],
      "def": ""
    },
    {
      "name": "public.post_comments",
      "type": "VIEW",
      "comment": "post and comments View table",
      "columns": [
        {
          "name": "id",
          "type": "bigint",
          "nullable": true,
          "default": null,
          "comment": "comments.id"
        },
        {
          "name": "title",
          "type": "varchar(255)",
          "nullable": true,
          "default": null,
          "comment": "posts.title"
        },
        {
          "name": "post_user",
          "type": "varchar(50)",
          "nullable": true,
          "default": null,
          "comment": "posts.users.username"
        },
        {
          "name": "comment",
          "type": "text",
          "nullable": true,
          "default": null,
          "comment": ""
        },
        {
          "name": "comment_user",
          "type": "varchar(50)",
          "nullable": true,
          "default": null,
          "comment": "comments.users.username"
        },
        {
          "name": "created",
          "type": "timestamp without time zone",
          "nullable": true,
          "default": null,
          "comment": "comments.created"
        },
        {
          "name": "updated",
          "type": "timestamp without time zone",
          "nullable": true,
          "default": null,
          "comment": "comments.updated"
        }
      ],
      "indexes": [],
      "constraints": [],
      "triggers": [],
      "def": "CREATE VIEW post_comments AS (\n SELECT c.id,\n    p.title,\n    u2.username AS post_user,\n    c.comment,\n    u2.username AS comment_user,\n    c.created,\n    c.updated\n   FROM (((posts p\n     LEFT JOIN comments c ON ((p.id = c.post_id)))\n     LEFT JOIN users u ON ((u.id = p.user_id)))\n     LEFT JOIN users u2 ON ((u2.id = c.user_id)))\n)"
    },
    {
      "name": "public.CamelizeTable",
      "type": "BASE TABLE",
      "comment": "",
      "columns": [
        {
          "name": "id",
          "type": "uuid",
          "nullable": false,
          "default": "uuid_generate_v4()",
          "comment": ""
        },
        {
          "name": "created",
          "type": "timestamp without time zone",
          "nullable": false,
          "default": null,
          "comment": ""
        }
      ],
      "indexes": [
        {
          "name": "CamelizeTable_id_key",
          "def": "CREATE UNIQUE INDEX \"CamelizeTable_id_key\" ON public.\"CamelizeTable\" USING btree (id)",
          "table": "public.CamelizeTable",
          "columns": [
            "id"
          ]
        }
      ],
      "constraints": [
        {
          "name": "CamelizeTable_id_key",
          "type": "UNIQUE",
          "def": "UNIQUE (id)",
          "table": "public.CamelizeTable",
          "referenced_table": "",
          "columns": [
            "id"
          ],
          "referenced_columns": [
            ""
          ]
        }
      ],
      "triggers": [],
      "def": ""
    },
    {
      "name": "public.hyphen-table",
      "type": "BASE TABLE",
      "comment": "",
      "columns": [
        {
          "name": "id",
          "type": "uuid",
          "nullable": false,
          "default": "uuid_generate_v4()",
          "comment": ""
        },
        {
          "name": "hyphen-column",
          "type": "text",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "CamelizeTableId",
          "type": "uuid",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "created",
          "type": "timestamp without time zone",
          "nullable": false,
          "default": null,
          "comment": ""
        }
      ],
      "indexes": [
        {
          "name": "hyphen-table_hyphen-column_key",
          "def": "CREATE UNIQUE INDEX \"hyphen-table_hyphen-column_key\" ON public.\"hyphen-table\" USING btree (\"hyphen-column\")",
          "table": "public.hyphen-table",
          "columns": [
            "hyphen-column"
          ]
        }
      ],
      "constraints": [
        {
          "name": "hyphen-table_CamelizeTableId_fk",
          "type": "FOREIGN KEY",
          "def": "FOREIGN KEY (\"CamelizeTableId\") REFERENCES \"CamelizeTable\"(id) ON DELETE CASCADE",
          "table": "public.hyphen-table",
          "referenced_table": "CamelizeTable",
          "columns": [
            "CamelizeTableId"
          ],
          "referenced_columns": [
            "id"
          ]
        },
        {
          "name": "hyphen-table_hyphen-column_key",
          "type": "UNIQUE",
          "def": "UNIQUE (\"hyphen-column\")",
          "table": "public.hyphen-table",
          "referenced_table": "",
          "columns": [
            "hyphen-column"
          ],
          "referenced_columns": [
            ""
          ]
        }
      ],
      "triggers": [],
      "def": ""
    },
    {
      "name": "administrator.blogs",
      "type": "BASE TABLE",
      "comment": "",
      "columns": [
        {
          "name": "id",
          "type": "integer",
          "nullable": false,
          "default": "nextval('administrator.blogs_id_seq'::regclass)",
          "comment": ""
        },
        {
          "name": "user_id",
          "type": "integer",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "name",
          "type": "text",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "description",
          "type": "text",
          "nullable": true,
          "default": null,
          "comment": ""
        },
        {
          "name": "created",
          "type": "timestamp without time zone",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "updated",
          "type": "timestamp without time zone",
          "nullable": true,
          "default": null,
          "comment": ""
        }
      ],
      "indexes": [
        {
          "name": "blogs_pkey",
          "def": "CREATE UNIQUE INDEX blogs_pkey ON administrator.blogs USING btree (id)",
          "table": "administrator.blogs",
          "columns": [
            "id"
          ]
        }
      ],
      "constraints": [
        {
          "name": "blogs_user_id_fk",
          "type": "FOREIGN KEY",
          "def": "FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE",
          "table": "administrator.blogs",
          "referenced_table": "users",
          "columns": [
            "user_id"
          ],
          "referenced_columns": [
            "id"
          ]
        },
        {
          "name": "blogs_pkey",
          "type": "PRIMARY KEY",
          "def": "PRIMARY KEY (id)",
          "table": "administrator.blogs",
          "referenced_table": "",
          "columns": [
            "id"
          ],
          "referenced_columns": [
            ""
          ]
        }
      ],
      "triggers": [],
      "def": ""
    },
    {
      "name": "backup.blogs",
      "type": "BASE TABLE",
      "comment": "",
      "columns": [
        {
          "name": "id",
          "type": "integer",
          "nullable": false,
          "default": "nextval('backup.blogs_id_seq'::regclass)",
          "comment": ""
        },
        {
          "name": "user_id",
          "type": "integer",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "dump",
          "type": "text",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "created",
          "type": "timestamp without time zone",
          "nullable": false,
          "default": null,
          "comment": ""
        },
        {
          "name": "updated",
          "type": "timestamp without time zone",
          "nullable": true,
          "default": null,
          "comment": ""
        }
      ],
      "indexes": [
        {
          "name": "blogs_pkey",
          "def": "CREATE UNIQUE INDEX blogs_pkey ON backup.blogs USING btree (id)",
          "table": "backup.blogs",
          "columns": [
            "id"
          ]
        }
      ],
      "constraints": [
        {
          "name": "blogs_pkey",
          "type": "PRIMARY KEY",
          "def": "PRIMARY KEY (id)",
          "table": "backup.blogs",
          "referenced_table": "",
          "columns": [
            "id"
          ],
          "referenced_columns": [
            ""
          ]
        }
      ],
      "triggers": [],
      "def": ""
    }
  ],
  "relations": [
    {
      "table": "public.user_options",
      "columns": [
        "user_id"
      ],
      "parent_table": "public.users",
      "parent_columns": [
        "id"
      ],
      "def": "FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE",
      "virtual": false
    },
    {
      "table": "public.posts",
      "columns": [
        "user_id"
      ],
      "parent_table": "public.users",
      "parent_columns": [
        "id"
      ],
      "def": "FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE",
      "virtual": false
    },
    {
      "table": "public.comments",
      "columns": [
        "user_id"
      ],
      "parent_table": "public.users",
      "parent_columns": [
        "id"
      ],
      "def": "FOREIGN KEY (user_id) REFERENCES users(id)",
      "virtual": false
    },
    {
      "table": "public.comments",
      "columns": [
        "post_id"
      ],
      "parent_table": "public.posts",
      "parent_columns": [
        "id"
      ],
      "def": "FOREIGN KEY (post_id) REFERENCES posts(id)",
      "virtual": false
    },
    {
      "table": "public.comment_stars",
      "columns": [
        "comment_user_id"
      ],
      "parent_table": "public.users",
      "parent_columns": [
        "id"
      ],
      "def": "FOREIGN KEY (comment_user_id) REFERENCES users(id)",
      "virtual": false
    },
    {
      "table": "public.comment_stars",
      "columns": [
        "comment_post_id",
        "comment_user_id"
      ],
      "parent_table": "public.comments",
      "parent_columns": [
        "post_id",
        "user_id"
      ],
      "def": "FOREIGN KEY (comment_post_id, comment_user_id) REFERENCES comments(post_id, user_id)",
      "virtual": false
    },
    {
      "table": "public.hyphen-table",
      "columns": [
        "CamelizeTableId"
      ],
      "parent_table": "public.CamelizeTable",
      "parent_columns": [
        "id"
      ],
      "def": "FOREIGN KEY (\"CamelizeTableId\") REFERENCES \"CamelizeTable\"(id) ON DELETE CASCADE",
      "virtual": false
    },
    {
      "table": "administrator.blogs",
      "columns": [
        "user_id"
      ],
      "parent_table": "public.users",
      "parent_columns": [
        "id"
      ],
      "def": "FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE",
      "virtual": false
    },
    {
      "table": "public.logs",
      "columns": [
        "user_id"
      ],
      "parent_table": "public.users",
      "parent_columns": [
        "id"
      ],
      "def": "logs-\u003eusers",
      "virtual": true
    },
    {
      "table": "public.logs",
      "columns": [
        "post_id"
      ],
      "parent_table": "public.posts",
      "parent_columns": [
        "id"
      ],
      "def": "Additional Relation",
      "virtual": true
    },
    {
      "table": "public.logs",
      "columns": [
        "comment_id"
      ],
      "parent_table": "public.comments",
      "parent_columns": [
        "id"
      ],
      "def": "Additional Relation",
      "virtual": true
    },
    {
      "table": "public.logs",
      "columns": [
        "comment_star_id"
      ],
      "parent_table": "public.comment_stars",
      "parent_columns": [
        "id"
      ],
      "def": "Additional Relation",
      "virtual": true
    }
  ],
  "driver": {
    "name": "postgres",
    "database_version": "PostgreSQL 10.11 (Debian 10.11-1.pgdg90+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516, 64-bit",
    "meta": {
      "current_schema": "public"
    }
  }
}
