위키사랑/데이터

From mediawiki.org
This page is a translated version of the page WikiLove/Data and the translation is 89% complete.

CC BY-SA licensed dumps of data generated by WikiLove will be available for download shortly. Real-time Wikilove data is currently available from the Toolserver.


순수 위키사랑 데이터

위키사랑 데이터를 저장하기 위해 다음의 필드가 사용됩니다:

필드 의미
wll_id 위키사랑 메시지의 고유 식별자
wll_timestamp 메시지를 보낸 날짜와 시간
wll_sender 위키사랑을 보낸 사용자 ID
wll_sender_registration 보낸이의 사용자 계정 등록 타임스탬프
wll_sender_editcount 위키사랑을 보낸 시점의 보낸이의 편집 수
wll_receiver 위키사랑을 받는이의 사용자 ID
wll_receiver_registration 받는이의 사용자 계정 등록 타임스탬프
wll_receiver_editcount 위키사랑을 받은 시점의 받는이의 편집 수
wll_type type of WikiLove sent (e.g. food-strawberries)
wll_subject 위키사랑 메시지 제목
wll_message 위키사랑 메시지 본문

SQL 스키마

다음의 스키마는 위키사랑 데이터를 MySQL 테이블로 가져오기 위해 사용할 수 있습니다:

CREATE TABLE `wikilove_log` (
  `wll_id` int(11) NOT NULL AUTO_INCREMENT,
  `wll_timestamp` binary(14) NOT NULL,
  `wll_sender` int(11) NOT NULL,
  `wll_sender_registration` binary(14) DEFAULT NULL,
  `wll_sender_editcount` int(11) DEFAULT NULL,
  `wll_receiver` int(11) NOT NULL,
  `wll_receiver_registration` binary(14) DEFAULT NULL,
  `wll_receiver_editcount` int(11) DEFAULT NULL,
  `wll_type` varbinary(64) NOT NULL,
  `wll_subject` varbinary(255) NOT NULL,
  `wll_message` blob NOT NULL,
  PRIMARY KEY (`wll_id`),
  KEY `wll_timestamp` (`wll_timestamp`),
  KEY `wll_type_time` (`wll_type`,`wll_timestamp`),
  KEY `wll_sender_time` (`wll_sender`,`wll_timestamp`),
  KEY `wll_receiver_time` (`wll_receiver`,`wll_timestamp`)
) ENGINE=InnoDB  DEFAULT CHARSET=binary