Jump to content

WikiLove/データ

From mediawiki.org
This page is a translated version of the page WikiLove/Data and the translation is 63% 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.


未加工のWikiLoveデータ

WikiLoveのデータを保存するためには、以下のフィールドを使用してください :

フィールド 意味
wll_id the unique identifier for a WikiLove message
wll_timestamp 送信日時
wll_sender WikiLove送信者の利用者ID
wll_sender_registration the timestamp of the sender's user account registration
wll_sender_editcount number of edits of the sender at the time WikiLove was sent
wll_receiver WikiLove受信者の利用者ID
wll_receiver_registration the timestamp of the recipient's user account registration
wll_receiver_editcount number of edits of the recipient at the time WikiLove was received
wll_type type of WikiLove sent (e.g. food-strawberries)
wll_subject WikiLoveメッセージの題
wll_message WikiLoveメッセージの本文

SQLスキーマ

以下のスキーマは、WikiLoveのデータを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