refactor(backend/models): make file's Metadata not nullable
This commit is contained in:
parent
153020b9c7
commit
d9ca913620
@ -47,12 +47,12 @@ type (
|
|||||||
}
|
}
|
||||||
FileFull struct {
|
FileFull struct {
|
||||||
FileCore
|
FileCore
|
||||||
CreatedAt time.Time `json:"createdAt"`
|
CreatedAt time.Time `json:"createdAt"`
|
||||||
Creator User `json:"creator"`
|
Creator User `json:"creator"`
|
||||||
Notes pgtype.Text `json:"notes"`
|
Notes pgtype.Text `json:"notes"`
|
||||||
Metadata *json.RawMessage `json:"metadata"`
|
Metadata json.RawMessage `json:"metadata"`
|
||||||
Tags []TagCore `json:"tags"`
|
Tags []TagCore `json:"tags"`
|
||||||
Viewed int `json:"viewed"`
|
Viewed int `json:"viewed"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user