Shadowhelix:Datenbank

Aus Shadowhelix
Zur Navigation springen Zur Suche springen
Letztes Update: 26.09.2015

Die Seite Shadowhelix:Datenbank dient der Erarbeitung eines Entwurfs für eine Datenbank, die Bereiche von Shadowrun mit großen Datenmengen besser zugänglich machen soll. Vorallem soll ein Datenbank-Schema erstellt werden, auf dessen Basis eine Datenbank aufgesetzt werden kann.

Bearbeitung

Listenaufarbeitung

Entwurfsversion

Datei:Entwurf contributors.txt id_contributor | surname | surname_suffix | forename_first | forename_second | forename_third | year_birth | year_death
Datei:Entwurf contributors weblink.txt id_contributor | url
 
Datei:Entwurf sources.txt id_source | description | language_code | type
Datei:Entwurf sources catalog.txt id_source | id_drivethru | id_amazon | id_rpggeek
 
Datei:Entwurf contributions.txt id_contributor | id_source | standard_descriptor | uncredited | title_contribution
Datei:Entwurf illustrations.txt id_illustration | id_contributor | id_constructed
Datei:Entwurf illustrations source.txt id_illustration | id_source | issue | page_reference | entry_reference | position
Datei:Entwurf illustrations weblink.txt id_illustration | web_link | direct_link
 
Datei:Entwurf corporations name.txt id_corporation | language_code | short_name | full_name | abbreviation
Datei:Entwurf corporations ownership.txt id_corporation | id_corporation_owner | id_organisation_owner | id_person_owner | fraction | from_year | from_month | to_year | to_month
 
Datei:Entwurf products name.txt id_product | language_code | name
Datei:Entwurf products source.txt id_product | id_source | issue | page_reference | entry_reference
Datei:Entwurf products type.txt id_product | id_type
Datei:Entwurf types.txt id_type | language_code | name
 
Datei:Entwurf shadow matrix users.txt id_user | id_person | name
Datei:Entwurf shadow matrix shadowtalk source.txt id_user | id_source | issue | page_reference | entry_reference

Datenbankumsetzung - SQLite

Skript für Tabellenerstellung:

CREATE TABLE sources(
id_source      INTEGER(0) NOT NULL
,description   TEXT NOT NULL
,language_code TEXT NOT NULL
,type          TEXT
);

CREATE TABLE sources_catalog(
id_source     INTEGER(0) NOT NULL
,id_drivethru TEXT
,id_amazon    TEXT
,id_rpggeek   TEXT
);

CREATE TABLE contributors(
id_contributor   INTEGER(0) NOT NULL
,surname         TEXT NOT NULL
,surname_suffix  TEXT
,forename_first  TEXT
,forename_second TEXT
,forename_third  TEXT
,year_birth      TEXT
,year_death      TEXT
);

CREATE TABLE contributors_weblink(
id_contributor INTEGER(0) NOT NULL
,url           TEXT NOT NULL
);

CREATE TABLE contributions(
id_contributor       INTEGER(0) NOT NULL
,id_source           INTEGER(0) NOT NULL
,standard_descriptor TEXT NOT NULL
,uncredited          CHAR(1)
,title_contribution  TEXT
);

CREATE TABLE illustrations(
id_illustration INTEGER(0) NOT NULL
,id_contributor INTEGER(0)
,id_constructed TEXT
);

CREATE TABLE illustrations_source(
id_illustration  INTEGER(0) NOT NULL
,id_source       INTEGER(0) NOT NULL
,issue           TEXT
,page_reference  TEXT
,entry_reference TEXT
,position        TEXT
);

CREATE TABLE illustrations_weblink(
id_illustration INTEGER(0) NOT NULL
,web_link       TEXT
,direct_link    TEXT
);

CREATE TABLE corporations_name(
id_corporation INTEGER(0) NOT NULL
,language_code TEXT
,short_name    TEXT
,full_name     TEXT
,abbreviation  TEXT
);

CREATE TABLE corporations_ownership(
id_corporation         INTEGER(0) NOT NULL
,id_corporation_owner  INTEGER(0)
,id_organisation_owner INTEGER(0)
,id_person_owner       INTEGER(0)
,fraction              TEXT
,from_year             TEXT
,from_month            TEXT
,to_year               TEXT
,to_month              TEXT
);

CREATE TABLE products_name(
id_product     INTEGER(0) NOT NULL
,language_code TEXT
,name          TEXT
);

CREATE TABLE products_source(
id_product       INTEGER(0) NOT NULL
,id_source       INTEGER(0)
,issue           TEXT
,page_reference  TEXT
,entry_reference TEXT
);

CREATE TABLE products_type(
id_product   INTEGER(0) NOT NULL
,id_type     INTEGER(0)
);

CREATE TABLE types(
id_type        INTEGER(0) NOT NULL
,language_code TEXT
,name          TEXT
);

CREATE TABLE shadow_matrix_users(
id_user    INTEGER(0) NOT NULL
,id_person INTEGER(0)
,name      TEXT
);

CREATE TABLE shadow_matrix_shadowtalk_source(
id_user          INTEGER(0) NOT NULL
,id_source       INTEGER(0) NOT NULL
,issue           TEXT
,page_reference  TEXT
,entry_reference TEXT
);

Datenquellen

  • Richter
    • Die zu "corporations" und "products" gehörenden Tabellen, basieren auf umfangreichen Listen, die von Richter angelegt wurden.
  • mattdroz.com
    • Die zu "shadow matrix" gehörenden Tabellen, basieren auf dem Shadowtalker-Verzeichnis, das auf mattdroz.com gehostet wird. (http://www.mattdroz.com/PDF/)