Difference between revisions of "Database Schema"

From ISFDB
Jump to navigation Jump to search
(→‎Awards-Related Tables: +Transliteration tables)
(→‎Awards-Related Tables: +Award Types and Award Categories)
Line 63: Line 63:
 
The following tables are used to store information about awards:
 
The following tables are used to store information about awards:
  
* [[Schema:award_types]] - Not yet implemented and subject to change. Designed to replace hard-coded award_ttypes.
+
* [[Schema:award_cats]] - Contains information about award categories.
 +
* [[Schema:award_types]] - Contains information about award types.
 
* [[Schema:awards]] - Contains award information.
 
* [[Schema:awards]] - Contains award information.
* [[Schema:title_awards]] - Maps an award to a specific title.
+
* [[Schema:title_awards]] - Links award records to their related title records.
  
 
==Transliteration Tables==
 
==Transliteration Tables==

Revision as of 12:08, 3 September 2016

Introduction

There are three primary document views utilized by the ISFDB: showing the bibliography of an author, showing the titles present in a publication, and showing the publications in which a title was published. These views require three primary tables: authors, titles, and publications. Various normalization tables are provided to reduce errors and storage needs.

The illustration below shows the relationship between the various tables. All notes are stored in the notes table, which other tables refer to via the primary note_id key. The metadata table contains data pertinent to the database itself.

A high-level explanation of the database can be found in the Database Overview article. An out-of-date diagram of the ISFDB tables and their relationships can be found here.

Global Tables

Information stored in the global tables are shared across the title, author, and publication related tables in the ISFDB.

Author-Related Tables

The following tables are used to store information about authors and their works:

Publication-Related Tables

The following tables are used to store information about publications:

Title-Related Tables

The following tables are used to store information about titles:

Awards-Related Tables

The following tables are used to store information about awards:

Transliteration Tables