
CREATE TABLE sync_meta_forms  (
  id varchar(50) PRIMARY KEY NOT NULL,
  config text  NULL,
  created_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  is_online bit(1) NULL DEFAULT NULL,
  last_synced_time timestamp NULL DEFAULT NULL,
  last_updated_time timestamp NULL DEFAULT NULL,
  note varchar(3000)  NULL DEFAULT NULL,
  synced_record_count int NULL DEFAULT NULL,
  form_meta_id varchar(50) REFERENCES meta_forms (id) NOT NULL,
  target_meta_id varchar(255) REFERENCES sync_meta_form_targets (id) NOT NULL
);
