Most authors in the INP files have at least a surname, often a name,
sometimes a middle name or a patronymic.
- name = UnicodeCol(notNull=True, unique=True)
+ surname = UnicodeCol(notNull=True)
+ name = UnicodeCol(notNull=True)
+ misc_name = UnicodeCol(notNull=True)
count = IntCol(notNull=True)
books = RelatedJoin('Book', otherColumn='book_id',
intermediateTable='author_book',
createRelatedTable=False)
count = IntCol(notNull=True)
books = RelatedJoin('Book', otherColumn='book_id',
intermediateTable='author_book',
createRelatedTable=False)
+ full_name_idx = DatabaseIndex(surname, name, misc_name, unique=True)
count_idx = DatabaseIndex(count)
count_idx = DatabaseIndex(count)