Index: .idea/dataSources/14a5fbd7-f501-41df-a0af-e3b168b536f7.xml
===================================================================
--- .idea/dataSources/14a5fbd7-f501-41df-a0af-e3b168b536f7.xml	(revision e0ef1b13a29101c3f7a56f68da8dcdc8cce98b76)
+++ .idea/dataSources/14a5fbd7-f501-41df-a0af-e3b168b536f7.xml	(revision 8f1b7e9ff410a2892ccfe2af2277a9cae1881749)
@@ -4531,9 +4531,9 @@
 209758||209757|C|G
 209758||209757|T|G
-217893||17780|c|G
-217893||18298|c|G
-217893||17780|C|G
-217893||17780|T|G</Grants>
-      <IntrospectionStateNumber>147246</IntrospectionStateNumber>
+221486||17780|c|G
+221486||18298|c|G
+221486||17780|C|G
+221486||17780|T|G</Grants>
+      <IntrospectionStateNumber>148616</IntrospectionStateNumber>
       <ServerVersion>14.1</ServerVersion>
       <StartupTime>1642285030</StartupTime>
@@ -8140,5 +8140,5 @@
     </database>
     <database id="558" parent="1" name="db_201920z_va_vezhbi">
-      <ObjectId>217893</ObjectId>
+      <ObjectId>221486</ObjectId>
       <OwnerName>db_201920z_va_vezhbi_owner</OwnerName>
     </database>
@@ -15021,5 +15021,5 @@
     <role id="2184" parent="1" name="db_201920z_va_vezhbi">
       <Inherit>0</Inherit>
-      <ObjectId>217892</ObjectId>
+      <ObjectId>221485</ObjectId>
     </role>
     <role id="2185" parent="1" name="db_201920z_va_vezhbi_owner">
@@ -19945,5 +19945,5 @@
     </schema>
     <schema id="3245" parent="623" name="project">
-      <IntrospectionStateNumber>147247</IntrospectionStateNumber>
+      <IntrospectionStateNumber>148617</IntrospectionStateNumber>
       <ObjectId>152130</ObjectId>
       <StateNumber>137939</StateNumber>
@@ -20014,5 +20014,11 @@
       <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName>
     </sequence>
-    <table id="3255" parent="3245" name="discussions">
+    <table id="3255" parent="3245" name="discussion_likes">
+      <ObjectId>219894</ObjectId>
+      <StateNumber>147785</StateNumber>
+      <AccessMethodId>2</AccessMethodId>
+      <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName>
+    </table>
+    <table id="3256" parent="3245" name="discussions">
       <ObjectId>157244</ObjectId>
       <StateNumber>138394</StateNumber>
@@ -20020,5 +20026,5 @@
       <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName>
     </table>
-    <table id="3256" parent="3245" name="genres">
+    <table id="3257" parent="3245" name="genres">
       <ObjectId>157142</ObjectId>
       <StateNumber>138394</StateNumber>
@@ -20026,5 +20032,5 @@
       <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName>
     </table>
-    <table id="3257" parent="3245" name="movie_actors">
+    <table id="3258" parent="3245" name="movie_actors">
       <ObjectId>157211</ObjectId>
       <StateNumber>138394</StateNumber>
@@ -20032,5 +20038,5 @@
       <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName>
     </table>
-    <table id="3258" parent="3245" name="movie_genres">
+    <table id="3259" parent="3245" name="movie_genres">
       <ObjectId>157181</ObjectId>
       <StateNumber>138394</StateNumber>
@@ -20038,5 +20044,5 @@
       <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName>
     </table>
-    <table id="3259" parent="3245" name="movie_likes">
+    <table id="3260" parent="3245" name="movie_likes">
       <ObjectId>157166</ObjectId>
       <StateNumber>138394</StateNumber>
@@ -20044,5 +20050,5 @@
       <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName>
     </table>
-    <table id="3260" parent="3245" name="movie_rates">
+    <table id="3261" parent="3245" name="movie_rates">
       <ObjectId>157150</ObjectId>
       <StateNumber>138394</StateNumber>
@@ -20050,5 +20056,5 @@
       <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName>
     </table>
-    <table id="3261" parent="3245" name="movies">
+    <table id="3262" parent="3245" name="movies">
       <ObjectId>157125</ObjectId>
       <StateNumber>138394</StateNumber>
@@ -20056,5 +20062,5 @@
       <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName>
     </table>
-    <table id="3262" parent="3245" name="person_rates">
+    <table id="3263" parent="3245" name="person_rates">
       <ObjectId>157227</ObjectId>
       <StateNumber>138394</StateNumber>
@@ -20062,5 +20068,5 @@
       <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName>
     </table>
-    <table id="3263" parent="3245" name="persons">
+    <table id="3264" parent="3245" name="persons">
       <ObjectId>157115</ObjectId>
       <StateNumber>139960</StateNumber>
@@ -20068,5 +20074,5 @@
       <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName>
     </table>
-    <table id="3264" parent="3245" name="replies">
+    <table id="3265" parent="3245" name="replies">
       <ObjectId>157269</ObjectId>
       <StateNumber>138394</StateNumber>
@@ -20074,5 +20080,5 @@
       <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName>
     </table>
-    <table id="3265" parent="3245" name="user_genres">
+    <table id="3266" parent="3245" name="user_genres">
       <ObjectId>157196</ObjectId>
       <StateNumber>138394</StateNumber>
@@ -20080,5 +20086,5 @@
       <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName>
     </table>
-    <table id="3266" parent="3245" name="users">
+    <table id="3267" parent="3245" name="users">
       <ObjectId>157103</ObjectId>
       <StateNumber>141874</StateNumber>
@@ -20086,21 +20092,80 @@
       <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName>
     </table>
-    <argument id="3267" parent="3247">
+    <argument id="3268" parent="3247">
       <ArgumentDirection>R</ArgumentDirection>
       <DataType>char|0s</DataType>
     </argument>
-    <argument id="3268" parent="3247">
+    <argument id="3269" parent="3247">
       <DataType>integer|0s</DataType>
       <Position>1</Position>
     </argument>
-    <argument id="3269" parent="3248">
+    <argument id="3270" parent="3248">
       <ArgumentDirection>R</ArgumentDirection>
       <DataType>char|0s</DataType>
     </argument>
-    <argument id="3270" parent="3248">
+    <argument id="3271" parent="3248">
       <DataType>integer|0s</DataType>
       <Position>1</Position>
     </argument>
-    <check id="3271" parent="3255" name="ck_type_discussion">
+    <column id="3272" parent="3255" name="discussion_id">
+      <DataType>integer|0s</DataType>
+      <NotNull>1</NotNull>
+      <Position>1</Position>
+      <StateNumber>147785</StateNumber>
+      <TypeId>23</TypeId>
+    </column>
+    <column id="3273" parent="3255" name="user_id">
+      <DataType>integer|0s</DataType>
+      <NotNull>1</NotNull>
+      <Position>2</Position>
+      <StateNumber>147785</StateNumber>
+      <TypeId>23</TypeId>
+    </column>
+    <foreign-key id="3274" parent="3255" name="fk_liked_discussion">
+      <ColNames>discussion_id</ColNames>
+      <ObjectId>219899</ObjectId>
+      <OnDelete>cascade</OnDelete>
+      <OnUpdate>cascade</OnUpdate>
+      <RefColNames>discussion_id</RefColNames>
+      <RefColPositions>1</RefColPositions>
+      <RefKeyName>discussions_pkey</RefKeyName>
+      <StateNumber>147785</StateNumber>
+      <RefTableId>157244</RefTableId>
+      <RefTableName>discussions</RefTableName>
+      <RefTableKind>table</RefTableKind>
+    </foreign-key>
+    <foreign-key id="3275" parent="3255" name="fk_user_like">
+      <ColNames>user_id</ColNames>
+      <ObjectId>219904</ObjectId>
+      <OnDelete>cascade</OnDelete>
+      <OnUpdate>cascade</OnUpdate>
+      <RefColNames>user_id</RefColNames>
+      <RefColPositions>1</RefColPositions>
+      <RefKeyName>users_pkey</RefKeyName>
+      <StateNumber>147785</StateNumber>
+      <RefTableId>157103</RefTableId>
+      <RefTableName>users</RefTableName>
+      <RefTableKind>table</RefTableKind>
+    </foreign-key>
+    <index id="3276" parent="3255" name="pk_discussion_likes">
+      <ClassIds>1978,1978</ClassIds>
+      <ColNames>discussion_id
+user_id</ColNames>
+      <CollationIds>0,0</CollationIds>
+      <ObjectId>219897</ObjectId>
+      <Primary>1</Primary>
+      <StateNumber>147785</StateNumber>
+      <Unique>1</Unique>
+      <AccessMethodId>403</AccessMethodId>
+    </index>
+    <key id="3277" parent="3255" name="pk_discussion_likes">
+      <ColNames>discussion_id
+user_id</ColNames>
+      <ObjectId>219898</ObjectId>
+      <Primary>1</Primary>
+      <StateNumber>147785</StateNumber>
+      <UnderlyingIndexId>219897</UnderlyingIndexId>
+    </key>
+    <check id="3278" parent="3256" name="ck_type_discussion">
       <ColNames>type
 movie_id
@@ -20110,5 +20175,5 @@
       <StateNumber>138394</StateNumber>
     </check>
-    <column id="3272" parent="3255" name="discussion_id">
+    <column id="3279" parent="3256" name="discussion_id">
       <DataType>integer|0s</DataType>
       <DefaultExpression>nextval(&apos;project.discussions_discussion_id_seq&apos;::regclass)</DefaultExpression>
@@ -20118,5 +20183,5 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3273" parent="3255" name="type">
+    <column id="3280" parent="3256" name="type">
       <DataType>char|0s</DataType>
       <NotNull>1</NotNull>
@@ -20125,5 +20190,5 @@
       <TypeId>1042</TypeId>
     </column>
-    <column id="3274" parent="3255" name="text">
+    <column id="3281" parent="3256" name="text">
       <DataType>varchar(1000)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20132,5 +20197,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3275" parent="3255" name="title">
+    <column id="3282" parent="3256" name="title">
       <DataType>varchar(250)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20139,5 +20204,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3276" parent="3255" name="date">
+    <column id="3283" parent="3256" name="date">
       <DataType>date|0s</DataType>
       <NotNull>1</NotNull>
@@ -20146,5 +20211,5 @@
       <TypeId>1082</TypeId>
     </column>
-    <column id="3277" parent="3255" name="user_id">
+    <column id="3284" parent="3256" name="user_id">
       <DataType>integer|0s</DataType>
       <NotNull>1</NotNull>
@@ -20153,5 +20218,5 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3278" parent="3255" name="movie_id">
+    <column id="3285" parent="3256" name="movie_id">
       <DataType>integer|0s</DataType>
       <Position>7</Position>
@@ -20159,5 +20224,5 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3279" parent="3255" name="person_id">
+    <column id="3286" parent="3256" name="person_id">
       <DataType>integer|0s</DataType>
       <Position>8</Position>
@@ -20165,5 +20230,5 @@
       <TypeId>23</TypeId>
     </column>
-    <foreign-key id="3280" parent="3255" name="fk_user_created">
+    <foreign-key id="3287" parent="3256" name="fk_user_created">
       <ColNames>user_id</ColNames>
       <ObjectId>157253</ObjectId>
@@ -20177,5 +20242,5 @@
       <RefTableName>users</RefTableName>
     </foreign-key>
-    <foreign-key id="3281" parent="3255" name="fk_discussion_movie">
+    <foreign-key id="3288" parent="3256" name="fk_discussion_movie">
       <ColNames>movie_id</ColNames>
       <ObjectId>157258</ObjectId>
@@ -20189,5 +20254,5 @@
       <RefTableName>movies</RefTableName>
     </foreign-key>
-    <foreign-key id="3282" parent="3255" name="fk_discussion_person">
+    <foreign-key id="3289" parent="3256" name="fk_discussion_person">
       <ColNames>person_id</ColNames>
       <ObjectId>157263</ObjectId>
@@ -20201,5 +20266,5 @@
       <RefTableName>persons</RefTableName>
     </foreign-key>
-    <index id="3283" parent="3255" name="discussions_pkey">
+    <index id="3290" parent="3256" name="discussions_pkey">
       <ClassIds>1978</ClassIds>
       <ColNames>discussion_id</ColNames>
@@ -20212,5 +20277,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <key id="3284" parent="3255" name="discussions_pkey">
+    <key id="3291" parent="3256" name="discussions_pkey">
       <ColNames>discussion_id</ColNames>
       <NameSurrogate>1</NameSurrogate>
@@ -20220,5 +20285,5 @@
       <UnderlyingIndexId>157251</UnderlyingIndexId>
     </key>
-    <column id="3285" parent="3256" name="genre_id">
+    <column id="3292" parent="3257" name="genre_id">
       <DataType>integer|0s</DataType>
       <DefaultExpression>nextval(&apos;project.genres_genre_id_seq&apos;::regclass)</DefaultExpression>
@@ -20228,5 +20293,5 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3286" parent="3256" name="genre_type">
+    <column id="3293" parent="3257" name="genre_type">
       <DataType>varchar(100)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20235,5 +20300,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <index id="3287" parent="3256" name="genres_pkey">
+    <index id="3294" parent="3257" name="genres_pkey">
       <ClassIds>1978</ClassIds>
       <ColNames>genre_id</ColNames>
@@ -20246,5 +20311,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <index id="3288" parent="3256" name="genres_genre_type_key">
+    <index id="3295" parent="3257" name="genres_genre_type_key">
       <ClassIds>3126</ClassIds>
       <ColNames>genre_type</ColNames>
@@ -20257,5 +20322,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <key id="3289" parent="3256" name="genres_pkey">
+    <key id="3296" parent="3257" name="genres_pkey">
       <ColNames>genre_id</ColNames>
       <NameSurrogate>1</NameSurrogate>
@@ -20265,5 +20330,5 @@
       <UnderlyingIndexId>157146</UnderlyingIndexId>
     </key>
-    <key id="3290" parent="3256" name="genres_genre_type_key">
+    <key id="3297" parent="3257" name="genres_genre_type_key">
       <ColNames>genre_type</ColNames>
       <NameSurrogate>1</NameSurrogate>
@@ -20272,5 +20337,5 @@
       <UnderlyingIndexId>157148</UnderlyingIndexId>
     </key>
-    <check id="3291" parent="3257" name="ck_person_is_actor">
+    <check id="3298" parent="3258" name="ck_person_is_actor">
       <ColNames>actor_id</ColNames>
       <ObjectId>157214</ObjectId>
@@ -20278,5 +20343,5 @@
       <StateNumber>138394</StateNumber>
     </check>
-    <column id="3292" parent="3257" name="movie_id">
+    <column id="3299" parent="3258" name="movie_id">
       <DataType>integer|0s</DataType>
       <NotNull>1</NotNull>
@@ -20285,5 +20350,5 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3293" parent="3257" name="actor_id">
+    <column id="3300" parent="3258" name="actor_id">
       <DataType>integer|0s</DataType>
       <NotNull>1</NotNull>
@@ -20292,5 +20357,5 @@
       <TypeId>23</TypeId>
     </column>
-    <foreign-key id="3294" parent="3257" name="fk_actors_in_movie">
+    <foreign-key id="3301" parent="3258" name="fk_actors_in_movie">
       <ColNames>movie_id</ColNames>
       <ObjectId>157217</ObjectId>
@@ -20304,5 +20369,5 @@
       <RefTableName>movies</RefTableName>
     </foreign-key>
-    <foreign-key id="3295" parent="3257" name="fk_actor_acts_movie">
+    <foreign-key id="3302" parent="3258" name="fk_actor_acts_movie">
       <ColNames>actor_id</ColNames>
       <ObjectId>157222</ObjectId>
@@ -20316,5 +20381,5 @@
       <RefTableName>persons</RefTableName>
     </foreign-key>
-    <index id="3296" parent="3257" name="pk_movie_actors">
+    <index id="3303" parent="3258" name="pk_movie_actors">
       <ClassIds>1978,1978</ClassIds>
       <ColNames>movie_id
@@ -20327,5 +20392,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <key id="3297" parent="3257" name="pk_movie_actors">
+    <key id="3304" parent="3258" name="pk_movie_actors">
       <ColNames>movie_id
 actor_id</ColNames>
@@ -20335,5 +20400,5 @@
       <UnderlyingIndexId>157215</UnderlyingIndexId>
     </key>
-    <column id="3298" parent="3258" name="movie_id">
+    <column id="3305" parent="3259" name="movie_id">
       <DataType>integer|0s</DataType>
       <NotNull>1</NotNull>
@@ -20342,5 +20407,5 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3299" parent="3258" name="genre_id">
+    <column id="3306" parent="3259" name="genre_id">
       <DataType>integer|0s</DataType>
       <NotNull>1</NotNull>
@@ -20349,5 +20414,5 @@
       <TypeId>23</TypeId>
     </column>
-    <foreign-key id="3300" parent="3258" name="fk_movie_genre">
+    <foreign-key id="3307" parent="3259" name="fk_movie_genre">
       <ColNames>movie_id</ColNames>
       <ObjectId>157186</ObjectId>
@@ -20361,5 +20426,5 @@
       <RefTableName>movies</RefTableName>
     </foreign-key>
-    <foreign-key id="3301" parent="3258" name="fk_genre_type_movie">
+    <foreign-key id="3308" parent="3259" name="fk_genre_type_movie">
       <ColNames>genre_id</ColNames>
       <ObjectId>157191</ObjectId>
@@ -20373,5 +20438,5 @@
       <RefTableName>genres</RefTableName>
     </foreign-key>
-    <index id="3302" parent="3258" name="pk_movie_genres">
+    <index id="3309" parent="3259" name="pk_movie_genres">
       <ClassIds>1978,1978</ClassIds>
       <ColNames>movie_id
@@ -20384,5 +20449,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <key id="3303" parent="3258" name="pk_movie_genres">
+    <key id="3310" parent="3259" name="pk_movie_genres">
       <ColNames>movie_id
 genre_id</ColNames>
@@ -20392,67 +20457,4 @@
       <UnderlyingIndexId>157184</UnderlyingIndexId>
     </key>
-    <column id="3304" parent="3259" name="movie_id">
-      <DataType>integer|0s</DataType>
-      <NotNull>1</NotNull>
-      <Position>1</Position>
-      <StateNumber>138394</StateNumber>
-      <TypeId>23</TypeId>
-    </column>
-    <column id="3305" parent="3259" name="user_id">
-      <DataType>integer|0s</DataType>
-      <NotNull>1</NotNull>
-      <Position>2</Position>
-      <StateNumber>138394</StateNumber>
-      <TypeId>23</TypeId>
-    </column>
-    <foreign-key id="3306" parent="3259" name="fk_liked_movie">
-      <ColNames>movie_id</ColNames>
-      <ObjectId>157171</ObjectId>
-      <OnDelete>cascade</OnDelete>
-      <OnUpdate>cascade</OnUpdate>
-      <RefColNames>movie_id</RefColNames>
-      <RefColPositions>1</RefColPositions>
-      <RefKeyName>movies_pkey</RefKeyName>
-      <StateNumber>138394</StateNumber>
-      <RefTableId>157125</RefTableId>
-      <RefTableName>movies</RefTableName>
-    </foreign-key>
-    <foreign-key id="3307" parent="3259" name="fk_user_like">
-      <ColNames>user_id</ColNames>
-      <ObjectId>157176</ObjectId>
-      <OnDelete>cascade</OnDelete>
-      <OnUpdate>cascade</OnUpdate>
-      <RefColNames>user_id</RefColNames>
-      <RefColPositions>1</RefColPositions>
-      <RefKeyName>users_pkey</RefKeyName>
-      <StateNumber>138394</StateNumber>
-      <RefTableId>157103</RefTableId>
-      <RefTableName>users</RefTableName>
-    </foreign-key>
-    <index id="3308" parent="3259" name="pk_movie_likes">
-      <ClassIds>1978,1978</ClassIds>
-      <ColNames>movie_id
-user_id</ColNames>
-      <CollationIds>0,0</CollationIds>
-      <ObjectId>157169</ObjectId>
-      <Primary>1</Primary>
-      <StateNumber>138394</StateNumber>
-      <Unique>1</Unique>
-      <AccessMethodId>403</AccessMethodId>
-    </index>
-    <key id="3309" parent="3259" name="pk_movie_likes">
-      <ColNames>movie_id
-user_id</ColNames>
-      <ObjectId>157170</ObjectId>
-      <Primary>1</Primary>
-      <StateNumber>138394</StateNumber>
-      <UnderlyingIndexId>157169</UnderlyingIndexId>
-    </key>
-    <check id="3310" parent="3260" name="ck_movie_stars">
-      <ColNames>stars_rated</ColNames>
-      <ObjectId>157153</ObjectId>
-      <Predicate>(stars_rated &gt;= 1) AND (stars_rated &lt;= 10)</Predicate>
-      <StateNumber>138394</StateNumber>
-    </check>
     <column id="3311" parent="3260" name="movie_id">
       <DataType>integer|0s</DataType>
@@ -20469,5 +20471,68 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3313" parent="3260" name="reason">
+    <foreign-key id="3313" parent="3260" name="fk_liked_movie">
+      <ColNames>movie_id</ColNames>
+      <ObjectId>157171</ObjectId>
+      <OnDelete>cascade</OnDelete>
+      <OnUpdate>cascade</OnUpdate>
+      <RefColNames>movie_id</RefColNames>
+      <RefColPositions>1</RefColPositions>
+      <RefKeyName>movies_pkey</RefKeyName>
+      <StateNumber>138394</StateNumber>
+      <RefTableId>157125</RefTableId>
+      <RefTableName>movies</RefTableName>
+    </foreign-key>
+    <foreign-key id="3314" parent="3260" name="fk_user_like">
+      <ColNames>user_id</ColNames>
+      <ObjectId>157176</ObjectId>
+      <OnDelete>cascade</OnDelete>
+      <OnUpdate>cascade</OnUpdate>
+      <RefColNames>user_id</RefColNames>
+      <RefColPositions>1</RefColPositions>
+      <RefKeyName>users_pkey</RefKeyName>
+      <StateNumber>138394</StateNumber>
+      <RefTableId>157103</RefTableId>
+      <RefTableName>users</RefTableName>
+    </foreign-key>
+    <index id="3315" parent="3260" name="pk_movie_likes">
+      <ClassIds>1978,1978</ClassIds>
+      <ColNames>movie_id
+user_id</ColNames>
+      <CollationIds>0,0</CollationIds>
+      <ObjectId>157169</ObjectId>
+      <Primary>1</Primary>
+      <StateNumber>138394</StateNumber>
+      <Unique>1</Unique>
+      <AccessMethodId>403</AccessMethodId>
+    </index>
+    <key id="3316" parent="3260" name="pk_movie_likes">
+      <ColNames>movie_id
+user_id</ColNames>
+      <ObjectId>157170</ObjectId>
+      <Primary>1</Primary>
+      <StateNumber>138394</StateNumber>
+      <UnderlyingIndexId>157169</UnderlyingIndexId>
+    </key>
+    <check id="3317" parent="3261" name="ck_movie_stars">
+      <ColNames>stars_rated</ColNames>
+      <ObjectId>157153</ObjectId>
+      <Predicate>(stars_rated &gt;= 1) AND (stars_rated &lt;= 10)</Predicate>
+      <StateNumber>138394</StateNumber>
+    </check>
+    <column id="3318" parent="3261" name="movie_id">
+      <DataType>integer|0s</DataType>
+      <NotNull>1</NotNull>
+      <Position>1</Position>
+      <StateNumber>138394</StateNumber>
+      <TypeId>23</TypeId>
+    </column>
+    <column id="3319" parent="3261" name="user_id">
+      <DataType>integer|0s</DataType>
+      <NotNull>1</NotNull>
+      <Position>2</Position>
+      <StateNumber>138394</StateNumber>
+      <TypeId>23</TypeId>
+    </column>
+    <column id="3320" parent="3261" name="reason">
       <DataType>varchar(300)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20476,5 +20541,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3314" parent="3260" name="stars_rated">
+    <column id="3321" parent="3261" name="stars_rated">
       <DataType>integer|0s</DataType>
       <NotNull>1</NotNull>
@@ -20483,5 +20548,5 @@
       <TypeId>23</TypeId>
     </column>
-    <foreign-key id="3315" parent="3260" name="fk_rated_movie">
+    <foreign-key id="3322" parent="3261" name="fk_rated_movie">
       <ColNames>movie_id</ColNames>
       <ObjectId>157156</ObjectId>
@@ -20495,5 +20560,5 @@
       <RefTableName>movies</RefTableName>
     </foreign-key>
-    <foreign-key id="3316" parent="3260" name="fk_user_rate">
+    <foreign-key id="3323" parent="3261" name="fk_user_rate">
       <ColNames>user_id</ColNames>
       <ObjectId>157161</ObjectId>
@@ -20507,5 +20572,5 @@
       <RefTableName>users</RefTableName>
     </foreign-key>
-    <index id="3317" parent="3260" name="pk_movie_rates">
+    <index id="3324" parent="3261" name="pk_movie_rates">
       <ClassIds>1978,1978</ClassIds>
       <ColNames>movie_id
@@ -20518,5 +20583,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <key id="3318" parent="3260" name="pk_movie_rates">
+    <key id="3325" parent="3261" name="pk_movie_rates">
       <ColNames>movie_id
 user_id</ColNames>
@@ -20526,5 +20591,5 @@
       <UnderlyingIndexId>157154</UnderlyingIndexId>
     </key>
-    <check id="3319" parent="3261" name="ck_person_is_director">
+    <check id="3326" parent="3262" name="ck_person_is_director">
       <ColNames>director_id</ColNames>
       <ObjectId>157129</ObjectId>
@@ -20532,5 +20597,5 @@
       <StateNumber>138394</StateNumber>
     </check>
-    <column id="3320" parent="3261" name="movie_id">
+    <column id="3327" parent="3262" name="movie_id">
       <DataType>integer|0s</DataType>
       <DefaultExpression>nextval(&apos;project.movies_movie_id_seq&apos;::regclass)</DefaultExpression>
@@ -20540,5 +20605,5 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3321" parent="3261" name="title">
+    <column id="3328" parent="3262" name="title">
       <DataType>varchar(150)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20547,5 +20612,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3322" parent="3261" name="description">
+    <column id="3329" parent="3262" name="description">
       <DataType>varchar(1000)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20554,5 +20619,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3323" parent="3261" name="image_url">
+    <column id="3330" parent="3262" name="image_url">
       <DataType>varchar(300)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20561,5 +20626,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3324" parent="3261" name="airing_date">
+    <column id="3331" parent="3262" name="airing_date">
       <DataType>date|0s</DataType>
       <NotNull>1</NotNull>
@@ -20568,5 +20633,5 @@
       <TypeId>1082</TypeId>
     </column>
-    <column id="3325" parent="3261" name="imdb_rating">
+    <column id="3332" parent="3262" name="imdb_rating">
       <DataType>double precision|0s</DataType>
       <Position>6</Position>
@@ -20574,5 +20639,5 @@
       <TypeId>701</TypeId>
     </column>
-    <column id="3326" parent="3261" name="director_id">
+    <column id="3333" parent="3262" name="director_id">
       <DataType>integer|0s</DataType>
       <Position>7</Position>
@@ -20580,5 +20645,5 @@
       <TypeId>23</TypeId>
     </column>
-    <foreign-key id="3327" parent="3261" name="fk_movie_director">
+    <foreign-key id="3334" parent="3262" name="fk_movie_director">
       <ColNames>director_id</ColNames>
       <ObjectId>157136</ObjectId>
@@ -20592,5 +20657,5 @@
       <RefTableName>persons</RefTableName>
     </foreign-key>
-    <index id="3328" parent="3261" name="movies_pkey">
+    <index id="3335" parent="3262" name="movies_pkey">
       <ClassIds>1978</ClassIds>
       <ColNames>movie_id</ColNames>
@@ -20603,5 +20668,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <index id="3329" parent="3261" name="movies_title_key">
+    <index id="3336" parent="3262" name="movies_title_key">
       <ClassIds>3126</ClassIds>
       <ColNames>title</ColNames>
@@ -20614,5 +20679,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <key id="3330" parent="3261" name="movies_pkey">
+    <key id="3337" parent="3262" name="movies_pkey">
       <ColNames>movie_id</ColNames>
       <NameSurrogate>1</NameSurrogate>
@@ -20622,5 +20687,5 @@
       <UnderlyingIndexId>157132</UnderlyingIndexId>
     </key>
-    <key id="3331" parent="3261" name="movies_title_key">
+    <key id="3338" parent="3262" name="movies_title_key">
       <ColNames>title</ColNames>
       <NameSurrogate>1</NameSurrogate>
@@ -20629,5 +20694,5 @@
       <UnderlyingIndexId>157134</UnderlyingIndexId>
     </key>
-    <check id="3332" parent="3262" name="ck_person_stars">
+    <check id="3339" parent="3263" name="ck_person_stars">
       <ColNames>stars_rated</ColNames>
       <ObjectId>157230</ObjectId>
@@ -20635,5 +20700,5 @@
       <StateNumber>138394</StateNumber>
     </check>
-    <column id="3333" parent="3262" name="person_id">
+    <column id="3340" parent="3263" name="person_id">
       <DataType>integer|0s</DataType>
       <NotNull>1</NotNull>
@@ -20642,5 +20707,5 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3334" parent="3262" name="user_id">
+    <column id="3341" parent="3263" name="user_id">
       <DataType>integer|0s</DataType>
       <NotNull>1</NotNull>
@@ -20649,5 +20714,5 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3335" parent="3262" name="reason">
+    <column id="3342" parent="3263" name="reason">
       <DataType>varchar(300)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20656,5 +20721,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3336" parent="3262" name="stars_rated">
+    <column id="3343" parent="3263" name="stars_rated">
       <DataType>integer|0s</DataType>
       <NotNull>1</NotNull>
@@ -20663,5 +20728,5 @@
       <TypeId>23</TypeId>
     </column>
-    <foreign-key id="3337" parent="3262" name="fk_rated_person">
+    <foreign-key id="3344" parent="3263" name="fk_rated_person">
       <ColNames>person_id</ColNames>
       <ObjectId>157233</ObjectId>
@@ -20675,5 +20740,5 @@
       <RefTableName>persons</RefTableName>
     </foreign-key>
-    <foreign-key id="3338" parent="3262" name="fk_user_rate_person">
+    <foreign-key id="3345" parent="3263" name="fk_user_rate_person">
       <ColNames>user_id</ColNames>
       <ObjectId>157238</ObjectId>
@@ -20687,5 +20752,5 @@
       <RefTableName>users</RefTableName>
     </foreign-key>
-    <index id="3339" parent="3262" name="pk_person_rates">
+    <index id="3346" parent="3263" name="pk_person_rates">
       <ClassIds>1978,1978</ClassIds>
       <ColNames>person_id
@@ -20698,5 +20763,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <key id="3340" parent="3262" name="pk_person_rates">
+    <key id="3347" parent="3263" name="pk_person_rates">
       <ColNames>person_id
 user_id</ColNames>
@@ -20706,5 +20771,5 @@
       <UnderlyingIndexId>157231</UnderlyingIndexId>
     </key>
-    <check id="3341" parent="3263" name="ck_type">
+    <check id="3348" parent="3264" name="ck_type">
       <ColNames>type</ColNames>
       <ObjectId>157119</ObjectId>
@@ -20712,5 +20777,5 @@
       <StateNumber>138394</StateNumber>
     </check>
-    <column id="3342" parent="3263" name="person_id">
+    <column id="3349" parent="3264" name="person_id">
       <DataType>integer|0s</DataType>
       <DefaultExpression>nextval(&apos;project.persons_person_id_seq&apos;::regclass)</DefaultExpression>
@@ -20720,5 +20785,5 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3343" parent="3263" name="name">
+    <column id="3350" parent="3264" name="name">
       <DataType>varchar(100)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20727,5 +20792,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3344" parent="3263" name="surname">
+    <column id="3351" parent="3264" name="surname">
       <DataType>varchar(100)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20734,5 +20799,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3345" parent="3263" name="type">
+    <column id="3352" parent="3264" name="type">
       <DataType>char|0s</DataType>
       <NotNull>1</NotNull>
@@ -20741,5 +20806,5 @@
       <TypeId>1042</TypeId>
     </column>
-    <column id="3346" parent="3263" name="date_of_birth">
+    <column id="3353" parent="3264" name="date_of_birth">
       <DataType>date|0s</DataType>
       <NotNull>1</NotNull>
@@ -20748,5 +20813,5 @@
       <TypeId>1082</TypeId>
     </column>
-    <column id="3347" parent="3263" name="image_url">
+    <column id="3354" parent="3264" name="image_url">
       <DataType>varchar(400)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20755,5 +20820,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3348" parent="3263" name="description">
+    <column id="3355" parent="3264" name="description">
       <DataType>varchar(400)|0s</DataType>
       <Position>7</Position>
@@ -20761,5 +20826,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <index id="3349" parent="3263" name="persons_pkey">
+    <index id="3356" parent="3264" name="persons_pkey">
       <ClassIds>1978</ClassIds>
       <ColNames>person_id</ColNames>
@@ -20772,5 +20837,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <key id="3350" parent="3263" name="persons_pkey">
+    <key id="3357" parent="3264" name="persons_pkey">
       <ColNames>person_id</ColNames>
       <NameSurrogate>1</NameSurrogate>
@@ -20780,5 +20845,5 @@
       <UnderlyingIndexId>157122</UnderlyingIndexId>
     </key>
-    <column id="3351" parent="3264" name="discussion_id">
+    <column id="3358" parent="3265" name="discussion_id">
       <DataType>integer|0s</DataType>
       <NotNull>1</NotNull>
@@ -20787,5 +20852,5 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3352" parent="3264" name="reply_id">
+    <column id="3359" parent="3265" name="reply_id">
       <DataType>integer|0s</DataType>
       <DefaultExpression>nextval(&apos;project.replies_reply_id_seq&apos;::regclass)</DefaultExpression>
@@ -20795,5 +20860,5 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3353" parent="3264" name="text">
+    <column id="3360" parent="3265" name="text">
       <DataType>varchar(1000)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20802,5 +20867,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3354" parent="3264" name="date">
+    <column id="3361" parent="3265" name="date">
       <DataType>date|0s</DataType>
       <NotNull>1</NotNull>
@@ -20809,5 +20874,5 @@
       <TypeId>1082</TypeId>
     </column>
-    <column id="3355" parent="3264" name="user_id">
+    <column id="3362" parent="3265" name="user_id">
       <DataType>integer|0s</DataType>
       <NotNull>1</NotNull>
@@ -20816,5 +20881,5 @@
       <TypeId>23</TypeId>
     </column>
-    <foreign-key id="3356" parent="3264" name="fk_reply_discussion">
+    <foreign-key id="3363" parent="3265" name="fk_reply_discussion">
       <ColNames>discussion_id</ColNames>
       <ObjectId>157282</ObjectId>
@@ -20828,5 +20893,5 @@
       <RefTableName>discussions</RefTableName>
     </foreign-key>
-    <foreign-key id="3357" parent="3264" name="fk_user_create_reply">
+    <foreign-key id="3364" parent="3265" name="fk_user_create_reply">
       <ColNames>user_id</ColNames>
       <ObjectId>157277</ObjectId>
@@ -20840,5 +20905,5 @@
       <RefTableName>users</RefTableName>
     </foreign-key>
-    <index id="3358" parent="3264" name="pk_replies">
+    <index id="3365" parent="3265" name="pk_replies">
       <ClassIds>1978,1978</ClassIds>
       <ColNames>discussion_id
@@ -20851,5 +20916,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <key id="3359" parent="3264" name="pk_replies">
+    <key id="3366" parent="3265" name="pk_replies">
       <ColNames>discussion_id
 reply_id</ColNames>
@@ -20859,5 +20924,5 @@
       <UnderlyingIndexId>157275</UnderlyingIndexId>
     </key>
-    <column id="3360" parent="3265" name="user_id">
+    <column id="3367" parent="3266" name="user_id">
       <DataType>integer|0s</DataType>
       <NotNull>1</NotNull>
@@ -20866,5 +20931,5 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3361" parent="3265" name="genre_id">
+    <column id="3368" parent="3266" name="genre_id">
       <DataType>integer|0s</DataType>
       <NotNull>1</NotNull>
@@ -20873,5 +20938,5 @@
       <TypeId>23</TypeId>
     </column>
-    <foreign-key id="3362" parent="3265" name="fk_user_genre">
+    <foreign-key id="3369" parent="3266" name="fk_user_genre">
       <ColNames>user_id</ColNames>
       <ObjectId>157201</ObjectId>
@@ -20885,5 +20950,5 @@
       <RefTableName>users</RefTableName>
     </foreign-key>
-    <foreign-key id="3363" parent="3265" name="fk_genre_like_user">
+    <foreign-key id="3370" parent="3266" name="fk_genre_like_user">
       <ColNames>genre_id</ColNames>
       <ObjectId>157206</ObjectId>
@@ -20897,5 +20962,5 @@
       <RefTableName>genres</RefTableName>
     </foreign-key>
-    <index id="3364" parent="3265" name="pk_user_genres">
+    <index id="3371" parent="3266" name="pk_user_genres">
       <ClassIds>1978,1978</ClassIds>
       <ColNames>user_id
@@ -20908,5 +20973,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <key id="3365" parent="3265" name="pk_user_genres">
+    <key id="3372" parent="3266" name="pk_user_genres">
       <ColNames>user_id
 genre_id</ColNames>
@@ -20916,5 +20981,5 @@
       <UnderlyingIndexId>157199</UnderlyingIndexId>
     </key>
-    <check id="3366" parent="3266" name="ck_password">
+    <check id="3373" parent="3267" name="ck_password">
       <ColNames>password</ColNames>
       <ObjectId>191584</ObjectId>
@@ -20922,5 +20987,5 @@
       <StateNumber>141874</StateNumber>
     </check>
-    <column id="3367" parent="3266" name="user_id">
+    <column id="3374" parent="3267" name="user_id">
       <DataType>integer|0s</DataType>
       <DefaultExpression>nextval(&apos;project.users_user_id_seq&apos;::regclass)</DefaultExpression>
@@ -20930,5 +20995,5 @@
       <TypeId>23</TypeId>
     </column>
-    <column id="3368" parent="3266" name="username">
+    <column id="3375" parent="3267" name="username">
       <DataType>varchar(50)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20937,5 +21002,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3369" parent="3266" name="name">
+    <column id="3376" parent="3267" name="name">
       <DataType>varchar(50)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20944,5 +21009,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3370" parent="3266" name="surname">
+    <column id="3377" parent="3267" name="surname">
       <DataType>varchar(50)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20951,5 +21016,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3371" parent="3266" name="email">
+    <column id="3378" parent="3267" name="email">
       <DataType>varchar(100)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20958,5 +21023,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <column id="3372" parent="3266" name="password">
+    <column id="3379" parent="3267" name="password">
       <DataType>varchar(128)|0s</DataType>
       <NotNull>1</NotNull>
@@ -20965,5 +21030,5 @@
       <TypeId>1043</TypeId>
     </column>
-    <index id="3373" parent="3266" name="users_pkey">
+    <index id="3380" parent="3267" name="users_pkey">
       <ClassIds>1978</ClassIds>
       <ColNames>user_id</ColNames>
@@ -20976,5 +21041,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <index id="3374" parent="3266" name="users_username_key">
+    <index id="3381" parent="3267" name="users_username_key">
       <ClassIds>3126</ClassIds>
       <ColNames>username</ColNames>
@@ -20987,5 +21052,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <index id="3375" parent="3266" name="users_email_key">
+    <index id="3382" parent="3267" name="users_email_key">
       <ClassIds>3126</ClassIds>
       <ColNames>email</ColNames>
@@ -20998,5 +21063,5 @@
       <AccessMethodId>403</AccessMethodId>
     </index>
-    <key id="3376" parent="3266" name="users_pkey">
+    <key id="3383" parent="3267" name="users_pkey">
       <ColNames>user_id</ColNames>
       <NameSurrogate>1</NameSurrogate>
@@ -21006,5 +21071,5 @@
       <UnderlyingIndexId>157108</UnderlyingIndexId>
     </key>
-    <key id="3377" parent="3266" name="users_username_key">
+    <key id="3384" parent="3267" name="users_username_key">
       <ColNames>username</ColNames>
       <NameSurrogate>1</NameSurrogate>
@@ -21013,5 +21078,5 @@
       <UnderlyingIndexId>157110</UnderlyingIndexId>
     </key>
-    <key id="3378" parent="3266" name="users_email_key">
+    <key id="3385" parent="3267" name="users_email_key">
       <ColNames>email</ColNames>
       <NameSurrogate>1</NameSurrogate>
Index: .idea/dataSources/14a5fbd7-f501-41df-a0af-e3b168b536f7/storage_v2/_src_/database/db_202122z_va_prj_wediscussmovies.LUavmg/schema/project.GUuQ7Q.meta
===================================================================
--- .idea/dataSources/14a5fbd7-f501-41df-a0af-e3b168b536f7/storage_v2/_src_/database/db_202122z_va_prj_wediscussmovies.LUavmg/schema/project.GUuQ7Q.meta	(revision e0ef1b13a29101c3f7a56f68da8dcdc8cce98b76)
+++ .idea/dataSources/14a5fbd7-f501-41df-a0af-e3b168b536f7/storage_v2/_src_/database/db_202122z_va_prj_wediscussmovies.LUavmg/schema/project.GUuQ7Q.meta	(revision 8f1b7e9ff410a2892ccfe2af2277a9cae1881749)
@@ -1,2 +1,2 @@
 #n:project
-!<md> [147247, 0, null, null, -2147483648, -2147483648]
+!<md> [148617, 0, null, null, -2147483648, -2147483648]
