# $Id: style.ddd 1.8 1995/04/18 02:08:08 ameyer Exp $
# Copyright (C) 1987-1995 Verity, Inc.
#
# Document Dataset Descriptor
#
$control: 1
descriptor:
  /collection = yes
{
  data-table:   _df
    /num-records=1
    /max-records=1
  {
    # Header information for partition management
    constant:   _DBVERSION      text "vdk11"
    fixwidth:   _DDDSTAMP       4  date
    varwidth:   _DOCIDX         _dv
    fixwidth:   _PARTDESC       32 text

    fixwidth:	_SPARE1		16 text
    fixwidth:	_SPARE2		4 signed-integer
  }
  data-table:   _df
    /offset=64
  {
    # Required internal fields per document
    constant:	_TYPE		text "Notes V4"
    autoval:    _STYLE          sirepath
    fixwidth:   _DOCID          4 unsigned-integer
    fixwidth:   _SECURITY       4 unsigned-integer
      /minmax = yes
    fixwidth:	_INDEX_DATE	4 date
      /minmax = yes
  }

######## DO NOT MODIFY ABOVE THIS LINE ########

  data-table:   dkf
  {
    # Must have a VdkVgwKey - this is the primary key to the document
    # The field type can be changed to fixwidth integer or text as needed

# Switch this definition for fixed (rather than var) keys
#    fixwidth:   VdkVgwKey       4 unsigned-integer
#      /_hexdata = yes             
    varwidth:   VdkVgwKey	dkv
      /indexed = yes
      /minmax  = yes
  }

  data-table:   ddf
  {
    # User fields go here. Default is a single dispatch field 
#    dispatch:  DOC
#    varwidth:  DOC_FN          ddv


    # Notes specific field 
    varwidth:   _NOTES_FIELDPARA _dv    
      /_hexdata = yes
    varwidth:   _SEQUENCE_TIME _dv      
      /_hexdata = yes
    fixwidth:   _CreationDate   4 date
    fixwidth:   _RevisionDate   4 date
    fixwidth:   TDK_VERITY_DATE 4 date
    fixwidth:   TDK_VERITY_REV_DATE 4 date
    varwidth:   TDK_VERITY_TITLE   _dv

    # Do Not Modify the next line without changing ftvindex.c   
    # Notes numeric fields 
$INCLUDE "style.dts" 
  }
}
