X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FTSN%2FTeam.hs;h=36d58ca44f7747732ea9782818828aa7cd097777;hb=5e06d6a189fd5bc1cbc67a349bbee5e168d3bf24;hp=d02252011a8025e743efc755fdc49ff5b18cdd0c;hpb=d1e8d7213d05fcdc259c6abc0bf27f2c57878726;p=dead%2Fhtsn-import.git diff --git a/src/TSN/Team.hs b/src/TSN/Team.hs index d022520..36d58ca 100644 --- a/src/TSN/Team.hs +++ b/src/TSN/Team.hs @@ -28,13 +28,18 @@ import Database.Groundhog.TH ( -- | The database representation of a team. The 'team_id' is a -- 'String' field because some teams do in fact have ids like --- \"B52\". +-- \"B52\". The pointless \"team_\" prefix is left on the 'team_id' +-- field because otherwise the auto-generated column name would +-- conflict with the default \"id\" primary key. -- data Team = Team { team_id :: String, -- ^ Some of them contain characters - team_abbreviation :: String, - team_name :: String } + abbreviation :: Maybe String, -- ^ Some teams don't have abbreviations, + -- or at least, some sample jfilexml + -- don't have them for some teams. + name :: Maybe String -- ^ Some teams don't even have names! + } deriving (Eq, Show)