leaf-library-3/internal/entity/Collection.go

20 lines
377 B
Go
Raw Normal View History

2024-12-06 15:38:22 +00:00
package entity
import (
"gorm.io/gorm"
"leafdev.top/Leaf/leaf-library-3/internal/types/dto"
)
type Collection struct {
Model
Name string `json:"name"`
Workspace *Workspace `json:"workspace"`
WorkspaceId dto.EntityId `json:"workspace_id"`
DeletedAt gorm.DeletedAt `json:"deleted_at"`
}
func (*Collection) TableName() string {
return "collections"
}