#ifndef SYSTMP_H
#define SYSTMP_H

/*===========================================================================
    Raima SQL System Temporary Template DDL Specification

    Copyright (c) 1991-1994 Raima Corporation.  All Rights Reserved.
===========================================================================*/

/* WARNING: when adding files UPDATE "systmp.sql" */


/* database systmp record/key structure declarations */

struct syssqlspec {
   char sysnulls_[2][1];
   short scope;
   char column_name[33];
   short data_type;
   long precision_;
   short size[3];
   short scale;
   char table_qual[33];
   char table_name[33];
   short nullable;
   char sssuser[33];
};

struct syssqlspec_scope_idx {
   short scope;
};

/* record, field and set table entry definitions */

/* File Id Constants */
#define SYSTIDX 0
#define SYSTCOL 1

/* Record Name Constants */
#define SYSSQLSPEC 10000

/* Field Name Constants */
#define SYSSQLSPEC_SYSNULLS_ 0L
#define SYSSQLSPEC_SCOPE 1L
#define SYSSQLSPEC_COLUMN_NAME 2L
#define SYSSQLSPEC_DATA_TYPE 3L
#define SYSSQLSPEC_PRECISION_ 4L
#define SYSSQLSPEC_SIZE 5L
#define SYSSQLSPEC_SCALE 6L
#define SYSSQLSPEC_TABLE_QUAL 7L
#define SYSSQLSPEC_TABLE_NAME 8L
#define SYSSQLSPEC_NULLABLE 9L
#define SYSSQLSPEC_SSSUSER 10L
#define SYSSQLSPEC_SCOPE_IDX 11L

/* Set Name Constants */

/* Field Sizes */
#define SIZEOF_SYSSQLSPEC_SYSNULLS_ 2
#define SIZEOF_SYSSQLSPEC_SCOPE 2
#define SIZEOF_SYSSQLSPEC_COLUMN_NAME 33
#define SIZEOF_SYSSQLSPEC_DATA_TYPE 2
#define SIZEOF_SYSSQLSPEC_PRECISION_ 4
#define SIZEOF_SYSSQLSPEC_SIZE 6
#define SIZEOF_SYSSQLSPEC_SCALE 2
#define SIZEOF_SYSSQLSPEC_TABLE_QUAL 33
#define SIZEOF_SYSSQLSPEC_TABLE_NAME 33
#define SIZEOF_SYSSQLSPEC_NULLABLE 2
#define SIZEOF_SYSSQLSPEC_SSSUSER 33

#endif    /* SYSTMP_H */
