KVSchema top-level constant

CollectionSchema<KV> const KVSchema

Implementation

const KVSchema = CollectionSchema(
  name: r'kv',
  id: 3557462688186956702,
  properties: {
    r'expiresAt': PropertySchema(id: 0, name: r'expiresAt', type: IsarType.dateTime),
    r'key': PropertySchema(id: 1, name: r'key', type: IsarType.string),
    r'value': PropertySchema(id: 2, name: r'value', type: IsarType.string),
  },
  estimateSize: _kVEstimateSize,
  serialize: _kVSerialize,
  deserialize: _kVDeserialize,
  deserializeProp: _kVDeserializeProp,
  idName: r'id',
  indexes: {
    r'key': IndexSchema(
      id: -4906094122524121629,
      name: r'key',
      unique: true,
      replace: false,
      properties: [IndexPropertySchema(name: r'key', type: IndexType.hash, caseSensitive: true)],
    ),
    r'expiresAt': IndexSchema(
      id: 4994901953235663716,
      name: r'expiresAt',
      unique: false,
      replace: false,
      properties: [IndexPropertySchema(name: r'expiresAt', type: IndexType.value, caseSensitive: false)],
    ),
  },
  links: {},
  embeddedSchemas: {},
  getId: _kVGetId,
  getLinks: _kVGetLinks,
  attach: _kVAttach,
  version: '3.1.0+1',
);