Associations#

Bases: SQLModel

Link table for Dataset and Contact connection.

This table establishes a many-to-many relationship between datasets and contacts.

Parameters:
  • dataset_id (int) – The ID of the dataset.

  • contact_id (int) – The ID of the contact.

contact_id: int | None#
dataset_id: int | None#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'from_attributes': True, 'read_from_attributes': True, 'read_with_orm_mode': True, 'registry': PydanticUndefined, 'table': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'contact_id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'dataset_id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

Bases: SQLModel

Link table for Dataset and Publication connection.

This table establishes a many-to-many relationship between datasets and publications.

Parameters:
  • dataset_id (int) – The ID of the dataset.

  • publication_id (int) – The ID of the publication.

dataset_id: int | None#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'from_attributes': True, 'read_from_attributes': True, 'read_with_orm_mode': True, 'registry': PydanticUndefined, 'table': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'dataset_id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'publication_id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

publication_id: int | None#

Bases: SQLModel

Link table for Dataset and VOC connection.

This table establishes a many-to-many relationship between datasets and VOCs.

Parameters:
  • dataset_id (int) – The ID of the dataset.

  • voc_id (int) – The ID of the VOC.

  • instrument (str) – The instrument used for VOC measurement.

dataset_id: int | None#
instrument: str | None#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'from_attributes': True, 'read_from_attributes': True, 'read_with_orm_mode': True, 'registry': PydanticUndefined, 'table': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'dataset_id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'instrument': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'voc_id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

voc_id: int | None#

Bases: SQLModel

Link table for Dataset and VOC Subclass connection.

This table establishes a many-to-many relationship between datasets and VOC subclasses.

Parameters:
  • dataset_id (int) – The ID of the dataset.

  • voc_subclass_id (int) – The ID of the VOC subclass.

dataset_id: int | None#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'from_attributes': True, 'read_from_attributes': True, 'read_with_orm_mode': True, 'registry': PydanticUndefined, 'table': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'dataset_id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'voc_subclass_id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

voc_subclass_id: int | None#