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 @@
|
||||||
_extends=story
|
_version = 1.2
|
||||||
|
_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,17 +1,27 @@
|
||||||
_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
|
||||||
alias=ALIAS
|
weblog = object (weblog)
|
||||||
mimetype=MIMETYPE
|
weblog.local = WEBLOG_ID
|
||||||
file=FILE
|
weblog.foreign = ID
|
||||||
filesize=FILESIZE
|
creator = object (user)
|
||||||
description=DESCRIPTION
|
creator.local = CREATOR
|
||||||
requestcnt=REQUESTCNT
|
creator.foreign = ID
|
||||||
createtime=CREATETIME
|
modifier = object (user)
|
||||||
creator=CREATOR>user.ID
|
modifier.local = MODIFIER
|
||||||
modifytime=MODIFYTIME
|
modifier.foreign = ID
|
||||||
modifier=MODIFIER>user.ID
|
|
||||||
|
# primitive properties
|
||||||
|
alias = ALIAS
|
||||||
|
mimetype = MIMETYPE
|
||||||
|
file = FILE
|
||||||
|
filesize = FILESIZE
|
||||||
|
description = DESCRIPTION
|
||||||
|
requestcnt = REQUESTCNT
|
||||||
|
createtime = CREATETIME
|
||||||
|
modifytime = MODIFYTIME
|
|
@ -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,19 +1,33 @@
|
||||||
_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
|
||||||
alias=ALIAS
|
weblog.foreign = ID
|
||||||
filename=FILENAME
|
parent = object (image)
|
||||||
fileext=FILEEXT
|
parent.local = PARENT_ID
|
||||||
width=WIDTH
|
parent.foreign = ID
|
||||||
height=HEIGHT
|
thumbnail = object (image)
|
||||||
alttext=ALTTEXT
|
thumbnail.local = THUMBNAIL_ID
|
||||||
createtime=CREATETIME
|
thumbnail.foreign = ID
|
||||||
creator=CREATOR>user.ID
|
creator = object (user)
|
||||||
modifytime=MODIFYTIME
|
creator.local = CREATOR
|
||||||
modifier=MODIFIER>user.ID
|
creator.foreign = ID
|
||||||
|
modifier = object (user)
|
||||||
|
modifier.local = MODIFIER
|
||||||
|
modifier.foreign = ID
|
||||||
|
|
||||||
|
# primitive properties
|
||||||
|
alias = ALIAS
|
||||||
|
filename = FILENAME
|
||||||
|
fileext = FILEEXT
|
||||||
|
width = WIDTH
|
||||||
|
height = HEIGHT
|
||||||
|
alttext = ALTTEXT
|
||||||
|
createtime = CREATETIME
|
||||||
|
modifytime = MODIFYTIME
|
||||||
|
|
|
@ -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
|
# object references
|
||||||
weblog=WEBLOG_ID>weblog.ID
|
weblog = object (weblog)
|
||||||
user=USER_ID>user.ID
|
weblog.local = WEBLOG_ID
|
||||||
username=USERNAME
|
weblog.foreign = ID
|
||||||
level=LEVEL
|
user = object (user)
|
||||||
createtime=CREATETIME
|
user.local = USER_ID
|
||||||
modifier=MODIFIER>user.ID
|
user.foreign = ID
|
||||||
modifytime=MODIFYTIME
|
modifier = object (user)
|
||||||
|
modifier.local = MODIFIER
|
||||||
|
modifier.foreign = ID
|
||||||
|
|
||||||
|
# primitive properties
|
||||||
|
username = USERNAME
|
||||||
|
level = LEVEL
|
||||||
|
createtime = CREATETIME
|
||||||
|
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
|
|
||||||
proto=PROTO
|
# object references
|
||||||
name=NAME
|
weblog = object (weblog)
|
||||||
skin=SOURCE
|
weblog.local = WEBLOG_ID
|
||||||
creator=CREATOR>user.ID
|
weblog.foreign = ID
|
||||||
createtime=CREATETIME
|
creator = object (user)
|
||||||
modified=MODIFYTIME
|
creator.local = CREATOR
|
||||||
|
creator.foreign = ID
|
||||||
|
|
||||||
|
# primitive properties
|
||||||
|
proto = PROTO
|
||||||
|
name = NAME
|
||||||
|
skin = SOURCE
|
||||||
|
createtime = CREATETIME
|
||||||
|
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
|
|
||||||
|
|
||||||
_parent=weblog.topics,weblog
|
_children = collection (comment)
|
||||||
|
_children.local = ID
|
||||||
|
_children.foreign = STORY_ID
|
||||||
|
_children.order = CREATETIME ASC
|
||||||
|
_children.filter = PARENT_ID IS NULL
|
||||||
|
|
||||||
_id=ID
|
_parent = weblog.topics,weblog
|
||||||
_prototype=PROTOTYPE
|
_id = ID
|
||||||
weblog=WEBLOG_ID>weblog.ID
|
_prototype = PROTOTYPE
|
||||||
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
|
# object references
|
||||||
allcomments.filter=ISONLINE > 0
|
weblog = object (weblog)
|
||||||
allcomments.order=MODIFYTIME DESC
|
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
|
||||||
|
title = TITLE
|
||||||
|
text = TEXT
|
||||||
|
online = ISONLINE
|
||||||
|
editableby = EDITABLEBY
|
||||||
|
createtime = CREATETIME
|
||||||
|
modifytime = MODIFYTIME
|
||||||
|
ipaddress = IPADDRESS
|
||||||
|
reads = READS
|
||||||
|
|
||||||
|
# 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
|
_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 @@
|
||||||
_extends=day
|
_version = 1.2
|
||||||
|
_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