dylan-k
10/8/2013 - 3:07 AM

database design for writer's database

database design for writer's database

A version of this file also lives at https://github.com/dylan-k/bestrew/blob/master/writers-database_data-model.md

TABLE: Submissions
DESCRIPTION: Each row describes a unique submission

FIELD NAMEDATA TYPEDESCRIPTION
sub_idintegerPrimary Key for submissions table
cover_lettertextText-only contents of submission cover letter
send_datedateSubmission date
reply_datedateReply date
sub_statustextOptions like 'pending' 'accepted' or 'declined'
sub_notetextUseful for storing archive of e-mail threads, etc.

TABLE: works_SUBS
DESCRIPTION: There is a one-to-many relationship from Submissions to Manuscripts
NOTE: If you submit multiple files, .zip or merge them first?
Manuscrpts can undergo revisions from one submission to the next
It is useful to store a reference to which (git?) version was sent

FIELD NAMEDATA TYPEDESCRIPTION
sub_nbrintegerForeign Key to indicate a Submission
venue_nbrintegerForeign Key to indicate a Venue
works_nbrintegerForeign Key to indicate a Manuscript
sub_filetextPath/Filename/Version of submission

TABLE: Works
DESCRIPTION: Each row describes a unique work that could be submitted

FIELD NAMEDATA TYPEDESCRIPTION
works_idintegerPrimary Key for Manuscripts table
works_titletextTitle of manuscript
works_typetexte.g. 'poem' 'novel' 'screenplay' etc.
works_statustexte.g. 'open' 'in-progress' 'trunked' or 'published'
pub_datedateDate this manuscript was published
venue_nbrintegerForeign Key for Venue if published

TABLE: Venues
DESCRIPTION: Each row describes a place where a submission could be sent

FIELD NAMEDATA TYPEDESCRIPTION
venue_idintegerPrimary Key for Venues table
venue_titletextName of this venue
venue_typetexte.g. 'journal' 'website' etc.
venue_urltextLink to publication or submission guidelines
venue_addresstextContact info for venue (e.g. email address)
venue_persontextName of person at venue
venue_notetextNotes about deadlines, preferences, etc.
venue_simulbooleanif 'yes,' venue accepts simultaneous submissions