ComponentModelSchema top-level constant

CollectionSchema<ComponentModel> const ComponentModelSchema

Implementation

const ComponentModelSchema = CollectionSchema(
  name: r'ComponentModel',
  id: -2001216608500265195,
  properties: {
    r'breakingCapacity': PropertySchema(
      id: 0,
      name: r'breakingCapacity',
      type: IsarType.double,
    ),
    r'cableMaterial': PropertySchema(
      id: 1,
      name: r'cableMaterial',
      type: IsarType.string,
      enumMap: _ComponentModelcableMaterialEnumValueMap,
    ),
    r'componentId': PropertySchema(
      id: 2,
      name: r'componentId',
      type: IsarType.string,
    ),
    r'createdAt': PropertySchema(
      id: 3,
      name: r'createdAt',
      type: IsarType.dateTime,
    ),
    r'curveType': PropertySchema(
      id: 4,
      name: r'curveType',
      type: IsarType.string,
    ),
    r'installationMethod': PropertySchema(
      id: 5,
      name: r'installationMethod',
      type: IsarType.string,
    ),
    r'insulationType': PropertySchema(
      id: 6,
      name: r'insulationType',
      type: IsarType.string,
    ),
    r'isFavorite': PropertySchema(
      id: 7,
      name: r'isFavorite',
      type: IsarType.bool,
    ),
    r'manufacturer': PropertySchema(
      id: 8,
      name: r'manufacturer',
      type: IsarType.string,
    ),
    r'maxOperatingTemp': PropertySchema(
      id: 9,
      name: r'maxOperatingTemp',
      type: IsarType.double,
    ),
    r'maxShortCircuitCurrent': PropertySchema(
      id: 10,
      name: r'maxShortCircuitCurrent',
      type: IsarType.double,
    ),
    r'name': PropertySchema(
      id: 11,
      name: r'name',
      type: IsarType.string,
    ),
    r'poles': PropertySchema(
      id: 12,
      name: r'poles',
      type: IsarType.long,
    ),
    r'price': PropertySchema(
      id: 13,
      name: r'price',
      type: IsarType.double,
    ),
    r'protectionDeviceType': PropertySchema(
      id: 14,
      name: r'protectionDeviceType',
      type: IsarType.string,
      enumMap: _ComponentModelprotectionDeviceTypeEnumValueMap,
    ),
    r'ratedCurrent': PropertySchema(
      id: 15,
      name: r'ratedCurrent',
      type: IsarType.double,
    ),
    r'ratedPower': PropertySchema(
      id: 16,
      name: r'ratedPower',
      type: IsarType.double,
    ),
    r'section': PropertySchema(
      id: 17,
      name: r'section',
      type: IsarType.double,
    ),
    r'sensitivity': PropertySchema(
      id: 18,
      name: r'sensitivity',
      type: IsarType.double,
    ),
    r'series': PropertySchema(
      id: 19,
      name: r'series',
      type: IsarType.string,
    ),
    r'sourceType': PropertySchema(
      id: 20,
      name: r'sourceType',
      type: IsarType.string,
      enumMap: _ComponentModelsourceTypeEnumValueMap,
    ),
    r'type': PropertySchema(
      id: 21,
      name: r'type',
      type: IsarType.string,
      enumMap: _ComponentModeltypeEnumValueMap,
    ),
    r'updatedAt': PropertySchema(
      id: 22,
      name: r'updatedAt',
      type: IsarType.dateTime,
    ),
    r'voltage': PropertySchema(
      id: 23,
      name: r'voltage',
      type: IsarType.double,
    )
  },
  estimateSize: _componentModelEstimateSize,
  serialize: _componentModelSerialize,
  deserialize: _componentModelDeserialize,
  deserializeProp: _componentModelDeserializeProp,
  idName: r'id',
  indexes: {
    r'name': IndexSchema(
      id: 879695947855722453,
      name: r'name',
      unique: false,
      replace: false,
      properties: [
        IndexPropertySchema(
          name: r'name',
          type: IndexType.hash,
          caseSensitive: true,
        )
      ],
    ),
    r'isFavorite': IndexSchema(
      id: 5742774614603939776,
      name: r'isFavorite',
      unique: false,
      replace: false,
      properties: [
        IndexPropertySchema(
          name: r'isFavorite',
          type: IndexType.value,
          caseSensitive: false,
        )
      ],
    ),
    r'type': IndexSchema(
      id: 5117122708147080838,
      name: r'type',
      unique: false,
      replace: false,
      properties: [
        IndexPropertySchema(
          name: r'type',
          type: IndexType.hash,
          caseSensitive: true,
        )
      ],
    )
  },
  links: {},
  embeddedSchemas: {},
  getId: _componentModelGetId,
  getLinks: _componentModelGetLinks,
  attach: _componentModelAttach,
  version: '3.1.0+1',
);