--- create-facebook-channels

CREATE TABLE facebook_channels (
  id                   BIGINT NOT NULL REFERENCES channels (id),
  page_id              VARCHAR(255) NOT NULL,
  last_sent_message_id BIGINT NOT NULL  DEFAULT 0,
  deleted              BIT              DEFAULT 0,
  PRIMARY KEY (id)
);