DbUserRelayListSchema top-level constant

IsarGeneratedSchema const DbUserRelayListSchema

Implementation

const DbUserRelayListSchema = IsarGeneratedSchema(
  schema: IsarSchema(
    name: 'DbUserRelayList',
    idName: 'id',
    embedded: false,
    properties: [
      IsarPropertySchema(
        name: 'id',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'pubKey',
        type: IsarType.string,
      ),
      IsarPropertySchema(
        name: 'createdAt',
        type: IsarType.long,
      ),
      IsarPropertySchema(
        name: 'refreshedTimestamp',
        type: IsarType.long,
      ),
      IsarPropertySchema(
        name: 'items',
        type: IsarType.objectList,
        target: 'DbRelayListItem',
      ),
    ],
    indexes: [],
  ),
  converter: IsarObjectConverter<String, DbUserRelayList>(
    serialize: serializeDbUserRelayList,
    deserialize: deserializeDbUserRelayList,
    deserializeProperty: deserializeDbUserRelayListProp,
  ),
  embeddedSchemas: [DbRelayListItemSchema],
);