Instrument User Python Module

Instrument user relationship.

class pacifica.metadata.orm.instrument_user.InstrumentUser(*args, **kwargs)[source]

Relates users and instrument objects.

Attributes:
Name Description
instrument Link to the Instrument model
relationship Link to the Relationship model
user User who is responsible for the instrument
DoesNotExist

alias of InstrumentUserDoesNotExist

_meta = <peewee.Metadata object>
_schema = <peewee.SchemaManager object>
created = <ExtendDateTimeField: InstrumentUser.created>
deleted = <ExtendDateTimeField: InstrumentUser.deleted>
from_hash(obj)[source]

Convert the hash into the object.

instrument = <ForeignKeyField: InstrumentUser.instrument>
instrument_id = <ForeignKeyField: InstrumentUser.instrument>
relationship = <ForeignKeyField: InstrumentUser.relationship>
relationship_id = <ForeignKeyField: InstrumentUser.relationship>
to_hash(**flags)[source]

Convert the object to a hash.

updated = <ExtendDateTimeField: InstrumentUser.updated>
user = <ForeignKeyField: InstrumentUser.user>
user_id = <ForeignKeyField: InstrumentUser.user>
uuid = <UUIDField: InstrumentUser.uuid>
classmethod where_clause(kwargs)[source]

Where clause for the various elements.