Пример #1
0
// Indexes for the user table
func (table *User) Indexes(indexes *hood.Indexes) {
	indexes.AddUnique("name_index", "name")
	indexes.AddUnique("dropbox_uid_index", "dropbox_uid")
}
Пример #2
0
func (table *Users) Indexes(indexes *hood.Indexes) {
	indexes.AddUnique("name_index", "first", "last")
}