Browse Source

ensure shelf name is unique

master
Brett Bender 2 years ago
parent
commit
ec1e703f78
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      internal/types/shelves.go

+ 1
- 1
internal/types/shelves.go View File

@ -12,7 +12,7 @@ import (
type ShelfLocation struct {
ID uint64 `gorm:"primarykey" json:"id"`
Name string `json:"name"`
Name string `gorm:"index:unique" json:"name"`
RoomNumber string `json:"room_number,omitempty"`
Description string `json:"description,omitempty"`
BuildingID uint64 `json:"-"`


Loading…
Cancel
Save