Skip to content

Commit

Permalink
Remove cloud_firestore_odm
Browse files Browse the repository at this point in the history
htsuruo committed Nov 15, 2023
1 parent 899beb0 commit f8312a6
Showing 6 changed files with 1 addition and 2,916 deletions.
4 changes: 0 additions & 4 deletions lib/features/post/model/post.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:cloud_firestore_odm/annotation.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:json_converter_helper/json_converter_helper.dart';
import 'package:nippo/core/const.dart';
@@ -30,9 +29,6 @@ class Post with _$Post {
late final String postId = nullablePostId!;
}

@Collection<Post>(CollectionName.posts)
final postsRef = PostCollectionReference();

extension PostDocumentReferenceX on DocumentReference<Post> {
String? get uid => parent.parent?.id;
}
Loading

0 comments on commit f8312a6

Please sign in to comment.