mirrored_repositories/scribe-my-notes/lib/repositories
import 'package:isar/isar.dart';
import '../tagRepo/tagRepoModel.dart';
part 'noteRepoModel.g.dart';

@Collection()
@Name("Note")
class Note {
  Id id = Isar.autoIncrement;

  @Index()
  late String title;

  @Index()
  late String note;

  String coverImagePath = "";

  bool isAssetAsCoverImage = false;

  @Index()
  late DateTime createdAt;

  @Index()
  late DateTime editedAt;

  @Index()
  DateTime? whenToAlert;

  bool isDeleted = false;

  bool isPinned = false;


  @Index()
  @Backlink(to: 'notes')
  var tag = IsarLink<Tag>();

}