Implementation
const MediaItemSchema = CollectionSchema(
name: r'MediaItem',
id: 3893864289923902342,
properties: {
r'audioUrl': PropertySchema(
id: 0,
name: r'audioUrl',
type: IsarType.string,
),
r'author': PropertySchema(
id: 1,
name: r'author',
type: IsarType.string,
),
r'authorIdentifier': PropertySchema(
id: 2,
name: r'authorIdentifier',
type: IsarType.string,
),
r'base64Image': PropertySchema(
id: 3,
name: r'base64Image',
type: IsarType.string,
),
r'canDelete': PropertySchema(
id: 4,
name: r'canDelete',
type: IsarType.bool,
),
r'canEdit': PropertySchema(
id: 5,
name: r'canEdit',
type: IsarType.bool,
),
r'duration': PropertySchema(
id: 6,
name: r'duration',
type: IsarType.long,
),
r'extra': PropertySchema(
id: 7,
name: r'extra',
type: IsarType.string,
),
r'extraUrl': PropertySchema(
id: 8,
name: r'extraUrl',
type: IsarType.string,
),
r'hashCode': PropertySchema(
id: 9,
name: r'hashCode',
type: IsarType.long,
),
r'imageUrl': PropertySchema(
id: 10,
name: r'imageUrl',
type: IsarType.string,
),
r'mediaIdentifier': PropertySchema(
id: 11,
name: r'mediaIdentifier',
type: IsarType.string,
),
r'mediaSourceIdentifier': PropertySchema(
id: 12,
name: r'mediaSourceIdentifier',
type: IsarType.string,
),
r'mediaTypeIdentifier': PropertySchema(
id: 13,
name: r'mediaTypeIdentifier',
type: IsarType.string,
),
r'position': PropertySchema(
id: 14,
name: r'position',
type: IsarType.long,
),
r'sourceMetadata': PropertySchema(
id: 15,
name: r'sourceMetadata',
type: IsarType.string,
),
r'title': PropertySchema(
id: 16,
name: r'title',
type: IsarType.string,
),
r'uniqueKey': PropertySchema(
id: 17,
name: r'uniqueKey',
type: IsarType.string,
)
},
estimateSize: _mediaItemEstimateSize,
serialize: _mediaItemSerialize,
deserialize: _mediaItemDeserialize,
deserializeProp: _mediaItemDeserializeProp,
idName: r'id',
indexes: {
r'mediaIdentifier': IndexSchema(
id: -8949035234415011646,
name: r'mediaIdentifier',
unique: false,
replace: false,
properties: [
IndexPropertySchema(
name: r'mediaIdentifier',
type: IndexType.hash,
caseSensitive: true,
)
],
),
r'mediaTypeIdentifier': IndexSchema(
id: 8109145933884384261,
name: r'mediaTypeIdentifier',
unique: false,
replace: false,
properties: [
IndexPropertySchema(
name: r'mediaTypeIdentifier',
type: IndexType.hash,
caseSensitive: true,
)
],
),
r'mediaSourceIdentifier': IndexSchema(
id: -3325065338814951047,
name: r'mediaSourceIdentifier',
unique: false,
replace: false,
properties: [
IndexPropertySchema(
name: r'mediaSourceIdentifier',
type: IndexType.hash,
caseSensitive: true,
)
],
),
r'uniqueKey': IndexSchema(
id: -866995956150369819,
name: r'uniqueKey',
unique: true,
replace: true,
properties: [
IndexPropertySchema(
name: r'uniqueKey',
type: IndexType.hash,
caseSensitive: true,
)
],
)
},
links: {},
embeddedSchemas: {},
getId: _mediaItemGetId,
getLinks: _mediaItemGetLinks,
attach: _mediaItemAttach,
version: '3.1.0+1',
);