path should be unique

This commit is contained in:
array-in-a-matrix 2024-08-07 19:10:10 -04:00
parent ffa687c784
commit ac335359d6

View file

@ -5,7 +5,7 @@ import ./users
type File* = ref object of Model
owner*: User
path* {.unique.}: string
name* {.unique.}: string
name*: string
tags*: string #? This is a temporary hack should be `seq[string]` or `JsonNode` instead
# creates a new file object and sets default values, recommended by the norm documentation