IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Schéma Discussion :

identifier les relation de type 1 1


Sujet :

Schéma

  1. #1
    Membre expérimenté

    Homme Profil pro
    Auditeur informatique
    Inscrit en
    Novembre 2014
    Messages
    815
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Auditeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2014
    Messages : 815
    Points : 1 350
    Points
    1 350
    Billets dans le blog
    2
    Par défaut identifier les relation de type 1 1
    Bonjour a tous ,

    j'ai ce script de création base de donné en MYSQL

    j'ai besoin de récupérer les relation de Type 1-1

    Qui peut me dire comment je peux l'identifier

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    980
    981
    982
    983
    984
    985
    986
    987
    988
    989
    990
    991
    992
    993
    994
    995
    996
    997
    998
    999
    1000
    1001
    1002
    1003
    1004
    1005
    1006
    1007
    1008
    1009
    1010
    1011
    1012
    1013
    1014
    1015
    1016
    1017
    1018
    1019
    1020
    1021
    1022
    1023
    1024
    1025
    1026
    1027
    1028
    1029
    1030
    1031
    1032
    1033
    1034
    1035
    1036
    1037
    1038
    1039
    1040
    1041
    1042
    1043
    1044
    1045
    1046
    1047
    1048
    1049
    1050
    1051
    1052
    1053
    1054
    1055
    1056
    1057
    1058
    1059
    1060
    1061
    1062
    1063
    1064
    1065
    1066
    1067
    1068
    1069
    1070
    1071
    1072
    1073
    1074
    1075
    1076
    1077
    1078
    1079
    1080
    1081
    1082
    1083
    1084
    1085
    1086
    1087
    1088
    1089
    1090
    1091
    1092
    1093
    1094
    1095
    1096
    1097
    1098
    1099
    1100
    1101
    1102
    1103
    1104
    1105
    1106
    1107
    1108
    1109
    1110
    1111
    1112
    1113
    1114
    1115
    1116
    1117
    1118
    1119
    1120
    1121
    1122
    1123
    1124
    1125
    1126
    1127
    1128
    1129
    1130
    1131
    1132
    1133
    1134
    1135
    1136
    1137
    1138
    1139
    1140
    1141
    1142
    1143
    1144
    1145
    1146
    1147
    1148
    1149
    1150
    1151
    1152
    1153
    1154
    1155
    1156
    1157
    1158
    1159
    1160
    1161
    1162
    1163
    1164
    1165
    1166
    1167
    1168
    1169
    1170
    1171
    1172
    1173
    1174
    1175
    1176
    1177
    1178
    1179
    1180
    1181
    1182
    1183
    1184
    1185
    1186
    1187
    1188
    1189
    1190
    1191
    1192
    1193
    1194
    1195
    1196
    1197
    1198
    1199
    1200
    1201
    1202
    1203
    1204
    1205
    1206
    1207
    1208
    1209
    1210
    1211
    1212
    1213
    1214
    1215
    1216
    1217
    1218
    1219
    1220
    1221
    1222
    1223
    1224
    1225
    1226
    1227
    1228
    1229
    1230
    1231
    1232
    1233
    1234
    1235
    1236
    1237
    1238
    1239
    1240
    1241
    1242
    1243
    1244
    1245
    1246
    1247
    1248
    1249
    1250
    1251
    1252
    1253
    1254
    1255
    1256
    1257
    1258
    1259
    1260
    1261
    1262
    1263
    1264
    1265
    1266
    1267
    1268
    1269
    1270
    1271
    1272
    1273
    1274
    1275
    1276
    1277
    1278
    1279
    1280
    1281
    1282
    1283
    1284
    1285
    1286
    1287
    1288
    1289
    1290
    1291
    1292
    1293
    1294
    1295
    1296
    1297
    1298
    1299
    1300
    1301
    1302
    1303
    1304
    1305
    1306
    1307
    1308
    1309
    1310
    1311
    1312
    1313
    1314
    1315
    1316
    1317
    1318
    1319
    1320
    1321
    1322
    1323
    1324
    1325
    1326
    1327
    1328
    1329
    1330
    1331
    1332
    1333
    1334
    1335
    1336
    1337
    1338
    1339
    1340
    1341
    1342
    1343
    1344
    1345
    1346
    1347
    1348
    1349
    1350
    1351
    1352
    1353
    1354
    1355
    1356
    1357
    1358
    1359
    1360
    1361
    1362
    1363
    1364
    1365
    1366
    1367
    1368
    1369
    1370
    1371
    1372
    1373
    1374
    1375
    1376
    1377
    1378
    1379
    1380
    1381
    1382
    1383
    1384
    1385
    1386
    1387
    1388
    1389
    1390
    1391
    1392
    1393
    1394
    1395
    1396
    1397
    1398
    1399
    1400
    1401
    1402
    1403
    1404
    1405
    1406
    1407
    1408
    1409
    1410
    1411
    1412
    1413
    1414
    1415
    1416
    1417
    1418
    1419
    1420
    1421
    1422
    1423
    1424
    1425
    1426
    1427
    1428
    1429
    1430
    1431
    1432
    1433
    1434
    1435
    1436
    1437
    1438
    1439
    1440
    1441
    1442
    1443
    1444
    1445
    1446
    1447
    1448
    1449
    1450
    1451
    1452
    1453
    1454
    1455
    1456
    1457
    1458
    1459
    1460
    1461
    1462
    1463
    1464
    1465
    1466
    1467
    1468
    1469
    1470
    1471
    1472
    1473
    1474
    1475
    1476
    1477
    1478
    1479
    1480
    1481
    1482
    1483
    1484
    1485
    1486
    1487
    1488
    1489
    1490
    1491
    1492
    1493
    1494
    1495
    1496
    1497
    1498
    1499
    1500
    1501
    1502
    1503
    1504
    1505
    1506
    1507
    1508
    1509
    1510
    1511
    1512
    1513
    1514
    1515
    1516
    1517
    1518
    1519
    1520
    1521
    1522
    1523
    1524
    1525
    1526
    1527
    1528
    1529
    1530
    1531
    1532
    1533
    1534
    1535
    1536
    1537
    1538
    1539
    1540
    1541
    1542
    1543
    1544
    1545
    1546
    1547
    1548
    1549
    1550
    1551
    1552
    1553
    1554
    1555
    1556
    1557
    1558
    1559
    1560
    1561
    1562
    1563
    1564
    1565
    1566
    1567
    1568
    1569
    1570
    1571
    1572
    1573
    1574
    1575
    1576
    1577
    1578
    1579
    1580
    1581
    1582
    1583
    1584
    1585
    1586
    1587
    1588
    1589
    1590
    1591
    1592
    1593
    1594
    1595
    1596
    1597
    1598
    1599
    1600
    1601
    1602
    1603
    1604
    1605
    1606
    1607
    1608
    1609
    1610
    1611
    1612
    1613
    1614
    1615
    1616
    1617
    1618
    1619
    1620
    1621
    1622
    1623
    1624
    1625
    1626
    1627
    1628
    1629
    1630
    1631
    1632
    1633
    1634
    1635
    1636
    1637
    1638
    1639
    1640
    1641
    1642
    1643
    1644
    1645
    1646
    1647
    1648
    1649
    1650
    1651
    1652
    1653
    1654
    1655
    1656
    1657
    1658
    1659
    1660
    1661
    1662
    1663
    1664
    1665
    1666
    1667
    1668
    1669
    1670
    1671
    1672
    1673
    1674
    1675
    1676
    1677
    1678
    1679
    1680
    1681
    1682
    1683
    1684
    1685
    1686
    1687
    1688
    1689
    1690
    1691
    1692
    1693
    1694
    1695
    1696
    1697
    1698
    1699
    1700
    1701
    1702
    1703
    1704
    1705
    1706
    1707
    1708
    1709
    1710
    1711
    1712
    1713
    1714
    1715
    1716
    1717
    1718
    1719
    1720
    1721
    1722
    1723
    1724
    1725
    1726
    1727
    1728
    1729
    1730
    1731
    1732
    1733
    1734
    1735
    1736
    1737
    1738
    1739
    1740
    1741
    1742
    1743
    1744
    1745
    1746
    1747
    1748
    1749
    1750
    1751
    1752
    1753
    1754
    1755
    1756
    1757
    1758
    1759
    1760
    1761
    1762
    1763
    1764
    1765
    1766
    1767
    1768
    1769
    1770
    1771
    1772
    1773
    1774
    1775
    1776
    1777
    1778
    1779
    1780
    1781
    1782
    1783
    1784
    1785
    1786
    1787
    1788
    1789
    1790
    1791
    1792
    1793
    1794
    1795
    1796
    1797
    1798
    1799
    1800
    1801
    1802
    1803
    1804
    1805
    1806
    1807
    1808
    1809
    1810
    1811
    1812
    1813
    1814
    1815
    1816
    1817
    1818
    1819
    1820
    1821
    1822
    1823
    1824
    1825
    1826
    1827
    1828
    1829
    1830
    1831
    1832
    1833
    1834
    1835
    1836
    1837
    1838
    1839
    1840
    1841
    1842
    1843
    1844
    1845
    1846
    1847
    1848
    1849
    1850
    1851
    1852
    1853
    1854
    1855
    1856
    1857
    1858
    1859
    1860
    1861
    1862
    1863
    1864
    1865
    1866
    1867
    1868
    1869
    1870
    1871
    1872
    1873
    1874
    1875
    1876
    1877
    1878
    1879
    1880
    1881
    1882
    1883
    1884
    1885
    1886
    1887
    1888
    1889
    1890
    1891
    1892
    1893
    1894
    1895
    1896
    1897
    1898
    1899
    1900
    1901
    1902
    1903
    1904
    1905
    1906
    1907
    1908
    1909
    1910
    1911
    1912
    1913
    1914
    1915
    1916
    1917
    1918
    1919
    1920
    1921
    1922
    1923
    1924
    1925
    1926
    1927
    1928
    1929
    1930
    1931
    1932
    1933
    1934
    1935
    1936
    1937
    1938
    1939
    1940
    1941
    1942
    1943
    1944
    1945
    1946
    1947
    1948
    1949
    1950
    1951
    1952
    1953
    1954
    1955
    1956
    1957
    1958
    1959
    1960
    1961
    1962
    1963
    1964
    1965
    1966
    1967
    1968
    1969
    1970
    1971
    1972
    1973
    1974
    1975
    1976
    1977
    1978
    1979
    1980
    1981
    1982
    1983
    1984
    1985
    1986
    1987
    1988
    1989
    1990
    1991
    1992
    1993
    1994
    1995
    1996
    1997
    1998
    1999
    2000
    2001
    2002
    2003
    2004
    2005
    2006
    2007
    2008
    2009
    2010
    2011
    2012
    2013
    2014
    2015
    2016
    2017
    2018
    2019
    2020
    2021
    2022
    2023
    2024
    2025
    2026
    2027
    2028
    2029
    2030
    2031
    2032
    2033
    2034
    2035
    2036
    2037
    2038
    2039
    2040
    2041
    2042
    2043
    2044
    2045
    2046
    2047
    2048
    2049
    2050
    2051
    2052
    2053
    2054
    2055
    2056
    2057
    2058
    2059
    2060
    2061
    2062
    2063
    2064
    2065
    2066
    2067
    2068
    2069
    2070
    2071
    2072
    2073
    2074
    2075
    2076
    2077
    2078
    2079
    2080
    2081
    2082
    2083
    2084
    2085
    2086
    2087
    2088
    2089
    2090
    2091
    2092
    2093
    2094
    2095
    2096
    2097
    2098
    2099
    2100
    2101
    2102
    2103
    2104
    2105
    2106
    2107
    2108
    2109
    2110
    2111
    2112
    2113
    2114
    2115
    2116
    2117
    2118
    2119
    2120
    2121
    2122
    2123
    2124
    2125
    2126
    2127
    2128
    2129
    2130
    2131
    2132
    2133
    2134
    2135
    2136
    2137
    2138
    2139
    2140
    2141
    2142
    2143
    2144
    2145
    2146
    2147
    2148
    2149
    2150
    2151
    2152
    2153
    2154
    2155
    2156
    2157
    2158
    2159
    2160
    2161
    2162
    2163
    2164
    2165
    2166
    2167
    2168
    2169
    2170
    2171
    2172
    2173
    2174
    2175
    2176
    2177
    2178
    2179
    2180
    2181
    2182
    2183
    2184
    2185
    2186
    2187
    2188
    2189
    2190
    2191
    2192
    2193
    2194
    2195
    2196
    2197
    2198
    2199
    2200
    2201
    2202
    2203
    2204
    2205
    2206
    2207
    2208
    2209
    2210
    2211
    2212
    2213
    2214
    2215
    2216
    2217
    2218
    2219
    2220
    2221
    2222
    2223
    2224
    2225
    2226
    2227
    2228
    2229
    2230
    2231
    2232
    2233
    2234
    2235
    2236
    2237
    2238
    2239
    2240
    2241
    2242
    2243
    2244
    2245
    2246
    2247
    2248
    2249
    2250
    2251
    2252
    2253
    2254
    2255
    2256
    2257
    2258
    2259
    2260
    2261
    2262
    2263
    2264
    2265
    2266
    2267
    2268
    2269
    2270
    2271
    2272
    2273
    2274
    2275
    2276
    2277
    2278
    2279
    2280
    2281
    2282
    2283
    2284
    2285
    2286
    2287
    2288
    2289
    2290
    2291
    2292
    2293
    2294
    2295
    2296
    2297
    2298
    2299
    2300
    2301
    2302
    2303
    2304
    2305
    2306
    2307
    2308
    2309
    2310
    2311
    2312
    2313
    2314
    2315
    2316
    2317
    2318
    2319
    2320
    2321
    2322
    2323
    2324
    2325
    2326
    2327
    2328
    2329
    2330
    2331
    2332
    2333
    2334
    2335
    2336
    2337
    2338
    2339
    2340
    2341
    2342
    2343
    2344
    2345
    2346
    2347
    2348
    2349
    2350
    2351
    2352
    2353
    2354
    2355
    2356
    2357
    2358
    2359
    2360
    2361
    2362
    2363
    2364
    2365
    2366
    2367
    2368
    2369
    2370
    2371
    2372
    2373
    2374
    2375
    2376
    2377
    2378
    2379
    2380
    2381
    2382
    2383
    2384
    2385
    2386
    2387
    2388
    2389
    2390
    2391
    2392
    2393
    2394
    2395
    2396
    2397
    2398
    2399
    2400
    2401
    2402
    2403
    2404
    2405
    2406
    2407
    2408
    2409
    2410
    2411
    2412
    2413
    2414
    2415
    2416
    2417
    2418
    2419
    2420
    2421
    2422
    2423
    2424
    2425
    2426
    2427
    2428
    2429
    2430
    2431
    2432
    2433
    2434
    2435
    2436
    2437
    2438
    2439
    2440
    2441
    2442
    2443
    2444
    2445
    2446
    2447
    2448
    2449
    2450
    2451
    2452
    2453
    2454
    2455
    2456
    2457
    2458
    2459
    2460
    2461
    2462
    2463
    2464
    2465
    2466
    2467
    2468
    2469
    2470
    2471
    2472
    2473
    2474
    2475
    2476
    2477
    2478
    2479
    2480
    2481
    2482
    2483
    2484
    2485
    2486
    2487
    2488
    2489
    2490
    2491
    2492
    2493
    2494
    2495
    2496
    2497
    2498
    2499
    2500
    2501
    2502
    2503
    2504
    2505
    2506
    2507
    2508
    2509
    2510
    2511
    2512
    2513
    2514
    2515
    2516
    2517
    2518
    2519
    2520
    2521
    2522
    2523
    2524
    2525
    2526
    2527
    2528
    2529
    2530
    2531
    2532
    2533
    2534
    2535
    2536
    2537
    2538
    2539
    2540
    2541
    2542
    2543
    2544
    2545
    2546
    2547
    2548
    2549
    2550
    2551
    2552
    2553
    2554
    2555
    2556
    2557
    2558
    2559
    2560
    2561
    2562
    2563
    2564
    2565
    2566
    2567
    2568
    2569
    2570
    2571
    2572
    2573
    2574
    2575
    2576
    2577
    2578
    2579
    2580
    2581
    2582
    2583
    2584
    2585
    2586
    2587
    2588
    2589
    2590
    2591
    2592
    2593
    2594
    2595
    2596
    2597
    2598
    2599
    2600
    2601
    2602
    2603
    2604
    2605
    2606
    2607
    2608
    2609
    2610
    2611
    2612
    2613
    2614
    2615
    2616
    2617
    2618
    2619
    2620
    2621
    2622
    2623
    2624
    2625
    2626
    2627
    2628
    2629
    2630
    2631
    2632
    2633
    2634
    2635
    2636
    2637
    2638
    2639
    2640
    2641
    2642
    2643
    2644
    2645
    2646
    2647
    2648
    2649
    2650
    2651
    2652
    2653
    2654
    2655
    2656
    2657
    2658
    2659
    2660
    2661
    2662
    2663
    2664
    2665
    2666
    2667
    2668
    2669
    2670
    2671
    2672
    2673
    2674
    2675
    2676
    2677
    2678
    2679
    2680
    2681
    2682
    2683
    2684
    2685
    2686
    2687
    2688
    2689
    2690
    2691
    2692
    2693
    2694
    2695
    2696
    2697
    2698
    2699
    2700
    2701
    2702
    2703
    2704
    2705
    2706
    2707
    2708
    2709
    2710
    2711
    2712
    2713
    2714
    2715
    2716
    2717
    2718
    2719
    2720
    2721
    2722
    2723
    2724
    2725
    2726
    2727
    2728
    2729
    2730
    2731
    2732
    2733
    2734
    2735
    2736
    2737
    2738
    2739
    2740
    2741
    2742
    2743
    2744
    2745
    2746
    2747
    2748
    2749
    2750
    2751
    2752
    2753
    2754
    2755
    2756
    2757
    2758
    2759
    2760
    2761
    2762
    2763
    2764
    2765
    2766
    2767
    2768
    2769
    -- phpMyAdmin SQL Dump
    -- version 5.0.2
    -- https://www.phpmyadmin.net/
    --
    -- Hôte : localhost:3306
    -- Généré le : jeu. 22 oct. 2020 à 20:01
    -- Version du serveur :  5.5.65-MariaDB
    -- Version de PHP : 7.3.22
    
    SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
    START TRANSACTION;
    SET time_zone = "+00:00";
    
    
    /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
    /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
    /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
    /*!40101 SET NAMES utf8mb4 */;
    
    --
    -- Base de données : `farkes_db_new`
    --
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_accounts`
    --
    
    CREATE TABLE `PAG_accounts` (
      `id_acc` int(11) UNSIGNED NOT NULL,
      `id_reg` int(10) UNSIGNED NOT NULL,
      `id_county` int(10) UNSIGNED NOT NULL,
      `id_cat` int(10) UNSIGNED NOT NULL,
      `comp_name` varchar(255) NOT NULL,
      `comp_num` varchar(255) NOT NULL,
      `civility` varchar(30) NOT NULL,
      `name` varchar(150) NOT NULL,
      `first_name` varchar(150) NOT NULL,
      `address` varchar(255) NOT NULL,
      `postcode` varchar(50) NOT NULL,
      `city` varchar(100) NOT NULL,
      `phone` varchar(100) NOT NULL,
      `email` varchar(100) NOT NULL,
      `password` varchar(255) NOT NULL,
      `rss` varchar(255) NOT NULL,
      `ip` varchar(150) NOT NULL,
      `date_crea` date NOT NULL,
      `type` tinyint(1) UNSIGNED NOT NULL,
      `state` tinyint(1) UNSIGNED NOT NULL,
      `lang` varchar(30) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_accounts`
    --
    
    INSERT INTO `PAG_accounts` (`id_acc`, `id_reg`, `id_county`, `id_cat`, `comp_name`, `comp_num`, `civility`, `name`, `first_name`, `address`, `postcode`, `city`, `phone`, `email`, `password`, `rss`, `ip`, `date_crea`, `type`, `state`, `lang`) VALUES
    (1, 6, 0, 0, '', '', 'M', 'HACHEM', 'Hachem', 'Rue xxx', '2111', 'CLICHY', '0768860975', 'HACHEMFST@GMAIL.COM', '$2y$08$Ls9O64a7Asve/wjBm1oEKOlMeizl/EFlrrR8Vl8HkGbjf1rO2n2vO', '', '37.171.59.54', '2020-10-10', 1, 2, 'fr'),
    (2, 5, 0, 0, '', '', 'M', 'Fallah', 'Bilel', '13 rue blablablz', '6073', 'Gabes', '22345675', 'Falleh.bilel@gmail.com', '$2y$08$GdH8hzI49n6jVnyR7GDo7ubYS5IZW0c8kjnsgOyEEhJTjRF8yojJa', '', '197.238.187.198', '2020-10-10', 1, 2, 'fr'),
    (3, 23, 0, 0, '', '', 'M', 'BEN MOHAMED SALAH', 'HICHEM', '20 RUE 11082 AVICENNE', '2066', 'TUNIS', '+21650543901', 'hichem.benmohamedsalah@gmail.com', '$2y$08$W4pdU5OwC1ChVGBIUSF0nem3PTNG8.INcyL9LVRoe.8axHyhKErj6', '', '160.157.14.159', '2020-10-12', 1, 2, 'fr'),
    (4, 21, 0, 0, '', '', 'M', 'Mohamed', 'Abdeljalil', 'Tataouine', '3200', 'Tataouine', '55256020', 'med.abdeljalil@gmail.com', '$2y$08$420rmX/iIOQfcq9/HI9TtO3vdbZGD5XZquB0mIdWxbQbooLw9t8My', '', '51.91.31.157', '2020-10-13', 1, 2, 'fr');
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_accounts_credit`
    --
    
    CREATE TABLE `PAG_accounts_credit` (
      `id_credit` int(11) NOT NULL,
      `id_acc` int(11) UNSIGNED NOT NULL,
      `credits` float NOT NULL,
      `time` int(10) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_accounts_credit`
    --
    
    INSERT INTO `PAG_accounts_credit` (`id_credit`, `id_acc`, `credits`, `time`) VALUES
    (1, 4, 15, 1602622630);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_accounts_packs`
    --
    
    CREATE TABLE `PAG_accounts_packs` (
      `id_acc` int(11) UNSIGNED NOT NULL,
      `days` mediumint(9) UNSIGNED NOT NULL,
      `ads` mediumint(9) UNSIGNED NOT NULL,
      `limit_1` mediumint(9) UNSIGNED NOT NULL,
      `limit_2` mediumint(9) UNSIGNED NOT NULL,
      `time` bigint(12) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_accounts_search`
    --
    
    CREATE TABLE `PAG_accounts_search` (
      `id_account_search` int(10) UNSIGNED NOT NULL,
      `id_acc` int(11) UNSIGNED NOT NULL,
      `search` text NOT NULL,
      `visit_latitude` double NOT NULL,
      `visit_longitude` double NOT NULL,
      `send_mail` tinyint(1) NOT NULL DEFAULT '0'
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_accounts_search`
    --
    
    INSERT INTO `PAG_accounts_search` (`id_account_search`, `id_acc`, `search`, `visit_latitude`, `visit_longitude`, `send_mail`) VALUES
    (1, 4, 'type=1&cat=33', 0, 0, 0);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_admin`
    --
    
    CREATE TABLE `PAG_admin` (
      `id_adm` int(10) UNSIGNED NOT NULL,
      `login` varchar(150) NOT NULL,
      `email` varchar(150) NOT NULL,
      `password` varchar(255) NOT NULL,
      `level` tinyint(1) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_admin`
    --
    
    INSERT INTO `PAG_admin` (`id_adm`, `login`, `email`, `password`, `level`) VALUES
    (1, 'admin', 'farkes2020@gmail.com', '$2y$08$gWM3xQXS8ld39hnM9YTcC./BLuPBG4rGG74ORdct8JgQWKNQOLmWS', 1);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_ads`
    --
    
    CREATE TABLE `PAG_ads` (
      `id_ad` int(10) UNSIGNED NOT NULL,
      `email` varchar(150) NOT NULL,
      `password` varchar(255) NOT NULL,
      `city` varchar(150) NOT NULL,
      `name` varchar(150) NOT NULL,
      `phone` varchar(100) DEFAULT NULL,
      `phone_hidden` tinyint(1) UNSIGNED NOT NULL,
      `ip` varchar(150) NOT NULL,
      `pictures_num` tinyint(2) UNSIGNED NOT NULL,
      `pictures_pack` tinyint(1) UNSIGNED NOT NULL,
      `visit_num` int(10) UNSIGNED NOT NULL,
      `last_visit` datetime NOT NULL,
      `xml_key` varchar(150) NOT NULL,
      `lang` varchar(30) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_ads`
    --
    
    INSERT INTO `PAG_ads` (`id_ad`, `email`, `password`, `city`, `name`, `phone`, `phone_hidden`, `ip`, `pictures_num`, `pictures_pack`, `visit_num`, `last_visit`, `xml_key`, `lang`) VALUES
    (1, 'med.abdeljalil@gmail.com', '$2y$08$rOo69Ur.89cwoqwS.uYj9Oayxsf9xqfPU1zp9OKmPiJBe5fbFAfhe', '', 'Mohamed', '55256020', 0, '41', 1, 0, 9, '2020-10-13 23:09:23', '1c70d327967194e2f358ddede1b702f9', 'fr'),
    (2, 'hichem.benmohamedsalah@gmail.com', '$2y$08$E6vmwAt/DNRcsqlW.P.SGeRHyenNEKOt0fSE1G08MAlBNJLdpoqGu', '', 'BEN MOHAMED SALAH', '+21650543901', 0, '196', 0, 0, 1, '2020-10-13 16:03:40', '72dd7e4e1d03411547cb8361de84122b', 'fr'),
    (3, 'hichem.benmohamedsalah@gmail.com', '$2y$08$AfHZS9B2XZSFCW0pOvSv8OCP5tOT92JL.wCijzgGfpC9niKMdAGQO', '', 'BEN MOHAMED SALAH', '+21650543901', 1, '196', 0, 0, 0, '2020-10-13 13:47:20', '55af55f2c370b467575adb4fbc06242b', 'fr'),
    (4, 'med.abdeljalil@gmail.com', '$2y$08$hF1ba1u.0g7pS0ZVhhtdOO23yDpJ8dA1e.3PgitXiMkRGuo5T7QsO', '', 'Mohamed', '55256020', 0, '197', 1, 0, 4, '2020-10-16 16:25:45', 'acb6cd9151c84e8a7c307d71e4be9733', 'fr'),
    (5, 'hichem.benmohamedsalah@gmail.com', '$2y$08$CgcxDq7vFpQGLy/V8da1wefmsJlD3p2IJrOdOyLD7eMKql24xkTii', '', 'BEN MOHAMED SALAH', '+21650543901', 0, '196', 0, 0, 1, '2020-10-15 16:36:34', 'aafe1193460247ffa80f63402562eba8', 'fr');
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_ads_calendar`
    --
    
    CREATE TABLE `PAG_ads_calendar` (
      `id_cal` int(10) UNSIGNED NOT NULL,
      `id_ad` int(10) UNSIGNED NOT NULL,
      `start_date` bigint(12) UNSIGNED NOT NULL,
      `end_date` bigint(12) UNSIGNED NOT NULL,
      `price` float UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_ads_check`
    --
    
    CREATE TABLE `PAG_ads_check` (
      `id_ad_check` int(10) UNSIGNED NOT NULL,
      `id_ad` int(10) UNSIGNED NOT NULL,
      `id_cat_opt` int(10) UNSIGNED NOT NULL,
      `id_val_check` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_ads_comments`
    --
    
    CREATE TABLE `PAG_ads_comments` (
      `id_com` int(10) UNSIGNED NOT NULL,
      `id_ad` int(10) UNSIGNED NOT NULL,
      `pseudo` varchar(150) NOT NULL,
      `title` varchar(150) NOT NULL,
      `text` mediumtext NOT NULL,
      `email` varchar(150) NOT NULL,
      `rating` tinyint(1) UNSIGNED NOT NULL,
      `date` bigint(20) UNSIGNED NOT NULL,
      `ip` varchar(150) NOT NULL,
      `state` tinyint(1) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_ads_compagny`
    --
    
    CREATE TABLE `PAG_ads_compagny` (
      `id_ad` int(10) UNSIGNED NOT NULL,
      `comp_name` varchar(150) NOT NULL,
      `comp_num` varchar(150) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_ads_data`
    --
    
    CREATE TABLE `PAG_ads_data` (
      `id_ad_data` int(10) UNSIGNED NOT NULL,
      `id_ad` int(10) UNSIGNED NOT NULL,
      `id_cat_opt` int(10) UNSIGNED NOT NULL,
      `id_val_data` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_ads_data`
    --
    
    INSERT INTO `PAG_ads_data` (`id_ad_data`, `id_ad`, `id_cat_opt`, `id_val_data`) VALUES
    (3, 2, 8, 1),
    (4, 2, 9, 6),
    (5, 1, 11, 8),
    (7, 4, 11, 8);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_ads_digital`
    --
    
    CREATE TABLE `PAG_ads_digital` (
      `id_ad_digital` int(10) UNSIGNED NOT NULL,
      `id_ad` int(10) UNSIGNED NOT NULL,
      `id_cat_opt` int(10) UNSIGNED NOT NULL,
      `val_digital` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_ads_fields`
    --
    
    CREATE TABLE `PAG_ads_fields` (
      `id_ad_field` int(10) UNSIGNED NOT NULL,
      `id_ad` int(10) UNSIGNED NOT NULL,
      `id_field` int(10) UNSIGNED NOT NULL,
      `value` varchar(150) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_ads_files`
    --
    
    CREATE TABLE `PAG_ads_files` (
      `id_file` int(10) UNSIGNED NOT NULL,
      `id_ad` int(10) UNSIGNED NOT NULL,
      `name` varchar(255) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_ads_images`
    --
    
    CREATE TABLE `PAG_ads_images` (
      `id_ima` int(10) UNSIGNED NOT NULL,
      `id_ad` int(10) UNSIGNED NOT NULL,
      `name` varchar(255) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_ads_images`
    --
    
    INSERT INTO `PAG_ads_images` (`id_ima`, `id_ad`, `name`) VALUES
    (4, 1, '2020/10/13/12/52/2952q3i31v.jpg'),
    (5, 4, '2020/10/13/21/02/ase2rfmqs9.jpg');
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_ads_options`
    --
    
    CREATE TABLE `PAG_ads_options` (
      `id_ad` int(10) UNSIGNED NOT NULL DEFAULT '0',
      `top` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
      `top_days` smallint(6) UNSIGNED NOT NULL DEFAULT '0',
      `top_time` bigint(12) UNSIGNED NOT NULL DEFAULT '0',
      `urgent` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
      `urgent_days` smallint(6) UNSIGNED NOT NULL DEFAULT '0',
      `urgent_time` bigint(12) UNSIGNED NOT NULL DEFAULT '0',
      `framed` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
      `framed_days` smallint(6) UNSIGNED NOT NULL DEFAULT '0',
      `framed_time` bigint(12) UNSIGNED NOT NULL DEFAULT '0',
      `premium` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
      `premium_days` smallint(6) UNSIGNED NOT NULL DEFAULT '0',
      `premium_time` bigint(12) UNSIGNED NOT NULL DEFAULT '0'
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_ads_search`
    --
    
    CREATE TABLE `PAG_ads_search` (
      `id_ad` int(10) UNSIGNED NOT NULL,
      `id_reg` int(10) UNSIGNED NOT NULL,
      `id_county` int(10) UNSIGNED NOT NULL,
      `id_cat` int(10) UNSIGNED NOT NULL,
      `postcode` varchar(50) NOT NULL,
      `status` tinyint(1) UNSIGNED NOT NULL,
      `type` tinyint(1) UNSIGNED NOT NULL,
      `title` varchar(255) NOT NULL,
      `text` mediumtext NOT NULL,
      `price` float UNSIGNED DEFAULT NULL,
      `state` tinyint(1) NOT NULL,
      `date` bigint(12) NOT NULL,
      `id_acc` int(10) UNSIGNED NOT NULL,
      `picture_num` tinyint(1) UNSIGNED NOT NULL,
      `video_num` tinyint(1) UNSIGNED NOT NULL,
      `urgent` tinyint(1) UNSIGNED NOT NULL,
      `premium` tinyint(1) UNSIGNED NOT NULL,
      `lat` double NOT NULL,
      `lng` double NOT NULL,
      `comment_total` int(10) UNSIGNED NOT NULL,
      `comment_average` double NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_ads_search`
    --
    
    INSERT INTO `PAG_ads_search` (`id_ad`, `id_reg`, `id_county`, `id_cat`, `postcode`, `status`, `type`, `title`, `text`, `price`, `state`, `date`, `id_acc`, `picture_num`, `video_num`, `urgent`, `premium`, `lat`, `lng`, `comment_total`, `comment_average`) VALUES
    (1, 21, 1, 2, '', 1, 1, 'Peugeot 404 pick-up', 'La Peugeot 404 Pick-up est un véhicule utilitaire du constructeur automobile français Peugeot, produit à partir du début d\'année 1967. Il est directement dérivé de la berline 404 et vient remplacer le Pick-up 403 né en octobre 1956. Peugeot a commercialisé deux variantes de cet utilitaire : le 404 pick-up bâché et le 404 châssis nu à faire carrosser.', 40000, 6, 1602593577, 4, 1, 0, 0, 0, 0, 0, 0, 0),
    (4, 21, 1, 2, '', 1, 1, 'test', 'Dans cette catégorie, l\'annonce pour les professionnels est GRATUITE', 100, 6, 1602622946, 4, 1, 0, 0, 0, 0, 0, 0, 0);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_ads_video`
    --
    
    CREATE TABLE `PAG_ads_video` (
      `id_ad` int(10) UNSIGNED NOT NULL,
      `video` varchar(255) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_advertisement`
    --
    
    CREATE TABLE `PAG_advertisement` (
      `id_adv` int(10) UNSIGNED NOT NULL,
      `pos_adv` int(10) UNSIGNED NOT NULL,
      `id_cat` int(10) UNSIGNED DEFAULT NULL,
      `id_reg` int(10) UNSIGNED DEFAULT NULL,
      `id_county` int(10) UNSIGNED DEFAULT NULL,
      `code_lang` varchar(30) NOT NULL,
      `name` varchar(150) DEFAULT NULL,
      `picture` varchar(150) DEFAULT NULL,
      `url` varchar(255) DEFAULT NULL,
      `text` text,
      `script` text NOT NULL,
      `adv` tinyint(1) UNSIGNED NOT NULL,
      `type` tinyint(1) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_blacklist`
    --
    
    CREATE TABLE `PAG_blacklist` (
      `email` varchar(150) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_cat`
    --
    
    CREATE TABLE `PAG_cat` (
      `id_cat` int(10) UNSIGNED NOT NULL,
      `par_cat` int(10) UNSIGNED DEFAULT NULL,
      `pos_cat` smallint(4) UNSIGNED NOT NULL,
      `disc` tinyint(1) UNSIGNED NOT NULL,
      `price_par` float UNSIGNED NOT NULL,
      `price_pro` float UNSIGNED NOT NULL,
      `price_par_mod` float UNSIGNED NOT NULL,
      `price_pro_mod` float UNSIGNED NOT NULL,
      `price_par_ren` float UNSIGNED NOT NULL,
      `price_pro_ren` float UNSIGNED NOT NULL,
      `calendar` tinyint(1) UNSIGNED NOT NULL,
      `upload_doc` tinyint(1) UNSIGNED NOT NULL,
      `comments` tinyint(1) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_cat`
    --
    
    INSERT INTO `PAG_cat` (`id_cat`, `par_cat`, `pos_cat`, `disc`, `price_par`, `price_pro`, `price_par_mod`, `price_pro_mod`, `price_par_ren`, `price_pro_ren`, `calendar`, `upload_doc`, `comments`) VALUES
    (1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (3, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (4, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (5, 1, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (6, 1, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (7, 1, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (8, 1, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (9, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (10, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (11, 10, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (12, 10, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (13, 10, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (14, 10, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (15, 10, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (16, 10, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (17, 10, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (18, 10, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (19, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (20, 19, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (21, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (22, 19, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (23, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (24, 23, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (25, 23, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (26, 23, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (27, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (28, 27, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (29, 27, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (30, 27, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (31, 27, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (32, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (33, 32, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (34, 32, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (35, 32, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (36, 32, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (37, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (38, 37, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (39, 37, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (40, 37, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (41, 37, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (42, 37, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (43, 37, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (44, 37, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (45, 37, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (46, 1, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (47, 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
    (48, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_cat_lang`
    --
    
    CREATE TABLE `PAG_cat_lang` (
      `id_cat_lang` int(10) UNSIGNED NOT NULL,
      `id_cat` int(10) UNSIGNED NOT NULL,
      `par_cat` int(10) UNSIGNED NOT NULL,
      `code_lang` varchar(30) NOT NULL,
      `name_cat_lang` varchar(150) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_cat_lang`
    --
    
    INSERT INTO `PAG_cat_lang` (`id_cat_lang`, `id_cat`, `par_cat`, `code_lang`, `name_cat_lang`) VALUES
    (1, 1, 0, 'fr', 'Véhicules'),
    (2, 1, 0, 'en', 'Motors'),
    (3, 1, 0, 'es', 'Vehículo'),
    (4, 1, 0, 'it', 'Veicolo'),
    (5, 2, 1, 'fr', 'Voitures'),
    (6, 2, 1, 'en', 'Cars'),
    (7, 2, 1, 'es', 'Coches'),
    (8, 2, 1, 'it', 'Automobili'),
    (9, 3, 1, 'fr', 'Motos'),
    (10, 3, 1, 'en', 'Motorcycles/scooters'),
    (11, 3, 1, 'es', 'Motos/Scooters'),
    (12, 3, 1, 'it', 'Moto/Scooter'),
    (13, 4, 1, 'fr', 'Caravaning'),
    (14, 4, 1, 'en', 'Caravans/camper cars'),
    (15, 4, 1, 'es', 'Caravanas'),
    (16, 4, 1, 'it', 'Carovane'),
    (17, 5, 1, 'fr', 'Utilitaires'),
    (18, 5, 1, 'en', 'Vans/commercial vehicles'),
    (19, 5, 1, 'es', 'Furgonetas/Camiones'),
    (20, 5, 1, 'it', 'Furgoni/Camion'),
    (21, 6, 1, 'fr', 'Équipement auto'),
    (22, 6, 1, 'en', 'Accessories/parts'),
    (23, 6, 1, 'es', 'Accesorios/Piezas'),
    (24, 6, 1, 'it', 'Accessori/Ricambi'),
    (25, 7, 1, 'fr', 'Équipement moto'),
    (26, 7, 1, 'en', 'Spare parts'),
    (27, 7, 1, 'es', 'Repuestos/Recambios'),
    (28, 7, 1, 'it', 'Pezzi di ricambio'),
    (29, 8, 1, 'fr', 'Nautisme'),
    (30, 8, 1, 'en', 'Marine'),
    (31, 8, 1, 'es', 'Náutica'),
    (32, 8, 1, 'it', 'Navigazione'),
    (33, 9, 1, 'fr', 'Vélos'),
    (34, 9, 1, 'en', 'Bicycles'),
    (35, 9, 1, 'es', 'Bicicletas'),
    (36, 9, 1, 'it', 'Bicicletta'),
    (37, 10, 0, 'fr', 'Immobilier '),
    (38, 10, 0, 'en', 'Property'),
    (39, 10, 0, 'es', 'Inmobiliario'),
    (40, 10, 0, 'it', 'Immobiliare'),
    (41, 11, 10, 'fr', 'Ventes mais./appart.'),
    (42, 11, 10, 'en', 'Houses/flats for sale'),
    (43, 11, 10, 'es', 'Venta de casas/piso'),
    (44, 11, 10, 'it', 'Case/Appart. in vendita'),
    (45, 12, 10, 'fr', 'Locations mais./appart.'),
    (46, 12, 10, 'en', 'Houses/flats for rent'),
    (47, 12, 10, 'es', 'Alquiler de casas/pisos'),
    (48, 12, 10, 'it', 'Case/appart. in affitto'),
    (49, 13, 10, 'fr', 'Terrains'),
    (50, 13, 10, 'en', 'Lands'),
    (51, 13, 10, 'es', 'Terrenos/Parcelas'),
    (52, 13, 10, 'it', 'Campi'),
    (53, 14, 10, 'fr', 'Locations de vacances'),
    (54, 14, 10, 'en', 'Holiday rents'),
    (55, 14, 10, 'es', 'Alquiler de vacaciones'),
    (56, 14, 10, 'it', 'Case per le vacanze'),
    (57, 15, 10, 'fr', 'Colocations'),
    (58, 15, 10, 'en', 'Flat share'),
    (59, 15, 10, 'es', 'Compartidos'),
    (60, 15, 10, 'it', 'Condivisione piatta'),
    (61, 16, 10, 'fr', 'Garages'),
    (62, 16, 10, 'en', 'Garages'),
    (63, 16, 10, 'es', 'Garajes/Trasteros'),
    (64, 16, 10, 'it', 'Autorimesse'),
    (65, 17, 10, 'fr', 'Locaux'),
    (66, 17, 10, 'en', 'Commercial property'),
    (67, 17, 10, 'es', 'Locales y oficinas'),
    (68, 17, 10, 'it', 'Uffici'),
    (69, 18, 10, 'fr', 'Bureaux et commerces'),
    (70, 18, 10, 'en', 'Office/business premises'),
    (71, 18, 10, 'es', 'Negocios y traspasos'),
    (72, 18, 10, 'it', 'Business e commercio'),
    (73, 19, 0, 'fr', 'Emploi'),
    (74, 19, 0, 'en', 'Jobs'),
    (75, 19, 0, 'es', 'Trabajo'),
    (76, 19, 0, 'it', 'Lavori'),
    (77, 20, 19, 'es', 'Empleo'),
    (78, 20, 19, 'en', 'Job vacancies'),
    (79, 20, 19, 'fr', 'Emplois'),
    (80, 20, 19, 'it', 'Occupazione'),
    (81, 21, 19, 'fr', 'Cours particuliers'),
    (82, 21, 19, 'en', 'Private classes'),
    (83, 21, 19, 'es', 'Clases/Cursos'),
    (84, 21, 19, 'it', 'Lezioni private'),
    (85, 22, 19, 'fr', 'Services'),
    (86, 22, 19, 'en', 'Services'),
    (87, 22, 19, 'es', 'Servicios'),
    (88, 22, 19, 'it', 'Servizi'),
    (89, 23, 0, 'fr', 'Mode'),
    (90, 23, 0, 'en', 'Fashion'),
    (91, 23, 0, 'es', 'Ropa/Moda'),
    (92, 23, 0, 'it', 'Moda'),
    (93, 24, 23, 'fr', 'Prêt-à-porter et acces.'),
    (94, 24, 23, 'en', 'Clothes/footwear/accessories'),
    (95, 24, 23, 'es', 'Confección y complementos'),
    (96, 24, 23, 'it', 'Ready-to-wear e accessori'),
    (97, 25, 23, 'fr', 'Puériculture'),
    (98, 25, 23, 'en', 'Baby and kids items'),
    (99, 25, 23, 'es', 'Bebés y niños'),
    (100, 25, 23, 'it', 'Neonati e bambini'),
    (101, 26, 23, 'fr', 'Montres et bijoux'),
    (102, 26, 23, 'en', 'Watches and jewellery'),
    (103, 26, 23, 'es', 'Relojes y joyas'),
    (104, 26, 23, 'it', 'Orologi e gioielli'),
    (105, 27, 0, 'fr', 'Hi-tech'),
    (106, 27, 0, 'en', 'Electronics'),
    (107, 27, 0, 'es', 'Tecnología'),
    (108, 27, 0, 'it', 'Elettronica'),
    (109, 28, 27, 'fr', 'Images et sons'),
    (110, 28, 27, 'en', 'Audio and video equipment'),
    (111, 28, 27, 'es', 'Imagen y sonido'),
    (112, 28, 27, 'it', 'Immagini e suoni'),
    (113, 29, 27, 'fr', 'Informatique'),
    (114, 29, 27, 'en', 'Computers and IT'),
    (115, 29, 27, 'es', 'Informática'),
    (116, 29, 27, 'it', 'Informatica'),
    (117, 30, 27, 'fr', 'Téléphonie'),
    (118, 30, 27, 'en', 'Phones'),
    (119, 30, 27, 'es', 'Telefonía'),
    (120, 30, 27, 'it', 'Telefonia'),
    (121, 31, 27, 'fr', 'Jeux vidéo'),
    (122, 31, 27, 'en', 'Video games'),
    (123, 31, 27, 'es', 'Consolas y videojuegos'),
    (124, 31, 27, 'it', 'Videogiochi'),
    (125, 32, 0, 'it', 'Abitazione'),
    (126, 32, 0, 'es', 'Hogar'),
    (127, 32, 0, 'en', 'Home'),
    (128, 32, 0, 'fr', 'Habitation'),
    (129, 33, 32, 'fr', 'Mobilier'),
    (130, 33, 32, 'en', 'Furniture'),
    (131, 33, 32, 'es', 'Muebles'),
    (132, 33, 32, 'it', 'Mobili'),
    (133, 34, 32, 'fr', 'Electroménager'),
    (134, 34, 32, 'en', 'Home appliances'),
    (135, 34, 32, 'es', 'Electrodoméstico'),
    (136, 34, 32, 'it', 'Elettrodomestici'),
    (137, 35, 32, 'fr', 'Brico/jardin'),
    (138, 35, 32, 'en', 'Garden/outdoor and DIY'),
    (139, 35, 32, 'es', 'Bricolaje y jardinería'),
    (140, 35, 32, 'it', 'Bricolage e giardinaggio'),
    (141, 36, 32, 'fr', 'Décoration'),
    (142, 36, 32, 'en', 'Decoration'),
    (143, 36, 32, 'es', 'Decoración'),
    (144, 36, 32, 'it', 'Decorazione'),
    (145, 37, 0, 'fr', 'Loisirs et divertis.'),
    (146, 37, 0, 'en', 'Leisure and hobbies'),
    (147, 37, 0, 'es', 'Ocio'),
    (148, 37, 0, 'it', 'Tempo libero e hobby'),
    (149, 38, 37, 'fr', 'Films'),
    (150, 38, 37, 'en', 'DVDs'),
    (151, 38, 37, 'es', 'Películas'),
    (152, 38, 37, 'it', 'Film'),
    (153, 39, 37, 'fr', 'Musique'),
    (154, 39, 37, 'en', 'Music'),
    (155, 39, 37, 'es', 'Música'),
    (156, 39, 37, 'it', 'Musica'),
    (157, 40, 37, 'fr', 'Livres/Magazines'),
    (158, 40, 37, 'en', 'Books/magazines'),
    (159, 40, 37, 'es', 'Libros/Revistas'),
    (160, 40, 37, 'it', 'Libri/Riviste'),
    (161, 41, 37, 'fr', 'Jeux et jouets'),
    (162, 41, 37, 'en', 'Games and toys'),
    (163, 41, 37, 'es', 'Juegos y juguetes'),
    (164, 41, 37, 'it', 'Giocattoli e giochi'),
    (165, 42, 37, 'fr', 'Forme/détente'),
    (166, 42, 37, 'en', 'Fitness/Wellness'),
    (167, 42, 37, 'es', 'Salud/Esparcimiento'),
    (168, 42, 37, 'it', 'Forma/relax'),
    (169, 43, 37, 'fr', 'Sport'),
    (170, 43, 37, 'en', 'Sport'),
    (171, 43, 37, 'es', 'Deportes'),
    (172, 43, 37, 'it', 'Sport'),
    (173, 44, 37, 'fr', 'Collection'),
    (174, 44, 37, 'en', 'Collectables'),
    (175, 44, 37, 'es', 'Coleccionismo'),
    (176, 44, 37, 'it', 'Collezione'),
    (177, 45, 37, 'fr', 'Animaux'),
    (178, 45, 37, 'en', 'Pets'),
    (179, 45, 37, 'es', 'Mascotas'),
    (180, 45, 37, 'it', 'Animali'),
    (1974, 46, 1, 'fr', 'Camions'),
    (1975, 47, 1, 'fr', 'Équipement caravaning'),
    (1976, 48, 1, 'fr', 'Équipement nautisme');
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_cat_note_lang`
    --
    
    CREATE TABLE `PAG_cat_note_lang` (
      `id_cat_note_lang` int(10) UNSIGNED NOT NULL,
      `id_cat` int(10) UNSIGNED NOT NULL,
      `par_cat` int(10) UNSIGNED NOT NULL,
      `code_lang` varchar(30) NOT NULL,
      `txt_cat_note_lang` text NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_cat_opts`
    --
    
    CREATE TABLE `PAG_cat_opts` (
      `id_cat_opt` int(10) UNSIGNED NOT NULL,
      `child_cat_opt` tinyint(1) UNSIGNED NOT NULL,
      `pos_cat_opt` smallint(4) UNSIGNED NOT NULL,
      `type_cat_opt` tinyint(1) UNSIGNED NOT NULL,
      `optional` tinyint(1) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_cat_opts`
    --
    
    INSERT INTO `PAG_cat_opts` (`id_cat_opt`, `child_cat_opt`, `pos_cat_opt`, `type_cat_opt`, `optional`) VALUES
    (11, 0, 1, 2, 0),
    (14, 0, 2, 2, 0),
    (15, 0, 3, 2, 0),
    (16, 0, 1, 4, 0);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_cat_opts_lang`
    --
    
    CREATE TABLE `PAG_cat_opts_lang` (
      `id_cat_opt_lang` int(10) UNSIGNED NOT NULL,
      `id_cat_opt` int(10) UNSIGNED NOT NULL,
      `code_lang` varchar(30) NOT NULL,
      `name_cat_opt_lang` varchar(150) NOT NULL,
      `unit_cat_opt_lang` varchar(50) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_cat_opts_lang`
    --
    
    INSERT INTO `PAG_cat_opts_lang` (`id_cat_opt_lang`, `id_cat_opt`, `code_lang`, `name_cat_opt_lang`, `unit_cat_opt_lang`) VALUES
    (1, 2, 'fr', 'Kilométrage', 'Km'),
    (2, 2, 'en', 'Mileage', 'Miles'),
    (3, 2, 'es', 'Kilómetros', 'Km'),
    (4, 2, 'it', 'Chilometri', 'Km'),
    (5, 3, 'fr', 'Année', ''),
    (6, 3, 'en', 'Year', ''),
    (7, 3, 'es', 'Año', ''),
    (8, 3, 'it', 'Anno', ''),
    (9, 4, 'fr', 'Cylindrée', 'Cm3'),
    (10, 4, 'en', 'Engine capacity', 'Cm3'),
    (11, 4, 'es', 'Cilindrada', 'Cm3'),
    (12, 4, 'it', 'Spostamento', 'Cm3'),
    (13, 5, 'fr', 'Surface', 'm2'),
    (14, 5, 'en', 'Surface area', 'm2'),
    (15, 5, 'es', 'Superficie', 'm2'),
    (16, 5, 'it', 'Superficie', 'm2');
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_counties`
    --
    
    CREATE TABLE `PAG_counties` (
      `id_county` int(10) UNSIGNED NOT NULL,
      `pos_county` int(10) UNSIGNED NOT NULL,
      `par_reg` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_counties`
    --
    
    INSERT INTO `PAG_counties` (`id_county`, `pos_county`, `par_reg`) VALUES
    (1, 1, 21),
    (2, 2, 21);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_counties_lang`
    --
    
    CREATE TABLE `PAG_counties_lang` (
      `id_county_lang` int(10) UNSIGNED NOT NULL,
      `id_county` int(10) UNSIGNED NOT NULL,
      `par_reg` int(11) NOT NULL,
      `code_lang` varchar(5) NOT NULL,
      `name_county_lang` varchar(150) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_counties_lang`
    --
    
    INSERT INTO `PAG_counties_lang` (`id_county_lang`, `id_county`, `par_reg`, `code_lang`, `name_county_lang`) VALUES
    (1, 1, 21, 'fr', 'Tataouine Nord'),
    (2, 2, 21, 'fr', 'Tataouine Sud');
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_credits`
    --
    
    CREATE TABLE `PAG_credits` (
      `id_credit` int(10) UNSIGNED NOT NULL,
      `credits` float UNSIGNED NOT NULL,
      `discount` float UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_credits`
    --
    
    INSERT INTO `PAG_credits` (`id_credit`, `credits`, `discount`) VALUES
    (1, 5, 0),
    (2, 10, 0),
    (3, 20, 0),
    (4, 50, 0),
    (5, 100, 5),
    (6, 500, 100);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_discount_code`
    --
    
    CREATE TABLE `PAG_discount_code` (
      `id_discount_code` mediumint(8) UNSIGNED NOT NULL,
      `price` float UNSIGNED NOT NULL,
      `code` varchar(255) NOT NULL,
      `type` tinyint(1) UNSIGNED NOT NULL,
      `val1` tinyint(1) UNSIGNED NOT NULL,
      `val2` tinyint(1) UNSIGNED NOT NULL,
      `val3` tinyint(1) UNSIGNED NOT NULL,
      `val4` tinyint(1) UNSIGNED NOT NULL,
      `val5` tinyint(1) UNSIGNED NOT NULL,
      `val6` tinyint(1) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_fields`
    --
    
    CREATE TABLE `PAG_fields` (
      `id_field` int(10) UNSIGNED NOT NULL,
      `pos_field` smallint(4) UNSIGNED NOT NULL,
      `id_cat` int(10) UNSIGNED NOT NULL,
      `type` tinyint(1) UNSIGNED NOT NULL,
      `optional` tinyint(1) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_fields`
    --
    
    INSERT INTO `PAG_fields` (`id_field`, `pos_field`, `id_cat`, `type`, `optional`) VALUES
    (3, 1, 2, 1, 0);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_fields_lang`
    --
    
    CREATE TABLE `PAG_fields_lang` (
      `id_field_lang` int(10) UNSIGNED NOT NULL,
      `id_field` int(10) UNSIGNED NOT NULL,
      `code_lang` varchar(30) NOT NULL,
      `name_field_lang` varchar(150) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_fields_lang`
    --
    
    INSERT INTO `PAG_fields_lang` (`id_field_lang`, `id_field`, `code_lang`, `name_field_lang`) VALUES
    (3, 3, 'fr', 'Couleur');
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_invoices`
    --
    
    CREATE TABLE `PAG_invoices` (
      `id_inv` int(10) UNSIGNED NOT NULL,
      `id_acc` int(10) UNSIGNED NOT NULL,
      `id_ad` int(10) UNSIGNED NOT NULL,
      `type` tinyint(1) UNSIGNED NOT NULL,
      `url` varchar(255) DEFAULT NULL,
      `price` float UNSIGNED NOT NULL,
      `price_vat` float UNSIGNED NOT NULL,
      `vat_rate` int(5) NOT NULL,
      `lang` varchar(5) NOT NULL,
      `created` datetime NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_invoices_options`
    --
    
    CREATE TABLE `PAG_invoices_options` (
      `id_invoice_option` int(10) UNSIGNED NOT NULL,
      `id_inv` int(10) UNSIGNED NOT NULL,
      `company` varchar(100) DEFAULT NULL,
      `name` varchar(50) NOT NULL,
      `firstname` varchar(50) DEFAULT NULL,
      `address` varchar(255) NOT NULL,
      `postcode` varchar(10) NOT NULL,
      `city` varchar(150) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_lang`
    --
    
    CREATE TABLE `PAG_lang` (
      `id_lang` int(10) UNSIGNED NOT NULL,
      `name_lang` varchar(150) NOT NULL,
      `code_lang` varchar(30) NOT NULL,
      `position` tinyint(3) UNSIGNED NOT NULL,
      `active` tinyint(1) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_lang`
    --
    
    INSERT INTO `PAG_lang` (`id_lang`, `name_lang`, `code_lang`, `position`, `active`) VALUES
    (2, 'english', 'en', 2, 0),
    (3, 'spanish', 'es', 3, 0),
    (1, 'french', 'fr', 1, 1),
    (4, 'italian', 'it', 4, 0);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_mails_auto`
    --
    
    CREATE TABLE `PAG_mails_auto` (
      `id_mail` int(10) UNSIGNED NOT NULL,
      `name` varchar(255) NOT NULL,
      `email` varchar(150) NOT NULL,
      `type` tinyint(1) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_mails_auto`
    --
    
    INSERT INTO `PAG_mails_auto` (`id_mail`, `name`, `email`, `type`) VALUES
    (1, 'Script PAG', 'example@example.com', 1),
    (2, 'Script PAG', 'example@example.com', 2),
    (3, 'Script PAG', 'example@example.com', 3),
    (4, 'Script PAG', 'example@example.com', 4),
    (5, 'Script PAG', 'example@example.com', 5),
    (6, 'Script PAG', 'example@example.com', 6),
    (7, 'Script PAG', 'example@example.com', 7),
    (8, 'Script PAG', 'example@example.com', 8),
    (9, 'Script PAG', 'example@example.com', 9),
    (10, 'Script PAG', 'example@example.com', 10),
    (11, 'Script PAG', 'example@example.com', 11),
    (12, 'Script PAG', 'example@example.com', 12),
    (13, 'Script PAG', 'example@example.com', 13),
    (14, 'Script PAG', 'example@example.com', 14),
    (15, 'Script PAG', 'example@example.com', 15),
    (16, 'Script PAG', 'example@example.com', 16),
    (17, 'Script PAG', 'example@example.com', 17),
    (18, 'Script PAG', 'example@example.com', 18),
    (19, 'Script PAG', 'example@example.com', 19),
    (20, 'Script PAG', 'example@example.com', 20),
    (21, 'Script PAG', 'example@example.com', 21);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_mails_auto_lang`
    --
    
    CREATE TABLE `PAG_mails_auto_lang` (
      `id_mail_lang` int(10) UNSIGNED NOT NULL,
      `id_mail` int(10) UNSIGNED NOT NULL,
      `code_lang` varchar(30) NOT NULL,
      `title_lang` varchar(255) NOT NULL,
      `message_lang` text NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_mails_auto_lang`
    --
    
    INSERT INTO `PAG_mails_auto_lang` (`id_mail_lang`, `id_mail`, `code_lang`, `title_lang`, `message_lang`) VALUES
    (1, 1, 'fr', 'Confirmer votre annonce \"<title>\"', 'Bonjour,<br /><br />\r\nNous avons bien reçu votre annonce \"<title>\".<br /><br />\r\nMerci de confirmer cette annonce en cliquant sur  le lien suivant :<br />\r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\nUne fois confirmée, notre équipe la validera sous réserve d\'acceptation dans un délai de 24h.\r\n<br /><br />\r\n<signature>'),
    (2, 1, 'en', 'Confirm your ad \"<title>\"', 'Hi,<br /><br />\r\nWe acknowledge good receipt of your ad \"<title>\".<br /><br />\r\nThank you for confirming this ad by clicking on the following link :<br />\r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\nOnce confirmed, our team will validate it within a 24 hours delay, provided it meets acceptance criteria.\r\n<br /><br />\r\n<signature>'),
    (3, 1, 'es', 'Activar tu anuncio \"<title>\"', 'Hola,<br /><br />\r\nHemos recibido tu anuncio \"<title>\".<br /><br />\r\nGracias por activarlo haciendo clic en el siguiente enlace :<br />\r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\nUna vez activado, nuestro equipo se encargará de validarlo en un plazo de 24 horas, bajo reserva de aceptación.\r\n<br /><br />\r\n<signature>'),
    (4, 1, 'it', 'Conferma il tuo annuncio \"<title>\"', 'Salve,<br /><br />\r\nAbbiamo ricevuto il tuo annuncio \"<title>\".<br /><br />\r\nConferma questo annuncio cliccando sul link seguente :<br />\r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\nUna volta confermato, il nostro team lo convaliderà previa accettazione entro 24h.\r\n<br /><br />\r\n<signature>'),
    (5, 2, 'fr', 'Validation de votre annonce \"<title>\"', 'Bonjour,<br /><br />\r\nVotre annonce \"<title>\" a bien été mise en ligne par notre équipe sur notre site.<br />\r\nElle restera en ligne pendant 2 mois, période durant laquelle vous pouvez la modifier ou la supprimer en allant directement sur votre annonce, dans la rubrique \"Gérer votre annonce\".\r\n<br><br>\r\nVotre annonce est visible à l\'url suivante :<br /> \r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\n<signature>'),
    (6, 2, 'en', 'Ad validation \"<title>\"', 'Hi,<br /><br />\r\nYour ad \"<title>\" has been posted successfully on our website by our team.<br />\r\nIt will remain online for a 2 months period, during which you can edit or delete it, simply by accessing it via the section \"Ad management\".\r\n<br><br>\r\nTo view your ad, go to the following URL :<br /> \r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\n<signature>'),
    (7, 2, 'es', 'Validación de tu anuncio \"<title>\"', 'Hola,<br /><br />\r\nNuestro equipo ha publicado tu anuncio \"<title>\" en nuestro sitio web con éxito.<br />\r\nPermanecerá en línea por un plazo de 2 meses, en el transcurso del cual podrás modificarlo o borrarlo al ir directamente a tu anuncio, a través de \"Gestión de tu anuncio\".\r\n<br><br>\r\nPuedes ver tu anuncio aquí :<br /> \r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\n<signature>'),
    (8, 2, 'it', 'Convalida del tuo annuncio \"<title>\"', 'Salve,<br /><br />\r\nIl tuo annuncio \"<title>\" è stato approvato dal nostro team ed è online.<br />\r\nResterà per 3 mesi a partire da oggi, durante il quale è possibile modificarlo o eliminarlo andando direttamente al tuo annuncio in \"Gestisci il tuo annuncio\".\r\n<br><br>\r\nL\'annuncio è visibile al seguente url :<br /> \r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\n<signature>'),
    (9, 3, 'fr', 'Votre annonce \"<title>\" refusée', 'Bonjour<br /><br />\r\nVotre annonce \"<title>\" n\'a pas été retenue car elle ne respecte pas nos règles de diffusion.<br /><br />\r\n<msg_rej>\r\n<modif>\r\n<signature>'),
    (10, 3, 'en', 'Ad rejection \"<title>\"', 'Hi<br /><br />\r\nYour ad \"<title>\" has been rejected because it violates our rules and policies.<br /><br />\r\n<msg_rej>\r\n<modif>\r\n<signature>'),
    (11, 3, 'es', 'Tu anuncio \"<title>\" fue rechazado', 'Hola<br /><br />\r\nTu anuncio \"<title>\" no ha sido publicado por no ajustarse a nuestras normas de publicación.<br /><br />\r\n<msg_rej>\r\n<modif>\r\n<signature>'),
    (12, 3, 'it', 'Il tuo annuncio \"<title>\" rifiutato', 'Salve<br /><br />\r\nIl tuo annuncio \"<title>\" è stato respinto perché non soddisfa le nostre regole di diffusione.<br /><br />\r\n<msg_rej>\r\n<modif>\r\n<signature>'),
    (13, 4, 'fr', 'Votre annonce \"<title>\"', 'Bonjour,<br /><br />\r\nNous vous informons que votre annonce \"<title>\" n\'est plus valide car vous ne l\'avez pas confirmée dans les 48 heures.\r\n<br /><br />\r\n<signature>'),
    (14, 4, 'en', 'Your ad \"<title>\"', 'Hi,<br /><br />\r\nWe inform you that your ad \"<title>\" is no longer valid because you have not confirmed it within 48 hours.\r\n<br /><br />\r\n<signature>'),
    (15, 4, 'es', 'Tu anuncio \"<title>\"', 'Hola,<br /><br />\r\nTe informamos que tu anuncio \"<title>\" ya no es válido porque no lo confirmaste en el plazo de 48 horas.\r\n<br /><br />\r\n<signature>'),
    (16, 4, 'it', 'Il tuo annuncio \"<title>\"', 'Salve,<br /><br />\r\nTi informiamo che il tuo annuncio \"<title>\" non è più valido perché non è stato confermato entro le 48 ore.\r\n<br /><br />\r\n<signature>'),
    (17, 5, 'fr', 'Expiration de votre annonce \"<title>\"', 'Bonjour,<br /><br />\r\nNous vous annonçons que votre annonce \"<title>\" a été supprimée de notre site car elle est arrivée à expiration.\r\n<br /><br />\r\n<signature>'),
    (18, 5, 'en', 'Expired ad \"<title>\"', 'Hi,<br /><br />\r\nWe inform you that your ad \"<title>\" was deleted from our website because it expired.\r\n<br /><br />\r\n<signature>'),
    (19, 5, 'es', 'Tu anuncio \"<title>\" ha caducado', 'Hola,<br /><br />\r\nTe informamos que tu anuncio \"<title>\" fue eliminado de nuestro sitio web porque ha caducado.\r\n<br /><br />\r\n<signature>'),
    (20, 5, 'it', 'Scadenza del tuo annuncio \"<title>\"', 'Salve,<br /><br />\r\nTi informiamo che il tuo annuncio \"<title>\" è stato rimosso dal nostro sito perché è scaduto.\r\n<br /><br />\r\n<signature>'),
    (21, 20, 'fr', 'Booster votre annonce', 'Bonjour,<br /><br />\r\nNous vous informons que vous pouvez booster votre annonce \"<title>\" grâce aux options visuelles.<br /><br />\r\nVous pouvez commander ces options directement depuis la page de votre annonce :<br />\r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\n<signature>'),
    (22, 20, 'en', 'Boost your ad', 'Hello, <br /> <br />\r\nWe inform you that you can boost your \"<title>\" ad with visual options. <br /> <br />\r\nYou can order these options directly from your ad page: <br />\r\n<a href=\"<url> \"> <url> </a>\r\n<br /> <br />\r\n<signature>'),
    (23, 20, 'es', 'Impulsa tu anuncio', 'Hola,<br /><br />\r\nLe informamos que puede impulsar su anuncio \"<title>\" con opciones visuales.<br /><br />\r\nPuede solicitar estas opciones directamente desde su página de anuncio:<br />\r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\n<signature>'),
    (24, 20, 'it', 'Aumenta il tuo annuncio', 'Ciao,<br /><br />\r\nTi informiamo che puoi aumentare la visibilità del tuo annuncio \"<title>\" con le opzioni visive.<br /><br />\r\nPuoi scegliere queste opzioni direttamente dal tuo account:<br />\r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\n<signature>'),
    (25, 6, 'fr', 'Confirmer votre compte', 'Bonjour,<br /><br />\r\nMerci de confirmer votre compte en cliquant sur  le lien suivant :<br />\r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\nUne fois confirmé, notre équipe le validera sous réserve d\'acceptation dans un délai de 24h.\r\n<br /><br />\r\n<signature>'),
    (26, 6, 'en', 'Confirm your account', 'Hi,<br /><br />\r\nThank you for confirming your account by clicking on the following link :<br />\r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\nOnce confirmed, our team will validate it within a 24 hours delay, provided it meets acceptance criteria.\r\n<br /><br />\r\n<signature>'),
    (27, 6, 'es', 'Activar tu cuenta', 'Hola,<br /><br />\r\nGracias por activar tu cuenta haciendo clic en el siguiente enlace :<br />\r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\nUna vez activada, nuestro equipo se encargará de validarla en un plazo de 24 horas, bajo reserva de aceptación.\r\n<br /><br />\r\n<signature>'),
    (28, 6, 'it', 'Conferma il tuo account', 'Salve,<br /><br />\r\nSei pregato di confermare il tuo account cliccando sul link seguente :<br />\r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\nUna volta confermato, il nostro team lo convaliderà previa accettazione entro 24 ore.\r\n<br /><br />\r\n<signature>'),
    (29, 7, 'fr', 'Validation de votre compte', 'Bonjour,<br /><br />\r\nVotre compte a été validé avec succès par notre équipe. Vous pouvez dorénavant vous y connecter.\r\n<br /><br />\r\n<signature>'),
    (30, 7, 'en', 'Account validation', 'Hi,<br /><br />\r\nYour account has been validated successfully by our team. You can now log on to it.\r\n<br /><br />\r\n<signature>'),
    (31, 7, 'es', 'Validación de tu cuenta', 'Hola,<br /><br />\r\nNuestro equipo ha validado tu cuenta con éxito. De ahora en adelante podrás darte de alta e iniciar sesión en ella.\r\n<br /><br />\r\n<signature>'),
    (32, 7, 'it', 'Convalida del tuo account', 'Salve,<br /><br />\r\nIl tuo account è stato convalidato con successo dal nostro team. Ora è possibile connettersi.\r\n<br /><br />\r\n<signature>'),
    (33, 8, 'fr', 'Refus de votre compte', 'Bonjour,<br /><br />\r\nVotre compte a été refusé.<br /><br />\r\n<signature>'),
    (34, 8, 'en', 'Rejected account', 'Hi,<br /><br />\r\nYour account has been rejected.<br /><br />\r\n<signature>'),
    (35, 8, 'es', 'Cuenta rechazada', 'Hola,<br /><br />\r\nTu cuenta fue rechazada.<br /><br />\r\n<signature>'),
    (36, 8, 'it', 'Rifiuto del tuo account', 'Salve,<br /><br />\r\nIl tuo account è stato rifiutato.<br /><br />\r\n<signature>'),
    (37, 9, 'fr', 'Paiement de votre annonce \"<title>\"', 'Bonjour,<br /><br />\r\nMerci de votre achat pour l\'annonce \"<title>\".<br /><br/>\r\nVotre annonce est visible à l\'url suivante :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\nVous trouverez votre facture en pièce jointe.<br /><br />\r\n<signature>'),
    (38, 9, 'en', 'Ad payment \"<title>\"', 'Hi,<br /><br />\r\nThank you for purchasing the following ad \"<title>\".<br /><br/>\r\nTo view your ad, go to the following URL :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\nYou will find your invoice in an attached file.<br /><br />\r\n<signature>'),
    (39, 9, 'es', 'Pago de tu anuncio \"<title>\"', 'Hola,<br /><br />\r\nGracias por haber comprado el anuncio \"<title>\".<br /><br/>\r\nPuedes ver tu anuncio aquí :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\nEncontrará su factura en archivo adjunto.<br /><br />\r\n<signature>'),
    (40, 9, 'it', 'Pagamento del tuo annuncio \"<title>\"', 'Salve,<br /><br />\r\nTi ringraziamo per aver effettuato il pagamento del tuo annuncio \"<title>\".<br /><br/>\r\nL\'annuncio è visibile all\'url seguente :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\nTroverai la tua fattura in un file allegato.<br /><br />\r\n<signature>'),
    (41, 10, 'fr', 'Achat d\'option pour votre annonce \"<title>\"', 'Bonjour,<br /><br />\r\nMerci de votre achat pour l\'annonce \"<title>\".<br /><br/>\r\nVous trouverez votre facture en pièce jointe.<br /><br />\r\nPour rappel, votre annonce est visible à l\'url suivante :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\n<signature>'),
    (42, 10, 'en', 'Option purchase for your ad \"<title>\"', 'Hi,<br /><br />\r\nThank you for purchasing this option for your ad \"<title>\".<br /><br/>\r\nYou will find your invoice in an attached file.<br /><br />\r\nWe remind you that you can go to the following URL to view your ad :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\n<signature>'),
    (43, 10, 'es', 'Compra de opción para tu anuncio \"<title>\"', 'Hola,<br /><br />\r\nGracias por haber comprado una opción para tu anuncio \"<title>\".<br /><br/>\r\nEncontrará su factura en archivo adjunto.<br /><br />\r\nTe recordamos que puedes ver tu anuncio aquí :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\n<signature>'),
    (44, 10, 'it', 'Acquisto opzione per il tuo annuncio \"<title>\"', 'Salve,<br /><br />\r\nGrazie per aver effettuato l\'acquisto \"<title>\".<br /><br/>\r\nTroverai la tua fattura in un file allegato.<br /><br />\r\nTi ricordiamo che il tuo annuncio è visibile à l\'url seguente :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\n<signature>'),
    (45, 11, 'fr', 'Achat d\'option pour votre vitrine', 'Bonjour,<br /><br />\r\nMerci de votre achat pour  votre vitrine.<br /><br />\r\nVous trouverez votre facture en pièce jointe.<br /><br />\r\n<signature>'),
    (46, 11, 'en', 'Option purchase for your shop', 'Hi,<br /><br />\r\nThank you for purchasing this option for your shop.<br /><br />\r\nYou will find your invoice in an attached file.<br /><br />\r\n<signature>'),
    (47, 11, 'es', 'Compra de opción para tu tienda', 'Hola,<br /><br />\r\nGracias por haber comprado una opción para tu tienda.<br /><br />\r\nEncontrará su factura en archivo adjunto.<br /><br />\r\n<signature>'),
    (48, 11, 'it', 'Acquistare l\'opzione per il tuo negozio', 'Salve,<br /><br />\r\nGrazie per avec acquistato l\'opzione del negozio virtuale.<br /><br />\r\nTroverai la tua fattura in un file allegato.<br /><br />\r\n<signature>'),
    (49, 12, 'fr', 'Achat d\'un pack compte', 'Bonjour,<br /><br />\r\nMerci d\'avoir fait l\'achat d\'un pack compte sur notre site.<br /><br/>\r\nVous trouverez votre facture en pièce jointe.<br /><br />\r\n<signature>'),
    (50, 12, 'en', 'Account package purchase', 'Hi,<br /><br />\r\nThank you for purchasing an account pack on our website.<br /><br/>\r\nYou will find your invoice in an attached file.<br /><br />\r\n<signature>'),
    (51, 12, 'es', 'Compra de pack de cuenta', 'Hola,<br /><br />\r\nGracias por haber comprado un pack de cuenta en nuestro sitio web.<br /><br/>\r\nEncontrará su factura en archivo adjunto.<br /><br />\r\n<signature>'),
    (52, 12, 'it', 'Acquistare un account pack', 'Salve,<br /><br />\r\nGrazie per aver fatto l\'acquisto di un pacchetto sul nostro sito web.<br /><br/>\r\nTroverai la tua fattura in un file allegato.<br /><br />\r\n<signature>'),
    (53, 13, 'fr', 'Achat d\'un abonnement vitrine', 'Bonjour,<br /><br />\r\nMerci d\'avoir fait l\'achat d\'un abonnement vitrine sur notre site.<br /><br/>\r\nVous trouverez votre facture en pièce jointe.<br /><br />\r\n<signature>'),
    (54, 13, 'en', 'Shop subscription payment', 'Hi,<br /><br />\r\nThank you for purchasing a shop subscription on our website.<br /><br/>\r\nYou will find your invoice in an attached file.<br /><br />\r\n<signature>'),
    (55, 13, 'es', 'Suscripción de abono para tienda', 'Hola,<br /><br />\r\nGracias por haber suscrito un abono para tienda en nuestro sitio web.<br /><br/>\r\nEncontrará su factura en archivo adjunto.<br /><br />\r\n<signature>'),
    (56, 13, 'it', 'Acquista un abbonamento per negozio', 'Salve,<br /><br />\r\nGrazie per aver fatto l\'acquisto di un abbonamento negozio sul nostro sito.<br /><br/>\r\nTroverai la tua fattura in un file allegato.<br /><br />\r\n<signature>'),
    (57, 19, 'fr', 'Achat de crédit', 'Bonjour,<br /><br />\r\nNous vous remercions d\'avoir acheté du crédit sur notre site.<br /><br />\r\nVous trouverez votre facture en pièce jointe.<br /><br />\r\n<signature>'),
    (58, 19, 'en', 'Purchase of credit', 'Hello, <br /> <br />\r\nThank you for buying credit on our site.<br /><br />\r\nYou will find your invoice in an attached file.<br /><br />\r\n<signature>'),
    (59, 19, 'es', 'Compra de crédito', 'Hola,<br /><br />\r\nGracias por comprar crédito en nuestro sitio.<br /><br />\r\nEncontrará su factura en archivo adjunto.<br /><br />\r\n<signature>'),
    (60, 19, 'it', 'Acquisto di credito', 'Salve,<br /><br />\r\nGrazie per aver fatto l\'acquisto di crediti sul nostro sito.<br /><br/>\r\nTroverai la tua fattura in un file allegato.<br /><br />\r\n<signature>'),
    (61, 14, 'fr', 'Renouveler votre annonce \"<title>\"', 'Bonjour,<br /><br />\r\nNous vous rapelons que votre annonce \"<title>\" expire dans moins de 7 jours.<br /><br/>\r\nCliquez sur le lien suivant pour la renouveler :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\n<signature>'),
    (62, 14, 'en', 'Ad renewal \"<title>\"', 'Hi,<br /><br />\r\nWe remind you that your ad \"<title>\" will expire in less than 7 days.<br /><br/>\r\nClick on the following link to renew it :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\n<signature>'),
    (63, 14, 'es', 'Renovar tu anuncio \"<title>\"', 'Hola,<br /><br />\r\nTe recordamos que tu anuncio \"<title>\" caducará dentro de 7 días.<br /><br/>\r\nHaz clic en el siguiente enlace para renovarlo :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\n<signature>'),
    (64, 14, 'it', 'Rinnova il tuo annuncio \"<title>\"', 'Salve,<br /><br />\r\nTi ricordiamo che il tuo annuncio \"<title>\" scade in meno di 7 giorni.<br /><br/>\r\nFai clic sul seguente link per il rinnovo :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\n<signature>'),
    (65, 15, 'fr', 'Options visuelles de votre annonce \"<title>\"', 'Bonjour,<br /><br />\r\nDes options visuelles de votre annonce \"<title>\" ont expirées.<br /><br />\r\nVous pouvez les renouveler depuis la page de votre annonce accessible à l\'url suivante :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\n<signature>'),
    (66, 15, 'en', 'Visual options for your ad \"<title>\"', 'Hi,<br /><br />\r\nSome visual options related to your ad \"<title>\" expired.<br /><br />\r\nYou can renew them via your ad page, available at the following URL :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\n<signature>'),
    (67, 15, 'es', 'Opciones visuales de tu anuncio \"<title>\"', 'Hola,<br /><br />\r\nAlgunas opciones visuales de tu anuncio \"<title>\" han caducado.<br /><br />\r\nPuedes renovarlas desde la página de tu anuncio a través del siguiente enlace :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\n<signature>'),
    (68, 15, 'it', 'Opzioni visive per il tuo annuncio \"<title>\"', 'Salve,<br /><br />\r\nLe opzioni visive del tuo annuncio \"<title>\" sono scadute.<br /><br />\r\nÈ possibile rinnovarle al seguente url :<br />\r\n<a href=\"<url>\"><url></a><br /><br />\r\n<signature>'),
    (69, 16, 'fr', 'Option visuelle de votre vitrine', 'Bonjour,<br /><br />\r\nDes options visuelles de votre vitrine ont expirées.<br /><br />\r\nVous pouvez renouveler ces options directement depuis la page de votre vitrine.<br /><br />\r\n<signature>'),
    (70, 16, 'en', 'Visual options for your shop', 'Hi,<br /><br />\r\nSome visual options related to your shop expired.<br /><br />\r\nYou can renew these options directly via your shop page.<br /><br />\r\n<signature>'),
    (71, 16, 'es', 'Opciones visuales de du tienda', 'Hola,<br /><br />\r\nAlgunas opciones visuales de tu tienda han caducado.<br /><br />\r\nPuedes renovar estas opciones directamente desde la página de tu tienda.<br /><br />\r\n<signature>'),
    (72, 16, 'it', 'Opzione visiva del negozio', 'Salve,<br /><br />\r\nLe opzioni visive del tuo negozio sono scadute.<br /><br />\r\nLe puoi rinnovare direttamente dalla pagina del Negozio.<br /><br />\r\n<signature>'),
    (73, 17, 'fr', 'Expiration du pack de votre compte', 'Bonjour,<br /><br />\r\nLe pack de votre compte est expiré. Pour le renouveler, connectez-vous à votre compte et cliquez sur \"Déposer une annonce\".<br /><br />\r\n<signature>'),
    (74, 17, 'en', 'Account package expiry', 'Hi,<br /><br />\r\nYour account package expired. To renew it, log on to your account and click on \"Post ad\".<br /><br />\r\n<signature>'),
    (75, 17, 'es', 'Expiración del pack de tu cuenta', 'Holas,<br /><br />\r\nEl pack de tu cuenta ha caducado. Para renovarlo, entra en tu cuenta y haz clic en \"Publicar un anuncio\".<br /><br />\r\n<signature>'),
    (76, 17, 'it', 'Scadenza del tuo account pack', 'Salve,<br /><br />\r\nIl pack del tuo account è scaduto. Per rinnovarlo, connettiti al tuo account e clicca su \"Inserisci Annuncio\".<br /><br />\r\n<signature>'),
    (77, 18, 'fr', 'Expiration de l\'abonneme de votre vitrine', 'Bonjour,<br /><br />\r\nL\'abonnement de votre vitrine est éxpiré, par conséquent votre vitrine n\'est plus visible sur notre site. Pour le renouveler, connectez-vous à votre compte et cliquez sur \"Ma vitrine PRO\".<br /><br />\r\n<signature>'),
    (78, 18, 'en', 'Shop subscription expiry', 'Hi,<br /><br />\r\nYour shop subscription expired. Consequently, your shop is no longer displayed on our website. To renew your subscription, log on to your account and click on \"My PRO shop\".<br /><br />\r\n<signature>'),
    (79, 18, 'es', 'Expiración del abono de tu tienda', 'Hola,<br /><br />\r\nEl abono de tu tienda ha caducado, por consiguiente tu tienda ya no está visible en nuestro sitio web. Para renovarlo, entra en tu cuenta y haz clic en \"Mi tienda PRO\".<br /><br />\r\n<signature>'),
    (80, 18, 'it', 'Scadenza dell\'abbonato della tua finestra', 'Salve,<br /><br />\r\nL\'abbonamento del tuo negozio è scaduto, di conseguenza il tuo negozio non è più visibile nel sito. Per rinnovarlo, connettiti nel tuo account e clicca sul \"Mio Negozio PRO\".<br /><br />\r\n<signature>'),
    (81, 21, 'fr', 'De nouvelles annonces pour votre \"<title_search>\"', 'Bonjour,<br /><br />\r\nDe nouvelles annonces peuvent correspondre à votre \"<title_search>\".<br /><br />\r\nVenez les découvrir en cliquant sur  le lien suivant :<br />\r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\n<signature>'),
    (82, 21, 'en', 'New ads for your \"<title_search>\"', 'Hi,<br /><br />\r\nNew ads may match your search \"<title_search>\".<br /><br />\r\nCome to discover them by clicking on the following link :<br />\r\n<a href=\"<url>\"><url></a>\r\n<br /><br />\r\n<signature>'),
    (83, 21, 'es', 'Nuevos anuncios para su \"<title_search>\"', 'Hola <br /> <br />\r\nLos nuevos anuncios pueden coincidir con su \"<title_search>\". <br /> <br />\r\nVen a descubrirlos haciendo clic en el siguiente enlace: <br />\r\n<a href=\"<url> \"><url></a>\r\n<br /> <br />\r\n<signature>\r\n'),
    (84, 21, 'it', 'Nuovi annunci per la tua \"<title_search>\"', 'Ciao, <br /> <br />\r\nI nuovi annunci possono corrispondere al tuo \"<title_search>\". <br /> <br />\r\nVieni a scoprirli facendo clic sul seguente link: <br />\r\n<a href=\"<url> \"><url></a>\r\n<br /> <br />\r\n<signature>');
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_mails_contact`
    --
    
    CREATE TABLE `PAG_mails_contact` (
      `id_cont` int(10) UNSIGNED NOT NULL,
      `pos_cont` int(10) UNSIGNED NOT NULL,
      `email` varchar(150) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_mails_contact`
    --
    
    INSERT INTO `PAG_mails_contact` (`id_cont`, `pos_cont`, `email`) VALUES
    (1, 1, 'farkes2020@gmail.com'),
    (2, 2, 'farkes2020@gmail.com');
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_mails_contact_lang`
    --
    
    CREATE TABLE `PAG_mails_contact_lang` (
      `id_cont_lang` int(10) UNSIGNED NOT NULL,
      `id_cont` int(10) UNSIGNED NOT NULL,
      `code_lang` varchar(30) NOT NULL,
      `name_contact_lang` varchar(150) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_mails_contact_lang`
    --
    
    INSERT INTO `PAG_mails_contact_lang` (`id_cont_lang`, `id_cont`, `code_lang`, `name_contact_lang`) VALUES
    (1, 1, 'fr', 'La direction'),
    (2, 1, 'en', 'Business management'),
    (3, 1, 'es', 'Administración de empresas'),
    (4, 1, 'it', 'Gestione aziendale'),
    (5, 2, 'fr', 'Service technique'),
    (6, 2, 'en', 'Technical service'),
    (7, 2, 'es', 'Servicio técnico'),
    (8, 2, 'it', 'Servizio tecnico');
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_mail_filter`
    --
    
    CREATE TABLE `PAG_mail_filter` (
      `id_mail` int(10) UNSIGNED NOT NULL,
      `id_ad` int(10) UNSIGNED NOT NULL,
      `name` varchar(150) NOT NULL,
      `email` varchar(150) NOT NULL,
      `phone` varchar(100) NOT NULL,
      `email_ad` varchar(150) NOT NULL,
      `message` mediumtext NOT NULL,
      `ip` varchar(150) NOT NULL,
      `date` bigint(12) UNSIGNED NOT NULL,
      `state` tinyint(1) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_packs_account`
    --
    
    CREATE TABLE `PAG_packs_account` (
      `id_pack_acc` int(10) UNSIGNED NOT NULL,
      `ads` smallint(6) UNSIGNED NOT NULL,
      `days` smallint(6) UNSIGNED NOT NULL,
      `price` float UNSIGNED NOT NULL,
      `type` tinyint(1) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_packs_shop`
    --
    
    CREATE TABLE `PAG_packs_shop` (
      `id_pack_shop` int(10) UNSIGNED NOT NULL,
      `days` smallint(6) UNSIGNED NOT NULL,
      `price` float UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_pages`
    --
    
    CREATE TABLE `PAG_pages` (
      `id_page` int(10) UNSIGNED NOT NULL,
      `pos_page` int(10) UNSIGNED NOT NULL,
      `edition` tinyint(1) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_pages`
    --
    
    INSERT INTO `PAG_pages` (`id_page`, `pos_page`, `edition`) VALUES
    (1, 4, 0),
    (3, 2, 0),
    (5, 3, 0),
    (6, 1, 0);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_pages_lang`
    --
    
    CREATE TABLE `PAG_pages_lang` (
      `id_page_lang` int(10) UNSIGNED NOT NULL,
      `id_page` int(10) UNSIGNED NOT NULL,
      `code_lang` varchar(30) NOT NULL,
      `name_page_lang` varchar(150) NOT NULL,
      `text_page_lang` text NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_pages_lang`
    --
    
    INSERT INTO `PAG_pages_lang` (`id_page_lang`, `id_page`, `code_lang`, `name_page_lang`, `text_page_lang`) VALUES
    (1, 1, 'fr', 'Aide et Support', 'Ici le texte de votre page Aide'),
    (2, 1, 'en', 'Help', 'Here the text of your page Help'),
    (3, 1, 'es', 'Ayuda', 'Aquí el texto de tu página ayuda'),
    (4, 1, 'it', 'Aiuto', 'Qui il testo della tua pagina aiuta'),
    (9, 3, 'fr', 'Conditions générales', 'Ici le texte de vos Conditions générales d\'utilisation'),
    (10, 3, 'en', 'Terms of Use', 'Here the text of your Terms of Use'),
    (11, 3, 'es', 'Términos de uso', 'Aquí el texto de sus Términos de uso'),
    (12, 3, 'it', 'Termini di utilizzo', 'Qui il testo dei Termini di utilizzo'),
    (17, 5, 'fr', 'Politique de confidentialité', 'Ici le texte de votre Politique de confidentialité'),
    (18, 5, 'en', 'Privacy Policy', 'Here the text of your Privacy Policy'),
    (19, 5, 'it', 'Politica sulla privacy', 'Qui il testo della tua politica sulla privacy'),
    (20, 5, 'es', 'Política de confidencialidad', 'Aquí el texto de su política de confidencialidad'),
    (21, 6, 'fr', 'À propos', 'test');
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_purchases`
    --
    
    CREATE TABLE `PAG_purchases` (
      `id_purch` int(10) UNSIGNED NOT NULL,
      `type_purch` tinyint(1) NOT NULL,
      `id_ad` int(10) UNSIGNED NOT NULL,
      `id_acc` int(10) UNSIGNED NOT NULL,
      `id_shop` int(10) UNSIGNED NOT NULL,
      `days` varchar(100) NOT NULL,
      `ads` int(10) UNSIGNED NOT NULL,
      `type_opt` varchar(100) NOT NULL,
      `credits` int(10) UNSIGNED NOT NULL,
      `time` int(10) UNSIGNED NOT NULL,
      `price` float UNSIGNED NOT NULL,
      `price_vat` float UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_purchases`
    --
    
    INSERT INTO `PAG_purchases` (`id_purch`, `type_purch`, `id_ad`, `id_acc`, `id_shop`, `days`, `ads`, `type_opt`, `credits`, `time`, `price`, `price_vat`) VALUES
    (4, 6, 4, 4, 2, '', 0, '', 5, 1602629897, 4.55, 0.45);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_purchases_options`
    --
    
    CREATE TABLE `PAG_purchases_options` (
      `id_purchase_option` int(10) UNSIGNED NOT NULL,
      `id_purch` int(10) UNSIGNED NOT NULL,
      `company` varchar(100) DEFAULT NULL,
      `name` varchar(50) NOT NULL,
      `firstname` varchar(50) DEFAULT NULL,
      `address` varchar(255) NOT NULL,
      `postcode` varchar(10) NOT NULL,
      `city` varchar(150) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_purchases_options`
    --
    
    INSERT INTO `PAG_purchases_options` (`id_purchase_option`, `id_purch`, `company`, `name`, `firstname`, `address`, `postcode`, `city`) VALUES
    (4, 4, '', 'Mohamed', 'Abdeljalil', 'Tataouine', '3200', 'Tataouine');
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_regions`
    --
    
    CREATE TABLE `PAG_regions` (
      `id_reg` int(10) UNSIGNED NOT NULL,
      `pos_reg` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_regions`
    --
    
    INSERT INTO `PAG_regions` (`id_reg`, `pos_reg`) VALUES
    (1, 1),
    (2, 2),
    (3, 3),
    (4, 4),
    (5, 5),
    (6, 6),
    (7, 7),
    (8, 8),
    (9, 9),
    (10, 10),
    (11, 11),
    (12, 12),
    (13, 13),
    (14, 14),
    (15, 15),
    (16, 16),
    (17, 17),
    (18, 18),
    (19, 19),
    (20, 20),
    (21, 21),
    (22, 22),
    (23, 23),
    (24, 24);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_regions_lang`
    --
    
    CREATE TABLE `PAG_regions_lang` (
      `id_reg_lang` int(10) UNSIGNED NOT NULL,
      `id_reg` int(10) UNSIGNED NOT NULL,
      `code_lang` varchar(5) NOT NULL,
      `name_reg_lang` varchar(150) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_regions_lang`
    --
    
    INSERT INTO `PAG_regions_lang` (`id_reg_lang`, `id_reg`, `code_lang`, `name_reg_lang`) VALUES
    (1, 1, 'fr', 'Ariana'),
    (2, 1, 'en', 'Ariana'),
    (3, 1, 'es', 'Ariana'),
    (4, 1, 'it', 'Ariana'),
    (5, 2, 'fr', 'Béja'),
    (6, 2, 'en', 'Béja'),
    (7, 2, 'es', 'Béja'),
    (8, 2, 'it', 'Béja'),
    (9, 3, 'fr', 'Ben Arous'),
    (10, 3, 'en', 'Ben Arous'),
    (11, 3, 'es', 'Ben Arous'),
    (12, 3, 'it', 'Ben Arous'),
    (13, 4, 'fr', 'Bizerte'),
    (14, 4, 'en', 'Bizerte'),
    (15, 4, 'es', 'Bizerte'),
    (16, 4, 'it', 'Bizerte'),
    (17, 5, 'fr', 'Gabès'),
    (18, 5, 'en', 'Gabès'),
    (19, 5, 'es', 'Gabès'),
    (20, 5, 'it', 'Gabès'),
    (21, 6, 'fr', 'Gafsa'),
    (22, 6, 'en', 'Gafsa'),
    (23, 6, 'es', 'Gafsa'),
    (24, 6, 'it', 'Gafsa'),
    (25, 7, 'fr', 'Jendouba'),
    (26, 7, 'en', 'Jendouba'),
    (27, 7, 'es', 'Jendouba'),
    (28, 7, 'it', 'Jendouba'),
    (29, 8, 'fr', 'Kairouan'),
    (30, 8, 'en', 'Kairouan'),
    (31, 8, 'es', 'Kairouan'),
    (32, 8, 'it', 'Kairouan'),
    (33, 9, 'fr', 'Kasserine'),
    (34, 9, 'en', 'Kasserine'),
    (35, 9, 'es', 'Kasserine'),
    (36, 9, 'it', 'Kasserine'),
    (37, 10, 'fr', 'Kébili'),
    (38, 10, 'en', 'Kébili'),
    (39, 10, 'es', 'Kébili'),
    (40, 10, 'it', 'Kébili'),
    (41, 11, 'fr', 'Le Kef'),
    (42, 11, 'en', 'Le Kef'),
    (43, 11, 'es', 'Le Kef'),
    (44, 11, 'it', 'Le Kef'),
    (45, 12, 'fr', 'Mahdia'),
    (46, 12, 'en', 'Mahdia'),
    (47, 12, 'es', 'Mahdia'),
    (48, 12, 'it', 'Mahdia'),
    (49, 13, 'fr', 'La Manouba'),
    (50, 13, 'en', 'La Manouba'),
    (51, 13, 'es', 'La Manouba'),
    (52, 13, 'it', 'La Manouba'),
    (53, 14, 'fr', 'Médenine'),
    (54, 14, 'en', 'Médenine'),
    (55, 14, 'es', 'Médenine'),
    (56, 14, 'it', 'Médenine'),
    (57, 15, 'fr', 'Monastir'),
    (58, 15, 'en', 'Monastir'),
    (59, 15, 'es', 'Monastir'),
    (60, 15, 'it', 'Monastir'),
    (61, 16, 'fr', 'Nabeul'),
    (62, 16, 'en', 'Nabeul'),
    (63, 16, 'es', 'Nabeul'),
    (64, 16, 'it', 'Nabeul'),
    (65, 17, 'fr', 'Sfax'),
    (66, 17, 'en', 'Sfax'),
    (67, 17, 'es', 'Sfax'),
    (68, 17, 'it', 'Sfax'),
    (69, 18, 'fr', 'Sidi Bouzid'),
    (70, 18, 'en', 'Sidi Bouzid'),
    (71, 18, 'es', 'Sidi Bouzid'),
    (72, 18, 'it', 'Sidi Bouzid'),
    (73, 19, 'fr', 'Siliana'),
    (74, 19, 'en', 'Siliana'),
    (75, 19, 'es', 'Siliana'),
    (76, 19, 'it', 'Siliana'),
    (77, 20, 'fr', 'Sousse'),
    (78, 20, 'en', 'Sousse'),
    (79, 20, 'es', 'Sousse'),
    (80, 20, 'it', 'Sousse'),
    (81, 21, 'fr', 'Tataouine'),
    (82, 21, 'en', 'Tataouine'),
    (83, 21, 'es', 'Tataouine'),
    (84, 21, 'it', 'Tataouine'),
    (85, 22, 'fr', 'Tozeur'),
    (86, 22, 'en', 'Tozeur'),
    (87, 22, 'es', 'Tozeur'),
    (88, 22, 'it', 'Tozeur'),
    (89, 23, 'fr', 'Tunis'),
    (90, 23, 'en', 'Tunis'),
    (91, 23, 'es', 'Tunis'),
    (92, 23, 'it', 'Tunis'),
    (93, 24, 'fr', 'Zaghouan'),
    (94, 24, 'en', 'Zaghouan'),
    (95, 24, 'es', 'Zaghouan'),
    (96, 24, 'it', 'Zaghouan');
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_search_check`
    --
    
    CREATE TABLE `PAG_search_check` (
      `id_sea_check` int(10) UNSIGNED NOT NULL,
      `id_cat` int(10) UNSIGNED NOT NULL,
      `id_cat_opt` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_search_data`
    --
    
    CREATE TABLE `PAG_search_data` (
      `id_sea_data` int(10) UNSIGNED NOT NULL,
      `id_cat` int(10) UNSIGNED NOT NULL,
      `id_cat_opt` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_search_digital`
    --
    
    CREATE TABLE `PAG_search_digital` (
      `id_sea_digital` int(10) UNSIGNED NOT NULL,
      `id_cat` int(10) UNSIGNED NOT NULL,
      `id_cat_opt` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_search_price`
    --
    
    CREATE TABLE `PAG_search_price` (
      `id_sea_price` int(10) UNSIGNED NOT NULL,
      `id_cat` int(10) UNSIGNED NOT NULL,
      `id_cat_opt` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_shops`
    --
    
    CREATE TABLE `PAG_shops` (
      `id_shop` int(10) UNSIGNED NOT NULL,
      `id_reg` int(10) UNSIGNED NOT NULL,
      `id_county` int(10) UNSIGNED NOT NULL,
      `id_cat` int(10) UNSIGNED NOT NULL,
      `address` varchar(255) NOT NULL,
      `postcode` varchar(50) NOT NULL,
      `city` varchar(150) NOT NULL,
      `name` varchar(150) NOT NULL,
      `title` varchar(255) NOT NULL,
      `description` mediumtext NOT NULL,
      `opening_hours` varchar(255) NOT NULL,
      `website` varchar(150) NOT NULL,
      `logo_name` varchar(150) NOT NULL,
      `id_acc` int(10) UNSIGNED NOT NULL,
      `date` bigint(12) UNSIGNED NOT NULL,
      `premium` tinyint(1) UNSIGNED NOT NULL,
      `pack` tinyint(1) UNSIGNED NOT NULL,
      `ads_num` smallint(5) UNSIGNED NOT NULL,
      `comment_total` int(10) UNSIGNED NOT NULL,
      `comment_average` double NOT NULL,
      `lat` double NOT NULL,
      `lng` double NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Déchargement des données de la table `PAG_shops`
    --
    
    INSERT INTO `PAG_shops` (`id_shop`, `id_reg`, `id_county`, `id_cat`, `address`, `postcode`, `city`, `name`, `title`, `description`, `opening_hours`, `website`, `logo_name`, `id_acc`, `date`, `premium`, `pack`, `ads_num`, `comment_total`, `comment_average`, `lat`, `lng`) VALUES
    (2, 1, 1, 1, '', '', '', '', '', '', '', '', '', 3, 0, 0, 0, 0, 0, 0, 0, 0);
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_shops_comments`
    --
    
    CREATE TABLE `PAG_shops_comments` (
      `id_com` int(10) UNSIGNED NOT NULL,
      `id_shop` int(10) UNSIGNED NOT NULL,
      `pseudo` varchar(150) NOT NULL,
      `title` varchar(150) NOT NULL,
      `text` mediumtext NOT NULL,
      `email` varchar(150) NOT NULL,
      `rating` tinyint(1) UNSIGNED NOT NULL,
      `date` bigint(20) UNSIGNED NOT NULL,
      `ip` varchar(100) NOT NULL,
      `state` tinyint(1) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_shops_options`
    --
    
    CREATE TABLE `PAG_shops_options` (
      `id_shop` int(10) UNSIGNED NOT NULL DEFAULT '0',
      `top` smallint(1) UNSIGNED NOT NULL DEFAULT '0',
      `top_days` int(11) UNSIGNED NOT NULL DEFAULT '0',
      `top_time` bigint(12) UNSIGNED NOT NULL DEFAULT '0',
      `framed` smallint(1) UNSIGNED NOT NULL DEFAULT '0',
      `framed_days` int(11) UNSIGNED NOT NULL DEFAULT '0',
      `framed_time` bigint(12) UNSIGNED NOT NULL DEFAULT '0',
      `premium` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
      `premium_days` smallint(6) UNSIGNED NOT NULL DEFAULT '0',
      `premium_time` bigint(12) UNSIGNED NOT NULL DEFAULT '0'
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_shops_packs`
    --
    
    CREATE TABLE `PAG_shops_packs` (
      `id_acc` int(10) UNSIGNED NOT NULL,
      `days` smallint(6) UNSIGNED NOT NULL,
      `limit_1` smallint(6) UNSIGNED NOT NULL,
      `time` bigint(12) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_val_check`
    --
    
    CREATE TABLE `PAG_val_check` (
      `id_val_check` int(10) UNSIGNED NOT NULL,
      `pos_val_check` smallint(4) UNSIGNED NOT NULL,
      `id_cat_opt` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_val_check_lang`
    --
    
    CREATE TABLE `PAG_val_check_lang` (
      `id_val_check_lang` int(10) UNSIGNED NOT NULL,
      `id_val_check` int(10) UNSIGNED NOT NULL,
      `code_lang` varchar(30) NOT NULL,
      `val_check_lang` varchar(150) NOT NULL,
      `id_cat_opt` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_val_data`
    --
    
    CREATE TABLE `PAG_val_data` (
      `id_val_data` int(10) UNSIGNED NOT NULL,
      `pos_val_data` smallint(4) UNSIGNED NOT NULL,
      `id_cat_opt` int(10) UNSIGNED NOT NULL,
      `par_cat_opt` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_val_data_lang`
    --
    
    CREATE TABLE `PAG_val_data_lang` (
      `id_val_data_lang` int(10) UNSIGNED NOT NULL,
      `id_val_data` int(10) UNSIGNED NOT NULL,
      `code_lang` varchar(30) NOT NULL,
      `val_data_lang` varchar(150) NOT NULL,
      `id_cat_opt` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_val_digital`
    --
    
    CREATE TABLE `PAG_val_digital` (
      `id_val_digital` int(10) UNSIGNED NOT NULL,
      `val_digital` bigint(20) UNSIGNED NOT NULL,
      `id_cat_opt` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_val_price`
    --
    
    CREATE TABLE `PAG_val_price` (
      `id_val_price` int(10) UNSIGNED NOT NULL,
      `val_price` bigint(20) UNSIGNED NOT NULL,
      `id_cat_opt` int(10) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    -- --------------------------------------------------------
    
    --
    -- Structure de la table `PAG_visual_opts`
    --
    
    CREATE TABLE `PAG_visual_opts` (
      `id_visual_opt` int(10) UNSIGNED NOT NULL,
      `days` smallint(3) UNSIGNED NOT NULL,
      `price` float UNSIGNED NOT NULL,
      `type` tinyint(1) UNSIGNED NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Index pour les tables déchargées
    --
    
    --
    -- Index pour la table `PAG_accounts`
    --
    ALTER TABLE `PAG_accounts`
      ADD PRIMARY KEY (`id_acc`);
    
    --
    -- Index pour la table `PAG_accounts_credit`
    --
    ALTER TABLE `PAG_accounts_credit`
      ADD PRIMARY KEY (`id_credit`),
      ADD UNIQUE KEY `id_acc` (`id_acc`);
    
    --
    -- Index pour la table `PAG_accounts_packs`
    --
    ALTER TABLE `PAG_accounts_packs`
      ADD PRIMARY KEY (`id_acc`);
    
    --
    -- Index pour la table `PAG_accounts_search`
    --
    ALTER TABLE `PAG_accounts_search`
      ADD PRIMARY KEY (`id_account_search`),
      ADD UNIQUE KEY `id_acc` (`id_acc`,`search`(255));
    
    --
    -- Index pour la table `PAG_admin`
    --
    ALTER TABLE `PAG_admin`
      ADD PRIMARY KEY (`id_adm`);
    
    --
    -- Index pour la table `PAG_ads`
    --
    ALTER TABLE `PAG_ads`
      ADD PRIMARY KEY (`id_ad`),
      ADD UNIQUE KEY `xml_key` (`xml_key`);
    
    --
    -- Index pour la table `PAG_ads_calendar`
    --
    ALTER TABLE `PAG_ads_calendar`
      ADD PRIMARY KEY (`id_cal`),
      ADD KEY `id_ad` (`id_ad`);
    
    --
    -- Index pour la table `PAG_ads_check`
    --
    ALTER TABLE `PAG_ads_check`
      ADD PRIMARY KEY (`id_ad_check`),
      ADD KEY `id_ad` (`id_ad`);
    
    --
    -- Index pour la table `PAG_ads_comments`
    --
    ALTER TABLE `PAG_ads_comments`
      ADD PRIMARY KEY (`id_com`),
      ADD KEY `id_ad` (`id_ad`);
    
    --
    -- Index pour la table `PAG_ads_compagny`
    --
    ALTER TABLE `PAG_ads_compagny`
      ADD UNIQUE KEY `id_ad` (`id_ad`);
    
    --
    -- Index pour la table `PAG_ads_data`
    --
    ALTER TABLE `PAG_ads_data`
      ADD PRIMARY KEY (`id_ad_data`),
      ADD KEY `id_ad` (`id_ad`);
    
    --
    -- Index pour la table `PAG_ads_digital`
    --
    ALTER TABLE `PAG_ads_digital`
      ADD UNIQUE KEY `id_val` (`id_ad_digital`),
      ADD KEY `id_ad` (`id_ad`);
    
    --
    -- Index pour la table `PAG_ads_fields`
    --
    ALTER TABLE `PAG_ads_fields`
      ADD PRIMARY KEY (`id_ad_field`),
      ADD KEY `id_ad` (`id_ad`),
      ADD KEY `id_field` (`id_field`);
    
    --
    -- Index pour la table `PAG_ads_files`
    --
    ALTER TABLE `PAG_ads_files`
      ADD PRIMARY KEY (`id_file`),
      ADD UNIQUE KEY `name` (`name`),
      ADD KEY `id_ad` (`id_ad`);
    
    --
    -- Index pour la table `PAG_ads_images`
    --
    ALTER TABLE `PAG_ads_images`
      ADD PRIMARY KEY (`id_ima`),
      ADD UNIQUE KEY `name` (`name`,`id_ad`),
      ADD KEY `id_ad` (`id_ad`);
    
    --
    -- Index pour la table `PAG_ads_options`
    --
    ALTER TABLE `PAG_ads_options`
      ADD PRIMARY KEY (`id_ad`);
    
    --
    -- Index pour la table `PAG_ads_search`
    --
    ALTER TABLE `PAG_ads_search`
      ADD PRIMARY KEY (`id_ad`),
      ADD KEY `state_type_date` (`state`,`type`,`date`),
      ADD KEY `state_type_postcode_date` (`state`,`type`,`postcode`,`date`),
      ADD KEY `state_type_id_reg_date` (`state`,`type`,`id_reg`,`date`),
      ADD KEY `state_type_id_cat_date` (`state`,`type`,`id_cat`,`date`),
      ADD KEY `state_type_premium_date` (`state`,`type`,`premium`,`date`),
      ADD KEY `state_type_status_date` (`state`,`type`,`status`,`date`),
      ADD KEY `state_type_price` (`state`,`type`,`price`),
      ADD KEY `state_type_postcode_price` (`state`,`type`,`postcode`,`price`),
      ADD KEY `state_type_id_reg_price` (`state`,`type`,`id_reg`,`price`),
      ADD KEY `state_type_id_cat_price` (`state`,`type`,`id_cat`,`price`),
      ADD KEY `state_type_premium_price` (`state`,`type`,`premium`,`price`),
      ADD KEY `state_type_status_price` (`state`,`type`,`status`,`price`),
      ADD KEY `state` (`state`,`type`,`id_acc`),
      ADD KEY `id_acc` (`id_acc`),
      ADD KEY `id_cat` (`id_cat`),
      ADD KEY `id_reg` (`id_reg`),
      ADD KEY `id_county` (`id_county`);
    
    --
    -- Index pour la table `PAG_ads_video`
    --
    ALTER TABLE `PAG_ads_video`
      ADD UNIQUE KEY `id_ad` (`id_ad`);
    
    --
    -- Index pour la table `PAG_advertisement`
    --
    ALTER TABLE `PAG_advertisement`
      ADD PRIMARY KEY (`id_adv`),
      ADD KEY `id_cat` (`id_cat`),
      ADD KEY `id_county` (`id_county`),
      ADD KEY `id_reg` (`id_reg`);
    
    --
    -- Index pour la table `PAG_blacklist`
    --
    ALTER TABLE `PAG_blacklist`
      ADD UNIQUE KEY `email` (`email`);
    
    --
    -- Index pour la table `PAG_cat`
    --
    ALTER TABLE `PAG_cat`
      ADD PRIMARY KEY (`id_cat`);
    
    --
    -- Index pour la table `PAG_cat_lang`
    --
    ALTER TABLE `PAG_cat_lang`
      ADD PRIMARY KEY (`id_cat_lang`),
      ADD UNIQUE KEY `id_cat` (`id_cat`,`code_lang`),
      ADD KEY `code_lang` (`code_lang`);
    
    --
    -- Index pour la table `PAG_cat_note_lang`
    --
    ALTER TABLE `PAG_cat_note_lang`
      ADD PRIMARY KEY (`id_cat_note_lang`),
      ADD UNIQUE KEY `id_cat` (`id_cat`,`code_lang`),
      ADD KEY `code_lang` (`code_lang`);
    
    --
    -- Index pour la table `PAG_cat_opts`
    --
    ALTER TABLE `PAG_cat_opts`
      ADD PRIMARY KEY (`id_cat_opt`);
    
    --
    -- Index pour la table `PAG_cat_opts_lang`
    --
    ALTER TABLE `PAG_cat_opts_lang`
      ADD PRIMARY KEY (`id_cat_opt_lang`),
      ADD UNIQUE KEY `id_cat_opt` (`id_cat_opt`,`code_lang`),
      ADD KEY `code_lang` (`code_lang`);
    
    --
    -- Index pour la table `PAG_counties`
    --
    ALTER TABLE `PAG_counties`
      ADD PRIMARY KEY (`id_county`);
    
    --
    -- Index pour la table `PAG_counties_lang`
    --
    ALTER TABLE `PAG_counties_lang`
      ADD PRIMARY KEY (`id_county_lang`),
      ADD UNIQUE KEY `id_county` (`id_county`,`code_lang`),
      ADD KEY `code_lang` (`code_lang`);
    
    --
    -- Index pour la table `PAG_credits`
    --
    ALTER TABLE `PAG_credits`
      ADD PRIMARY KEY (`id_credit`);
    
    --
    -- Index pour la table `PAG_discount_code`
    --
    ALTER TABLE `PAG_discount_code`
      ADD PRIMARY KEY (`id_discount_code`);
    
    --
    -- Index pour la table `PAG_fields`
    --
    ALTER TABLE `PAG_fields`
      ADD PRIMARY KEY (`id_field`),
      ADD KEY `id_cat` (`id_cat`);
    
    --
    -- Index pour la table `PAG_fields_lang`
    --
    ALTER TABLE `PAG_fields_lang`
      ADD PRIMARY KEY (`id_field_lang`),
      ADD UNIQUE KEY `id_field` (`id_field`,`code_lang`),
      ADD KEY `code_lang` (`code_lang`);
    
    --
    -- Index pour la table `PAG_invoices`
    --
    ALTER TABLE `PAG_invoices`
      ADD PRIMARY KEY (`id_inv`),
      ADD KEY `id_acc` (`id_acc`),
      ADD KEY `id_ad` (`id_ad`),
      ADD KEY `lang` (`lang`);
    
    --
    -- Index pour la table `PAG_invoices_options`
    --
    ALTER TABLE `PAG_invoices_options`
      ADD PRIMARY KEY (`id_invoice_option`),
      ADD UNIQUE KEY `unique_id_inv` (`id_inv`);
    
    --
    -- Index pour la table `PAG_lang`
    --
    ALTER TABLE `PAG_lang`
      ADD PRIMARY KEY (`code_lang`),
      ADD UNIQUE KEY `code_lang_2` (`code_lang`),
      ADD KEY `code_lang` (`code_lang`);
    
    --
    -- Index pour la table `PAG_mails_auto`
    --
    ALTER TABLE `PAG_mails_auto`
      ADD PRIMARY KEY (`id_mail`);
    
    --
    -- Index pour la table `PAG_mails_auto_lang`
    --
    ALTER TABLE `PAG_mails_auto_lang`
      ADD PRIMARY KEY (`id_mail_lang`),
      ADD UNIQUE KEY `id_mail` (`id_mail`,`code_lang`),
      ADD KEY `code_lang` (`code_lang`);
    
    --
    -- Index pour la table `PAG_mails_contact`
    --
    ALTER TABLE `PAG_mails_contact`
      ADD PRIMARY KEY (`id_cont`);
    
    --
    -- Index pour la table `PAG_mails_contact_lang`
    --
    ALTER TABLE `PAG_mails_contact_lang`
      ADD PRIMARY KEY (`id_cont_lang`),
      ADD UNIQUE KEY `id_cont` (`id_cont`,`code_lang`),
      ADD KEY `code_lang` (`code_lang`);
    
    --
    -- Index pour la table `PAG_mail_filter`
    --
    ALTER TABLE `PAG_mail_filter`
      ADD PRIMARY KEY (`id_mail`),
      ADD KEY `id_ad` (`id_ad`);
    
    --
    -- Index pour la table `PAG_packs_account`
    --
    ALTER TABLE `PAG_packs_account`
      ADD PRIMARY KEY (`id_pack_acc`);
    
    --
    -- Index pour la table `PAG_packs_shop`
    --
    ALTER TABLE `PAG_packs_shop`
      ADD PRIMARY KEY (`id_pack_shop`);
    
    --
    -- Index pour la table `PAG_pages`
    --
    ALTER TABLE `PAG_pages`
      ADD PRIMARY KEY (`id_page`);
    
    --
    -- Index pour la table `PAG_pages_lang`
    --
    ALTER TABLE `PAG_pages_lang`
      ADD PRIMARY KEY (`id_page_lang`),
      ADD UNIQUE KEY `id_page` (`id_page`,`code_lang`),
      ADD KEY `code_lang` (`code_lang`);
    
    --
    -- Index pour la table `PAG_purchases`
    --
    ALTER TABLE `PAG_purchases`
      ADD PRIMARY KEY (`id_purch`),
      ADD KEY `id_acc` (`id_acc`),
      ADD KEY `id_ad` (`id_ad`),
      ADD KEY `id_shop` (`id_shop`);
    
    --
    -- Index pour la table `PAG_purchases_options`
    --
    ALTER TABLE `PAG_purchases_options`
      ADD PRIMARY KEY (`id_purchase_option`),
      ADD UNIQUE KEY `unique_id_purch` (`id_purch`);
    
    --
    -- Index pour la table `PAG_regions`
    --
    ALTER TABLE `PAG_regions`
      ADD PRIMARY KEY (`id_reg`);
    
    --
    -- Index pour la table `PAG_regions_lang`
    --
    ALTER TABLE `PAG_regions_lang`
      ADD PRIMARY KEY (`id_reg_lang`),
      ADD UNIQUE KEY `id_reg` (`id_reg`,`code_lang`),
      ADD KEY `code_lang` (`code_lang`);
    
    --
    -- Index pour la table `PAG_search_check`
    --
    ALTER TABLE `PAG_search_check`
      ADD PRIMARY KEY (`id_sea_check`),
      ADD KEY `id_cat` (`id_cat`),
      ADD KEY `id_cat_opt` (`id_cat_opt`);
    
    --
    -- Index pour la table `PAG_search_data`
    --
    ALTER TABLE `PAG_search_data`
      ADD PRIMARY KEY (`id_sea_data`),
      ADD KEY `id_cat` (`id_cat`),
      ADD KEY `id_cat_opt` (`id_cat_opt`);
    
    --
    -- Index pour la table `PAG_search_digital`
    --
    ALTER TABLE `PAG_search_digital`
      ADD PRIMARY KEY (`id_sea_digital`),
      ADD KEY `id_cat` (`id_cat`),
      ADD KEY `id_cat_opt` (`id_cat_opt`);
    
    --
    -- Index pour la table `PAG_search_price`
    --
    ALTER TABLE `PAG_search_price`
      ADD PRIMARY KEY (`id_sea_price`),
      ADD KEY `id_cat` (`id_cat`),
      ADD KEY `id_cat_opt` (`id_cat_opt`);
    
    --
    -- Index pour la table `PAG_shops`
    --
    ALTER TABLE `PAG_shops`
      ADD PRIMARY KEY (`id_shop`),
      ADD KEY `id_acc` (`id_acc`),
      ADD KEY `id_cat` (`id_cat`),
      ADD KEY `id_county` (`id_county`),
      ADD KEY `id_reg` (`id_reg`);
    
    --
    -- Index pour la table `PAG_shops_comments`
    --
    ALTER TABLE `PAG_shops_comments`
      ADD PRIMARY KEY (`id_com`),
      ADD KEY `id_shop` (`id_shop`);
    
    --
    -- Index pour la table `PAG_shops_options`
    --
    ALTER TABLE `PAG_shops_options`
      ADD PRIMARY KEY (`id_shop`);
    
    --
    -- Index pour la table `PAG_shops_packs`
    --
    ALTER TABLE `PAG_shops_packs`
      ADD PRIMARY KEY (`id_acc`);
    
    --
    -- Index pour la table `PAG_val_check`
    --
    ALTER TABLE `PAG_val_check`
      ADD PRIMARY KEY (`id_val_check`),
      ADD KEY `id_cat_opt` (`id_cat_opt`);
    
    --
    -- Index pour la table `PAG_val_check_lang`
    --
    ALTER TABLE `PAG_val_check_lang`
      ADD PRIMARY KEY (`id_val_check_lang`),
      ADD UNIQUE KEY `id_val_check` (`id_val_check`,`code_lang`),
      ADD KEY `id_cat_opt` (`id_cat_opt`),
      ADD KEY `code_lang` (`code_lang`);
    
    --
    -- Index pour la table `PAG_val_data`
    --
    ALTER TABLE `PAG_val_data`
      ADD PRIMARY KEY (`id_val_data`),
      ADD KEY `id_cat_opt` (`id_cat_opt`);
    
    --
    -- Index pour la table `PAG_val_data_lang`
    --
    ALTER TABLE `PAG_val_data_lang`
      ADD PRIMARY KEY (`id_val_data_lang`),
      ADD UNIQUE KEY `id_val_data` (`id_val_data`,`code_lang`),
      ADD KEY `id_cat_opt` (`id_cat_opt`),
      ADD KEY `code_lang` (`code_lang`);
    
    --
    -- Index pour la table `PAG_val_digital`
    --
    ALTER TABLE `PAG_val_digital`
      ADD PRIMARY KEY (`id_val_digital`),
      ADD KEY `id_cat_opt` (`id_cat_opt`);
    
    --
    -- Index pour la table `PAG_val_price`
    --
    ALTER TABLE `PAG_val_price`
      ADD PRIMARY KEY (`id_val_price`),
      ADD KEY `id_cat_opt` (`id_cat_opt`);
    
    --
    -- Index pour la table `PAG_visual_opts`
    --
    ALTER TABLE `PAG_visual_opts`
      ADD PRIMARY KEY (`id_visual_opt`);
    
    --
    -- AUTO_INCREMENT pour les tables déchargées
    --
    
    --
    -- AUTO_INCREMENT pour la table `PAG_accounts`
    --
    ALTER TABLE `PAG_accounts`
      MODIFY `id_acc` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_accounts_credit`
    --
    ALTER TABLE `PAG_accounts_credit`
      MODIFY `id_credit` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_accounts_search`
    --
    ALTER TABLE `PAG_accounts_search`
      MODIFY `id_account_search` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_admin`
    --
    ALTER TABLE `PAG_admin`
      MODIFY `id_adm` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_ads`
    --
    ALTER TABLE `PAG_ads`
      MODIFY `id_ad` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_ads_calendar`
    --
    ALTER TABLE `PAG_ads_calendar`
      MODIFY `id_cal` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_ads_check`
    --
    ALTER TABLE `PAG_ads_check`
      MODIFY `id_ad_check` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_ads_comments`
    --
    ALTER TABLE `PAG_ads_comments`
      MODIFY `id_com` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_ads_data`
    --
    ALTER TABLE `PAG_ads_data`
      MODIFY `id_ad_data` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_ads_digital`
    --
    ALTER TABLE `PAG_ads_digital`
      MODIFY `id_ad_digital` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_ads_fields`
    --
    ALTER TABLE `PAG_ads_fields`
      MODIFY `id_ad_field` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_ads_files`
    --
    ALTER TABLE `PAG_ads_files`
      MODIFY `id_file` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_ads_images`
    --
    ALTER TABLE `PAG_ads_images`
      MODIFY `id_ima` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_ads_search`
    --
    ALTER TABLE `PAG_ads_search`
      MODIFY `id_ad` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_advertisement`
    --
    ALTER TABLE `PAG_advertisement`
      MODIFY `id_adv` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_cat`
    --
    ALTER TABLE `PAG_cat`
      MODIFY `id_cat` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_cat_lang`
    --
    ALTER TABLE `PAG_cat_lang`
      MODIFY `id_cat_lang` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1977;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_cat_note_lang`
    --
    ALTER TABLE `PAG_cat_note_lang`
      MODIFY `id_cat_note_lang` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_cat_opts`
    --
    ALTER TABLE `PAG_cat_opts`
      MODIFY `id_cat_opt` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_cat_opts_lang`
    --
    ALTER TABLE `PAG_cat_opts_lang`
      MODIFY `id_cat_opt_lang` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_counties`
    --
    ALTER TABLE `PAG_counties`
      MODIFY `id_county` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_counties_lang`
    --
    ALTER TABLE `PAG_counties_lang`
      MODIFY `id_county_lang` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_credits`
    --
    ALTER TABLE `PAG_credits`
      MODIFY `id_credit` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_discount_code`
    --
    ALTER TABLE `PAG_discount_code`
      MODIFY `id_discount_code` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_fields`
    --
    ALTER TABLE `PAG_fields`
      MODIFY `id_field` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_fields_lang`
    --
    ALTER TABLE `PAG_fields_lang`
      MODIFY `id_field_lang` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_invoices`
    --
    ALTER TABLE `PAG_invoices`
      MODIFY `id_inv` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_invoices_options`
    --
    ALTER TABLE `PAG_invoices_options`
      MODIFY `id_invoice_option` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_mails_auto`
    --
    ALTER TABLE `PAG_mails_auto`
      MODIFY `id_mail` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_mails_auto_lang`
    --
    ALTER TABLE `PAG_mails_auto_lang`
      MODIFY `id_mail_lang` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=85;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_mails_contact`
    --
    ALTER TABLE `PAG_mails_contact`
      MODIFY `id_cont` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_mails_contact_lang`
    --
    ALTER TABLE `PAG_mails_contact_lang`
      MODIFY `id_cont_lang` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_mail_filter`
    --
    ALTER TABLE `PAG_mail_filter`
      MODIFY `id_mail` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_packs_account`
    --
    ALTER TABLE `PAG_packs_account`
      MODIFY `id_pack_acc` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_packs_shop`
    --
    ALTER TABLE `PAG_packs_shop`
      MODIFY `id_pack_shop` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_pages`
    --
    ALTER TABLE `PAG_pages`
      MODIFY `id_page` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_pages_lang`
    --
    ALTER TABLE `PAG_pages_lang`
      MODIFY `id_page_lang` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_purchases`
    --
    ALTER TABLE `PAG_purchases`
      MODIFY `id_purch` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_purchases_options`
    --
    ALTER TABLE `PAG_purchases_options`
      MODIFY `id_purchase_option` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_regions`
    --
    ALTER TABLE `PAG_regions`
      MODIFY `id_reg` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_regions_lang`
    --
    ALTER TABLE `PAG_regions_lang`
      MODIFY `id_reg_lang` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=98;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_search_check`
    --
    ALTER TABLE `PAG_search_check`
      MODIFY `id_sea_check` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_search_data`
    --
    ALTER TABLE `PAG_search_data`
      MODIFY `id_sea_data` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_search_digital`
    --
    ALTER TABLE `PAG_search_digital`
      MODIFY `id_sea_digital` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_search_price`
    --
    ALTER TABLE `PAG_search_price`
      MODIFY `id_sea_price` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_shops`
    --
    ALTER TABLE `PAG_shops`
      MODIFY `id_shop` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_shops_comments`
    --
    ALTER TABLE `PAG_shops_comments`
      MODIFY `id_com` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_val_check`
    --
    ALTER TABLE `PAG_val_check`
      MODIFY `id_val_check` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_val_check_lang`
    --
    ALTER TABLE `PAG_val_check_lang`
      MODIFY `id_val_check_lang` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_val_data`
    --
    ALTER TABLE `PAG_val_data`
      MODIFY `id_val_data` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_val_data_lang`
    --
    ALTER TABLE `PAG_val_data_lang`
      MODIFY `id_val_data_lang` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_val_digital`
    --
    ALTER TABLE `PAG_val_digital`
      MODIFY `id_val_digital` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=124;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_val_price`
    --
    ALTER TABLE `PAG_val_price`
      MODIFY `id_val_price` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;
    
    --
    -- AUTO_INCREMENT pour la table `PAG_visual_opts`
    --
    ALTER TABLE `PAG_visual_opts`
      MODIFY `id_visual_opt` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
    
    --
    -- Contraintes pour les tables déchargées
    --
    
    --
    -- Contraintes pour la table `PAG_accounts_credit`
    --
    ALTER TABLE `PAG_accounts_credit`
      ADD CONSTRAINT `fk_id_acc` FOREIGN KEY (`id_acc`) REFERENCES `PAG_accounts` (`id_acc`);
    
    --
    -- Contraintes pour la table `PAG_accounts_packs`
    --
    ALTER TABLE `PAG_accounts_packs`
      ADD CONSTRAINT `PAG_accounts_packs_ibfk_1` FOREIGN KEY (`id_acc`) REFERENCES `PAG_accounts` (`id_acc`);
    
    --
    -- Contraintes pour la table `PAG_accounts_search`
    --
    ALTER TABLE `PAG_accounts_search`
      ADD CONSTRAINT `PAG_accounts_search_ibfk_1` FOREIGN KEY (`id_acc`) REFERENCES `PAG_accounts` (`id_acc`);
    
    --
    -- Contraintes pour la table `PAG_ads_calendar`
    --
    ALTER TABLE `PAG_ads_calendar`
      ADD CONSTRAINT `fk_id_ads` FOREIGN KEY (`id_ad`) REFERENCES `PAG_ads` (`id_ad`);
    
    --
    -- Contraintes pour la table `PAG_ads_check`
    --
    ALTER TABLE `PAG_ads_check`
      ADD CONSTRAINT `PAG_ads_check_ibfk_1` FOREIGN KEY (`id_ad`) REFERENCES `PAG_ads` (`id_ad`);
    
    --
    -- Contraintes pour la table `PAG_ads_comments`
    --
    ALTER TABLE `PAG_ads_comments`
      ADD CONSTRAINT `PAG_ads_comments_ibfk_1` FOREIGN KEY (`id_ad`) REFERENCES `PAG_ads` (`id_ad`);
    
    --
    -- Contraintes pour la table `PAG_ads_compagny`
    --
    ALTER TABLE `PAG_ads_compagny`
      ADD CONSTRAINT `PAG_ads_compagny_ibfk_1` FOREIGN KEY (`id_ad`) REFERENCES `PAG_ads` (`id_ad`);
    
    --
    -- Contraintes pour la table `PAG_ads_data`
    --
    ALTER TABLE `PAG_ads_data`
      ADD CONSTRAINT `PAG_ads_data_ibfk_1` FOREIGN KEY (`id_ad`) REFERENCES `PAG_ads` (`id_ad`);
    
    --
    -- Contraintes pour la table `PAG_ads_digital`
    --
    ALTER TABLE `PAG_ads_digital`
      ADD CONSTRAINT `PAG_ads_digital_ibfk_1` FOREIGN KEY (`id_ad`) REFERENCES `PAG_ads` (`id_ad`);
    
    --
    -- Contraintes pour la table `PAG_ads_fields`
    --
    ALTER TABLE `PAG_ads_fields`
      ADD CONSTRAINT `PAG_ads_fields_ibfk_2` FOREIGN KEY (`id_field`) REFERENCES `PAG_fields` (`id_field`),
      ADD CONSTRAINT `PAG_ads_fields_ibfk_1` FOREIGN KEY (`id_ad`) REFERENCES `PAG_ads` (`id_ad`);
    
    --
    -- Contraintes pour la table `PAG_ads_files`
    --
    ALTER TABLE `PAG_ads_files`
      ADD CONSTRAINT `PAG_ads_files_ibfk_1` FOREIGN KEY (`id_ad`) REFERENCES `PAG_ads` (`id_ad`);
    
    --
    -- Contraintes pour la table `PAG_ads_images`
    --
    ALTER TABLE `PAG_ads_images`
      ADD CONSTRAINT `PAG_ads_images_ibfk_1` FOREIGN KEY (`id_ad`) REFERENCES `PAG_ads` (`id_ad`);
    
    --
    -- Contraintes pour la table `PAG_ads_search`
    --
    ALTER TABLE `PAG_ads_search`
      ADD CONSTRAINT `PAG_ads_search_ibfk_5` FOREIGN KEY (`id_county`) REFERENCES `PAG_counties` (`id_county`),
      ADD CONSTRAINT `PAG_ads_search_ibfk_1` FOREIGN KEY (`id_acc`) REFERENCES `PAG_accounts` (`id_acc`),
      ADD CONSTRAINT `PAG_ads_search_ibfk_2` FOREIGN KEY (`id_ad`) REFERENCES `PAG_ads` (`id_ad`),
      ADD CONSTRAINT `PAG_ads_search_ibfk_3` FOREIGN KEY (`id_cat`) REFERENCES `PAG_cat` (`id_cat`),
      ADD CONSTRAINT `PAG_ads_search_ibfk_4` FOREIGN KEY (`id_reg`) REFERENCES `PAG_regions` (`id_reg`);
    
    --
    -- Contraintes pour la table `PAG_advertisement`
    --
    ALTER TABLE `PAG_advertisement`
      ADD CONSTRAINT `PAG_advertisement_ibfk_3` FOREIGN KEY (`id_reg`) REFERENCES `PAG_regions` (`id_reg`),
      ADD CONSTRAINT `PAG_advertisement_ibfk_1` FOREIGN KEY (`id_cat`) REFERENCES `PAG_cat` (`id_cat`),
      ADD CONSTRAINT `PAG_advertisement_ibfk_2` FOREIGN KEY (`id_county`) REFERENCES `PAG_counties` (`id_county`);
    
    --
    -- Contraintes pour la table `PAG_cat_lang`
    --
    ALTER TABLE `PAG_cat_lang`
      ADD CONSTRAINT `PAG_cat_lang_ibfk_2` FOREIGN KEY (`code_lang`) REFERENCES `PAG_lang` (`code_lang`),
      ADD CONSTRAINT `PAG_cat_lang_ibfk_1` FOREIGN KEY (`id_cat`) REFERENCES `PAG_cat` (`id_cat`);
    
    --
    -- Contraintes pour la table `PAG_cat_note_lang`
    --
    ALTER TABLE `PAG_cat_note_lang`
      ADD CONSTRAINT `PAG_cat_note_lang_ibfk_2` FOREIGN KEY (`code_lang`) REFERENCES `PAG_lang` (`code_lang`),
      ADD CONSTRAINT `PAG_cat_note_lang_ibfk_1` FOREIGN KEY (`id_cat`) REFERENCES `PAG_cat` (`id_cat`);
    
    --
    -- Contraintes pour la table `PAG_cat_opts_lang`
    --
    ALTER TABLE `PAG_cat_opts_lang`
      ADD CONSTRAINT `PAG_cat_opts_lang_ibfk_2` FOREIGN KEY (`id_cat_opt`) REFERENCES `PAG_cat_lang` (`id_cat_lang`),
      ADD CONSTRAINT `PAG_cat_opts_lang_ibfk_1` FOREIGN KEY (`code_lang`) REFERENCES `PAG_lang` (`code_lang`);
    
    --
    -- Contraintes pour la table `PAG_counties_lang`
    --
    ALTER TABLE `PAG_counties_lang`
      ADD CONSTRAINT `PAG_counties_lang_ibfk_2` FOREIGN KEY (`code_lang`) REFERENCES `PAG_lang` (`code_lang`),
      ADD CONSTRAINT `PAG_counties_lang_ibfk_1` FOREIGN KEY (`id_county`) REFERENCES `PAG_counties` (`id_county`);
    
    --
    -- Contraintes pour la table `PAG_fields`
    --
    ALTER TABLE `PAG_fields`
      ADD CONSTRAINT `PAG_fields_ibfk_1` FOREIGN KEY (`id_cat`) REFERENCES `PAG_cat` (`id_cat`);
    
    --
    -- Contraintes pour la table `PAG_fields_lang`
    --
    ALTER TABLE `PAG_fields_lang`
      ADD CONSTRAINT `PAG_fields_lang_ibfk_2` FOREIGN KEY (`code_lang`) REFERENCES `PAG_lang` (`code_lang`),
      ADD CONSTRAINT `PAG_fields_lang_ibfk_1` FOREIGN KEY (`id_field`) REFERENCES `PAG_fields` (`id_field`);
    
    --
    -- Contraintes pour la table `PAG_invoices`
    --
    ALTER TABLE `PAG_invoices`
      ADD CONSTRAINT `PAG_invoices_ibfk_3` FOREIGN KEY (`lang`) REFERENCES `PAG_lang` (`code_lang`),
      ADD CONSTRAINT `PAG_invoices_ibfk_1` FOREIGN KEY (`id_acc`) REFERENCES `PAG_accounts` (`id_acc`),
      ADD CONSTRAINT `PAG_invoices_ibfk_2` FOREIGN KEY (`id_ad`) REFERENCES `PAG_ads` (`id_ad`);
    
    --
    -- Contraintes pour la table `PAG_invoices_options`
    --
    ALTER TABLE `PAG_invoices_options`
      ADD CONSTRAINT `PAG_invoices_options_ibfk_1` FOREIGN KEY (`id_inv`) REFERENCES `PAG_invoices` (`id_inv`);
    
    --
    -- Contraintes pour la table `PAG_mails_auto_lang`
    --
    ALTER TABLE `PAG_mails_auto_lang`
      ADD CONSTRAINT `PAG_mails_auto_lang_ibfk_2` FOREIGN KEY (`code_lang`) REFERENCES `PAG_lang` (`code_lang`),
      ADD CONSTRAINT `PAG_mails_auto_lang_ibfk_1` FOREIGN KEY (`id_mail`) REFERENCES `PAG_mails_auto` (`id_mail`);
    
    --
    -- Contraintes pour la table `PAG_mails_contact_lang`
    --
    ALTER TABLE `PAG_mails_contact_lang`
      ADD CONSTRAINT `PAG_mails_contact_lang_ibfk_2` FOREIGN KEY (`code_lang`) REFERENCES `PAG_lang` (`code_lang`),
      ADD CONSTRAINT `PAG_mails_contact_lang_ibfk_1` FOREIGN KEY (`id_cont`) REFERENCES `PAG_mails_contact` (`id_cont`);
    
    --
    -- Contraintes pour la table `PAG_mail_filter`
    --
    ALTER TABLE `PAG_mail_filter`
      ADD CONSTRAINT `PAG_mail_filter_ibfk_1` FOREIGN KEY (`id_ad`) REFERENCES `PAG_ads` (`id_ad`);
    
    --
    -- Contraintes pour la table `PAG_pages_lang`
    --
    ALTER TABLE `PAG_pages_lang`
      ADD CONSTRAINT `PAG_pages_lang_ibfk_2` FOREIGN KEY (`code_lang`) REFERENCES `PAG_lang` (`code_lang`),
      ADD CONSTRAINT `PAG_pages_lang_ibfk_1` FOREIGN KEY (`id_page`) REFERENCES `PAG_pages` (`id_page`);
    
    --
    -- Contraintes pour la table `PAG_purchases`
    --
    ALTER TABLE `PAG_purchases`
      ADD CONSTRAINT `PAG_purchases_ibfk_1` FOREIGN KEY (`id_acc`) REFERENCES `PAG_accounts` (`id_acc`),
      ADD CONSTRAINT `PAG_purchases_ibfk_2` FOREIGN KEY (`id_ad`) REFERENCES `PAG_ads` (`id_ad`),
      ADD CONSTRAINT `PAG_purchases_ibfk_3` FOREIGN KEY (`id_shop`) REFERENCES `PAG_shops` (`id_shop`);
    
    --
    -- Contraintes pour la table `PAG_purchases_options`
    --
    ALTER TABLE `PAG_purchases_options`
      ADD CONSTRAINT `PAG_purchases_options_ibfk_1` FOREIGN KEY (`id_purch`) REFERENCES `PAG_purchases` (`id_purch`);
    
    --
    -- Contraintes pour la table `PAG_regions_lang`
    --
    ALTER TABLE `PAG_regions_lang`
      ADD CONSTRAINT `PAG_regions_lang_ibfk_2` FOREIGN KEY (`code_lang`) REFERENCES `PAG_lang` (`code_lang`),
      ADD CONSTRAINT `PAG_regions_lang_ibfk_1` FOREIGN KEY (`id_reg`) REFERENCES `PAG_regions` (`id_reg`);
    
    --
    -- Contraintes pour la table `PAG_search_check`
    --
    ALTER TABLE `PAG_search_check`
      ADD CONSTRAINT `PAG_search_check_ibfk_2` FOREIGN KEY (`id_cat_opt`) REFERENCES `PAG_cat_opts` (`id_cat_opt`),
      ADD CONSTRAINT `PAG_search_check_ibfk_1` FOREIGN KEY (`id_cat`) REFERENCES `PAG_cat` (`id_cat`);
    
    --
    -- Contraintes pour la table `PAG_search_data`
    --
    ALTER TABLE `PAG_search_data`
      ADD CONSTRAINT `PAG_search_data_ibfk_2` FOREIGN KEY (`id_cat_opt`) REFERENCES `PAG_cat_opts` (`id_cat_opt`),
      ADD CONSTRAINT `PAG_search_data_ibfk_1` FOREIGN KEY (`id_cat`) REFERENCES `PAG_cat` (`id_cat`);
    
    --
    -- Contraintes pour la table `PAG_search_digital`
    --
    ALTER TABLE `PAG_search_digital`
      ADD CONSTRAINT `PAG_search_digital_ibfk_2` FOREIGN KEY (`id_cat_opt`) REFERENCES `PAG_cat_opts` (`id_cat_opt`),
      ADD CONSTRAINT `PAG_search_digital_ibfk_1` FOREIGN KEY (`id_cat`) REFERENCES `PAG_cat` (`id_cat`);
    
    --
    -- Contraintes pour la table `PAG_search_price`
    --
    ALTER TABLE `PAG_search_price`
      ADD CONSTRAINT `PAG_search_price_ibfk_2` FOREIGN KEY (`id_cat_opt`) REFERENCES `PAG_cat_opts` (`id_cat_opt`),
      ADD CONSTRAINT `PAG_search_price_ibfk_1` FOREIGN KEY (`id_cat`) REFERENCES `PAG_cat` (`id_cat`);
    
    --
    -- Contraintes pour la table `PAG_shops`
    --
    ALTER TABLE `PAG_shops`
      ADD CONSTRAINT `PAG_shops_ibfk_4` FOREIGN KEY (`id_reg`) REFERENCES `PAG_regions` (`id_reg`),
      ADD CONSTRAINT `PAG_shops_ibfk_1` FOREIGN KEY (`id_acc`) REFERENCES `PAG_accounts` (`id_acc`),
      ADD CONSTRAINT `PAG_shops_ibfk_2` FOREIGN KEY (`id_cat`) REFERENCES `PAG_cat` (`id_cat`),
      ADD CONSTRAINT `PAG_shops_ibfk_3` FOREIGN KEY (`id_county`) REFERENCES `PAG_counties` (`id_county`);
    
    --
    -- Contraintes pour la table `PAG_shops_comments`
    --
    ALTER TABLE `PAG_shops_comments`
      ADD CONSTRAINT `PAG_shops_comments_ibfk_1` FOREIGN KEY (`id_shop`) REFERENCES `PAG_shops` (`id_shop`);
    
    --
    -- Contraintes pour la table `PAG_shops_options`
    --
    ALTER TABLE `PAG_shops_options`
      ADD CONSTRAINT `PAG_shops_options_ibfk_1` FOREIGN KEY (`id_shop`) REFERENCES `PAG_shops` (`id_shop`);
    
    --
    -- Contraintes pour la table `PAG_shops_packs`
    --
    ALTER TABLE `PAG_shops_packs`
      ADD CONSTRAINT `PAG_shops_packs_ibfk_1` FOREIGN KEY (`id_acc`) REFERENCES `PAG_accounts` (`id_acc`);
    
    --
    -- Contraintes pour la table `PAG_val_check`
    --
    ALTER TABLE `PAG_val_check`
      ADD CONSTRAINT `PAG_val_check_ibfk_1` FOREIGN KEY (`id_cat_opt`) REFERENCES `PAG_cat_opts` (`id_cat_opt`);
    
    --
    -- Contraintes pour la table `PAG_val_check_lang`
    --
    ALTER TABLE `PAG_val_check_lang`
      ADD CONSTRAINT `PAG_val_check_lang_ibfk_3` FOREIGN KEY (`code_lang`) REFERENCES `PAG_lang` (`code_lang`),
      ADD CONSTRAINT `PAG_val_check_lang_ibfk_1` FOREIGN KEY (`id_cat_opt`) REFERENCES `PAG_cat_opts` (`id_cat_opt`),
      ADD CONSTRAINT `PAG_val_check_lang_ibfk_2` FOREIGN KEY (`id_val_check`) REFERENCES `PAG_val_check` (`id_val_check`);
    
    --
    -- Contraintes pour la table `PAG_val_data`
    --
    ALTER TABLE `PAG_val_data`
      ADD CONSTRAINT `PAG_val_data_ibfk_1` FOREIGN KEY (`id_cat_opt`) REFERENCES `PAG_cat_opts` (`id_cat_opt`);
    
    --
    -- Contraintes pour la table `PAG_val_data_lang`
    --
    ALTER TABLE `PAG_val_data_lang`
      ADD CONSTRAINT `PAG_val_data_lang_ibfk_2` FOREIGN KEY (`code_lang`) REFERENCES `PAG_lang` (`code_lang`),
      ADD CONSTRAINT `PAG_val_data_lang_ibfk_1` FOREIGN KEY (`id_cat_opt`) REFERENCES `PAG_cat_opts` (`id_cat_opt`);
    
    --
    -- Contraintes pour la table `PAG_val_digital`
    --
    ALTER TABLE `PAG_val_digital`
      ADD CONSTRAINT `PAG_val_digital_ibfk_1` FOREIGN KEY (`id_cat_opt`) REFERENCES `PAG_cat_opts` (`id_cat_opt`);
    
    --
    -- Contraintes pour la table `PAG_val_price`
    --
    ALTER TABLE `PAG_val_price`
      ADD CONSTRAINT `PAG_val_price_ibfk_1` FOREIGN KEY (`id_cat_opt`) REFERENCES `PAG_cat_opts` (`id_cat_opt`);
    COMMIT;
    
    /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
    /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
    /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

  2. #2
    Modérateur
    Avatar de escartefigue
    Homme Profil pro
    bourreau
    Inscrit en
    Mars 2010
    Messages
    10 134
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Loir et Cher (Centre)

    Informations professionnelles :
    Activité : bourreau
    Secteur : Finance

    Informations forums :
    Inscription : Mars 2010
    Messages : 10 134
    Points : 38 555
    Points
    38 555
    Billets dans le blog
    9
    Par défaut
    Bonjour,

    Pour ce besoin, il faut rechercher les contraintes foreign keys qui concernent une colonne (ou combinaison de colonnes) unique dans chacune des deux tables (donc ayant soit une contrainte PK, soit une contrainte unique de chaque côté).

    Notes :
    - c'est dangereux de faire les INSERT avant d'avoir posé les contraintes et créé les index correspondants pour les vérifier
    - c'est une drôle d'idée de déclarer les PK de type auto_increment après avoir alimenté les colonnes correspondantes manuellement dans les ordres insert !
    - les commentaires du script mentionnent "déchargement" alors qu'il précèdent un chargement par insert

    Un peu shadock tout ça : pourquoi faire simple quand on peut faire compliqué

    EDIT : à noter que le plus souvent, les relations 1,1 sont des erreurs de modélisation, mais pas toujours. On peut vouloir isoler une colonne obligatoire mais très gourmande (partitionnement vertical). Cas d'une image ou d'un extrait vidéo par exemple.

Discussions similaires

  1. Réponses: 6
    Dernier message: 05/11/2008, 13h06
  2. [DOM IE]:recuperer tous les input de type checkbox
    Par sleepy2002 dans le forum Général JavaScript
    Réponses: 2
    Dernier message: 09/12/2004, 18h38
  3. [CR] les champs de type string
    Par yvescollet dans le forum SAP Crystal Reports
    Réponses: 4
    Dernier message: 05/10/2004, 16h29
  4. [Relations] afficher les relations entre 2 tables
    Par dzincou dans le forum PostgreSQL
    Réponses: 5
    Dernier message: 14/01/2004, 17h07

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo