<reponame>martinobersteiner/invenio-records-lom
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 Graz University of Technology.
#
# invenio-records-lom is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

"""Lom database models."""

# TODO: uncomment to create a new table for the lom records.

# from invenio_db import db
# from invenio_records.models import RecordMetadataBase


# class LomMetadata(db.Model, RecordMetadataBase):
#     """Represent a Lom."""

#     __tablename__ = 'lom_metadata'
#     __table_args__ = {'extend_existing': True}
#     __versioned__ = {'versioning': False}

#     is_deleted = db.Column(
#         db.Boolean(name="ck_lomrecords_lom_metadata_is_deleted"),
#         nullable=True,
#         default=False
#     )
#     """Was the lom soft-deleted."""

#     def delete(self):
#         """Mark the lom for deletion."""
#         self.is_deleted = True
