-- | Mapping between News records and NewsTeam records in the
--- database.
+-- database. We don't name the fields because we don't use the names
+-- explicitly; that means we have to give them nice database names
+-- via groundhog.
--
data News_NewsTeam = News_NewsTeam
(DefaultKey News)
-- | Mapping between News records and NewsLocation records in the
--- database.
+-- database. We don't name the fields because we don't use the names
+-- explicitly; that means we have to give them nice database names
+-- via groundhog.
--
data News_NewsLocation = News_NewsLocation
(DefaultKey News)
constructors:
- name: News_NewsTeam
fields:
- - name: news_NewsTeam0
+ - name: news_NewsTeam0 # Default created by mkNormalFieldName
dbName: news_id
- - name: news_NewsTeam1
+ - name: news_NewsTeam1 # Default created by mkNormalFieldName
dbName: news_teams_id
- entity: News_NewsLocation
constructors:
- name: News_NewsLocation
fields:
- - name: news_NewsLocation0
+ - name: news_NewsLocation0 # Default created by mkNormalFieldName
dbName: news_id
- - name: news_NewsLocation1
+ - name: news_NewsLocation1 # Default created by mkNormalFieldName
dbName: news_locations_id
|]