Overview

MEG Docs is the document management system of MEG QMS.

@startuml

namespace megdocs {
    class Document {
        "" Represents a document ""
        + name
        + description
        + tags
        + owner
        + current_version
        + institution
    }
    class Version {
        ""Version of document""
        + document
        + revision - auto incremented integer per document, starting at 1
        + reviewer - optional
        + creator
        + PDF File
        + approved: boolean
        ===
        Permissions:
        - review: users with this permission can be set as reviewers
    }
    class Draft {
        "" Latest 'master' version of the document in editable format""
        "" Any new version will be based off the draft ""
        + contents
    }

    Version -> Document : document
    Document -> Version : current_version
    Document --> Draft
}

namespace megforms {
    class Auditor {
        ""Existing Auditor model""
        + user
    }
    class Institution {
        ""institution""
        + name
    }
}

megdocs.Document --> megforms.Auditor : owner
megdocs.Document --> megforms.Institution : institution
megdocs.Version --> megforms.Auditor : reviewer & creator

@enduml

Model diagram for MEG Docs