diff options
Diffstat (limited to 'lib/tabledef.h')
-rw-r--r-- | lib/tabledef.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/lib/tabledef.h b/lib/tabledef.h index bd2b043..614e311 100644 --- a/lib/tabledef.h +++ b/lib/tabledef.h @@ -389,7 +389,7 @@ class cTableVdrs : public cDbTable public: cTableVdrs(cDbConnection* aConnection) - : cDbTable(aConnection, fields) { } + : cDbTable(aConnection, fields, indices) { } virtual const char* TableName() { return "vdrs"; } @@ -413,6 +413,7 @@ class cTableVdrs : public cDbTable }; static FieldDef fields[]; + static IndexDef indices[]; }; //*************************************************************************** @@ -527,6 +528,36 @@ class cTableSnapshot : public cDbTable }; //*************************************************************************** +// class cTableTimers +//*************************************************************************** + +class cTableTimers : public cDbTable +{ + public: + + cTableTimers(cDbConnection* aConnection) + : cDbTable(aConnection, fields) { } + + virtual const char* TableName() { return "timers"; } + + enum FieldIndex + { + fiEventId, + fiChannelId, + fiVdrUuid, + + fiInsSp, + fiUpdSp, + + fiState, + fiStartTime, + fiEndTime + }; + + static FieldDef fields[]; +}; + +//*************************************************************************** // class cTableSeries //*************************************************************************** |