/* $PH/05f523/week14/gencpp_metaschema.sch/ /* Appendix C: from $CASE/2kf522/kmiu/gencpp_final_2000Dec/metaschema.sch - RJL050301 */ /* (Tables VV and TS omitted for this 05s523 exam1 problem 4) */ /* RJL050909: In SV, svname, svversion, svpath, in TT, ttname and */ /* in TA, dfltval, are type cnn not tnn.(no whitespace allowed)*/ schemaVersion SV /* sv_type - schema version, data, path, applications? */ { SVid SV000000 c8 1 /* primary key field */ PVid PJ000000 c8 0 /* Project Ref - non-key field for now */ svname NA t30 0 /* schema name [and version?] */ sformat TBD c6 0 /* schema format: CHGEN or GENDB[?] */ sversion 0.0 t12 0 /* schema tag or version (rev# i.j...? */ lastMod 000000 i4 0 /* date of last mod: yymmdd */ svpath NA t80 0 /* full path prefix or $DEFINED-SYMBOL */ descr NA t80 0 /* e.g., list of schema applications? */ } TableType TT /* tt_type - table description and child-set of attributes*/ { TTid TT000000 c8 1 /* primary key field */ SVid SV000000 c8 1 /* SVid is foreign key */ ttabb NA c5 0 /* 2 or 4 UCLetters */ ttname NA t30 0 /* table name */ descr NA t80 0 /* descriptive comment (table purpose) */ } TableAttribute TA /* ta_type - scalar or ref attribute of parent table */ { TAid TA000000 c8 1 /* primary key field */ TTid TT000000 c8 1 /* TTid is foreign key */ fname NA c30 0 /* field name (column header) */ dfltVal NA t30 0 /* default value (was altName) */ ftype I4 c10 0 /* field type (I4/F4/c##,t###/k8/k12) */ iskey 0 c4 0 /* 0:nonkey; 1/-1:pfkey; s:superClassRef */ comment // t132 0 /* descriptive comment (units/range?) */ }