You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
989 B
JavaScript
56 lines
989 B
JavaScript
(function(Schema) {
|
|
|
|
|
|
Schema.global = function() {
|
|
return {
|
|
|
|
/* strings */
|
|
next_topic_id: 'next_topic_id'
|
|
|
|
}
|
|
};
|
|
|
|
Schema.topics = function(tid) {
|
|
return {
|
|
|
|
/* strings */
|
|
title: 'tid:' + tid + ':title',
|
|
locked: 'tid:' + tid + ':locked',
|
|
category_name: 'tid:' + tid + ':category_name',
|
|
category_slug: 'tid:' + tid + ':category_slug',
|
|
deleted: 'tid:' + tid + ':deleted',
|
|
pinned: 'tid:' + tid + ':pinned',
|
|
uid: 'tid:' + tid + ':uid',
|
|
timestamp: 'tid:' + tid + ':timestamp',
|
|
slug: 'tid:' + tid + ':slug',
|
|
postcount: 'tid:' + tid + ':postcount',
|
|
cid: 'tid:' + tid + ':cid',
|
|
|
|
/* sets */
|
|
tid: 'topics:tid',
|
|
read_by_uid: 'tid:' + tid + ':read_by_uid',
|
|
|
|
/* sorted sets */
|
|
recent: 'topics:recent',
|
|
|
|
/* lists */
|
|
posts: 'tid:' + tid + ':posts',
|
|
queued_tids: 'topics:queued:tid',
|
|
|
|
}
|
|
};
|
|
|
|
Schema.categories = function(cid) {
|
|
|
|
};
|
|
|
|
Schema.users = function(uid) {
|
|
|
|
};
|
|
|
|
Schema.posts = function(pid) {
|
|
|
|
};
|
|
|
|
|
|
}(module.exports)); |