Changeset 8f1b7e9 in Git for .idea/dataSources/14a5fbd7-f501-41df-a0af-e3b168b536f7.xml
- Timestamp:
- 02/10/22 13:28:00 (3 years ago)
- Branches:
- main
- Children:
- 980eeda
- Parents:
- 6f91f99
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
.idea/dataSources/14a5fbd7-f501-41df-a0af-e3b168b536f7.xml
r6f91f99 r8f1b7e9 4531 4531 209758||209757|C|G 4532 4532 209758||209757|T|G 4533 2 17893||17780|c|G4534 2 17893||18298|c|G4535 2 17893||17780|C|G4536 2 17893||17780|T|G</Grants>4537 <IntrospectionStateNumber>14 7246</IntrospectionStateNumber>4533 221486||17780|c|G 4534 221486||18298|c|G 4535 221486||17780|C|G 4536 221486||17780|T|G</Grants> 4537 <IntrospectionStateNumber>148616</IntrospectionStateNumber> 4538 4538 <ServerVersion>14.1</ServerVersion> 4539 4539 <StartupTime>1642285030</StartupTime> … … 8140 8140 </database> 8141 8141 <database id="558" parent="1" name="db_201920z_va_vezhbi"> 8142 <ObjectId>2 17893</ObjectId>8142 <ObjectId>221486</ObjectId> 8143 8143 <OwnerName>db_201920z_va_vezhbi_owner</OwnerName> 8144 8144 </database> … … 15021 15021 <role id="2184" parent="1" name="db_201920z_va_vezhbi"> 15022 15022 <Inherit>0</Inherit> 15023 <ObjectId>2 17892</ObjectId>15023 <ObjectId>221485</ObjectId> 15024 15024 </role> 15025 15025 <role id="2185" parent="1" name="db_201920z_va_vezhbi_owner"> … … 19945 19945 </schema> 19946 19946 <schema id="3245" parent="623" name="project"> 19947 <IntrospectionStateNumber>14 7247</IntrospectionStateNumber>19947 <IntrospectionStateNumber>148617</IntrospectionStateNumber> 19948 19948 <ObjectId>152130</ObjectId> 19949 19949 <StateNumber>137939</StateNumber> … … 20014 20014 <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName> 20015 20015 </sequence> 20016 <table id="3255" parent="3245" name="discussions"> 20016 <table id="3255" parent="3245" name="discussion_likes"> 20017 <ObjectId>219894</ObjectId> 20018 <StateNumber>147785</StateNumber> 20019 <AccessMethodId>2</AccessMethodId> 20020 <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName> 20021 </table> 20022 <table id="3256" parent="3245" name="discussions"> 20017 20023 <ObjectId>157244</ObjectId> 20018 20024 <StateNumber>138394</StateNumber> … … 20020 20026 <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName> 20021 20027 </table> 20022 <table id="325 6" parent="3245" name="genres">20028 <table id="3257" parent="3245" name="genres"> 20023 20029 <ObjectId>157142</ObjectId> 20024 20030 <StateNumber>138394</StateNumber> … … 20026 20032 <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName> 20027 20033 </table> 20028 <table id="325 7" parent="3245" name="movie_actors">20034 <table id="3258" parent="3245" name="movie_actors"> 20029 20035 <ObjectId>157211</ObjectId> 20030 20036 <StateNumber>138394</StateNumber> … … 20032 20038 <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName> 20033 20039 </table> 20034 <table id="325 8" parent="3245" name="movie_genres">20040 <table id="3259" parent="3245" name="movie_genres"> 20035 20041 <ObjectId>157181</ObjectId> 20036 20042 <StateNumber>138394</StateNumber> … … 20038 20044 <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName> 20039 20045 </table> 20040 <table id="32 59" parent="3245" name="movie_likes">20046 <table id="3260" parent="3245" name="movie_likes"> 20041 20047 <ObjectId>157166</ObjectId> 20042 20048 <StateNumber>138394</StateNumber> … … 20044 20050 <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName> 20045 20051 </table> 20046 <table id="326 0" parent="3245" name="movie_rates">20052 <table id="3261" parent="3245" name="movie_rates"> 20047 20053 <ObjectId>157150</ObjectId> 20048 20054 <StateNumber>138394</StateNumber> … … 20050 20056 <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName> 20051 20057 </table> 20052 <table id="326 1" parent="3245" name="movies">20058 <table id="3262" parent="3245" name="movies"> 20053 20059 <ObjectId>157125</ObjectId> 20054 20060 <StateNumber>138394</StateNumber> … … 20056 20062 <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName> 20057 20063 </table> 20058 <table id="326 2" parent="3245" name="person_rates">20064 <table id="3263" parent="3245" name="person_rates"> 20059 20065 <ObjectId>157227</ObjectId> 20060 20066 <StateNumber>138394</StateNumber> … … 20062 20068 <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName> 20063 20069 </table> 20064 <table id="326 3" parent="3245" name="persons">20070 <table id="3264" parent="3245" name="persons"> 20065 20071 <ObjectId>157115</ObjectId> 20066 20072 <StateNumber>139960</StateNumber> … … 20068 20074 <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName> 20069 20075 </table> 20070 <table id="326 4" parent="3245" name="replies">20076 <table id="3265" parent="3245" name="replies"> 20071 20077 <ObjectId>157269</ObjectId> 20072 20078 <StateNumber>138394</StateNumber> … … 20074 20080 <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName> 20075 20081 </table> 20076 <table id="326 5" parent="3245" name="user_genres">20082 <table id="3266" parent="3245" name="user_genres"> 20077 20083 <ObjectId>157196</ObjectId> 20078 20084 <StateNumber>138394</StateNumber> … … 20080 20086 <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName> 20081 20087 </table> 20082 <table id="326 6" parent="3245" name="users">20088 <table id="3267" parent="3245" name="users"> 20083 20089 <ObjectId>157103</ObjectId> 20084 20090 <StateNumber>141874</StateNumber> … … 20086 20092 <OwnerName>db_202122z_va_prj_wediscussmovies_owner</OwnerName> 20087 20093 </table> 20088 <argument id="326 7" parent="3247">20094 <argument id="3268" parent="3247"> 20089 20095 <ArgumentDirection>R</ArgumentDirection> 20090 20096 <DataType>char|0s</DataType> 20091 20097 </argument> 20092 <argument id="326 8" parent="3247">20098 <argument id="3269" parent="3247"> 20093 20099 <DataType>integer|0s</DataType> 20094 20100 <Position>1</Position> 20095 20101 </argument> 20096 <argument id="32 69" parent="3248">20102 <argument id="3270" parent="3248"> 20097 20103 <ArgumentDirection>R</ArgumentDirection> 20098 20104 <DataType>char|0s</DataType> 20099 20105 </argument> 20100 <argument id="327 0" parent="3248">20106 <argument id="3271" parent="3248"> 20101 20107 <DataType>integer|0s</DataType> 20102 20108 <Position>1</Position> 20103 20109 </argument> 20104 <check id="3271" parent="3255" name="ck_type_discussion"> 20110 <column id="3272" parent="3255" name="discussion_id"> 20111 <DataType>integer|0s</DataType> 20112 <NotNull>1</NotNull> 20113 <Position>1</Position> 20114 <StateNumber>147785</StateNumber> 20115 <TypeId>23</TypeId> 20116 </column> 20117 <column id="3273" parent="3255" name="user_id"> 20118 <DataType>integer|0s</DataType> 20119 <NotNull>1</NotNull> 20120 <Position>2</Position> 20121 <StateNumber>147785</StateNumber> 20122 <TypeId>23</TypeId> 20123 </column> 20124 <foreign-key id="3274" parent="3255" name="fk_liked_discussion"> 20125 <ColNames>discussion_id</ColNames> 20126 <ObjectId>219899</ObjectId> 20127 <OnDelete>cascade</OnDelete> 20128 <OnUpdate>cascade</OnUpdate> 20129 <RefColNames>discussion_id</RefColNames> 20130 <RefColPositions>1</RefColPositions> 20131 <RefKeyName>discussions_pkey</RefKeyName> 20132 <StateNumber>147785</StateNumber> 20133 <RefTableId>157244</RefTableId> 20134 <RefTableName>discussions</RefTableName> 20135 <RefTableKind>table</RefTableKind> 20136 </foreign-key> 20137 <foreign-key id="3275" parent="3255" name="fk_user_like"> 20138 <ColNames>user_id</ColNames> 20139 <ObjectId>219904</ObjectId> 20140 <OnDelete>cascade</OnDelete> 20141 <OnUpdate>cascade</OnUpdate> 20142 <RefColNames>user_id</RefColNames> 20143 <RefColPositions>1</RefColPositions> 20144 <RefKeyName>users_pkey</RefKeyName> 20145 <StateNumber>147785</StateNumber> 20146 <RefTableId>157103</RefTableId> 20147 <RefTableName>users</RefTableName> 20148 <RefTableKind>table</RefTableKind> 20149 </foreign-key> 20150 <index id="3276" parent="3255" name="pk_discussion_likes"> 20151 <ClassIds>1978,1978</ClassIds> 20152 <ColNames>discussion_id 20153 user_id</ColNames> 20154 <CollationIds>0,0</CollationIds> 20155 <ObjectId>219897</ObjectId> 20156 <Primary>1</Primary> 20157 <StateNumber>147785</StateNumber> 20158 <Unique>1</Unique> 20159 <AccessMethodId>403</AccessMethodId> 20160 </index> 20161 <key id="3277" parent="3255" name="pk_discussion_likes"> 20162 <ColNames>discussion_id 20163 user_id</ColNames> 20164 <ObjectId>219898</ObjectId> 20165 <Primary>1</Primary> 20166 <StateNumber>147785</StateNumber> 20167 <UnderlyingIndexId>219897</UnderlyingIndexId> 20168 </key> 20169 <check id="3278" parent="3256" name="ck_type_discussion"> 20105 20170 <ColNames>type 20106 20171 movie_id … … 20110 20175 <StateNumber>138394</StateNumber> 20111 20176 </check> 20112 <column id="327 2" parent="3255" name="discussion_id">20177 <column id="3279" parent="3256" name="discussion_id"> 20113 20178 <DataType>integer|0s</DataType> 20114 20179 <DefaultExpression>nextval('project.discussions_discussion_id_seq'::regclass)</DefaultExpression> … … 20118 20183 <TypeId>23</TypeId> 20119 20184 </column> 20120 <column id="32 73" parent="3255" name="type">20185 <column id="3280" parent="3256" name="type"> 20121 20186 <DataType>char|0s</DataType> 20122 20187 <NotNull>1</NotNull> … … 20125 20190 <TypeId>1042</TypeId> 20126 20191 </column> 20127 <column id="32 74" parent="3255" name="text">20192 <column id="3281" parent="3256" name="text"> 20128 20193 <DataType>varchar(1000)|0s</DataType> 20129 20194 <NotNull>1</NotNull> … … 20132 20197 <TypeId>1043</TypeId> 20133 20198 </column> 20134 <column id="32 75" parent="3255" name="title">20199 <column id="3282" parent="3256" name="title"> 20135 20200 <DataType>varchar(250)|0s</DataType> 20136 20201 <NotNull>1</NotNull> … … 20139 20204 <TypeId>1043</TypeId> 20140 20205 </column> 20141 <column id="32 76" parent="3255" name="date">20206 <column id="3283" parent="3256" name="date"> 20142 20207 <DataType>date|0s</DataType> 20143 20208 <NotNull>1</NotNull> … … 20146 20211 <TypeId>1082</TypeId> 20147 20212 </column> 20148 <column id="32 77" parent="3255" name="user_id">20213 <column id="3284" parent="3256" name="user_id"> 20149 20214 <DataType>integer|0s</DataType> 20150 20215 <NotNull>1</NotNull> … … 20153 20218 <TypeId>23</TypeId> 20154 20219 </column> 20155 <column id="32 78" parent="3255" name="movie_id">20220 <column id="3285" parent="3256" name="movie_id"> 20156 20221 <DataType>integer|0s</DataType> 20157 20222 <Position>7</Position> … … 20159 20224 <TypeId>23</TypeId> 20160 20225 </column> 20161 <column id="32 79" parent="3255" name="person_id">20226 <column id="3286" parent="3256" name="person_id"> 20162 20227 <DataType>integer|0s</DataType> 20163 20228 <Position>8</Position> … … 20165 20230 <TypeId>23</TypeId> 20166 20231 </column> 20167 <foreign-key id="328 0" parent="3255" name="fk_user_created">20232 <foreign-key id="3287" parent="3256" name="fk_user_created"> 20168 20233 <ColNames>user_id</ColNames> 20169 20234 <ObjectId>157253</ObjectId> … … 20177 20242 <RefTableName>users</RefTableName> 20178 20243 </foreign-key> 20179 <foreign-key id="328 1" parent="3255" name="fk_discussion_movie">20244 <foreign-key id="3288" parent="3256" name="fk_discussion_movie"> 20180 20245 <ColNames>movie_id</ColNames> 20181 20246 <ObjectId>157258</ObjectId> … … 20189 20254 <RefTableName>movies</RefTableName> 20190 20255 </foreign-key> 20191 <foreign-key id="328 2" parent="3255" name="fk_discussion_person">20256 <foreign-key id="3289" parent="3256" name="fk_discussion_person"> 20192 20257 <ColNames>person_id</ColNames> 20193 20258 <ObjectId>157263</ObjectId> … … 20201 20266 <RefTableName>persons</RefTableName> 20202 20267 </foreign-key> 20203 <index id="32 83" parent="3255" name="discussions_pkey">20268 <index id="3290" parent="3256" name="discussions_pkey"> 20204 20269 <ClassIds>1978</ClassIds> 20205 20270 <ColNames>discussion_id</ColNames> … … 20212 20277 <AccessMethodId>403</AccessMethodId> 20213 20278 </index> 20214 <key id="32 84" parent="3255" name="discussions_pkey">20279 <key id="3291" parent="3256" name="discussions_pkey"> 20215 20280 <ColNames>discussion_id</ColNames> 20216 20281 <NameSurrogate>1</NameSurrogate> … … 20220 20285 <UnderlyingIndexId>157251</UnderlyingIndexId> 20221 20286 </key> 20222 <column id="32 85" parent="3256" name="genre_id">20287 <column id="3292" parent="3257" name="genre_id"> 20223 20288 <DataType>integer|0s</DataType> 20224 20289 <DefaultExpression>nextval('project.genres_genre_id_seq'::regclass)</DefaultExpression> … … 20228 20293 <TypeId>23</TypeId> 20229 20294 </column> 20230 <column id="32 86" parent="3256" name="genre_type">20295 <column id="3293" parent="3257" name="genre_type"> 20231 20296 <DataType>varchar(100)|0s</DataType> 20232 20297 <NotNull>1</NotNull> … … 20235 20300 <TypeId>1043</TypeId> 20236 20301 </column> 20237 <index id="32 87" parent="3256" name="genres_pkey">20302 <index id="3294" parent="3257" name="genres_pkey"> 20238 20303 <ClassIds>1978</ClassIds> 20239 20304 <ColNames>genre_id</ColNames> … … 20246 20311 <AccessMethodId>403</AccessMethodId> 20247 20312 </index> 20248 <index id="32 88" parent="3256" name="genres_genre_type_key">20313 <index id="3295" parent="3257" name="genres_genre_type_key"> 20249 20314 <ClassIds>3126</ClassIds> 20250 20315 <ColNames>genre_type</ColNames> … … 20257 20322 <AccessMethodId>403</AccessMethodId> 20258 20323 </index> 20259 <key id="32 89" parent="3256" name="genres_pkey">20324 <key id="3296" parent="3257" name="genres_pkey"> 20260 20325 <ColNames>genre_id</ColNames> 20261 20326 <NameSurrogate>1</NameSurrogate> … … 20265 20330 <UnderlyingIndexId>157146</UnderlyingIndexId> 20266 20331 </key> 20267 <key id="329 0" parent="3256" name="genres_genre_type_key">20332 <key id="3297" parent="3257" name="genres_genre_type_key"> 20268 20333 <ColNames>genre_type</ColNames> 20269 20334 <NameSurrogate>1</NameSurrogate> … … 20272 20337 <UnderlyingIndexId>157148</UnderlyingIndexId> 20273 20338 </key> 20274 <check id="329 1" parent="3257" name="ck_person_is_actor">20339 <check id="3298" parent="3258" name="ck_person_is_actor"> 20275 20340 <ColNames>actor_id</ColNames> 20276 20341 <ObjectId>157214</ObjectId> … … 20278 20343 <StateNumber>138394</StateNumber> 20279 20344 </check> 20280 <column id="329 2" parent="3257" name="movie_id">20345 <column id="3299" parent="3258" name="movie_id"> 20281 20346 <DataType>integer|0s</DataType> 20282 20347 <NotNull>1</NotNull> … … 20285 20350 <TypeId>23</TypeId> 20286 20351 </column> 20287 <column id="3 293" parent="3257" name="actor_id">20352 <column id="3300" parent="3258" name="actor_id"> 20288 20353 <DataType>integer|0s</DataType> 20289 20354 <NotNull>1</NotNull> … … 20292 20357 <TypeId>23</TypeId> 20293 20358 </column> 20294 <foreign-key id="3 294" parent="3257" name="fk_actors_in_movie">20359 <foreign-key id="3301" parent="3258" name="fk_actors_in_movie"> 20295 20360 <ColNames>movie_id</ColNames> 20296 20361 <ObjectId>157217</ObjectId> … … 20304 20369 <RefTableName>movies</RefTableName> 20305 20370 </foreign-key> 20306 <foreign-key id="3 295" parent="3257" name="fk_actor_acts_movie">20371 <foreign-key id="3302" parent="3258" name="fk_actor_acts_movie"> 20307 20372 <ColNames>actor_id</ColNames> 20308 20373 <ObjectId>157222</ObjectId> … … 20316 20381 <RefTableName>persons</RefTableName> 20317 20382 </foreign-key> 20318 <index id="3 296" parent="3257" name="pk_movie_actors">20383 <index id="3303" parent="3258" name="pk_movie_actors"> 20319 20384 <ClassIds>1978,1978</ClassIds> 20320 20385 <ColNames>movie_id … … 20327 20392 <AccessMethodId>403</AccessMethodId> 20328 20393 </index> 20329 <key id="3 297" parent="3257" name="pk_movie_actors">20394 <key id="3304" parent="3258" name="pk_movie_actors"> 20330 20395 <ColNames>movie_id 20331 20396 actor_id</ColNames> … … 20335 20400 <UnderlyingIndexId>157215</UnderlyingIndexId> 20336 20401 </key> 20337 <column id="3 298" parent="3258" name="movie_id">20402 <column id="3305" parent="3259" name="movie_id"> 20338 20403 <DataType>integer|0s</DataType> 20339 20404 <NotNull>1</NotNull> … … 20342 20407 <TypeId>23</TypeId> 20343 20408 </column> 20344 <column id="3 299" parent="3258" name="genre_id">20409 <column id="3306" parent="3259" name="genre_id"> 20345 20410 <DataType>integer|0s</DataType> 20346 20411 <NotNull>1</NotNull> … … 20349 20414 <TypeId>23</TypeId> 20350 20415 </column> 20351 <foreign-key id="330 0" parent="3258" name="fk_movie_genre">20416 <foreign-key id="3307" parent="3259" name="fk_movie_genre"> 20352 20417 <ColNames>movie_id</ColNames> 20353 20418 <ObjectId>157186</ObjectId> … … 20361 20426 <RefTableName>movies</RefTableName> 20362 20427 </foreign-key> 20363 <foreign-key id="330 1" parent="3258" name="fk_genre_type_movie">20428 <foreign-key id="3308" parent="3259" name="fk_genre_type_movie"> 20364 20429 <ColNames>genre_id</ColNames> 20365 20430 <ObjectId>157191</ObjectId> … … 20373 20438 <RefTableName>genres</RefTableName> 20374 20439 </foreign-key> 20375 <index id="330 2" parent="3258" name="pk_movie_genres">20440 <index id="3309" parent="3259" name="pk_movie_genres"> 20376 20441 <ClassIds>1978,1978</ClassIds> 20377 20442 <ColNames>movie_id … … 20384 20449 <AccessMethodId>403</AccessMethodId> 20385 20450 </index> 20386 <key id="33 03" parent="3258" name="pk_movie_genres">20451 <key id="3310" parent="3259" name="pk_movie_genres"> 20387 20452 <ColNames>movie_id 20388 20453 genre_id</ColNames> … … 20392 20457 <UnderlyingIndexId>157184</UnderlyingIndexId> 20393 20458 </key> 20394 <column id="3304" parent="3259" name="movie_id">20395 <DataType>integer|0s</DataType>20396 <NotNull>1</NotNull>20397 <Position>1</Position>20398 <StateNumber>138394</StateNumber>20399 <TypeId>23</TypeId>20400 </column>20401 <column id="3305" parent="3259" name="user_id">20402 <DataType>integer|0s</DataType>20403 <NotNull>1</NotNull>20404 <Position>2</Position>20405 <StateNumber>138394</StateNumber>20406 <TypeId>23</TypeId>20407 </column>20408 <foreign-key id="3306" parent="3259" name="fk_liked_movie">20409 <ColNames>movie_id</ColNames>20410 <ObjectId>157171</ObjectId>20411 <OnDelete>cascade</OnDelete>20412 <OnUpdate>cascade</OnUpdate>20413 <RefColNames>movie_id</RefColNames>20414 <RefColPositions>1</RefColPositions>20415 <RefKeyName>movies_pkey</RefKeyName>20416 <StateNumber>138394</StateNumber>20417 <RefTableId>157125</RefTableId>20418 <RefTableName>movies</RefTableName>20419 </foreign-key>20420 <foreign-key id="3307" parent="3259" name="fk_user_like">20421 <ColNames>user_id</ColNames>20422 <ObjectId>157176</ObjectId>20423 <OnDelete>cascade</OnDelete>20424 <OnUpdate>cascade</OnUpdate>20425 <RefColNames>user_id</RefColNames>20426 <RefColPositions>1</RefColPositions>20427 <RefKeyName>users_pkey</RefKeyName>20428 <StateNumber>138394</StateNumber>20429 <RefTableId>157103</RefTableId>20430 <RefTableName>users</RefTableName>20431 </foreign-key>20432 <index id="3308" parent="3259" name="pk_movie_likes">20433 <ClassIds>1978,1978</ClassIds>20434 <ColNames>movie_id20435 user_id</ColNames>20436 <CollationIds>0,0</CollationIds>20437 <ObjectId>157169</ObjectId>20438 <Primary>1</Primary>20439 <StateNumber>138394</StateNumber>20440 <Unique>1</Unique>20441 <AccessMethodId>403</AccessMethodId>20442 </index>20443 <key id="3309" parent="3259" name="pk_movie_likes">20444 <ColNames>movie_id20445 user_id</ColNames>20446 <ObjectId>157170</ObjectId>20447 <Primary>1</Primary>20448 <StateNumber>138394</StateNumber>20449 <UnderlyingIndexId>157169</UnderlyingIndexId>20450 </key>20451 <check id="3310" parent="3260" name="ck_movie_stars">20452 <ColNames>stars_rated</ColNames>20453 <ObjectId>157153</ObjectId>20454 <Predicate>(stars_rated >= 1) AND (stars_rated <= 10)</Predicate>20455 <StateNumber>138394</StateNumber>20456 </check>20457 20459 <column id="3311" parent="3260" name="movie_id"> 20458 20460 <DataType>integer|0s</DataType> … … 20469 20471 <TypeId>23</TypeId> 20470 20472 </column> 20471 <column id="3313" parent="3260" name="reason"> 20473 <foreign-key id="3313" parent="3260" name="fk_liked_movie"> 20474 <ColNames>movie_id</ColNames> 20475 <ObjectId>157171</ObjectId> 20476 <OnDelete>cascade</OnDelete> 20477 <OnUpdate>cascade</OnUpdate> 20478 <RefColNames>movie_id</RefColNames> 20479 <RefColPositions>1</RefColPositions> 20480 <RefKeyName>movies_pkey</RefKeyName> 20481 <StateNumber>138394</StateNumber> 20482 <RefTableId>157125</RefTableId> 20483 <RefTableName>movies</RefTableName> 20484 </foreign-key> 20485 <foreign-key id="3314" parent="3260" name="fk_user_like"> 20486 <ColNames>user_id</ColNames> 20487 <ObjectId>157176</ObjectId> 20488 <OnDelete>cascade</OnDelete> 20489 <OnUpdate>cascade</OnUpdate> 20490 <RefColNames>user_id</RefColNames> 20491 <RefColPositions>1</RefColPositions> 20492 <RefKeyName>users_pkey</RefKeyName> 20493 <StateNumber>138394</StateNumber> 20494 <RefTableId>157103</RefTableId> 20495 <RefTableName>users</RefTableName> 20496 </foreign-key> 20497 <index id="3315" parent="3260" name="pk_movie_likes"> 20498 <ClassIds>1978,1978</ClassIds> 20499 <ColNames>movie_id 20500 user_id</ColNames> 20501 <CollationIds>0,0</CollationIds> 20502 <ObjectId>157169</ObjectId> 20503 <Primary>1</Primary> 20504 <StateNumber>138394</StateNumber> 20505 <Unique>1</Unique> 20506 <AccessMethodId>403</AccessMethodId> 20507 </index> 20508 <key id="3316" parent="3260" name="pk_movie_likes"> 20509 <ColNames>movie_id 20510 user_id</ColNames> 20511 <ObjectId>157170</ObjectId> 20512 <Primary>1</Primary> 20513 <StateNumber>138394</StateNumber> 20514 <UnderlyingIndexId>157169</UnderlyingIndexId> 20515 </key> 20516 <check id="3317" parent="3261" name="ck_movie_stars"> 20517 <ColNames>stars_rated</ColNames> 20518 <ObjectId>157153</ObjectId> 20519 <Predicate>(stars_rated >= 1) AND (stars_rated <= 10)</Predicate> 20520 <StateNumber>138394</StateNumber> 20521 </check> 20522 <column id="3318" parent="3261" name="movie_id"> 20523 <DataType>integer|0s</DataType> 20524 <NotNull>1</NotNull> 20525 <Position>1</Position> 20526 <StateNumber>138394</StateNumber> 20527 <TypeId>23</TypeId> 20528 </column> 20529 <column id="3319" parent="3261" name="user_id"> 20530 <DataType>integer|0s</DataType> 20531 <NotNull>1</NotNull> 20532 <Position>2</Position> 20533 <StateNumber>138394</StateNumber> 20534 <TypeId>23</TypeId> 20535 </column> 20536 <column id="3320" parent="3261" name="reason"> 20472 20537 <DataType>varchar(300)|0s</DataType> 20473 20538 <NotNull>1</NotNull> … … 20476 20541 <TypeId>1043</TypeId> 20477 20542 </column> 20478 <column id="33 14" parent="3260" name="stars_rated">20543 <column id="3321" parent="3261" name="stars_rated"> 20479 20544 <DataType>integer|0s</DataType> 20480 20545 <NotNull>1</NotNull> … … 20483 20548 <TypeId>23</TypeId> 20484 20549 </column> 20485 <foreign-key id="33 15" parent="3260" name="fk_rated_movie">20550 <foreign-key id="3322" parent="3261" name="fk_rated_movie"> 20486 20551 <ColNames>movie_id</ColNames> 20487 20552 <ObjectId>157156</ObjectId> … … 20495 20560 <RefTableName>movies</RefTableName> 20496 20561 </foreign-key> 20497 <foreign-key id="33 16" parent="3260" name="fk_user_rate">20562 <foreign-key id="3323" parent="3261" name="fk_user_rate"> 20498 20563 <ColNames>user_id</ColNames> 20499 20564 <ObjectId>157161</ObjectId> … … 20507 20572 <RefTableName>users</RefTableName> 20508 20573 </foreign-key> 20509 <index id="33 17" parent="3260" name="pk_movie_rates">20574 <index id="3324" parent="3261" name="pk_movie_rates"> 20510 20575 <ClassIds>1978,1978</ClassIds> 20511 20576 <ColNames>movie_id … … 20518 20583 <AccessMethodId>403</AccessMethodId> 20519 20584 </index> 20520 <key id="33 18" parent="3260" name="pk_movie_rates">20585 <key id="3325" parent="3261" name="pk_movie_rates"> 20521 20586 <ColNames>movie_id 20522 20587 user_id</ColNames> … … 20526 20591 <UnderlyingIndexId>157154</UnderlyingIndexId> 20527 20592 </key> 20528 <check id="33 19" parent="3261" name="ck_person_is_director">20593 <check id="3326" parent="3262" name="ck_person_is_director"> 20529 20594 <ColNames>director_id</ColNames> 20530 20595 <ObjectId>157129</ObjectId> … … 20532 20597 <StateNumber>138394</StateNumber> 20533 20598 </check> 20534 <column id="332 0" parent="3261" name="movie_id">20599 <column id="3327" parent="3262" name="movie_id"> 20535 20600 <DataType>integer|0s</DataType> 20536 20601 <DefaultExpression>nextval('project.movies_movie_id_seq'::regclass)</DefaultExpression> … … 20540 20605 <TypeId>23</TypeId> 20541 20606 </column> 20542 <column id="332 1" parent="3261" name="title">20607 <column id="3328" parent="3262" name="title"> 20543 20608 <DataType>varchar(150)|0s</DataType> 20544 20609 <NotNull>1</NotNull> … … 20547 20612 <TypeId>1043</TypeId> 20548 20613 </column> 20549 <column id="332 2" parent="3261" name="description">20614 <column id="3329" parent="3262" name="description"> 20550 20615 <DataType>varchar(1000)|0s</DataType> 20551 20616 <NotNull>1</NotNull> … … 20554 20619 <TypeId>1043</TypeId> 20555 20620 </column> 20556 <column id="33 23" parent="3261" name="image_url">20621 <column id="3330" parent="3262" name="image_url"> 20557 20622 <DataType>varchar(300)|0s</DataType> 20558 20623 <NotNull>1</NotNull> … … 20561 20626 <TypeId>1043</TypeId> 20562 20627 </column> 20563 <column id="33 24" parent="3261" name="airing_date">20628 <column id="3331" parent="3262" name="airing_date"> 20564 20629 <DataType>date|0s</DataType> 20565 20630 <NotNull>1</NotNull> … … 20568 20633 <TypeId>1082</TypeId> 20569 20634 </column> 20570 <column id="33 25" parent="3261" name="imdb_rating">20635 <column id="3332" parent="3262" name="imdb_rating"> 20571 20636 <DataType>double precision|0s</DataType> 20572 20637 <Position>6</Position> … … 20574 20639 <TypeId>701</TypeId> 20575 20640 </column> 20576 <column id="33 26" parent="3261" name="director_id">20641 <column id="3333" parent="3262" name="director_id"> 20577 20642 <DataType>integer|0s</DataType> 20578 20643 <Position>7</Position> … … 20580 20645 <TypeId>23</TypeId> 20581 20646 </column> 20582 <foreign-key id="33 27" parent="3261" name="fk_movie_director">20647 <foreign-key id="3334" parent="3262" name="fk_movie_director"> 20583 20648 <ColNames>director_id</ColNames> 20584 20649 <ObjectId>157136</ObjectId> … … 20592 20657 <RefTableName>persons</RefTableName> 20593 20658 </foreign-key> 20594 <index id="33 28" parent="3261" name="movies_pkey">20659 <index id="3335" parent="3262" name="movies_pkey"> 20595 20660 <ClassIds>1978</ClassIds> 20596 20661 <ColNames>movie_id</ColNames> … … 20603 20668 <AccessMethodId>403</AccessMethodId> 20604 20669 </index> 20605 <index id="33 29" parent="3261" name="movies_title_key">20670 <index id="3336" parent="3262" name="movies_title_key"> 20606 20671 <ClassIds>3126</ClassIds> 20607 20672 <ColNames>title</ColNames> … … 20614 20679 <AccessMethodId>403</AccessMethodId> 20615 20680 </index> 20616 <key id="333 0" parent="3261" name="movies_pkey">20681 <key id="3337" parent="3262" name="movies_pkey"> 20617 20682 <ColNames>movie_id</ColNames> 20618 20683 <NameSurrogate>1</NameSurrogate> … … 20622 20687 <UnderlyingIndexId>157132</UnderlyingIndexId> 20623 20688 </key> 20624 <key id="333 1" parent="3261" name="movies_title_key">20689 <key id="3338" parent="3262" name="movies_title_key"> 20625 20690 <ColNames>title</ColNames> 20626 20691 <NameSurrogate>1</NameSurrogate> … … 20629 20694 <UnderlyingIndexId>157134</UnderlyingIndexId> 20630 20695 </key> 20631 <check id="333 2" parent="3262" name="ck_person_stars">20696 <check id="3339" parent="3263" name="ck_person_stars"> 20632 20697 <ColNames>stars_rated</ColNames> 20633 20698 <ObjectId>157230</ObjectId> … … 20635 20700 <StateNumber>138394</StateNumber> 20636 20701 </check> 20637 <column id="33 33" parent="3262" name="person_id">20702 <column id="3340" parent="3263" name="person_id"> 20638 20703 <DataType>integer|0s</DataType> 20639 20704 <NotNull>1</NotNull> … … 20642 20707 <TypeId>23</TypeId> 20643 20708 </column> 20644 <column id="33 34" parent="3262" name="user_id">20709 <column id="3341" parent="3263" name="user_id"> 20645 20710 <DataType>integer|0s</DataType> 20646 20711 <NotNull>1</NotNull> … … 20649 20714 <TypeId>23</TypeId> 20650 20715 </column> 20651 <column id="33 35" parent="3262" name="reason">20716 <column id="3342" parent="3263" name="reason"> 20652 20717 <DataType>varchar(300)|0s</DataType> 20653 20718 <NotNull>1</NotNull> … … 20656 20721 <TypeId>1043</TypeId> 20657 20722 </column> 20658 <column id="33 36" parent="3262" name="stars_rated">20723 <column id="3343" parent="3263" name="stars_rated"> 20659 20724 <DataType>integer|0s</DataType> 20660 20725 <NotNull>1</NotNull> … … 20663 20728 <TypeId>23</TypeId> 20664 20729 </column> 20665 <foreign-key id="33 37" parent="3262" name="fk_rated_person">20730 <foreign-key id="3344" parent="3263" name="fk_rated_person"> 20666 20731 <ColNames>person_id</ColNames> 20667 20732 <ObjectId>157233</ObjectId> … … 20675 20740 <RefTableName>persons</RefTableName> 20676 20741 </foreign-key> 20677 <foreign-key id="33 38" parent="3262" name="fk_user_rate_person">20742 <foreign-key id="3345" parent="3263" name="fk_user_rate_person"> 20678 20743 <ColNames>user_id</ColNames> 20679 20744 <ObjectId>157238</ObjectId> … … 20687 20752 <RefTableName>users</RefTableName> 20688 20753 </foreign-key> 20689 <index id="33 39" parent="3262" name="pk_person_rates">20754 <index id="3346" parent="3263" name="pk_person_rates"> 20690 20755 <ClassIds>1978,1978</ClassIds> 20691 20756 <ColNames>person_id … … 20698 20763 <AccessMethodId>403</AccessMethodId> 20699 20764 </index> 20700 <key id="334 0" parent="3262" name="pk_person_rates">20765 <key id="3347" parent="3263" name="pk_person_rates"> 20701 20766 <ColNames>person_id 20702 20767 user_id</ColNames> … … 20706 20771 <UnderlyingIndexId>157231</UnderlyingIndexId> 20707 20772 </key> 20708 <check id="334 1" parent="3263" name="ck_type">20773 <check id="3348" parent="3264" name="ck_type"> 20709 20774 <ColNames>type</ColNames> 20710 20775 <ObjectId>157119</ObjectId> … … 20712 20777 <StateNumber>138394</StateNumber> 20713 20778 </check> 20714 <column id="334 2" parent="3263" name="person_id">20779 <column id="3349" parent="3264" name="person_id"> 20715 20780 <DataType>integer|0s</DataType> 20716 20781 <DefaultExpression>nextval('project.persons_person_id_seq'::regclass)</DefaultExpression> … … 20720 20785 <TypeId>23</TypeId> 20721 20786 </column> 20722 <column id="33 43" parent="3263" name="name">20787 <column id="3350" parent="3264" name="name"> 20723 20788 <DataType>varchar(100)|0s</DataType> 20724 20789 <NotNull>1</NotNull> … … 20727 20792 <TypeId>1043</TypeId> 20728 20793 </column> 20729 <column id="33 44" parent="3263" name="surname">20794 <column id="3351" parent="3264" name="surname"> 20730 20795 <DataType>varchar(100)|0s</DataType> 20731 20796 <NotNull>1</NotNull> … … 20734 20799 <TypeId>1043</TypeId> 20735 20800 </column> 20736 <column id="33 45" parent="3263" name="type">20801 <column id="3352" parent="3264" name="type"> 20737 20802 <DataType>char|0s</DataType> 20738 20803 <NotNull>1</NotNull> … … 20741 20806 <TypeId>1042</TypeId> 20742 20807 </column> 20743 <column id="33 46" parent="3263" name="date_of_birth">20808 <column id="3353" parent="3264" name="date_of_birth"> 20744 20809 <DataType>date|0s</DataType> 20745 20810 <NotNull>1</NotNull> … … 20748 20813 <TypeId>1082</TypeId> 20749 20814 </column> 20750 <column id="33 47" parent="3263" name="image_url">20815 <column id="3354" parent="3264" name="image_url"> 20751 20816 <DataType>varchar(400)|0s</DataType> 20752 20817 <NotNull>1</NotNull> … … 20755 20820 <TypeId>1043</TypeId> 20756 20821 </column> 20757 <column id="33 48" parent="3263" name="description">20822 <column id="3355" parent="3264" name="description"> 20758 20823 <DataType>varchar(400)|0s</DataType> 20759 20824 <Position>7</Position> … … 20761 20826 <TypeId>1043</TypeId> 20762 20827 </column> 20763 <index id="33 49" parent="3263" name="persons_pkey">20828 <index id="3356" parent="3264" name="persons_pkey"> 20764 20829 <ClassIds>1978</ClassIds> 20765 20830 <ColNames>person_id</ColNames> … … 20772 20837 <AccessMethodId>403</AccessMethodId> 20773 20838 </index> 20774 <key id="335 0" parent="3263" name="persons_pkey">20839 <key id="3357" parent="3264" name="persons_pkey"> 20775 20840 <ColNames>person_id</ColNames> 20776 20841 <NameSurrogate>1</NameSurrogate> … … 20780 20845 <UnderlyingIndexId>157122</UnderlyingIndexId> 20781 20846 </key> 20782 <column id="335 1" parent="3264" name="discussion_id">20847 <column id="3358" parent="3265" name="discussion_id"> 20783 20848 <DataType>integer|0s</DataType> 20784 20849 <NotNull>1</NotNull> … … 20787 20852 <TypeId>23</TypeId> 20788 20853 </column> 20789 <column id="335 2" parent="3264" name="reply_id">20854 <column id="3359" parent="3265" name="reply_id"> 20790 20855 <DataType>integer|0s</DataType> 20791 20856 <DefaultExpression>nextval('project.replies_reply_id_seq'::regclass)</DefaultExpression> … … 20795 20860 <TypeId>23</TypeId> 20796 20861 </column> 20797 <column id="33 53" parent="3264" name="text">20862 <column id="3360" parent="3265" name="text"> 20798 20863 <DataType>varchar(1000)|0s</DataType> 20799 20864 <NotNull>1</NotNull> … … 20802 20867 <TypeId>1043</TypeId> 20803 20868 </column> 20804 <column id="33 54" parent="3264" name="date">20869 <column id="3361" parent="3265" name="date"> 20805 20870 <DataType>date|0s</DataType> 20806 20871 <NotNull>1</NotNull> … … 20809 20874 <TypeId>1082</TypeId> 20810 20875 </column> 20811 <column id="33 55" parent="3264" name="user_id">20876 <column id="3362" parent="3265" name="user_id"> 20812 20877 <DataType>integer|0s</DataType> 20813 20878 <NotNull>1</NotNull> … … 20816 20881 <TypeId>23</TypeId> 20817 20882 </column> 20818 <foreign-key id="33 56" parent="3264" name="fk_reply_discussion">20883 <foreign-key id="3363" parent="3265" name="fk_reply_discussion"> 20819 20884 <ColNames>discussion_id</ColNames> 20820 20885 <ObjectId>157282</ObjectId> … … 20828 20893 <RefTableName>discussions</RefTableName> 20829 20894 </foreign-key> 20830 <foreign-key id="33 57" parent="3264" name="fk_user_create_reply">20895 <foreign-key id="3364" parent="3265" name="fk_user_create_reply"> 20831 20896 <ColNames>user_id</ColNames> 20832 20897 <ObjectId>157277</ObjectId> … … 20840 20905 <RefTableName>users</RefTableName> 20841 20906 </foreign-key> 20842 <index id="33 58" parent="3264" name="pk_replies">20907 <index id="3365" parent="3265" name="pk_replies"> 20843 20908 <ClassIds>1978,1978</ClassIds> 20844 20909 <ColNames>discussion_id … … 20851 20916 <AccessMethodId>403</AccessMethodId> 20852 20917 </index> 20853 <key id="33 59" parent="3264" name="pk_replies">20918 <key id="3366" parent="3265" name="pk_replies"> 20854 20919 <ColNames>discussion_id 20855 20920 reply_id</ColNames> … … 20859 20924 <UnderlyingIndexId>157275</UnderlyingIndexId> 20860 20925 </key> 20861 <column id="336 0" parent="3265" name="user_id">20926 <column id="3367" parent="3266" name="user_id"> 20862 20927 <DataType>integer|0s</DataType> 20863 20928 <NotNull>1</NotNull> … … 20866 20931 <TypeId>23</TypeId> 20867 20932 </column> 20868 <column id="336 1" parent="3265" name="genre_id">20933 <column id="3368" parent="3266" name="genre_id"> 20869 20934 <DataType>integer|0s</DataType> 20870 20935 <NotNull>1</NotNull> … … 20873 20938 <TypeId>23</TypeId> 20874 20939 </column> 20875 <foreign-key id="336 2" parent="3265" name="fk_user_genre">20940 <foreign-key id="3369" parent="3266" name="fk_user_genre"> 20876 20941 <ColNames>user_id</ColNames> 20877 20942 <ObjectId>157201</ObjectId> … … 20885 20950 <RefTableName>users</RefTableName> 20886 20951 </foreign-key> 20887 <foreign-key id="33 63" parent="3265" name="fk_genre_like_user">20952 <foreign-key id="3370" parent="3266" name="fk_genre_like_user"> 20888 20953 <ColNames>genre_id</ColNames> 20889 20954 <ObjectId>157206</ObjectId> … … 20897 20962 <RefTableName>genres</RefTableName> 20898 20963 </foreign-key> 20899 <index id="33 64" parent="3265" name="pk_user_genres">20964 <index id="3371" parent="3266" name="pk_user_genres"> 20900 20965 <ClassIds>1978,1978</ClassIds> 20901 20966 <ColNames>user_id … … 20908 20973 <AccessMethodId>403</AccessMethodId> 20909 20974 </index> 20910 <key id="33 65" parent="3265" name="pk_user_genres">20975 <key id="3372" parent="3266" name="pk_user_genres"> 20911 20976 <ColNames>user_id 20912 20977 genre_id</ColNames> … … 20916 20981 <UnderlyingIndexId>157199</UnderlyingIndexId> 20917 20982 </key> 20918 <check id="33 66" parent="3266" name="ck_password">20983 <check id="3373" parent="3267" name="ck_password"> 20919 20984 <ColNames>password</ColNames> 20920 20985 <ObjectId>191584</ObjectId> … … 20922 20987 <StateNumber>141874</StateNumber> 20923 20988 </check> 20924 <column id="33 67" parent="3266" name="user_id">20989 <column id="3374" parent="3267" name="user_id"> 20925 20990 <DataType>integer|0s</DataType> 20926 20991 <DefaultExpression>nextval('project.users_user_id_seq'::regclass)</DefaultExpression> … … 20930 20995 <TypeId>23</TypeId> 20931 20996 </column> 20932 <column id="33 68" parent="3266" name="username">20997 <column id="3375" parent="3267" name="username"> 20933 20998 <DataType>varchar(50)|0s</DataType> 20934 20999 <NotNull>1</NotNull> … … 20937 21002 <TypeId>1043</TypeId> 20938 21003 </column> 20939 <column id="33 69" parent="3266" name="name">21004 <column id="3376" parent="3267" name="name"> 20940 21005 <DataType>varchar(50)|0s</DataType> 20941 21006 <NotNull>1</NotNull> … … 20944 21009 <TypeId>1043</TypeId> 20945 21010 </column> 20946 <column id="337 0" parent="3266" name="surname">21011 <column id="3377" parent="3267" name="surname"> 20947 21012 <DataType>varchar(50)|0s</DataType> 20948 21013 <NotNull>1</NotNull> … … 20951 21016 <TypeId>1043</TypeId> 20952 21017 </column> 20953 <column id="337 1" parent="3266" name="email">21018 <column id="3378" parent="3267" name="email"> 20954 21019 <DataType>varchar(100)|0s</DataType> 20955 21020 <NotNull>1</NotNull> … … 20958 21023 <TypeId>1043</TypeId> 20959 21024 </column> 20960 <column id="337 2" parent="3266" name="password">21025 <column id="3379" parent="3267" name="password"> 20961 21026 <DataType>varchar(128)|0s</DataType> 20962 21027 <NotNull>1</NotNull> … … 20965 21030 <TypeId>1043</TypeId> 20966 21031 </column> 20967 <index id="33 73" parent="3266" name="users_pkey">21032 <index id="3380" parent="3267" name="users_pkey"> 20968 21033 <ClassIds>1978</ClassIds> 20969 21034 <ColNames>user_id</ColNames> … … 20976 21041 <AccessMethodId>403</AccessMethodId> 20977 21042 </index> 20978 <index id="33 74" parent="3266" name="users_username_key">21043 <index id="3381" parent="3267" name="users_username_key"> 20979 21044 <ClassIds>3126</ClassIds> 20980 21045 <ColNames>username</ColNames> … … 20987 21052 <AccessMethodId>403</AccessMethodId> 20988 21053 </index> 20989 <index id="33 75" parent="3266" name="users_email_key">21054 <index id="3382" parent="3267" name="users_email_key"> 20990 21055 <ClassIds>3126</ClassIds> 20991 21056 <ColNames>email</ColNames> … … 20998 21063 <AccessMethodId>403</AccessMethodId> 20999 21064 </index> 21000 <key id="33 76" parent="3266" name="users_pkey">21065 <key id="3383" parent="3267" name="users_pkey"> 21001 21066 <ColNames>user_id</ColNames> 21002 21067 <NameSurrogate>1</NameSurrogate> … … 21006 21071 <UnderlyingIndexId>157108</UnderlyingIndexId> 21007 21072 </key> 21008 <key id="33 77" parent="3266" name="users_username_key">21073 <key id="3384" parent="3267" name="users_username_key"> 21009 21074 <ColNames>username</ColNames> 21010 21075 <NameSurrogate>1</NameSurrogate> … … 21013 21078 <UnderlyingIndexId>157110</UnderlyingIndexId> 21014 21079 </key> 21015 <key id="33 78" parent="3266" name="users_email_key">21080 <key id="3385" parent="3267" name="users_email_key"> 21016 21081 <ColNames>email</ColNames> 21017 21082 <NameSurrogate>1</NameSurrogate>
Note:
See TracChangeset
for help on using the changeset viewer.