Agaric Design Collective

CMT database schema, mark II

 
By Benjamin Melançon
on 08 Jul
1 comment
   cmt_term_description
	   vapi_id : corresponds to votingapi content_id
     tid : same as in term_data
     description : same as in term_data.  Don't see a reason to put a key on description

   cmt_term_weight
	   vapi_id : corresponds to votingapi content_id
     tid : same as in term_data
     weight : same as in term_data

   name (inserted into synonym-modeled table cmt_term_name, where votes for names are tracked)
   LEFT OUT: vid (for now, cannot vote on what vocabulary a term belongs in)
                      
   cmt_term_hierarchy
	   vapi_id : corresponds to votingapi content_id
     tid : same as in term_hierarchy
     parent : same as in term_hierarchy

   cmt_term_node
     vapi_id
     nid
     tid
   
   cmt_term_name (based on term_synonym table)
     vapi_id
     tid
     name
 

Forgot to list an important one there

Forgot to list an important one. Also, vapi_id is now called content_id so it matches what votingapi itself calls it.

   cmt_term_merge
     content_id : key for votingapi content_id
     tid1 : term, that gets to keep its name and info, to merge onto tid2
	   tid2 : term, that subsumes its name and info, to merge into tid1
	 -- I will not be able to resist deriving related terms from this
Posted by Benjamin Melançon on Mon, 2007-07-09 08:34
Post new comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <small> <pre> <strike> <sub> <sup> <kbd> <s>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.