switched to version 1.2
This commit is contained in:
parent
f157fa8e91
commit
269a461d03
16 changed files with 237 additions and 135 deletions
|
@ -1,11 +1,16 @@
|
|||
_datasource = antville
|
||||
_tablename = CHOICE
|
||||
_subnodes =< vote.CHOICE_ID
|
||||
_version = 1.2
|
||||
_db = antville
|
||||
_table = CHOICE
|
||||
_children = collection (vote)
|
||||
_children.local = ID
|
||||
_children.foreign = CHOICE_ID
|
||||
|
||||
_id = ID
|
||||
_parent = poll
|
||||
|
||||
poll = POLL_ID > poll.ID
|
||||
poll = object (poll)
|
||||
poll.local = POLL_ID
|
||||
poll.foreign = ID
|
||||
title = TITLE
|
||||
createtime = CREATETIME
|
||||
modifytime = MODIFYTIME
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
_version = 1.2
|
||||
_extends = story
|
||||
|
||||
_subnodes=<comment.PARENT_ID
|
||||
_subnodes.order=CREATETIME ASC
|
||||
_children = collection (comment)
|
||||
_children.local = ID
|
||||
_children.foreign = PARENT_ID
|
||||
_children.order = CREATETIME ASC
|
||||
|
||||
_parent = parent,story
|
||||
|
|
|
@ -1,10 +1,22 @@
|
|||
_datasource=antville
|
||||
_tablename=GOODIE
|
||||
_version = 1.2
|
||||
_db = antville
|
||||
_table = GOODIE
|
||||
|
||||
_id = ID
|
||||
_parent = weblog.goodies
|
||||
|
||||
weblog=WEBLOG_ID>weblog.ID
|
||||
# object references
|
||||
weblog = object (weblog)
|
||||
weblog.local = WEBLOG_ID
|
||||
weblog.foreign = ID
|
||||
creator = object (user)
|
||||
creator.local = CREATOR
|
||||
creator.foreign = ID
|
||||
modifier = object (user)
|
||||
modifier.local = MODIFIER
|
||||
modifier.foreign = ID
|
||||
|
||||
# primitive properties
|
||||
alias = ALIAS
|
||||
mimetype = MIMETYPE
|
||||
file = FILE
|
||||
|
@ -12,6 +24,4 @@ filesize=FILESIZE
|
|||
description = DESCRIPTION
|
||||
requestcnt = REQUESTCNT
|
||||
createtime = CREATETIME
|
||||
creator=CREATOR>user.ID
|
||||
modifytime = MODIFYTIME
|
||||
modifier=MODIFIER>user.ID
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
_subnodes=<goodie.WEBLOG_ID
|
||||
_subnodes.order=CREATETIME desc
|
||||
_subnodes.loadmode=aggressive
|
||||
|
||||
_properties=goodie.ALIAS
|
||||
_properties.aresubnodes=true
|
||||
|
||||
_version = 1.2
|
||||
_children = collection (goodie)
|
||||
_children.local = ID
|
||||
_children.foreign = WEBLOG_ID
|
||||
_children.order = CREATETIME desc
|
||||
_children.loadmode = aggressive
|
||||
_children.accessname = ALIAS
|
||||
|
|
|
@ -1,12 +1,28 @@
|
|||
_datasource=antville
|
||||
_tablename=IMAGE
|
||||
_version = 1.2
|
||||
_db = antville
|
||||
_table = IMAGE
|
||||
|
||||
_id = ID
|
||||
_parent = parent, weblog.images[named]
|
||||
|
||||
weblog=WEBLOG_ID>weblog.ID
|
||||
parent=PARENT_ID>image.ID
|
||||
thumbnail=THUMBNAIL_ID>image.ID
|
||||
# object references
|
||||
weblog = object (weblog)
|
||||
weblog.local = WEBLOG_ID
|
||||
weblog.foreign = ID
|
||||
parent = object (image)
|
||||
parent.local = PARENT_ID
|
||||
parent.foreign = ID
|
||||
thumbnail = object (image)
|
||||
thumbnail.local = THUMBNAIL_ID
|
||||
thumbnail.foreign = ID
|
||||
creator = object (user)
|
||||
creator.local = CREATOR
|
||||
creator.foreign = ID
|
||||
modifier = object (user)
|
||||
modifier.local = MODIFIER
|
||||
modifier.foreign = ID
|
||||
|
||||
# primitive properties
|
||||
alias = ALIAS
|
||||
filename = FILENAME
|
||||
fileext = FILEEXT
|
||||
|
@ -14,6 +30,4 @@ width=WIDTH
|
|||
height = HEIGHT
|
||||
alttext = ALTTEXT
|
||||
createtime = CREATETIME
|
||||
creator=CREATOR>user.ID
|
||||
modifytime = MODIFYTIME
|
||||
modifier=MODIFIER>user.ID
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
_subnodes=<image.WEBLOG_ID
|
||||
_subnodes.order=CREATETIME desc
|
||||
_subnodes.loadmode=aggressive
|
||||
_subnodes.filter=PARENT_ID is null
|
||||
|
||||
_properties=image.ALIAS
|
||||
_properties.aresubnodes=true
|
||||
|
||||
_version = 1.2
|
||||
_children = collection (image)
|
||||
_children.local = ID
|
||||
_children.foreign = WEBLOG_ID
|
||||
_children.order = CREATETIME desc
|
||||
_children.loadmode = aggressive
|
||||
_children.filter = PARENT_ID is null
|
||||
_children.accessname = ALIAS
|
|
@ -1,4 +1,6 @@
|
|||
_subnodes=<member.WEBLOG_ID
|
||||
_properties=member.USERNAME
|
||||
_properties.aresubnodes=true
|
||||
_subnodes.order=LEVEL desc, USERNAME asc
|
||||
_version = 1.2
|
||||
_children = collection (member)
|
||||
_children.local = ID
|
||||
_children.foreign = WEBLOG_ID
|
||||
_children.accessname = USERNAME
|
||||
_children.order = LEVEL desc, USERNAME asc
|
||||
|
|
|
@ -1,13 +1,23 @@
|
|||
_datasource=antville
|
||||
_tablename=MEMBER
|
||||
_version = 1.2
|
||||
_db = antville
|
||||
_table = MEMBER
|
||||
|
||||
_parent = weblog.members
|
||||
|
||||
_id = ID
|
||||
weblog=WEBLOG_ID>weblog.ID
|
||||
user=USER_ID>user.ID
|
||||
|
||||
# object references
|
||||
weblog = object (weblog)
|
||||
weblog.local = WEBLOG_ID
|
||||
weblog.foreign = ID
|
||||
user = object (user)
|
||||
user.local = USER_ID
|
||||
user.foreign = ID
|
||||
modifier = object (user)
|
||||
modifier.local = MODIFIER
|
||||
modifier.foreign = ID
|
||||
|
||||
# primitive properties
|
||||
username = USERNAME
|
||||
level = LEVEL
|
||||
createtime = CREATETIME
|
||||
modifier=MODIFIER>user.ID
|
||||
modifytime = MODIFYTIME
|
|
@ -1,19 +1,32 @@
|
|||
_datasource = antville
|
||||
_tablename = POLL
|
||||
_subnodes =< choice.POLL_ID
|
||||
_subnodes.order = ID asc
|
||||
_version = 1.2
|
||||
_db = antville
|
||||
_table = POLL
|
||||
|
||||
_children = collection (choice)
|
||||
_children.local = ID
|
||||
_children.foreign = POLL_ID
|
||||
_children.order = ID asc
|
||||
|
||||
_id = ID
|
||||
_parent = weblog.polls
|
||||
|
||||
weblog = WEBLOG_ID > weblog.ID
|
||||
creator = USER_ID > user.ID
|
||||
# object references
|
||||
weblog = object (weblog)
|
||||
weblog.local = WEBLOG_ID
|
||||
weblog.foreign = ID
|
||||
creator = object (user)
|
||||
creator.local = USER_ID
|
||||
creator.foreign = ID
|
||||
|
||||
# primitive properties
|
||||
title = TITLE
|
||||
question = QUESTION
|
||||
closed = CLOSED
|
||||
createtime = CREATETIME
|
||||
modifytime = MODIFYTIME
|
||||
|
||||
votes = [virtual] vote.USERNAME
|
||||
votes.subnodeRelation =< vote.POLL_ID
|
||||
votes.areSubnodes = true
|
||||
# collections
|
||||
votes = collection (vote)
|
||||
votes.accessname = USERNAME
|
||||
votes.local = ID
|
||||
votes.foreign = vote.POLL_ID
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
_subnodes =< poll.WEBLOG_ID
|
||||
_subnodes.order = CREATETIME desc
|
||||
_version = 1.2
|
||||
_children = collection (poll)
|
||||
_children.local = ID
|
||||
_children.foreign = WEBLOG_ID
|
||||
_children.order = CREATETIME desc
|
||||
|
|
|
@ -1,11 +1,20 @@
|
|||
_datasource=antville
|
||||
_tablename=SKIN
|
||||
_version = 1.2
|
||||
_db = antville
|
||||
_table = SKIN
|
||||
|
||||
_id = ID
|
||||
weblog=WEBLOG_ID>weblog.ID
|
||||
|
||||
# object references
|
||||
weblog = object (weblog)
|
||||
weblog.local = WEBLOG_ID
|
||||
weblog.foreign = ID
|
||||
creator = object (user)
|
||||
creator.local = CREATOR
|
||||
creator.foreign = ID
|
||||
|
||||
# primitive properties
|
||||
proto = PROTO
|
||||
name = NAME
|
||||
skin = SOURCE
|
||||
creator=CREATOR>user.ID
|
||||
createtime = CREATETIME
|
||||
modified = MODIFYTIME
|
||||
|
|
|
@ -1,29 +1,49 @@
|
|||
_datasource=antville
|
||||
_tablename=TEXT
|
||||
_subnodes=<comment.STORY_ID
|
||||
_subnodes.order=CREATETIME ASC
|
||||
_subnodes.filter=PARENT_ID IS NULL
|
||||
_version = 1.2
|
||||
_db = antville
|
||||
_table = TEXT
|
||||
|
||||
_children = collection (comment)
|
||||
_children.local = ID
|
||||
_children.foreign = STORY_ID
|
||||
_children.order = CREATETIME ASC
|
||||
_children.filter = PARENT_ID IS NULL
|
||||
|
||||
_parent = weblog.topics,weblog
|
||||
|
||||
_id = ID
|
||||
_prototype = PROTOTYPE
|
||||
weblog=WEBLOG_ID>weblog.ID
|
||||
|
||||
# object references
|
||||
weblog = object (weblog)
|
||||
weblog.local = WEBLOG_ID
|
||||
weblog.foreign = ID
|
||||
story = object (story)
|
||||
story.local = STORY_ID
|
||||
story.foreign = ID
|
||||
parent = object (comment)
|
||||
parent.local = PARENT_ID
|
||||
parent.foreign = ID
|
||||
author = object (user)
|
||||
author.local = AUTHOR
|
||||
author.foreign = ID
|
||||
modifier = object (user)
|
||||
modifier.local = MODIFIER
|
||||
modifier.foreign = ID
|
||||
|
||||
# primitive properties
|
||||
day = DAY
|
||||
topic = TOPIC
|
||||
story=STORY_ID>story.ID
|
||||
parent=PARENT_ID>comment.ID
|
||||
title = TITLE
|
||||
text = TEXT
|
||||
online = ISONLINE
|
||||
editableby = EDITABLEBY
|
||||
author=AUTHOR>user.ID
|
||||
createtime = CREATETIME
|
||||
modifytime = MODIFYTIME
|
||||
modifier=MODIFIER>user.ID
|
||||
ipaddress = IPADDRESS
|
||||
reads = READS
|
||||
|
||||
allcomments=[virtual]<comment.STORY_ID
|
||||
# collections
|
||||
allcomments = collection (comment)
|
||||
allcomments.local = ID
|
||||
allcomments.foreign = STORY_ID
|
||||
allcomments.filter = ISONLINE > 0
|
||||
allcomments.order = MODIFYTIME DESC
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
_subnodes=<story.WEBLOG_ID
|
||||
_subnodes.filter=PROTOTYPE = 'story'
|
||||
_subnodes.order=CREATETIME desc
|
||||
_subnodes.loadmode=aggressive
|
||||
_version = 1.2
|
||||
_children = collection (story)
|
||||
_children.local = ID
|
||||
_children.foreign = WEBLOG_ID
|
||||
_children.filter = PROTOTYPE = 'story'
|
||||
_children.order = CREATETIME desc
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
_version = 1.2
|
||||
_extends = day
|
||||
|
||||
related=[virtual]story.ID
|
||||
|
||||
related = collection (story)
|
|
@ -1,6 +1,9 @@
|
|||
_subnodes=<story.WEBLOG_ID
|
||||
_subnodes.filter=PROTOTYPE = 'story'
|
||||
_subnodes.groupby=TOPIC
|
||||
_subnodes.order=CREATETIME DESC
|
||||
_subnodes.groupby.prototype=topic
|
||||
_subnodes.groupby.order=TOPIC
|
||||
_version = 1.2
|
||||
_children = collection (story)
|
||||
_children.local = ID
|
||||
_children.foreign = WEBLOG_ID
|
||||
_children.filter = PROTOTYPE = 'story'
|
||||
_children.order = CREATETIME DESC
|
||||
_children.groupby = TOPIC
|
||||
_children.groupby.prototype = topic
|
||||
_children.groupby.order = TOPIC
|
||||
|
|
|
@ -1,12 +1,20 @@
|
|||
_datasource = antville
|
||||
_tablename = VOTE
|
||||
_version = 1.2
|
||||
_db = antville
|
||||
_table = VOTE
|
||||
|
||||
_id = ID
|
||||
_parent = choice, poll.votes
|
||||
|
||||
poll = POLL_ID > poll.ID
|
||||
user = USER_ID > user.ID
|
||||
choice = CHOICE_ID > choice.ID
|
||||
poll = object (poll)
|
||||
poll.local = POLL_ID
|
||||
poll.foreign = ID
|
||||
user = object (user)
|
||||
user.local = USER_ID
|
||||
user.foreign = ID
|
||||
choice = object (choice)
|
||||
choice.local = CHOICE_ID
|
||||
choice.foreign = ID
|
||||
|
||||
username = USERNAME
|
||||
createtime = CREATETIME
|
||||
modifytime = MODIFYTIME
|
||||
|
|
Loading…
Add table
Reference in a new issue