[#151] remove files on cascade deletion

This commit is contained in:
Gani Georgiev committed 2022-07-18 12:04:27 +03:00
1 parent 04e0cec32c
commit 8ef3d4e966
6 files changed
+44 -47

No files matched your search

+6
View File
@@ -15,6 +15,12 @@ type ColumnValueMapper interface {
ColumnValueMap() map[string]any
}
// FilesManager defines an interface with common methods that files manager models should implement.
type FilesManager interface {
// BaseFilesPath returns the storage dir path used by the interface instance.
BaseFilesPath() string
}
// Model defines an interface with common methods that all db models should have.
type Model interface {
TableName() string