2003-08-02 12:19:11 +00:00
|
|
|
##
|
2007-06-30 19:25:35 +00:00
|
|
|
## The Antville Project
|
|
|
|
## http://code.google.com/p/antville
|
|
|
|
##
|
|
|
|
## Copyright 2001-2007 by The Antville People
|
|
|
|
##
|
|
|
|
## Licensed under the Apache License, Version 2.0 (the ``License'');
|
|
|
|
## you may not use this file except in compliance with the License.
|
|
|
|
## You may obtain a copy of the License at
|
|
|
|
##
|
|
|
|
## http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
##
|
|
|
|
## Unless required by applicable law or agreed to in writing, software
|
|
|
|
## distributed under the License is distributed on an ``AS IS'' BASIS,
|
|
|
|
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
## See the License for the specific language governing permissions and
|
|
|
|
## limitations under the License.
|
2003-08-02 12:19:11 +00:00
|
|
|
##
|
2007-06-30 19:25:35 +00:00
|
|
|
## $Revision$
|
|
|
|
## $LastChangedBy$
|
|
|
|
## $LastChangedDate$
|
|
|
|
## $URL$
|
|
|
|
##
|
|
|
|
|
2007-08-19 16:28:46 +00:00
|
|
|
_db = antville
|
2007-08-23 17:17:40 +00:00
|
|
|
_table = user
|
2007-08-19 16:28:46 +00:00
|
|
|
_id = id
|
|
|
|
_name = name
|
|
|
|
_parent = root.users
|
2007-06-30 19:25:35 +00:00
|
|
|
|
2007-08-19 16:28:46 +00:00
|
|
|
name
|
|
|
|
email
|
|
|
|
status
|
|
|
|
|
|
|
|
registered = created
|
|
|
|
lastVisit = modified
|
|
|
|
|
2007-09-21 13:54:30 +00:00
|
|
|
metadata = mountpoint(Metadata)
|
|
|
|
metadata_source = metadata
|
2002-06-26 16:03:59 +00:00
|
|
|
|
2007-09-14 00:16:06 +00:00
|
|
|
_children = collection(Membership)
|
|
|
|
_children.local = id
|
|
|
|
_children.foreign = creator_id
|
|
|
|
_children.order = role asc, created desc
|
2003-08-02 12:19:11 +00:00
|
|
|
|
2007-09-14 00:16:06 +00:00
|
|
|
memberships = collection(Membership)
|
|
|
|
memberships.local = id
|
|
|
|
memberships.foreign = creator_id
|
2007-09-14 13:13:50 +00:00
|
|
|
memberships.filter.additionalTables = site
|
|
|
|
memberships.filter = site.id = membership.site_id and role <> 'Subscriber'
|
|
|
|
memberships.order = site.title asc
|
2002-06-26 16:03:59 +00:00
|
|
|
|
2007-09-14 00:16:06 +00:00
|
|
|
subscriptions = collection(Membership)
|
|
|
|
subscriptions.local = id
|
|
|
|
subscriptions.foreign = creator_id
|
2007-09-14 13:13:50 +00:00
|
|
|
subscriptions.filter.additionalTables = site
|
|
|
|
subscriptions.filter = site.id = membership.site_id and role = 'Subscriber'
|
|
|
|
subscriptions.order = site.title asc
|
2002-03-27 10:56:55 +00:00
|
|
|
|
2007-09-14 00:16:06 +00:00
|
|
|
stories = collection(Story)
|
|
|
|
stories.local = id
|
|
|
|
stories.foreign = TEXT_F_USER_CREATOR
|
|
|
|
stories.filter = TEXT_PROTOTYPE = 'Story'
|
|
|
|
stories.order = TEXT_MODIFYTIME desc
|
2002-03-27 10:56:55 +00:00
|
|
|
|
2007-09-14 00:16:06 +00:00
|
|
|
comments = collection(Comment)
|
|
|
|
comments.local = id
|
|
|
|
comments.foreign = TEXT_F_USER_CREATOR
|
|
|
|
comments.filter = TEXT_PROTOTYPE = 'Comment'
|
|
|
|
comments.order = TEXT_MODIFYTIME desc
|
2002-03-27 10:56:55 +00:00
|
|
|
|
2007-09-14 00:16:06 +00:00
|
|
|
images = collection(Image)
|
|
|
|
images.local = id
|
|
|
|
images.foreign = IMAGE_F_USER_CREATOR
|
|
|
|
images.filter = IMAGE_PROTOTYPE = 'Image'
|
|
|
|
images.order = IMAGE_CREATETIME desc
|
2002-06-26 16:03:59 +00:00
|
|
|
|
2007-09-14 00:16:06 +00:00
|
|
|
files = collection(File)
|
|
|
|
files.local = id
|
|
|
|
files.foreign = FILE_F_USER_CREATOR
|
|
|
|
files.order = FILE_CREATETIME desc
|
2002-08-13 14:40:10 +00:00
|
|
|
|
2007-09-14 00:16:06 +00:00
|
|
|
sites = collection(Site)
|
|
|
|
sites.local = id
|
|
|
|
sites.foreign = creator_id
|
|
|
|
sites.order = created desc
|