home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
model_create.dbt
< prev
next >
Wrap
Text File
|
1997-09-23
|
2KB
|
88 lines
# Template @(#)model_create.dbt /main/titanic/6 18 Sep 1997
# Copyright (c) 1997 Cayenne Software, Inc.
#
~[invoke db_util];
~[invoke db_types];
# Can't use ddl commands within transaction. This script is always
# invoked from within a transaction, so commit current transaction.
#
commit tran;
create ~[table DML_Header] (
c_hdmlobj ~[integer] not null,
c_revision ~[integer] not null,
c_removed ~[integer],
c_dmlid ~[smallint] not null,
c_changeFlag ~[smallint] not null,
c_timeCreated ~[integer] not null,
c_idCreatedBy ~[smallint] not null,
c_timeUpdated ~[integer] not null,
c_idUpdatedBy ~[smallint] not null,
c_dirtyBit ~[smallint] not null,
c_swmLockState ~[smallint] not null,
c_aDirtyBits ~[binary 15] not null
);
create ~[table GW_HighObjKey] (
c_lDBCode ~[integer] not null default autoincrement
);
create ~[table GW_HighTrxKey] (
c_TxnTimestamp ~[integer] not null default autoincrement
);
create ~[table DML_Scalar] (
c_hdmlobj ~[integer] not null,
c_revision ~[integer] not null,
c_removed ~[integer],
c_scalars ~[blob] not null
);
create ~[table DML_Relation] (
c_typeLeft ~[smallint] not null,
c_hdmlobjLeft ~[integer] not null,
c_roleLeft ~[smallint] not null,
c_posLeft ~[integer],
c_typeRight ~[smallint] not null,
c_hdmlobjRight ~[integer] not null,
c_roleRight ~[smallint] not null,
c_posRight ~[integer],
c_revision ~[integer] not null,
c_removed ~[integer]
);
create ~[table DML_Unique] (
c_hdmlobjParent ~[integer] not null,
c_roleParent ~[smallint] not null,
c_hdmlobjDep ~[integer] not null,
c_propertyDep ~[smallint] not null,
c_uniqueValue ~[binary 152] not null,
c_removed ~[integer]
);
create ~[table GW_File_Header] (
c_label ~[binary 16] not null,
c_codepage ~[smallint] not null,
c_majorVersion ~[smallint] not null,
c_minorVersion ~[smallint] not null,
c_modelSubType ~[smallint] not null,
c_modelName ~[binary 152] not null,
c_surrogate ~[integer] not null,
c_nodeName ~[binary 152] not null,
c_dBName ~[binary 152] not null,
c_userid ~[binary 152] not null,
c_modelObjSKey ~[integer] not null,
c_modelType ~[smallint] not null,
c_countUsers ~[smallint],
c_userids ~[blob],
c_revision ~[integer] not null,
c_removed ~[integer]
);
begin tran;
~[invoke model_createind];