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