Add procedure document type

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-10-13 22:36:37 +02:00
parent b2392f51c4
commit 0c4a7169df
23 changed files with 73 additions and 53 deletions

View File

@@ -24,9 +24,10 @@ type (
)
const (
DocumentTypeOther DocumentType = "OTHER"
DocumentTypeISMS DocumentType = "ISMS"
DocumentTypePolicy DocumentType = "POLICY"
DocumentTypeOther DocumentType = "OTHER"
DocumentTypeISMS DocumentType = "ISMS"
DocumentTypePolicy DocumentType = "POLICY"
DocumentTypeProcedure DocumentType = "PROCEDURE"
)
func (dt DocumentType) MarshalText() ([]byte, error) {
@@ -43,6 +44,8 @@ func (dt *DocumentType) UnmarshalText(data []byte) error {
*dt = DocumentTypeISMS
case DocumentTypePolicy.String():
*dt = DocumentTypePolicy
case DocumentTypeProcedure.String():
*dt = DocumentTypeProcedure
default:
return fmt.Errorf("invalid DocumentType value: %q", val)
}

View File

@@ -0,0 +1 @@
ALTER TYPE document_type ADD VALUE 'PROCEDURE';