Game Database Schema

From LinuxMCE
Revision as of 03:55, 4 June 2017 by Tschak909 (Talk | contribs) (Initial content.)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

This is the proposed schema for the lmce_game database. As the first version was used as is between the first two Game Player versions, the new version of the schema will be called v2.

As was before, this database is used to reconcile the possible metadata for game media found on a LinuxMCE system.

Goals

The goals with this particular database schema are:

  • Deal with the differences between "Software List" based collections that are baked collections for a given emulator (e.g. MAME soft list), and loose ROMs.
  • Try to consolidate media metadata to cleaned sanitized titles utilizing hashes made from normalized strings
  • Consolidate and Handle multiple game systems

Tables

The Database is comprised of the following tables:

File

This table is the entry point for a file, usually a ROM.

CREATE TABLE File  (
    PK_File INTEGER AUTO_INCREMENT NOT NULL,
    Description VARCHAR(1024),
    SHA1_Hash CHAR(40)
);

GameSystem