diff --git a/.idea/dataSources/351a7e7c-c4d1-4e89-bf03-667b32764270.xml b/.idea/dataSources/351a7e7c-c4d1-4e89-bf03-667b32764270.xml index d3d97d5..30e8268 100644 --- a/.idea/dataSources/351a7e7c-c4d1-4e89-bf03-667b32764270.xml +++ b/.idea/dataSources/351a7e7c-c4d1-4e89-bf03-667b32764270.xml @@ -11,9 +11,9 @@ 14087||10|c|G 14087||10|C|G 14087||10|T|G - 676242 + 676280 14.13 - 1728898708 + 1731266265 true ACDT true ACSST false ACST @@ -797,11 +797,7 @@ false Z false Zulu - - 16384 - kiem - - + 1 11||10|C|G 11||-9223372036854775808|U|G @@ -813,15 +809,19 @@ false Zulu 13722||10|C|G 13722||-9223372036854775808|U|G 13722||10|U|G - 676242 + 676280 16457 kiem - + default administrative connection database 14088 kiem + + 16384 + kiem + 1 1 @@ -877,7 +877,7 @@ false Zulu 1 kiem - + block range index (BRIN) access method 3580 1 @@ -886,7 +886,7 @@ false Zulu brinhandler pg_catalog - + b-tree index access method 403 1 @@ -895,7 +895,7 @@ false Zulu bthandler pg_catalog - + GIN index access method 2742 1 @@ -904,7 +904,7 @@ false Zulu ginhandler pg_catalog - + GiST index access method 783 1 @@ -913,7 +913,7 @@ false Zulu gisthandler pg_catalog - + hash index access method 405 1 @@ -922,7 +922,7 @@ false Zulu hashhandler pg_catalog - + heap table access method 2 1 @@ -931,7 +931,7 @@ false Zulu heap_tableam_handler pg_catalog - + SP-GiST index access method 4000 1 @@ -940,7 +940,7 @@ false Zulu spghandler pg_catalog - + assignment function 10202 @@ -955,7 +955,7 @@ false Zulu bpchar pg_catalog - + explicit function 10035 @@ -970,7 +970,7 @@ false Zulu int4 pg_catalog - + assignment function 10197 @@ -985,7 +985,7 @@ false Zulu varchar pg_catalog - + assignment function 10192 @@ -1000,7 +1000,7 @@ false Zulu text pg_catalog - + assignment function 10133 @@ -1015,7 +1015,7 @@ false Zulu varchar pg_catalog - + explicit function 10143 @@ -1030,7 +1030,7 @@ false Zulu int4 pg_catalog - + assignment function 10132 @@ -1045,7 +1045,7 @@ false Zulu bpchar pg_catalog - + implicit function 10131 @@ -1060,7 +1060,7 @@ false Zulu text pg_catalog - + assignment function 10135 @@ -1075,7 +1075,7 @@ false Zulu bpchar pg_catalog - + assignment function 10136 @@ -1090,7 +1090,7 @@ false Zulu varchar pg_catalog - + implicit function 10134 @@ -1105,7 +1105,7 @@ false Zulu text pg_catalog - + implicit function 10097 @@ -1120,7 +1120,7 @@ false Zulu regconfig pg_catalog - + implicit function 10083 @@ -1135,7 +1135,7 @@ false Zulu regcollation pg_catalog - + implicit function 10090 @@ -1150,7 +1150,7 @@ false Zulu regtype pg_catalog - + assignment function 10033 @@ -1165,7 +1165,7 @@ false Zulu money pg_catalog - + implicit function 10002 @@ -1180,7 +1180,7 @@ false Zulu float4 pg_catalog - + implicit function 10076 @@ -1195,7 +1195,7 @@ false Zulu regclass pg_catalog - + implicit function 10113 @@ -1210,7 +1210,7 @@ false Zulu regrole pg_catalog - + implicit function 10069 @@ -1225,7 +1225,7 @@ false Zulu regoperator pg_catalog - + implicit function 10060 @@ -1240,7 +1240,7 @@ false Zulu regoper pg_catalog - + implicit function 10120 @@ -1255,7 +1255,7 @@ false Zulu regnamespace pg_catalog - + assignment function 10000 @@ -1270,7 +1270,7 @@ false Zulu int2 pg_catalog - + implicit function 10053 @@ -1285,7 +1285,7 @@ false Zulu regprocedure pg_catalog - + explicit function 10186 @@ -1300,7 +1300,7 @@ false Zulu bit pg_catalog - + implicit function 10044 @@ -1315,7 +1315,7 @@ false Zulu regproc pg_catalog - + assignment function 10001 @@ -1330,7 +1330,7 @@ false Zulu int4 pg_catalog - + implicit function 10004 @@ -1345,7 +1345,7 @@ false Zulu numeric pg_catalog - + implicit function 10104 @@ -1360,7 +1360,7 @@ false Zulu regdictionary pg_catalog - + implicit function 10037 @@ -1375,7 +1375,7 @@ false Zulu oid pg_catalog - + implicit function 10003 @@ -1390,7 +1390,7 @@ false Zulu float8 pg_catalog - + implicit function 10038 @@ -1405,7 +1405,7 @@ false Zulu oid pg_catalog - + implicit function 10114 @@ -1420,7 +1420,7 @@ false Zulu regrole pg_catalog - + implicit function 10121 @@ -1435,7 +1435,7 @@ false Zulu regnamespace pg_catalog - + implicit function 10105 @@ -1450,7 +1450,7 @@ false Zulu regdictionary pg_catalog - + implicit function 10098 @@ -1465,7 +1465,7 @@ false Zulu regconfig pg_catalog - + implicit function 10091 @@ -1480,7 +1480,7 @@ false Zulu regtype pg_catalog - + implicit function 10077 @@ -1495,7 +1495,7 @@ false Zulu regclass pg_catalog - + implicit function 10070 @@ -1510,7 +1510,7 @@ false Zulu regoperator pg_catalog - + implicit function 10005 @@ -1525,7 +1525,7 @@ false Zulu int8 pg_catalog - + implicit function 10061 @@ -1540,7 +1540,7 @@ false Zulu regoper pg_catalog - + implicit function 10054 @@ -1555,7 +1555,7 @@ false Zulu regprocedure pg_catalog - + implicit function 10006 @@ -1570,7 +1570,7 @@ false Zulu int4 pg_catalog - + implicit function 10009 @@ -1585,7 +1585,7 @@ false Zulu numeric pg_catalog - + implicit function 10084 @@ -1600,7 +1600,7 @@ false Zulu regcollation pg_catalog - + implicit function 10045 @@ -1615,7 +1615,7 @@ false Zulu regproc pg_catalog - + implicit function 10008 @@ -1630,7 +1630,7 @@ false Zulu float8 pg_catalog - + implicit function 10007 @@ -1645,7 +1645,7 @@ false Zulu float4 pg_catalog - + assignment function 10011 @@ -1660,7 +1660,7 @@ false Zulu int2 pg_catalog - + implicit binary 10062 @@ -1672,7 +1672,7 @@ false Zulu regoper pg_catalog - + implicit binary 10071 @@ -1684,7 +1684,7 @@ false Zulu regoperator pg_catalog - + implicit binary 10078 @@ -1696,7 +1696,7 @@ false Zulu regclass pg_catalog - + implicit binary 10092 @@ -1708,7 +1708,7 @@ false Zulu regtype pg_catalog - + implicit function 10010 @@ -1723,7 +1723,7 @@ false Zulu int8 pg_catalog - + explicit function 10034 @@ -1738,7 +1738,7 @@ false Zulu bool pg_catalog - + assignment function 10032 @@ -1753,7 +1753,7 @@ false Zulu money pg_catalog - + implicit binary 10099 @@ -1765,7 +1765,7 @@ false Zulu regconfig pg_catalog - + implicit binary 10106 @@ -1777,7 +1777,7 @@ false Zulu regdictionary pg_catalog - + implicit function 10013 @@ -1792,7 +1792,7 @@ false Zulu float8 pg_catalog - + implicit function 10012 @@ -1807,7 +1807,7 @@ false Zulu float4 pg_catalog - + implicit binary 10046 @@ -1819,7 +1819,7 @@ false Zulu regproc pg_catalog - + implicit binary 10085 @@ -1831,7 +1831,7 @@ false Zulu regcollation pg_catalog - + implicit binary 10122 @@ -1843,7 +1843,7 @@ false Zulu regnamespace pg_catalog - + implicit binary 10039 @@ -1855,7 +1855,7 @@ false Zulu oid pg_catalog - + implicit binary 10115 @@ -1867,7 +1867,7 @@ false Zulu regrole pg_catalog - + implicit function 10014 @@ -1882,7 +1882,7 @@ false Zulu numeric pg_catalog - + implicit binary 10055 @@ -1894,7 +1894,7 @@ false Zulu regprocedure pg_catalog - + explicit function 10144 @@ -1909,7 +1909,7 @@ false Zulu char pg_catalog - + explicit function 10187 @@ -1924,7 +1924,7 @@ false Zulu bit pg_catalog - + implicit binary 10043 @@ -1936,7 +1936,7 @@ false Zulu oid pg_catalog - + assignment function 10047 @@ -1951,7 +1951,7 @@ false Zulu int8 pg_catalog - + assignment binary 10048 @@ -1963,7 +1963,7 @@ false Zulu int4 pg_catalog - + implicit binary 10049 @@ -1975,7 +1975,7 @@ false Zulu regprocedure pg_catalog - + implicit binary 10125 @@ -1987,7 +1987,7 @@ false Zulu bpchar pg_catalog - + assignment function 10137 @@ -2002,7 +2002,7 @@ false Zulu char pg_catalog - + implicit function 10140 @@ -2017,7 +2017,7 @@ false Zulu name pg_catalog - + explicit function 10194 @@ -2032,7 +2032,7 @@ false Zulu xml pg_catalog - + implicit function 10109 @@ -2047,7 +2047,7 @@ false Zulu regclass pg_catalog - + implicit binary 10126 @@ -2059,7 +2059,7 @@ false Zulu varchar pg_catalog - + implicit binary 10095 @@ -2071,7 +2071,7 @@ false Zulu regconfig pg_catalog - + implicit binary 10088 @@ -2083,7 +2083,7 @@ false Zulu regtype pg_catalog - + implicit binary 10074 @@ -2095,7 +2095,7 @@ false Zulu regclass pg_catalog - + implicit binary 10067 @@ -2107,7 +2107,7 @@ false Zulu regoperator pg_catalog - + implicit binary 10058 @@ -2119,7 +2119,7 @@ false Zulu regoper pg_catalog - + implicit binary 10051 @@ -2131,7 +2131,7 @@ false Zulu regprocedure pg_catalog - + assignment binary 10041 @@ -2143,7 +2143,7 @@ false Zulu int4 pg_catalog - + implicit binary 10042 @@ -2155,7 +2155,7 @@ false Zulu regproc pg_catalog - + implicit binary 10081 @@ -2167,7 +2167,7 @@ false Zulu regcollation pg_catalog - + implicit binary 10111 @@ -2179,7 +2179,7 @@ false Zulu regrole pg_catalog - + implicit binary 10118 @@ -2191,7 +2191,7 @@ false Zulu regnamespace pg_catalog - + implicit binary 10102 @@ -2203,7 +2203,7 @@ false Zulu regdictionary pg_catalog - + assignment function 10040 @@ -2218,7 +2218,7 @@ false Zulu int8 pg_catalog - + assignment io 10215 @@ -2230,7 +2230,7 @@ false Zulu jsonb pg_catalog - + assignment binary 10198 @@ -2242,7 +2242,7 @@ false Zulu varchar pg_catalog - + assignment binary 10193 @@ -2254,7 +2254,7 @@ false Zulu text pg_catalog - + assignment binary 10203 @@ -2266,7 +2266,7 @@ false Zulu bpchar pg_catalog - + implicit binary 10145 @@ -2278,7 +2278,7 @@ false Zulu text pg_catalog - + assignment function 10165 @@ -2293,7 +2293,7 @@ false Zulu box pg_catalog - + explicit function 10166 @@ -2308,7 +2308,7 @@ false Zulu point pg_catalog - + assignment function 10168 @@ -2323,7 +2323,7 @@ false Zulu polygon pg_catalog - + explicit function 10167 @@ -2338,7 +2338,7 @@ false Zulu point pg_catalog - + explicit function 10170 @@ -2353,7 +2353,7 @@ false Zulu lseg pg_catalog - + explicit function 10169 @@ -2368,7 +2368,7 @@ false Zulu point pg_catalog - + explicit function 10172 @@ -2383,7 +2383,7 @@ false Zulu circle pg_catalog - + assignment function 10171 @@ -2398,7 +2398,7 @@ false Zulu polygon pg_catalog - + explicit function 10173 @@ -2413,7 +2413,7 @@ false Zulu point pg_catalog - + assignment function 10174 @@ -2428,7 +2428,7 @@ false Zulu path pg_catalog - + explicit function 10176 @@ -2443,7 +2443,7 @@ false Zulu circle pg_catalog - + explicit function 10175 @@ -2458,7 +2458,7 @@ false Zulu box pg_catalog - + implicit binary 10182 @@ -2470,7 +2470,7 @@ false Zulu inet pg_catalog - + assignment function 10190 @@ -2485,7 +2485,7 @@ false Zulu text pg_catalog - + assignment function 10195 @@ -2500,7 +2500,7 @@ false Zulu varchar pg_catalog - + assignment function 10200 @@ -2515,7 +2515,7 @@ false Zulu bpchar pg_catalog - + implicit function 10018 @@ -2530,7 +2530,7 @@ false Zulu float8 pg_catalog - + assignment function 10016 @@ -2545,7 +2545,7 @@ false Zulu int2 pg_catalog - + assignment function 10015 @@ -2560,7 +2560,7 @@ false Zulu int8 pg_catalog - + assignment function 10019 @@ -2575,7 +2575,7 @@ false Zulu numeric pg_catalog - + assignment function 10017 @@ -2590,7 +2590,7 @@ false Zulu int4 pg_catalog - + assignment function 10023 @@ -2605,7 +2605,7 @@ false Zulu float4 pg_catalog - + assignment function 10020 @@ -2620,7 +2620,7 @@ false Zulu int8 pg_catalog - + assignment function 10024 @@ -2635,7 +2635,7 @@ false Zulu numeric pg_catalog - + assignment function 10022 @@ -2650,7 +2650,7 @@ false Zulu int4 pg_catalog - + assignment function 10021 @@ -2665,7 +2665,7 @@ false Zulu int2 pg_catalog - + explicit function 10177 @@ -2680,7 +2680,7 @@ false Zulu point pg_catalog - + explicit function 10179 @@ -2695,7 +2695,7 @@ false Zulu polygon pg_catalog - + explicit function 10178 @@ -2710,7 +2710,7 @@ false Zulu box pg_catalog - + implicit function 10181 @@ -2725,7 +2725,7 @@ false Zulu macaddr pg_catalog - + assignment function 10030 @@ -2740,7 +2740,7 @@ false Zulu numeric pg_catalog - + implicit function 10180 @@ -2755,7 +2755,7 @@ false Zulu macaddr8 pg_catalog - + assignment function 10191 @@ -2770,7 +2770,7 @@ false Zulu text pg_catalog - + assignment function 10183 @@ -2785,7 +2785,7 @@ false Zulu cidr pg_catalog - + assignment function 10201 @@ -2800,7 +2800,7 @@ false Zulu bpchar pg_catalog - + assignment function 10196 @@ -2815,7 +2815,7 @@ false Zulu varchar pg_catalog - + implicit function 10205 @@ -2830,7 +2830,7 @@ false Zulu bpchar pg_catalog - + assignment function 10138 @@ -2845,7 +2845,7 @@ false Zulu char pg_catalog - + implicit function 10127 @@ -2860,7 +2860,7 @@ false Zulu text pg_catalog - + explicit function 10204 @@ -2875,7 +2875,7 @@ false Zulu xml pg_catalog - + implicit function 10141 @@ -2890,7 +2890,7 @@ false Zulu name pg_catalog - + implicit function 10128 @@ -2905,7 +2905,7 @@ false Zulu varchar pg_catalog - + implicit function 10206 @@ -2920,7 +2920,7 @@ false Zulu varchar pg_catalog - + implicit binary 10130 @@ -2932,7 +2932,7 @@ false Zulu bpchar pg_catalog - + implicit function 10110 @@ -2947,7 +2947,7 @@ false Zulu regclass pg_catalog - + implicit binary 10129 @@ -2959,7 +2959,7 @@ false Zulu text pg_catalog - + implicit function 10142 @@ -2974,7 +2974,7 @@ false Zulu name pg_catalog - + explicit function 10199 @@ -2989,7 +2989,7 @@ false Zulu xml pg_catalog - + assignment function 10139 @@ -3004,7 +3004,7 @@ false Zulu char pg_catalog - + implicit function 10152 @@ -3019,7 +3019,7 @@ false Zulu timestamp pg_catalog - + implicit function 10153 @@ -3034,7 +3034,7 @@ false Zulu timestamptz pg_catalog - + implicit function 10207 @@ -3049,7 +3049,7 @@ false Zulu time pg_catalog - + implicit function 10155 @@ -3064,7 +3064,7 @@ false Zulu timetz pg_catalog - + implicit function 10154 @@ -3079,7 +3079,7 @@ false Zulu interval pg_catalog - + implicit function 10208 @@ -3094,7 +3094,7 @@ false Zulu timestamp pg_catalog - + assignment function 10156 @@ -3109,7 +3109,7 @@ false Zulu date pg_catalog - + assignment function 10157 @@ -3124,7 +3124,7 @@ false Zulu time pg_catalog - + implicit function 10158 @@ -3139,7 +3139,7 @@ false Zulu timestamptz pg_catalog - + assignment function 10162 @@ -3154,7 +3154,7 @@ false Zulu timetz pg_catalog - + assignment function 10159 @@ -3169,7 +3169,7 @@ false Zulu date pg_catalog - + assignment function 10160 @@ -3184,7 +3184,7 @@ false Zulu time pg_catalog - + assignment function 10161 @@ -3199,7 +3199,7 @@ false Zulu timestamp pg_catalog - + implicit function 10209 @@ -3214,7 +3214,7 @@ false Zulu timestamptz pg_catalog - + implicit function 10210 @@ -3229,7 +3229,7 @@ false Zulu interval pg_catalog - + assignment function 10163 @@ -3244,7 +3244,7 @@ false Zulu time pg_catalog - + assignment function 10164 @@ -3259,7 +3259,7 @@ false Zulu time pg_catalog - + implicit function 10211 @@ -3274,7 +3274,7 @@ false Zulu timetz pg_catalog - + implicit binary 10184 @@ -3286,7 +3286,7 @@ false Zulu varbit pg_catalog - + explicit function 10188 @@ -3301,7 +3301,7 @@ false Zulu int8 pg_catalog - + explicit function 10189 @@ -3316,7 +3316,7 @@ false Zulu int4 pg_catalog - + implicit function 10212 @@ -3331,7 +3331,7 @@ false Zulu bit pg_catalog - + implicit binary 10185 @@ -3343,7 +3343,7 @@ false Zulu bit pg_catalog - + implicit function 10213 @@ -3358,7 +3358,7 @@ false Zulu varbit pg_catalog - + assignment function 10031 @@ -3373,7 +3373,7 @@ false Zulu money pg_catalog - + assignment function 10026 @@ -3388,7 +3388,7 @@ false Zulu int2 pg_catalog - + implicit function 10028 @@ -3403,7 +3403,7 @@ false Zulu float4 pg_catalog - + implicit function 10029 @@ -3418,7 +3418,7 @@ false Zulu float8 pg_catalog - + assignment function 10027 @@ -3433,7 +3433,7 @@ false Zulu int4 pg_catalog - + assignment function 10025 @@ -3448,7 +3448,7 @@ false Zulu int8 pg_catalog - + implicit function 10214 @@ -3463,7 +3463,7 @@ false Zulu numeric pg_catalog - + assignment function 10056 @@ -3478,7 +3478,7 @@ false Zulu int8 pg_catalog - + assignment binary 10057 @@ -3490,7 +3490,7 @@ false Zulu int4 pg_catalog - + implicit binary 10050 @@ -3502,7 +3502,7 @@ false Zulu regproc pg_catalog - + implicit binary 10052 @@ -3514,7 +3514,7 @@ false Zulu oid pg_catalog - + assignment function 10063 @@ -3529,7 +3529,7 @@ false Zulu int8 pg_catalog - + implicit binary 10059 @@ -3541,7 +3541,7 @@ false Zulu oid pg_catalog - + implicit binary 10065 @@ -3553,7 +3553,7 @@ false Zulu regoperator pg_catalog - + assignment binary 10064 @@ -3565,7 +3565,7 @@ false Zulu int4 pg_catalog - + implicit binary 10068 @@ -3577,7 +3577,7 @@ false Zulu oid pg_catalog - + assignment function 10072 @@ -3592,7 +3592,7 @@ false Zulu int8 pg_catalog - + assignment binary 10073 @@ -3604,7 +3604,7 @@ false Zulu int4 pg_catalog - + implicit binary 10066 @@ -3616,7 +3616,7 @@ false Zulu regoper pg_catalog - + assignment binary 10080 @@ -3628,7 +3628,7 @@ false Zulu int4 pg_catalog - + implicit binary 10075 @@ -3640,7 +3640,7 @@ false Zulu oid pg_catalog - + assignment function 10079 @@ -3655,7 +3655,7 @@ false Zulu int8 pg_catalog - + assignment function 10093 @@ -3670,7 +3670,7 @@ false Zulu int8 pg_catalog - + assignment binary 10094 @@ -3682,7 +3682,7 @@ false Zulu int4 pg_catalog - + implicit binary 10089 @@ -3694,7 +3694,7 @@ false Zulu oid pg_catalog - + implicit io 10147 @@ -3706,7 +3706,7 @@ false Zulu text pg_catalog - + implicit binary 10146 @@ -3718,7 +3718,7 @@ false Zulu bytea pg_catalog - + implicit io 10149 @@ -3730,7 +3730,7 @@ false Zulu text pg_catalog - + implicit binary 10148 @@ -3742,7 +3742,7 @@ false Zulu bytea pg_catalog - + assignment function 10100 @@ -3757,7 +3757,7 @@ false Zulu int8 pg_catalog - + assignment binary 10101 @@ -3769,7 +3769,7 @@ false Zulu int4 pg_catalog - + implicit binary 10096 @@ -3781,7 +3781,7 @@ false Zulu oid pg_catalog - + implicit binary 10103 @@ -3793,7 +3793,7 @@ false Zulu oid pg_catalog - + assignment function 10107 @@ -3808,7 +3808,7 @@ false Zulu int8 pg_catalog - + assignment binary 10108 @@ -3820,7 +3820,7 @@ false Zulu int4 pg_catalog - + explicit function 10218 @@ -3835,7 +3835,7 @@ false Zulu numeric pg_catalog - + explicit function 10223 @@ -3850,7 +3850,7 @@ false Zulu float8 pg_catalog - + explicit function 10217 @@ -3865,7 +3865,7 @@ false Zulu bool pg_catalog - + explicit function 10222 @@ -3880,7 +3880,7 @@ false Zulu float4 pg_catalog - + explicit function 10219 @@ -3895,7 +3895,7 @@ false Zulu int2 pg_catalog - + explicit function 10220 @@ -3910,7 +3910,7 @@ false Zulu int4 pg_catalog - + assignment io 10216 @@ -3922,7 +3922,7 @@ false Zulu json pg_catalog - + explicit function 10221 @@ -3937,7 +3937,7 @@ false Zulu int8 pg_catalog - + explicit function 10224 @@ -3952,7 +3952,7 @@ false Zulu int4multirange pg_catalog - + explicit function 10226 @@ -3967,7 +3967,7 @@ false Zulu nummultirange pg_catalog - + explicit function 10228 @@ -3982,7 +3982,7 @@ false Zulu tsmultirange pg_catalog - + explicit function 10229 @@ -3997,7 +3997,7 @@ false Zulu tstzmultirange pg_catalog - + explicit function 10227 @@ -4012,7 +4012,7 @@ false Zulu datemultirange pg_catalog - + explicit function 10225 @@ -4027,7 +4027,7 @@ false Zulu int8multirange pg_catalog - + assignment binary 10124 @@ -4039,7 +4039,7 @@ false Zulu int4 pg_catalog - + assignment function 10123 @@ -4054,7 +4054,7 @@ false Zulu int8 pg_catalog - + implicit binary 10119 @@ -4066,7 +4066,7 @@ false Zulu oid pg_catalog - + implicit binary 10112 @@ -4078,7 +4078,7 @@ false Zulu oid pg_catalog - + assignment function 10116 @@ -4093,7 +4093,7 @@ false Zulu int8 pg_catalog - + assignment binary 10117 @@ -4105,7 +4105,7 @@ false Zulu int4 pg_catalog - + implicit binary 10082 @@ -4117,7 +4117,7 @@ false Zulu oid pg_catalog - + assignment function 10086 @@ -4132,7 +4132,7 @@ false Zulu int8 pg_catalog - + assignment binary 10087 @@ -4144,7 +4144,7 @@ false Zulu int4 pg_catalog - + implicit binary 10150 @@ -4156,7 +4156,7 @@ false Zulu bytea pg_catalog - + implicit io 10151 @@ -4168,7 +4168,7 @@ false Zulu text pg_catalog - + explicit function 10036 @@ -4183,7 +4183,7 @@ false Zulu xid pg_catalog - + PL/pgSQL procedural language 14074 686 @@ -4195,21 +4195,21 @@ false Zulu 14077 14078 - + dynamically-loaded C functions 13 1 fmgr_c_validator pg_catalog - + built-in functions 12 1 fmgr_internal_validator pg_catalog - + PL/pgSQL procedural language plpgsql_call_handler pg_catalog @@ -4221,7 +4221,7 @@ false Zulu plpgsql_validator pg_catalog - + SQL-language functions 14 1 @@ -4229,22 +4229,22 @@ false Zulu fmgr_sql_validator pg_catalog - + 13722 532 kiem - + system catalog schema 11 525 kiem - + standard public schema 1 - 676242 - 2024-11-05.16:07:50 + 676280 + 2024-11-11.00:37:01 2200 526 kiem @@ -4335,7 +4335,7 @@ false Zulu 22849 - 676200 + 6762792kiem
@@ -4932,11 +4932,11 @@ quiz_r 1043 - date|0s + varchar(50)|0s 1 5 - 676200 - 1082 + 676279 + 1043 boolean|0s @@ -4964,7 +4964,7 @@ quiz_r 1 22855 1 - 676200 + 676279 1 403 @@ -4972,7 +4972,7 @@ quiz_r username email 22857 - 676200 + 676279 1 403 100 diff --git a/.idea/dataSources/351a7e7c-c4d1-4e89-bf03-667b32764270/storage_v2/_src_/database/dbwikifantasy.OCIa2Q/schema/public.abK9xQ.meta b/.idea/dataSources/351a7e7c-c4d1-4e89-bf03-667b32764270/storage_v2/_src_/database/dbwikifantasy.OCIa2Q/schema/public.abK9xQ.meta index 54e5111..7d069eb 100644 --- a/.idea/dataSources/351a7e7c-c4d1-4e89-bf03-667b32764270/storage_v2/_src_/database/dbwikifantasy.OCIa2Q/schema/public.abK9xQ.meta +++ b/.idea/dataSources/351a7e7c-c4d1-4e89-bf03-667b32764270/storage_v2/_src_/database/dbwikifantasy.OCIa2Q/schema/public.abK9xQ.meta @@ -1,2 +1,2 @@ #n:public -! [676242, 0, null, null, -2147483648, -2147483648] +! [676280, 0, null, null, -2147483648, -2147483648] diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d09bed4..b764555 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,21 +5,12 @@ - + + - - - - - - - - - - diff --git a/src/Controleur/VisitorControler.php b/src/Controleur/VisitorControler.php index 6411df1..1c18f50 100644 --- a/src/Controleur/VisitorControler.php +++ b/src/Controleur/VisitorControler.php @@ -71,8 +71,31 @@ Class VisitorControler { global $twig; echo $twig->render("login.html.twig"); - $pseudo = $_POST['pseudo'] ?? null; - $mdp = $_POST['mdp'] ?? null; + $this -> toLogIn(); + } + + public function toLogIn() : void + { + if ($_POST) + { + $pseudo = $_POST['pseudo'] ?? null; + $mdp = $_POST['mdp'] ?? null; + + $user = $this -> mdl -> getUsername($pseudo); + + if ($user) + { + if (password_verify($mdp, $user->getPassword())) + { + $_SESSION['pseudo'] = $pseudo; + $_SESSION['email'] = $user->getEmail(); + header("Location: /"); + } + else die(); /* Afficher Erreur Mot de passe */ + } + else die(); /* Afficher Utilisateur non trouvé */ + } + } /** @@ -86,20 +109,38 @@ Class VisitorControler { global $twig; echo $twig->render("signin.html.twig"); - $pseudo = $_POST['pseudo'] ?? null;; - $email = $_POST['email'] ?? null; - $mdp = $_POST['mdp'] ?? null; - $cmdp = $_POST['cmdp'] ?? null; + $this -> toSignIn(); + } - if ($mdp != $cmdp) { - return; - } - $option = ['cost' => 12]; - $hmdp = password_hash($mdp, PASSWORD_BCRYPT, $option); + public function toSignIn() : void + { + if ($_POST) { + $pseudo = $_POST['pseudo'] ?? null; + $email = $_POST['email'] ?? null; + $mdp = $_POST['mdp'] ?? null; + $cmdp = $_POST['cmdp'] ?? null; - $user = $this -> mdl -> getUsername($pseudo); + if ($mdp != $cmdp) { + die(); /* Afficher Erreur Mot de passe */ + } - echo $this->mdl->insertUser($pseudo, $email, $hmdp); + $option = ['cost' => 12]; + $hmdp = password_hash($mdp, PASSWORD_BCRYPT, $option); + + $isUserAlreadyUsed = $this -> mdl -> getUsername($pseudo); + $isEmailAlreadyUsed = $this -> mdl -> getEmail($email); + + if ($isUserAlreadyUsed || $isEmailAlreadyUsed) + die(); /* Afficher Message Erreur */ + else echo $this->mdl->insertUser($pseudo, $email, $hmdp); + + $_SESSION["pseudo"] = $pseudo; + $_SESSION["email"] = $email; + + header("Location: /"); + } } } + + diff --git a/src/Gateway/userGateway.php b/src/Gateway/userGateway.php index f46eb1a..236b89f 100644 --- a/src/Gateway/userGateway.php +++ b/src/Gateway/userGateway.php @@ -65,6 +65,13 @@ Class UserGateway{ $this->con->executeQuery($query, array(':username'=>array($username, PDO::PARAM_STR))); return $this->con->getResults(); } + + public function findEmail(string $email):array{ + $query = 'SELECT * FROM Users WHERE email= :email'; + $this->con->executeQuery($query, array(':username'=>array($email, PDO::PARAM_STR))); + return $this->con->getResults(); + } + // ===================== UPDATE FUNCTION ===================== public function updateUsername(int $id, string $newUsername):bool{ diff --git a/src/Model/userModel.php b/src/Model/userModel.php index 720efc8..9a20d23 100644 --- a/src/Model/userModel.php +++ b/src/Model/userModel.php @@ -1,7 +1,8 @@ gateway->getFavorite($id); // foreach ($data as $favoris) { - // $res[] = new Quote(); + // $res[0][] = new Quote(); // } // } - public function getDataUser(int $id) : ?User { + public function getDataUser(int $id) : ?UserEntity { $res = $this->gateway->findDataUser($id); if ($res) - return new User( - $res['id_user'], - $res['username'], - $res['pssword'], - $res['img'], - $res['email'] + return new UserEntity( + $res[0]['id_user'], + $res[0]['username'], + $res[0]['pssword'], + $res[0]['email'], + $res[0]['img_prfl'], + $res[0]['is_admin'], + $res[0]['creation'] ); return null; } - public function getUsername(string $username) : ?User + public function getUsername(string $username) : ?UserEntity { $res = $this->gateway->findUsername($username); if ($res) - return new User( - $res['id_user'], - $res['username'], - $res['pssword'], - $res['img'], - $res['email'] + return new UserEntity( + $res[0]['id_user'], + $res[0]['username'], + $res[0]['pssword'], + $res[0]['email'], + $res[0]['img_prfl'], + $res[0]['is_admin'], + $res[0]['creation'] + ); + return null; + } + + public function getEmail(string $email) : ?UserEntity + { + $res = $this->gateway->findUsername($email); + if ($res) + return new UserEntity( + $res[0]['id_user'], + $res[0]['username'], + $res[0]['pssword'], + $res[0]['email'], + $res[0]['imgPrfl'], + $res[0]['isAdmin'], + $res[0]['date'] ); return null; }