Skip to content

contract_annotations

Manish Gopal Singh edited this page Jul 31, 2015 · 2 revisions

Table: contract_annotations

Field Name Data Type Remarks
id INT Auto increment ID
contract_id INT ID of contract
annotation JSON
user_id INT ID of user
document_page_no INT Page Number of pdf
created_at TIMESTAMP Annotation created date
updated_at TIMESTAMP Annotation updated date
status ENUM Status of annotation [options - draft, completed, rejected, published]

JSON : Annotation

{
    "ranges": [
        {
            "start": Starting xpath,
            "startOffset": Starting character position,
            "end": Ending xpath,
            "endOffset": Ending character position
        }
    ],
    "quote": word or Paragraph where annotation created,
    "category": Category of Annotation,
    "text": Comment for annotation,
    "tags": array of tags,
    "contract": Id of contract,
    "document_page_no": Page number,
    "page_id": ID of Page
}