summaryrefslogtreecommitdiffstats
path: root/database/sqlite/fieldmapping.h
diff options
context:
space:
mode:
Diffstat (limited to 'database/sqlite/fieldmapping.h')
-rw-r--r--database/sqlite/fieldmapping.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/database/sqlite/fieldmapping.h b/database/sqlite/fieldmapping.h
new file mode 100644
index 0000000..227b50b
--- /dev/null
+++ b/database/sqlite/fieldmapping.h
@@ -0,0 +1,34 @@
+/* fieldmapping.h -- Contains mapping from internal eurephia field ID to
+ * SQLite3 specific field names per table
+ *
+ * GPLv2 - Copyright (C) 2008 David Sommerseth <dazo@users.sourceforge.net>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; version 2
+ * of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef FIELDMAPPING_H_
+# define FIELDMAPPING_H_
+
+eFieldMap tbl_sqlite_user[] = {
+ {TABLE_USERS, SORTKEY_RECID, "uid"},
+ {TABLE_USERS, SORTKEY_UNAME, "username"},
+ {TABLE_USERS, SORTKEY_ACTIVATED, "activated"},
+ {TABLE_USERS, SORTKEY_DEACTIVATED, "deactivated"},
+ {TABLE_USERS, SORTKEY_LASTACCESS, "last_accessed"},
+ {TABLE_USERS, SORTKEY_NONE, NULL}
+};
+
+#endif /* !FIELDMAPPING_H_ */