diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-03-28 18:49:03 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-03-28 18:49:03 +0300 |
commit | be9d18461a5ed6bd835e2eba8d3b54ba61fc51fb (patch) | |
tree | 0b5b199feab5cef526d365030213170c99fb9f0f /lib/pleroma/ecto_enums.ex | |
parent | 4e81b4b190161ebb0c496c682fa8e1e0c38a3903 (diff) | |
download | pleroma-be9d18461a5ed6bd835e2eba8d3b54ba61fc51fb.tar.gz |
FollowingRelationship storage & performance optimizations (state turned `ecto_enum`-driven integer, reorganized indices etc.).
Diffstat (limited to 'lib/pleroma/ecto_enums.ex')
-rw-r--r-- | lib/pleroma/ecto_enums.ex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/pleroma/ecto_enums.ex b/lib/pleroma/ecto_enums.ex index d9b601223..b98ac4ba1 100644 --- a/lib/pleroma/ecto_enums.ex +++ b/lib/pleroma/ecto_enums.ex @@ -11,3 +11,9 @@ defenum(UserRelationshipTypeEnum, notification_mute: 4, inverse_subscription: 5 ) + +defenum(FollowingRelationshipStateEnum, + follow_pending: 1, + follow_accept: 2, + follow_reject: 3 +) |