# add table with auto price queue (ppcdb)

CREATE TABLE auto_price_camp_queue (
  id int unsigned NOT NULL auto_increment,
  cid int unsigned NOT NULL,
  operator_uid int unsigned NOT NULL,
  add_time timestamp NOT NULL default CURRENT_TIMESTAMP,
  send_time datetime NOT NULL,
  status enum('Wait','Send','Error') NOT NULL default 'Wait',
  error_str text,
  params_json text NOT NULL,

  PRIMARY KEY  (id),
  KEY status (status),
  KEY cid (cid)
);
