PG Internal
===========

.. _LabelPg:

LabelPg
-------

Represents a label item that is used internally for postgres

.. code-block:: json

 message LabelPg {
  string id = 1;
  ItemType item_type = 2;
  string parent_id = 3;
  string dataroom_id = 4;
  string label = 5;
  EffectivePermission effective_permission = 14;

  optional string user_id = 6;
  optional string group_id = 7;
  optional google.protobuf.Timestamp creation_date = 8;
  optional google.protobuf.Timestamp modification_date = 9;
 }

+--------------------------+-------------------------------+------------------------------------------------------+
| Field                    | Type                          | Description                                          |
+==========================+===============================+======================================================+
| ``id``                   | ``string``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``item_type``            | ``ItemType``                  | See :ref:`ItemType <ItemType>`                       |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``parent_id``            | ``string``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``dataroom_id``          | ``string``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``label``                | ``string``                    |                                                      |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``effective_permission`` | ``EffectivePermission``       | See :ref:`EffectivePermission <EffectivePermission>` |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``user_id``              | ``string``                    | **Optional**                                         |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``group_id``             | ``string``                    | **Optional**                                         |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``creation_date``        | ``google.protobuf.Timestamp`` | **Optional**                                         |
+--------------------------+-------------------------------+------------------------------------------------------+
| ``modification_date``    | ``google.protobuf.Timestamp`` | **Optional**                                         |
+--------------------------+-------------------------------+------------------------------------------------------+