hilo.sql 601 KB
Newer Older
hujiebin's avatar
hujiebin committed
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 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421
-- MySQL dump 10.13  Distrib 5.7.33, for Linux (x86_64)
--
-- Host: 47.244.34.27    Database: hilo
-- ------------------------------------------------------
-- Server version	8.0.20

/*!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 utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `act_award_config`
--

DROP TABLE IF EXISTS `act_award_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_award_config` (
  `id` bigint unsigned NOT NULL COMMENT 'id',
  `task_id` smallint unsigned NOT NULL COMMENT '任务ID',
  `n` smallint unsigned NOT NULL COMMENT '序列号',
  `type` smallint unsigned NOT NULL COMMENT '奖品类型',
  `res_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'ID/贵族等级',
  `number` int unsigned NOT NULL COMMENT '数量',
  `duration` int unsigned NOT NULL DEFAULT '0' COMMENT '时长(天)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`,`task_id`,`n`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动奖励';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_award_record`
--

DROP TABLE IF EXISTS `act_award_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_award_record` (
  `activity_id` bigint unsigned NOT NULL,
  `type` int unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`activity_id`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动奖励发放记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_ballot`
--

DROP TABLE IF EXISTS `act_ballot`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_ballot` (
  `user_id` bigint unsigned NOT NULL COMMENT 'id',
  `ballot_num` bigint unsigned NOT NULL DEFAULT '0' COMMENT '金选票剩余可使用数量',
  `get_ballot_num` bigint unsigned NOT NULL DEFAULT '0' COMMENT '金选票获得的数量',
  `has_thumbs_up` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否获得了点赞卡0否1是',
  `is_thumbs_up` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否投出了点赞卡0否1是',
  `vote_ballot_num` bigint unsigned NOT NULL DEFAULT '0' COMMENT '别人投给我的金选票数量',
  `vote_thumbs_up_num` bigint unsigned NOT NULL DEFAULT '0' COMMENT '别人投给我的点赞卡数量',
  `cost_ballot_num` bigint unsigned NOT NULL DEFAULT '0' COMMENT '我投给别人的金选票数量',
  `tup_user_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '我把点赞卡投给了谁',
  `cost_diamond` bigint unsigned NOT NULL DEFAULT '0' COMMENT '已花费钻石',
  `imei` varchar(255) NOT NULL DEFAULT '' COMMENT '获得点赞卡的设备号',
  `ip` varchar(255) NOT NULL DEFAULT '' COMMENT '获得点赞卡的ip',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`user_id`),
  UNIQUE KEY `imei_idx` (`imei`) USING BTREE,
  UNIQUE KEY `ip_idx` (`ip`) USING BTREE,
  KEY `created_time_idx` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='沙特国家管理员选票活动';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_ballot_log`
--

DROP TABLE IF EXISTS `act_ballot_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_ballot_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT 'id',
  `receiver_id` bigint unsigned NOT NULL COMMENT '获得者id',
  `number` bigint unsigned NOT NULL COMMENT '金选票数量',
  `log_type` int unsigned NOT NULL COMMENT '类型1.金选票日志2.点赞卡日志',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_idx` (`user_id`) USING BTREE,
  KEY `rec_idx` (`receiver_id`) USING BTREE,
  KEY `ltype_idx` (`log_type`) USING BTREE,
  KEY `created_time_idx` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=248 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='沙特国家管理员选票活动日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_ballot_record`
--

DROP TABLE IF EXISTS `act_ballot_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_ballot_record` (
  `ac_id` bigint unsigned NOT NULL COMMENT '活动id',
  `user_id` bigint unsigned NOT NULL COMMENT 'id',
  `ballot_num` bigint unsigned NOT NULL DEFAULT '0' COMMENT '剩余可使用票数',
  `get_ballot_num` bigint unsigned NOT NULL DEFAULT '0' COMMENT '累计获得的数量',
  `has_thumbs_up` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否获得了点赞卡0否1是',
  `is_thumbs_up` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否投出了点赞卡0否1是',
  `vote_ballot_num` bigint unsigned NOT NULL DEFAULT '0' COMMENT '别人投给我的选票数量',
  `vote_thumbs_up_num` bigint unsigned NOT NULL DEFAULT '0' COMMENT '别人投给我的点赞卡数量',
  `cost_ballot_num` bigint unsigned NOT NULL DEFAULT '0' COMMENT '我投给别人的金选票数量',
  `tup_user_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '我把点赞卡投给了谁',
  `cost_diamond` bigint unsigned NOT NULL DEFAULT '0' COMMENT '已花费钻石',
  `imei` varchar(255) NOT NULL DEFAULT '' COMMENT '获得点赞卡的设备号',
  `ip` varchar(255) NOT NULL DEFAULT '' COMMENT '获得点赞卡的ip',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ac_id`,`user_id`),
  UNIQUE KEY `imei_idx` (`imei`) USING BTREE,
  UNIQUE KEY `ip_idx` (`ip`) USING BTREE,
  KEY `uid_idx` (`user_id`) USING BTREE,
  KEY `created_time_idx` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动票数记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_ballot_record_log`
--

DROP TABLE IF EXISTS `act_ballot_record_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_ballot_record_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `ac_id` bigint unsigned NOT NULL COMMENT '活动id',
  `user_id` bigint unsigned NOT NULL COMMENT 'id',
  `receiver_id` bigint unsigned NOT NULL COMMENT '获得者id',
  `number` bigint unsigned NOT NULL COMMENT '选票数量',
  `log_type` int unsigned NOT NULL COMMENT '类型1.选票日志2.点赞卡日志',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `ac_id_idx` (`ac_id`) USING BTREE,
  KEY `user_idx` (`user_id`) USING BTREE,
  KEY `rec_idx` (`receiver_id`) USING BTREE,
  KEY `ltype_idx` (`log_type`) USING BTREE,
  KEY `created_time_idx` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动票数记录日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_charge_record`
--

DROP TABLE IF EXISTS `act_charge_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_charge_record` (
  `activity_id` bigint unsigned NOT NULL,
  `user_id` bigint unsigned NOT NULL,
  `diamond_amount` bigint unsigned NOT NULL DEFAULT '0' COMMENT '充值的黄钻数',
  `price` bigint unsigned NOT NULL DEFAULT '0' COMMENT '充值的花费(美分)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `svip_level` int unsigned NOT NULL DEFAULT '0' COMMENT 'svip等级',
  PRIMARY KEY (`activity_id`,`user_id`),
  KEY `created_time_IDX` (`created_time`) USING BTREE,
  KEY `updated_time_IDX` (`updated_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动充值记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_family_month_rank_log`
--

DROP TABLE IF EXISTS `act_family_month_rank_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_family_month_rank_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `period` varchar(20) NOT NULL DEFAULT '' COMMENT '月份',
  `family_id` bigint unsigned NOT NULL COMMENT '家族id',
  `rank_family` int unsigned NOT NULL DEFAULT '0' COMMENT '家族排名',
  `rank_user` int unsigned NOT NULL DEFAULT '0' COMMENT '用户在家族中的家族排名',
  `user_id` bigint unsigned NOT NULL COMMENT 'id',
  `award` varchar(500) NOT NULL DEFAULT '' COMMENT '获得的奖励',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `period` (`period`,`family_id`,`rank_user`),
  KEY `user_idx` (`user_id`) USING BTREE,
  KEY `created_time` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='家族月度排行发奖日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_fruit_rank_config`
--

DROP TABLE IF EXISTS `act_fruit_rank_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_fruit_rank_config` (
  `id` bigint unsigned NOT NULL,
  `level` smallint unsigned NOT NULL COMMENT '级别',
  `medal_id` bigint unsigned NOT NULL COMMENT '勋章ID',
  `medal_duration` int unsigned NOT NULL COMMENT '勋章时长(单位天)',
  `headdress_id` bigint unsigned NOT NULL COMMENT '头饰ID',
  `headdress_duration` int NOT NULL COMMENT '头饰时长(单位秒, -1:无限)',
  `medal_id_times_five` bigint unsigned NOT NULL COMMENT '周榜连续5次奖励勋章ID',
  `medal_duration_times_five` int unsigned NOT NULL COMMENT '周榜连续5次奖励勋章时长(单位天)',
  `diamond_times_five` int unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `type` tinyint NOT NULL DEFAULT '1' COMMENT '配置类型1.周排行2.阶梯任务',
  `threshold` bigint NOT NULL DEFAULT '0' COMMENT '阈值,梯度奖励type=2时候用到',
  `gift_id` bigint NOT NULL DEFAULT '0' COMMENT '礼物id',
  `gift_duration` int NOT NULL DEFAULT '0' COMMENT '礼物时长,单位天',
  `gift_n` int NOT NULL DEFAULT '0' COMMENT '礼物数量',
  PRIMARY KEY (`id`),
  KEY `level_IDX` (`level`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='水果机下注排行奖励';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_fruit_record`
--

DROP TABLE IF EXISTS `act_fruit_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_fruit_record` (
  `period` date NOT NULL COMMENT '开始日期',
  `user_id` bigint unsigned NOT NULL,
  `diamond` bigint unsigned NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `take_award` tinyint NOT NULL DEFAULT '2' COMMENT '是否领取奖励 1:是 2:否',
  `area` tinyint NOT NULL DEFAULT '0' COMMENT '区域1.阿语2.非阿语',
  PRIMARY KEY (`period`,`user_id`,`area`),
  KEY `user_id_IDX` (`user_id`) USING BTREE,
  KEY `created_time_IDX` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='水果机投注记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_fruit_user_award`
--

DROP TABLE IF EXISTS `act_fruit_user_award`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_fruit_user_award` (
  `period` date NOT NULL COMMENT '开始日期',
  `user_id` bigint unsigned NOT NULL,
  `type` int unsigned NOT NULL COMMENT '1.排行榜奖励2.个人梯度奖励',
  `level` smallint unsigned NOT NULL COMMENT '级别',
  `diamond` int unsigned NOT NULL DEFAULT '0',
  `has_five_reward` tinyint unsigned NOT NULL COMMENT '是否获得周榜连续5次奖励',
  `award_data` varchar(1000) NOT NULL DEFAULT '' COMMENT '具体获得了哪些奖励',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`period`,`user_id`,`type`,`level`),
  KEY `user_id_IDX` (`user_id`,`type`) USING BTREE,
  KEY `level_IDX` (`type`,`level`) USING BTREE,
  KEY `created_time_IDX` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='水果机下注排行奖励发放记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_game_challenge_apply`
--

DROP TABLE IF EXISTS `act_game_challenge_apply`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_game_challenge_apply` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `game_type` int NOT NULL DEFAULT '0' COMMENT '游戏类型1.candy',
  `act_id` int NOT NULL DEFAULT '0' COMMENT '活动id',
  `user_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
  `svip_lv` int NOT NULL DEFAULT '0' COMMENT '报名时的等级',
  `need_diamond` int NOT NULL DEFAULT '0' COMMENT '领取所需条件(n盈利钻石)',
  `diamond` int NOT NULL DEFAULT '0' COMMENT '可获得的钻石',
  `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态 1未达到 2已领取',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '领取时间',
  `period` varchar(20) NOT NULL COMMENT '哪一天的挑战(东三区时间)',
  PRIMARY KEY (`id`),
  UNIQUE KEY `period` (`game_type`,`user_id`,`period`) USING BTREE,
  KEY `act_id` (`act_id`),
  KEY `user_id` (`user_id`),
  KEY `status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='游戏挑战活动-申请任务表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_game_challenge_data`
--

DROP TABLE IF EXISTS `act_game_challenge_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_game_challenge_data` (
  `period` date NOT NULL COMMENT '开始日期',
  `game_type` int NOT NULL DEFAULT '0' COMMENT '游戏类型1.candy',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `area` tinyint(1) NOT NULL COMMENT '区域 1:阿语 2:非阿语',
  `stake` bigint unsigned NOT NULL COMMENT '总参与钻石数',
  `award` bigint unsigned NOT NULL COMMENT '总中奖金额',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`period`,`game_type`,`user_id`,`area`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='游戏挑战活动日数据';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_game_challenge_prize`
--

DROP TABLE IF EXISTS `act_game_challenge_prize`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_game_challenge_prize` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `game_type` int NOT NULL DEFAULT '0' COMMENT '游戏类型1.candy',
  `act_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '活动id',
  `user_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据类型 1真实用户,2造假用户',
  `need_diamond` int NOT NULL DEFAULT '0' COMMENT '领取时候所需达到条件',
  `diamond` bigint unsigned NOT NULL DEFAULT '0' COMMENT '奖励钻石',
  `created_at` bigint unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  `period` varchar(20) NOT NULL COMMENT '哪天的挑战',
  PRIMARY KEY (`id`),
  UNIQUE KEY `period_only` (`game_type`,`act_id`,`user_id`,`period`) USING BTREE,
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='游戏挑战活动-领奖记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_gift_config`
--

DROP TABLE IF EXISTS `act_gift_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_gift_config` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `activity_id` bigint unsigned NOT NULL,
  `gift_id` bigint unsigned NOT NULL COMMENT '礼物id',
  `status` tinyint unsigned NOT NULL COMMENT '1-开;2-关',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `act_gift_idx` (`activity_id`,`gift_id`)
) ENGINE=InnoDB AUTO_INCREMENT=371 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动礼物配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_gift_record`
--

DROP TABLE IF EXISTS `act_gift_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_gift_record` (
  `activity_id` bigint unsigned NOT NULL,
  `send_user_id` bigint unsigned NOT NULL,
  `receive_user_id` bigint unsigned NOT NULL,
  `group_id` char(32) NOT NULL DEFAULT '',
  `diamond` bigint unsigned NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `team_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '战队id',
  `svip_sender` int unsigned NOT NULL DEFAULT '0' COMMENT '赠送人svip等级',
  `svip_receiver` int unsigned NOT NULL DEFAULT '0' COMMENT '收礼人svip等级',
  PRIMARY KEY (`activity_id`,`send_user_id`,`receive_user_id`,`group_id`),
  KEY `send_user_IDX` (`activity_id`,`receive_user_id`) USING BTREE,
  KEY `group_IDX` (`group_id`) USING BTREE,
  KEY `team_IDX` (`team_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动礼物记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_gift_record_cp`
--

DROP TABLE IF EXISTS `act_gift_record_cp`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_gift_record_cp` (
  `activity_id` bigint unsigned NOT NULL,
  `send_user_id` bigint unsigned NOT NULL,
  `receive_user_id` bigint unsigned NOT NULL,
  `group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `diamond` bigint unsigned NOT NULL DEFAULT '0',
  `cp` varchar(200) NOT NULL DEFAULT '' COMMENT '两个userid拼成的值(小:大)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `svip_level` int unsigned NOT NULL DEFAULT '0' COMMENT 'svip等级',
  `svip_sender` int unsigned NOT NULL DEFAULT '0' COMMENT '赠送人svip等级',
  `svip_receiver` int unsigned NOT NULL DEFAULT '0' COMMENT '收礼人svip等级',
  PRIMARY KEY (`activity_id`,`send_user_id`,`receive_user_id`,`group_id`),
  KEY `send_user_IDX` (`activity_id`,`receive_user_id`) USING BTREE,
  KEY `group_IDX` (`group_id`) USING BTREE,
  KEY `cp_IDX` (`cp`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='cp活动礼物记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_highest_award_config`
--

DROP TABLE IF EXISTS `act_highest_award_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_highest_award_config` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `ac_id` bigint unsigned NOT NULL COMMENT '活动id',
  `type` int unsigned NOT NULL COMMENT '奖励类型1.勋章',
  `res_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '道具id',
  `diamond` int unsigned NOT NULL COMMENT '黄钻要求数量',
  `number` int unsigned NOT NULL COMMENT '数量',
  `duration` int unsigned NOT NULL DEFAULT '0' COMMENT '时长(天)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `acid_idx` (`ac_id`) USING BTREE,
  KEY `type_idx` (`type`) USING BTREE,
  KEY `created_time_idx` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='活动奖励-取最高符合';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_lottery_config`
--

DROP TABLE IF EXISTS `act_lottery_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_lottery_config` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `type` int NOT NULL COMMENT '类型1.低概率2.高概率',
  `ac_id` bigint unsigned NOT NULL COMMENT '活动id',
  `diamond` bigint unsigned NOT NULL COMMENT '钻石数量',
  `noble_level` bigint unsigned NOT NULL COMMENT '贵族等级',
  `noble_day` bigint unsigned NOT NULL COMMENT '贵族天数',
  `prize_value` bigint unsigned NOT NULL COMMENT '奖品价值',
  `prob` bigint unsigned NOT NULL COMMENT '中奖概率',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `index` smallint unsigned NOT NULL DEFAULT '0' COMMENT '客户端显示的位置',
  `property_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '座驾id',
  `property_duration` int unsigned NOT NULL DEFAULT '0' COMMENT '座驾天数',
  `headdress_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '头饰id',
  `headdress_duration` int unsigned NOT NULL DEFAULT '0' COMMENT '头饰天数',
  `medal_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '勋章id',
  `medal_duration` int unsigned NOT NULL DEFAULT '0' COMMENT '勋章天数',
  PRIMARY KEY (`id`),
  KEY `ac_id` (`ac_id`) USING BTREE,
  KEY `created_time` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动抽奖配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_lottery_info`
--

DROP TABLE IF EXISTS `act_lottery_info`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_lottery_info` (
  `ac_id` bigint unsigned NOT NULL COMMENT '活动id',
  `user_id` bigint unsigned NOT NULL COMMENT 'id',
  `left_times` bigint unsigned NOT NULL DEFAULT '0' COMMENT '剩余总可使用抽奖次数',
  `get_times` bigint unsigned NOT NULL DEFAULT '0' COMMENT '累计获得的次数',
  `high_times` int NOT NULL DEFAULT '0' COMMENT 'left_times中,剩余高概率抽奖次数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ac_id`,`user_id`),
  KEY `uid_idx` (`user_id`) USING BTREE,
  KEY `created_time_idx` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动抽奖信息';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_lottery_log`
--

DROP TABLE IF EXISTS `act_lottery_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_lottery_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `ac_id` bigint unsigned NOT NULL COMMENT '活动id',
  `user_id` bigint unsigned NOT NULL COMMENT 'id',
  `res_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '道具id',
  `res_day` bigint unsigned NOT NULL DEFAULT '0' COMMENT '道具有效天数',
  `diamond` bigint unsigned NOT NULL DEFAULT '0' COMMENT '钻石数量',
  `noble_level` bigint unsigned NOT NULL DEFAULT '0' COMMENT '贵族等级',
  `noble_day` bigint unsigned NOT NULL DEFAULT '0' COMMENT '贵族天数',
  `prize_value` bigint unsigned NOT NULL DEFAULT '0' COMMENT '奖品价值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `property_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '座驾id',
  `property_duration` int unsigned NOT NULL DEFAULT '0' COMMENT '座驾天数',
  `headdress_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '头饰id',
  `headdress_duration` int unsigned NOT NULL DEFAULT '0' COMMENT '头饰天数',
  `medal_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '勋章id',
  `medal_duration` int unsigned NOT NULL DEFAULT '0' COMMENT '勋章天数',
  PRIMARY KEY (`id`),
  KEY `ac_id` (`ac_id`) USING BTREE,
  KEY `user_idx` (`user_id`) USING BTREE,
  KEY `prize_value` (`prize_value`) USING BTREE,
  KEY `created_time` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=163 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动抽奖中奖日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_point`
--

DROP TABLE IF EXISTS `act_point`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_point` (
  `ac_id` bigint unsigned NOT NULL COMMENT '活动id',
  `user_id` bigint unsigned NOT NULL COMMENT 'id',
  `point` bigint unsigned NOT NULL DEFAULT '0' COMMENT '活动积分',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ac_id`,`user_id`),
  KEY `uid_idx` (`user_id`) USING BTREE,
  KEY `created_time_idx` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动积分记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_point_log`
--

DROP TABLE IF EXISTS `act_point_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_point_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `ac_id` bigint unsigned NOT NULL COMMENT '活动id',
  `user_id` bigint unsigned NOT NULL COMMENT 'id',
  `point` bigint unsigned NOT NULL DEFAULT '0' COMMENT '积分数量',
  `add_reduce` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '增加减少',
  `remark` varchar(10) NOT NULL DEFAULT '' COMMENT '备注',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `ac_id` (`ac_id`) USING BTREE,
  KEY `user_idx` (`user_id`) USING BTREE,
  KEY `created_time` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=406 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动积分日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_record`
--

DROP TABLE IF EXISTS `act_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_record` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `type` smallint unsigned NOT NULL,
  `name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '活动名称',
  `banner` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'banner图片',
  `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `begin_time` datetime NOT NULL COMMENT '活动开始时间',
  `end_time` datetime NOT NULL COMMENT '活动结束时间',
  `status` smallint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `charge_switch` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否记录充值0否1是',
  `is_cp` tinyint NOT NULL DEFAULT '0' COMMENT '是否cp活动礼物',
  `area` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '0.全部区域;1.阿语区;2.除了阿语区的其他地区',
  `relate_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '关联的活动id',
  `ban_dealer` tinyint NOT NULL DEFAULT '1' COMMENT '是否禁止币商上榜',
  `svip_send` tinyint NOT NULL DEFAULT '0' COMMENT '送礼者所需svip等级',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=508 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='通用活动';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_record_area`
--

DROP TABLE IF EXISTS `act_record_area`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_record_area` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `act_id` bigint unsigned NOT NULL COMMENT '活动id',
  `relate_id` bigint unsigned NOT NULL COMMENT '关联的活动id',
  `country` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '国家',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `relate_id_IDX` (`relate_id`,`country`),
  KEY `act_id_IDX` (`act_id`,`country`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动举办的国家区域';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_slot_challenge_apply`
--

DROP TABLE IF EXISTS `act_slot_challenge_apply`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_slot_challenge_apply` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `act_id` int NOT NULL DEFAULT '0' COMMENT '活动id',
  `user_id` int NOT NULL DEFAULT '0' COMMENT '用户id',
  `star_id` int NOT NULL DEFAULT '0' COMMENT '星级',
  `check_id` int NOT NULL DEFAULT '0' COMMENT '选中的任务id',
  `svip_lv` int NOT NULL DEFAULT '0' COMMENT '报名时的等级',
  `slot_lv` int NOT NULL DEFAULT '0' COMMENT '报名时的slot游戏等级',
  `reached_diamond` int NOT NULL DEFAULT '0' COMMENT '领取所需条件(n盈利钻石)',
  `diamond` int NOT NULL DEFAULT '0' COMMENT '可获得的钻石',
  `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态 1未达到 2已领取',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '领取时间',
  `period` varchar(20) NOT NULL COMMENT '哪一天的挑战(东三区时间)',
  PRIMARY KEY (`id`),
  UNIQUE KEY `period` (`user_id`,`period`) USING BTREE,
  KEY `act_id` (`act_id`),
  KEY `user_id` (`user_id`),
  KEY `status` (`status`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='slots挑战-申请任务表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_slot_challenge_data`
--

DROP TABLE IF EXISTS `act_slot_challenge_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_slot_challenge_data` (
  `period` date NOT NULL COMMENT '开始日期',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `area` tinyint(1) NOT NULL COMMENT '区域 1:阿语 2:非阿语',
  `stake` bigint unsigned NOT NULL COMMENT '总参与钻石数',
  `award` bigint unsigned NOT NULL COMMENT '总中奖金额',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`period`,`user_id`,`area`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='slot挑战活动日数据';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_slot_challenge_prize`
--

DROP TABLE IF EXISTS `act_slot_challenge_prize`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_slot_challenge_prize` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `act_id` int NOT NULL DEFAULT '0' COMMENT '活动id',
  `user_id` int NOT NULL DEFAULT '0' COMMENT '用户id',
  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据类型 1真实用户,2造假用户',
  `reached_diamond` int NOT NULL DEFAULT '0' COMMENT '领取时候所需达到条件',
  `diamond` int NOT NULL DEFAULT '0' COMMENT '奖励钻石',
  `created_at` int NOT NULL DEFAULT '0' COMMENT '创建时间',
  `period` varchar(20) NOT NULL COMMENT '哪天的挑战',
  PRIMARY KEY (`id`),
  UNIQUE KEY `period_only` (`act_id`,`user_id`,`period`) USING BTREE,
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7335 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='slots挑战-领奖记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_slot_day_rank_area`
--

DROP TABLE IF EXISTS `act_slot_day_rank_area`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_slot_day_rank_area` (
  `period` date NOT NULL COMMENT '开始日期',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `area` tinyint(1) NOT NULL COMMENT '区域 1:阿语 2:非阿语',
  `stake` bigint unsigned NOT NULL COMMENT '总参与钻石数',
  `award` bigint unsigned NOT NULL COMMENT '总中奖金额',
  `take_award` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否领取奖励 1:是 2:否',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`period`,`user_id`,`area`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='slot分区日榜';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_slot_month_config`
--

DROP TABLE IF EXISTS `act_slot_month_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_slot_month_config` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `prob` bigint unsigned NOT NULL COMMENT '中奖概率',
  `diamond` bigint unsigned NOT NULL COMMENT '钻石数量',
  `gift_id` bigint unsigned NOT NULL COMMENT '礼物id',
  `gift_num` bigint unsigned NOT NULL COMMENT '礼物数量',
  `noble_level` bigint unsigned NOT NULL COMMENT '贵族等级',
  `noble_day` bigint unsigned NOT NULL COMMENT '贵族天数',
  `headwear_id` bigint unsigned NOT NULL COMMENT '头饰id',
  `headwear_day` bigint unsigned NOT NULL COMMENT '头饰天数',
  `prize_value` bigint unsigned NOT NULL COMMENT '奖品价值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='slot月度活动抽奖配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_slot_month_prize`
--

DROP TABLE IF EXISTS `act_slot_month_prize`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_slot_month_prize` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `act_id` int NOT NULL DEFAULT '0' COMMENT '活动id',
  `user_id` int NOT NULL DEFAULT '0' COMMENT '用户id',
  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据类型 1真实用户,2造假用户',
  `reached_diamond` int NOT NULL DEFAULT '0' COMMENT '领取时候所需达到条件',
  `award_id` int NOT NULL DEFAULT '0' COMMENT '获得的奖励配置的id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `u_idx` (`act_id`,`user_id`) USING BTREE,
  KEY `user_id` (`user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='slots月度活动-领奖记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_slot_week_rank_area`
--

DROP TABLE IF EXISTS `act_slot_week_rank_area`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_slot_week_rank_area` (
  `period` date NOT NULL COMMENT '开始日期',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `area` tinyint(1) NOT NULL COMMENT '区域 1:阿语 2:非阿语',
  `stake` bigint unsigned NOT NULL COMMENT '总参与钻石数',
  `award` bigint unsigned NOT NULL COMMENT '总中奖金额',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`period`,`user_id`,`area`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='slot分区周榜';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_slot_week_rank_config`
--

DROP TABLE IF EXISTS `act_slot_week_rank_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_slot_week_rank_config` (
  `id` bigint unsigned NOT NULL,
  `type` tinyint NOT NULL DEFAULT '1' COMMENT '类型 1: 排行榜奖励 2:梯度奖励',
  `threshold` bigint NOT NULL DEFAULT '0' COMMENT '阈值,梯度奖励type=2时候用到',
  `level` smallint unsigned NOT NULL COMMENT '级别',
  `medal_id` bigint unsigned NOT NULL COMMENT '勋章ID',
  `medal_duration` int unsigned NOT NULL COMMENT '勋章时长(单位天)',
  `headdress_id` bigint unsigned NOT NULL COMMENT '头饰ID',
  `headdress_duration` int NOT NULL COMMENT '头饰时长(单位秒, -1:无限)',
  `medal_id_times_five` bigint unsigned NOT NULL COMMENT '周榜连续5次奖励勋章ID',
  `medal_duration_times_five` int unsigned NOT NULL COMMENT '周榜连续5次奖励勋章时长(单位天)',
  `diamond_times_five` int unsigned NOT NULL,
  `gift_id` bigint NOT NULL DEFAULT '0' COMMENT '礼物id',
  `gift_duration` int NOT NULL DEFAULT '0' COMMENT '礼物时长,单位天',
  `gift_n` int NOT NULL DEFAULT '0' COMMENT '礼物数量',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `level_IDX` (`level`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='slot周活动排行奖励';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_slot_week_rank_user_award`
--

DROP TABLE IF EXISTS `act_slot_week_rank_user_award`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_slot_week_rank_user_award` (
  `period` date NOT NULL COMMENT '开始日期',
  `area` tinyint NOT NULL COMMENT '区域 1:阿语 2:非阿语',
  `user_id` bigint unsigned NOT NULL,
  `type` int unsigned NOT NULL COMMENT '1.排行榜奖励2.个人梯度奖励',
  `level` smallint unsigned NOT NULL COMMENT '级别',
  `diamond` int unsigned NOT NULL DEFAULT '0',
  `has_five_reward` tinyint unsigned NOT NULL COMMENT '是否获得周榜连续4次奖励',
  `award_data` varchar(1000) NOT NULL DEFAULT '' COMMENT '具体获得了哪些奖励',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  UNIQUE KEY `uni_indx` (`period`,`area`,`user_id`,`type`,`level`) USING BTREE,
  KEY `user_id_IDX` (`user_id`,`type`) USING BTREE,
  KEY `level_IDX` (`type`,`level`) USING BTREE,
  KEY `created_time_IDX` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='slot下注排行奖励发放记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_task_config`
--

DROP TABLE IF EXISTS `act_task_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_task_config` (
  `activity_id` bigint unsigned NOT NULL,
  `task_id` smallint unsigned NOT NULL COMMENT '任务ID',
  `type` smallint unsigned NOT NULL COMMENT '任务类型:1-梯度奖;2-个人送礼排行;3-个人收礼排行;4-房间送礼排行',
  `name` varchar(64) NOT NULL COMMENT '任务名称',
  `threshold` int unsigned NOT NULL DEFAULT '0' COMMENT '任务触发值',
  `level` smallint unsigned NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `diamond_pool` int unsigned NOT NULL DEFAULT '0' COMMENT '钻石瓜分奖池',
  `diamond_people` int unsigned NOT NULL DEFAULT '0' COMMENT '奖池瓜分人数',
  `diamond_from` smallint NOT NULL DEFAULT '0' COMMENT '奖池关联类型:1-个人送礼排行',
  `svip_limit` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否打开svip限制0否1是',
  PRIMARY KEY (`activity_id`,`task_id`),
  UNIQUE KEY `type_level_idx` (`activity_id`,`type`,`level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动任务';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_team`
--

DROP TABLE IF EXISTS `act_team`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_team` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `activity_id` bigint unsigned NOT NULL,
  `user_id` bigint unsigned NOT NULL COMMENT '用户id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `act_uid_IDX` (`activity_id`,`user_id`),
  KEY `created_time_IDX` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动战队信息';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_team_user`
--

DROP TABLE IF EXISTS `act_team_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_team_user` (
  `activity_id` bigint unsigned NOT NULL,
  `user_id` bigint unsigned NOT NULL COMMENT '用户id',
  `team_id` bigint unsigned NOT NULL COMMENT 'act_team id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`activity_id`,`user_id`),
  KEY `team_IDX` (`team_id`),
  KEY `created_time_IDX` (`created_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动战队用户信息';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `act_user_award`
--

DROP TABLE IF EXISTS `act_user_award`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `act_user_award` (
  `activity_id` bigint unsigned NOT NULL,
  `user_id` bigint unsigned NOT NULL,
  `type` int unsigned NOT NULL,
  `level` smallint unsigned NOT NULL,
  `diamond` int unsigned NOT NULL DEFAULT '0',
  `status` tinyint unsigned NOT NULL COMMENT '领取状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`activity_id`,`user_id`,`type`,`level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通用活动领奖记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_award_config`
--

DROP TABLE IF EXISTS `activity_award_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_award_config` (
  `id` bigint unsigned NOT NULL,
  `level` smallint unsigned NOT NULL COMMENT '级别',
  `diamond` int unsigned NOT NULL,
  `noble_level` smallint unsigned NOT NULL COMMENT '贵族等级',
  `noble_duration` int unsigned NOT NULL COMMENT '贵族时长(天)',
  `headdress_id` bigint unsigned NOT NULL COMMENT '头饰ID',
  `headdress_duration` int NOT NULL COMMENT '头饰时长(单位秒, -1:无限)',
  `property_id` bigint unsigned NOT NULL COMMENT '坐骑ID',
  `property_duration` int NOT NULL COMMENT '坐骑时长(单位秒, -1:无限)',
  `medal_id` bigint unsigned NOT NULL COMMENT '勋章ID',
  `medal_duration` int unsigned NOT NULL COMMENT '勋章时长(单位天)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`,`level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_billboard`
--

DROP TABLE IF EXISTS `activity_billboard`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_billboard` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `activity_id` bigint NOT NULL COMMENT '活动ID',
  `start_time` timestamp NOT NULL COMMENT '开始时间',
  `end_time` timestamp NOT NULL COMMENT '结束时间',
  `reward_time` timestamp NULL DEFAULT NULL COMMENT '发奖时间',
  `new_time` timestamp NULL DEFAULT NULL COMMENT '重新开始时间',
  `is_cycle` tinyint NOT NULL DEFAULT '0' COMMENT '是否周期',
  `n_cycle` int NOT NULL DEFAULT '0' COMMENT '周期次数',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `status` tinyint NOT NULL,
  `reward` tinyint NOT NULL DEFAULT '1' COMMENT '是否已经发放奖励(1:未发放 2:已经发放)',
  `type` tinyint NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`activity_id`),
  KEY `Index_2` (`end_time`,`start_time`)
) ENGINE=InnoDB AUTO_INCREMENT=7401 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动—榜单';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_billboard_be_like_config`
--

DROP TABLE IF EXISTS `activity_billboard_be_like_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_billboard_be_like_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `cycle` int NOT NULL COMMENT '周期(单位秒)',
  `woman_first_diamond` int NOT NULL COMMENT '女性第一名钻石数量',
  `woman_second_diamond` int NOT NULL COMMENT '女性第二名钻石数量',
  `woman_third_diamond` int NOT NULL COMMENT '女性第三名钻石数量',
  `woman_four_diamond` int NOT NULL COMMENT '女性第四名钻石数量',
  `woman_five_diamond` int NOT NULL COMMENT '女性第五名钻石数量',
  `woman_six_diamond` int NOT NULL COMMENT '女性第六名钻石数量',
  `woman_seven_diamond` int NOT NULL COMMENT '女性第七名钻石数量',
  `woman_eight_diamond` int NOT NULL COMMENT '女性第八名钻石数量',
  `woman_nine_diamond` int NOT NULL COMMENT '女性第九名钻石数量',
  `woman_ten_diamond` int NOT NULL COMMENT '女性第十名钻石数量',
  `woman_first_property_id` bigint NOT NULL COMMENT '女性第一名坐骑ID',
  `woman_second_property_id` bigint NOT NULL COMMENT '女性第二名坐骑ID',
  `woman_third_property_id` bigint NOT NULL COMMENT '女性第三名坐骑ID',
  `woman_fout_property_id` bigint NOT NULL COMMENT '女性第四名坐骑ID',
  `woman_five_property_id` bigint NOT NULL COMMENT '女性第五名坐骑ID',
  `woman_six_property_id` bigint NOT NULL COMMENT '女性第六名坐骑ID',
  `woman_seven_property_id` bigint NOT NULL COMMENT '女性第七名坐骑ID',
  `woman_eight_property_id` bigint NOT NULL COMMENT '女性第八名坐骑ID',
  `woman_nine_property_id` bigint NOT NULL COMMENT '女性第九名坐骑ID',
  `woman_ten_property_id` bigint NOT NULL COMMENT '女性第十名坐骑ID',
  `woman_first_property_duration` int NOT NULL COMMENT '女性第一名坐骑时长(单位秒, -1:无限)',
  `woman_second_property_duration` int NOT NULL COMMENT '女性第二名坐骑时长(单位秒, -1:无限)',
  `woman_third_property_duration` int NOT NULL COMMENT '女性第三名坐骑时长(单位秒, -1:无限)',
  `woman_fout_property_duration` int NOT NULL COMMENT '女性第四名坐骑时长(单位秒, -1:无限)',
  `woman_five_property_duration` int NOT NULL COMMENT '女性第五名坐骑时长(单位秒, -1:无限)',
  `woman_six_property_duration` int NOT NULL COMMENT '女性第六名坐骑时长(单位秒, -1:无限)',
  `woman_seven_property_duration` int NOT NULL COMMENT '女性第七名坐骑时长(单位秒, -1:无限)',
  `woman_eight_property_duration` int NOT NULL COMMENT '女性第八名坐骑时长(单位秒, -1:无限)',
  `woman_nine_property_duration` int NOT NULL COMMENT '女性第九名坐骑时长(单位秒, -1:无限)',
  `woman_ten_property_duration` int NOT NULL COMMENT '女性第十名坐骑时长(单位秒, -1:无限)',
  `woman_first_headwear_id` bigint NOT NULL DEFAULT '0' COMMENT '女性第一名坐骑ID',
  `woman_second_headwear_id` bigint NOT NULL COMMENT '女性第二名坐骑ID',
  `woman_third_headwear_id` bigint NOT NULL COMMENT '女性第三名坐骑ID',
  `woman_fout_headwear_id` bigint NOT NULL COMMENT '女性第四名坐骑ID',
  `woman_five_headwear_id` bigint NOT NULL COMMENT '女性第五名坐骑ID',
  `woman_six_headwear_id` bigint NOT NULL COMMENT '女性第六名坐骑ID',
  `woman_seven_headwear_id` bigint NOT NULL COMMENT '女性第七名坐骑ID',
  `woman_eight_headwear_id` bigint NOT NULL COMMENT '女性第八名坐骑ID',
  `woman_nine_headwear_id` bigint NOT NULL COMMENT '女性第九名坐骑ID',
  `woman_ten_headwear_id` bigint NOT NULL COMMENT '女性第十名坐骑ID',
  `woman_first_headwear_duration` int NOT NULL COMMENT '女性第一名坐骑时长(单位秒, -1:无限)',
  `woman_second_headwear_duration` int NOT NULL COMMENT '女性第二名坐骑时长(单位秒, -1:无限)',
  `woman_third_headwear_duration` int NOT NULL COMMENT '女性第三名坐骑时长(单位秒, -1:无限)',
  `woman_fout_headwear_duration` int NOT NULL COMMENT '女性第四名坐骑时长(单位秒, -1:无限)',
  `woman_five_headwear_duration` int NOT NULL COMMENT '女性第五名坐骑时长(单位秒, -1:无限)',
  `woman_six_headwear_duration` int NOT NULL COMMENT '女性第六名坐骑时长(单位秒, -1:无限)',
  `woman_seven_headwear_duration` int NOT NULL COMMENT '女性第七名坐骑时长(单位秒, -1:无限)',
  `woman_eight_headwear_duration` int NOT NULL COMMENT '女性第八名坐骑时长(单位秒, -1:无限)',
  `woman_nine_headwear_duration` int NOT NULL COMMENT '女性第九名坐骑时长(单位秒, -1:无限)',
  `woman_ten_headwear_duration` int NOT NULL COMMENT '女性第十名坐骑时长(单位秒, -1:无限)',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1112 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动榜单被喜欢配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_billboard_config`
--

DROP TABLE IF EXISTS `activity_billboard_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_billboard_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `talk_time` int NOT NULL COMMENT '通话时长\r\n            ',
  `cycle` int NOT NULL COMMENT '周期(单位秒)',
  `man_first_diamond` int NOT NULL COMMENT '男性第一名钻石数量',
  `man_second_diamond` int NOT NULL COMMENT '男性第二名钻石数量',
  `man_third_diamond` int NOT NULL COMMENT '男性第三名钻石数量',
  `man_first_property_id` bigint NOT NULL COMMENT '男性第一名坐骑ID',
  `man_second_property_id` bigint NOT NULL COMMENT '男性第二名坐骑ID',
  `man_third_property_id` bigint NOT NULL COMMENT '男性第三名坐骑ID',
  `man_first_property_duration` int NOT NULL COMMENT '男性第一名坐骑时长(单位秒, -1:无限)',
  `man_second_property_duration` int NOT NULL COMMENT '男性第二名坐骑时长(单位秒, -1:无限)',
  `man_third_property_duration` int NOT NULL COMMENT '男性第三名坐骑时长(单位秒, -1:无限)',
  `woman_first_diamond` int NOT NULL COMMENT '女性第一名钻石数量',
  `woman_second_diamond` int NOT NULL COMMENT '女性第二名钻石数量',
  `woman_third_diamond` int NOT NULL COMMENT '女性第三名钻石数量',
  `woman_first_property_id` bigint NOT NULL COMMENT '女性第一名坐骑ID',
  `woman_second_property_id` bigint NOT NULL COMMENT '女性第二名坐骑ID',
  `woman_third_property_id` bigint NOT NULL COMMENT '女性第三名坐骑ID',
  `woman_first_property_duration` int NOT NULL COMMENT '女性第一名坐骑时长(单位秒, -1:无限)',
  `woman_second_property_duration` int NOT NULL COMMENT '女性第二名坐骑时长(单位秒, -1:无限)',
  `woman_third_property_duration` int NOT NULL COMMENT '女性第三名坐骑时长(单位秒, -1:无限)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动榜单配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_billboard_cp_config`
--

DROP TABLE IF EXISTS `activity_billboard_cp_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_billboard_cp_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `cycle` int NOT NULL COMMENT '周期(单位秒)',
  `first_diamond` int NOT NULL COMMENT '第一名钻石数量',
  `second_diamond` int NOT NULL COMMENT '第二名钻石数量',
  `third_diamond` int NOT NULL COMMENT '第三名钻石数量',
  `woman_first_headwear_id` bigint NOT NULL COMMENT '女性第一名坐骑ID',
  `woman_second_headwear_id` bigint NOT NULL COMMENT '女性第二名坐骑ID',
  `woman_third_headwear_id` bigint NOT NULL COMMENT '女性第三名坐骑ID',
  `woman_first_headwear_duration` int NOT NULL COMMENT '女性第一名坐骑时长(单位秒, -1:无限)',
  `woman_second_headwear_duration` int NOT NULL COMMENT '女性第二名坐骑时长(单位秒, -1:无限)',
  `woman_third_headwear_duration` int NOT NULL COMMENT '女性第三名坐骑时长(单位秒, -1:无限)',
  `man_first_headwear_id` bigint NOT NULL COMMENT '男性第一名坐骑ID',
  `man_second_headwear_id` bigint NOT NULL COMMENT '男性第二名坐骑ID',
  `man_third_headwear_id` bigint NOT NULL COMMENT '男性第三名坐骑ID',
  `man_first_headwear_duration` int NOT NULL COMMENT '男性第一名坐骑时长(单位秒, -1:无限)',
  `man_second_headwear_duration` int NOT NULL COMMENT '男性第二名坐骑时长(单位秒, -1:无限)',
  `man_third_headwear_duration` int NOT NULL COMMENT '男性第三名坐骑时长(单位秒, -1:无限)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `man_second_property_id` bigint NOT NULL COMMENT '男性第二名坐骑ID',
  `man_third_property_id` bigint NOT NULL COMMENT '男性第三名坐骑ID',
  `man_second_property_duration` int NOT NULL COMMENT '男性第二名坐骑时长(单位秒, -1:无限)',
  `man_third_property_duration` int NOT NULL COMMENT '男性第三名坐骑时长(单位秒, -1:无限)',
  `woman_second_property_id` bigint NOT NULL COMMENT '女性第二名坐骑ID',
  `woman_third_property_id` bigint NOT NULL COMMENT '女性第三名坐骑ID',
  `woman_second_property_duration` int NOT NULL COMMENT '女性第二名坐骑时长(单位秒, -1:无限)',
  `woman_third_property_duration` int NOT NULL COMMENT '女性第三名坐骑时长(单位秒, -1:无限)',
  `man_first_property_id` bigint NOT NULL COMMENT '男性第一名坐骑ID',
  `woman_first_property_id` bigint NOT NULL COMMENT '女性第一名坐骑ID',
  `man_first_property_duration` bigint NOT NULL COMMENT '男性第一名坐骑时长',
  `woman_first_property_duration` bigint NOT NULL COMMENT '女性第一名坐骑时长',
  `count_top1_medal_id` bigint NOT NULL DEFAULT '0',
  `count_top1_medal_duration` bigint NOT NULL,
  `count_top1_num` int NOT NULL,
  `count_top2_medal_id` bigint NOT NULL DEFAULT '0',
  `count_top2_medal_duration` bigint NOT NULL,
  `count_top2_num` int NOT NULL,
  `count_top3_medal_id` bigint NOT NULL DEFAULT '0',
  `count_top3_medal_duration` bigint NOT NULL,
  `count_top3_num` int NOT NULL,
  `top3_limit` int NOT NULL,
  `first_noble_level` int NOT NULL,
  `first_noble_duration` int NOT NULL,
  `second_noble_level` int DEFAULT NULL,
  `second_noble_duration` int DEFAULT NULL,
  `third_noble_level` int DEFAULT NULL,
  `third_noble_duration` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_billboard_pk`
--

DROP TABLE IF EXISTS `activity_billboard_pk`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_billboard_pk` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `type` tinyint NOT NULL COMMENT '类型(1:2:匹配喜欢)',
  `activity_billboard_id` bigint NOT NULL COMMENT '榜单ID',
  `id1` bigint NOT NULL COMMENT 'id1',
  `id2` bigint NOT NULL COMMENT 'id2',
  `status` tinyint NOT NULL COMMENT 'status',
  `win_id` bigint NOT NULL COMMENT 'win_id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`activity_billboard_id`,`id1`,`id2`),
  UNIQUE KEY `activity_billboard_id` (`activity_billboard_id`,`id1`),
  UNIQUE KEY `activity_billboard_id_2` (`activity_billboard_id`,`id2`) USING BTREE,
  UNIQUE KEY `activity_billboard_id_3` (`activity_billboard_id`,`id2`,`id1`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=202 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动榜单PK';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_billboard_reward`
--

DROP TABLE IF EXISTS `activity_billboard_reward`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_billboard_reward` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `activity_billboard_user_id` bigint NOT NULL COMMENT '活动榜单用户ID',
  `group_uid` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `diamond` int NOT NULL COMMENT '钻石数量',
  `property_id` bigint NOT NULL COMMENT '坐骑ID',
  `property_duration` int NOT NULL COMMENT '坐骑时长(单位秒, -1:无限)',
  `headwear_id` bigint NOT NULL COMMENT '坐骑ID',
  `headwear_duration` int NOT NULL COMMENT '坐骑时长(单位秒, -1:无限)',
  `medal_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '勋章ID',
  `medal_duration` int unsigned NOT NULL DEFAULT '0' COMMENT '勋章时长(单位:天)',
  `noble_leave` int NOT NULL,
  `noble_duration` int NOT NULL,
  `opportunity` tinyint NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `AK_Key_2` (`activity_billboard_user_id`,`user_id`),
  KEY `Index_1` (`activity_billboard_user_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6884 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动榜单奖励';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_billboard_trigger`
--

DROP TABLE IF EXISTS `activity_billboard_trigger`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_billboard_trigger` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `activity_billboard_id` bigint NOT NULL COMMENT '榜单ID',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `type` tinyint NOT NULL COMMENT '活动类型',
  `trigger_id` bigint NOT NULL COMMENT '条件ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`activity_billboard_id`,`user_id`,`trigger_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1908 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动榜单触发结果';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_billboard_user`
--

DROP TABLE IF EXISTS `activity_billboard_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_billboard_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `activity_billboard_id` bigint NOT NULL COMMENT '榜单ID',
  `user_id` bigint NOT NULL COMMENT '用户ID/CP_ID',
  `score` int NOT NULL COMMENT '分数',
  `type` tinyint NOT NULL DEFAULT '1',
  `history` tinyint NOT NULL DEFAULT '2' COMMENT '1:是历史记录 2:不是历史记录(结算了,才算历史记录)',
  `n` int NOT NULL DEFAULT '0' COMMENT '排名(只有history=1)的情况才有效',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`activity_billboard_id`,`user_id`),
  KEY `Index_1` (`activity_billboard_id`,`score`,`updated_time`) USING BTREE,
  KEY `activity_billboard_id` (`activity_billboard_id`,`history`,`score`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4277 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动榜单参与用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_billboard_user_detail`
--

DROP TABLE IF EXISTS `activity_billboard_user_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_billboard_user_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `activity_billboard_id` bigint NOT NULL COMMENT '活动榜单ID',
  `activity_billboard_user_id` bigint NOT NULL COMMENT '活动榜单用户ID',
  `user_id` bigint NOT NULL COMMENT '用户ID/CP_ID',
  `other_user_id` bigint NOT NULL COMMENT '另一个用户Id',
  `match_confirm_id` bigint NOT NULL COMMENT '匹配确认结果ID',
  `score` int NOT NULL COMMENT '分数',
  `type` tinyint NOT NULL DEFAULT '1',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id_type_un` (`user_id`,`match_confirm_id`,`type`),
  KEY `activity_billboard_user_id` (`activity_billboard_user_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=19372 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动榜单参与用户详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_config`
--

DROP TABLE IF EXISTS `activity_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_config` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `title` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '活动标题',
  `url` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '前端URL',
  `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '图片',
  `begin_time` datetime NOT NULL COMMENT '活动开始时间',
  `end_time` datetime NOT NULL COMMENT '活动结束时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_day_pay_dealer_trigger_award_config`
--

DROP TABLE IF EXISTS `activity_day_pay_dealer_trigger_award_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_day_pay_dealer_trigger_award_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `trigger_config_id` bigint NOT NULL COMMENT 'trigger_config_id',
  `n` bigint NOT NULL COMMENT 'diamond的数量,也可以时头饰的ID',
  `duration` int NOT NULL COMMENT '周期(秒)',
  `rate` int NOT NULL COMMENT '比率 40/100',
  `type` tinyint NOT NULL COMMENT '类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=112 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='每日充值活动奖励';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_day_pay_dealer_trigger_config`
--

DROP TABLE IF EXISTS `activity_day_pay_dealer_trigger_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_day_pay_dealer_trigger_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `dollar_total` int NOT NULL COMMENT '美元总量',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='每日充值活动';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_group_billboard`
--

DROP TABLE IF EXISTS `activity_group_billboard`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_group_billboard` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `activity_id` bigint NOT NULL COMMENT '活动ID',
  `start_time` timestamp NOT NULL COMMENT '开始时间',
  `end_time` timestamp NOT NULL COMMENT '结束时间',
  `status` tinyint NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`activity_id`),
  KEY `Index_2` (`end_time`,`start_time`)
) ENGINE=InnoDB AUTO_INCREMENT=192 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动-群组—榜单';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_group_billboard_config`
--

DROP TABLE IF EXISTS `activity_group_billboard_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_group_billboard_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `cycle` int NOT NULL COMMENT '周期(单位秒)',
  `first_diamond` int NOT NULL COMMENT '男性第一名钻石数量',
  `second_diamond` int NOT NULL COMMENT '男性第二名钻石数量',
  `third_diamond` int NOT NULL COMMENT '男性第三名钻石数量',
  `first_property_id` bigint NOT NULL COMMENT '男性第一名坐骑ID',
  `second_property_id` bigint NOT NULL COMMENT '男性第二名坐骑ID',
  `third_property_id` bigint NOT NULL COMMENT '男性第三名坐骑ID',
  `first_property_duration` int NOT NULL COMMENT '男性第一名坐骑时长(单位秒, -1:无限)',
  `second_property_duration` int NOT NULL COMMENT '男性第二名坐骑时长(单位秒, -1:无限)',
  `third_property_duration` int NOT NULL COMMENT '男性第三名坐骑时长(单位秒, -1:无限)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群组活动榜单配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_group_billboard_result`
--

DROP TABLE IF EXISTS `activity_group_billboard_result`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_group_billboard_result` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `activity_group_billboard_id` bigint NOT NULL COMMENT '榜单ID',
  `group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户ID',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`activity_group_billboard_id`,`group_id`),
  KEY `Index_1` (`activity_group_billboard_id`,`score`,`updated_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1222 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动群组榜单参与用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_group_billboard_reward`
--

DROP TABLE IF EXISTS `activity_group_billboard_reward`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_group_billboard_reward` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `activity_group_billboard_result_id` bigint NOT NULL COMMENT '活动榜单用户ID',
  `group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户ID',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `diamond` int NOT NULL COMMENT '钻石数量',
  `property_id` bigint NOT NULL COMMENT '坐骑ID',
  `property_duration` int NOT NULL COMMENT '坐骑时长(单位秒, -1:无限)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `AK_Key_2` (`activity_group_billboard_result_id`,`user_id`),
  KEY `Index_1` (`activity_group_billboard_result_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=662 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动榜单奖励';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_invite`
--

DROP TABLE IF EXISTS `activity_invite`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_invite` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `apply_user_id` bigint NOT NULL COMMENT '申请人ID',
  `apply_ip` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `invite_user_id` bigint NOT NULL COMMENT '邀请人ID',
  `profile_pic` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'profile_pic',
  `assess_pic` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'assess_pic',
  `mgr_id` bigint NOT NULL COMMENT '管理人',
  `status` tinyint NOT NULL COMMENT '状态(1:未处理 2:通过 3:未通过)',
  `audit_time` datetime DEFAULT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `Index_1` (`apply_user_id`) USING BTREE,
  KEY `Index_2` (`invite_user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=724 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动-邀请新人';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_invite_award_202210`
--

DROP TABLE IF EXISTS `activity_invite_award_202210`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_invite_award_202210` (
  `user_id` bigint unsigned NOT NULL COMMENT '邀请人',
  `stage` smallint unsigned NOT NULL,
  `status` tinyint unsigned NOT NULL COMMENT '领取状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`user_id`,`stage`),
  KEY `created_time_IDX` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_invite_award_202211`
--

DROP TABLE IF EXISTS `activity_invite_award_202211`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_invite_award_202211` (
  `user_id` bigint unsigned NOT NULL COMMENT '邀请人',
  `stage` smallint unsigned NOT NULL,
  `status` tinyint unsigned NOT NULL COMMENT '领取状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`user_id`,`stage`),
  KEY `created_time_IDX` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_invite_award_202212`
--

DROP TABLE IF EXISTS `activity_invite_award_202212`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_invite_award_202212` (
  `user_id` bigint unsigned NOT NULL COMMENT '邀请人',
  `stage` smallint unsigned NOT NULL,
  `status` tinyint unsigned NOT NULL COMMENT '领取状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`user_id`,`stage`),
  KEY `created_time_IDX` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_invite_award_202301`
--

DROP TABLE IF EXISTS `activity_invite_award_202301`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_invite_award_202301` (
  `user_id` bigint unsigned NOT NULL COMMENT '邀请人',
  `stage` smallint unsigned NOT NULL,
  `status` tinyint unsigned NOT NULL COMMENT '领取状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`user_id`,`stage`),
  KEY `created_time_IDX` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_invite_award_202302`
--

DROP TABLE IF EXISTS `activity_invite_award_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_invite_award_202302` (
  `user_id` bigint unsigned NOT NULL COMMENT '邀请人',
  `stage` smallint unsigned NOT NULL,
  `status` tinyint unsigned NOT NULL COMMENT '领取状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`user_id`,`stage`),
  KEY `created_time_IDX` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_invite_award_202303`
--

DROP TABLE IF EXISTS `activity_invite_award_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_invite_award_202303` (
  `user_id` bigint unsigned NOT NULL COMMENT '邀请人',
  `stage` smallint unsigned NOT NULL,
  `status` tinyint unsigned NOT NULL COMMENT '领取状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`user_id`,`stage`),
  KEY `created_time_IDX` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_invite_award_202304`
--

DROP TABLE IF EXISTS `activity_invite_award_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_invite_award_202304` (
  `user_id` bigint unsigned NOT NULL COMMENT '邀请人',
  `stage` smallint unsigned NOT NULL,
  `status` tinyint unsigned NOT NULL COMMENT '领取状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`user_id`,`stage`),
  KEY `created_time_IDX` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_invite_ward`
--

DROP TABLE IF EXISTS `activity_invite_ward`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_invite_ward` (
  `user_id` bigint unsigned NOT NULL COMMENT '邀请人',
  `stage` smallint unsigned NOT NULL,
  `status` tinyint unsigned NOT NULL COMMENT '领取状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`user_id`,`stage`),
  KEY `created_time_IDX` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_month_pay_dealer_trigger_config`
--

DROP TABLE IF EXISTS `activity_month_pay_dealer_trigger_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_month_pay_dealer_trigger_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `dollar_total` int NOT NULL COMMENT '美元总量',
  `diamond` int NOT NULL COMMENT '奖励钻石',
  `headwear_id` bigint NOT NULL COMMENT '奖励头饰ID',
  `headwear_duration` int NOT NULL COMMENT '奖励头饰时长(秒)',
  `property_id` bigint NOT NULL COMMENT '奖励座驾ID',
  `property_duration` int NOT NULL COMMENT '奖励座驾时长(秒)',
  `noble_level` int NOT NULL DEFAULT '0',
  `noble_duration` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `medal_id` bigint unsigned NOT NULL COMMENT '勋章id',
  `medal_duration` bigint unsigned NOT NULL COMMENT '勋章时长(秒)',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='每月充值活动';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_ramadan_gift_config`
--

DROP TABLE IF EXISTS `activity_ramadan_gift_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_ramadan_gift_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `res_gift_id` bigint NOT NULL COMMENT '礼物ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `type` tinyint NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`res_gift_id`,`type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=212 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='斋日触发礼物';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_ramadan_group_config`
--

DROP TABLE IF EXISTS `activity_ramadan_group_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_ramadan_group_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `first_medal_id` bigint NOT NULL COMMENT '第一名勋章ID',
  `second_medal_id` bigint NOT NULL COMMENT '第二名勋章ID',
  `third_medal_id` bigint NOT NULL COMMENT '第三名勋章ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `type` tinyint NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='斋日活动群组配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_ramadan_trigger_config`
--

DROP TABLE IF EXISTS `activity_ramadan_trigger_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_ramadan_trigger_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `trigger_diamond` int NOT NULL COMMENT '触发钻石',
  `property_id1` bigint NOT NULL COMMENT '座驾ID',
  `property_duration1` int NOT NULL COMMENT '座驾时长',
  `property_id2` bigint NOT NULL COMMENT '座驾ID',
  `property_duration2` int NOT NULL COMMENT '座驾时长',
  `headwear_id1` bigint NOT NULL COMMENT '头饰ID',
  `headwear_duration1` int NOT NULL COMMENT '头饰时长',
  `headwear_id2` bigint NOT NULL COMMENT '头饰ID',
  `headwear_duration2` int NOT NULL COMMENT '头饰时长',
  `medal_id` bigint NOT NULL COMMENT '勋章ID',
  `medal_duration` int NOT NULL COMMENT '勋章时长',
  `diamond` int NOT NULL COMMENT '钻石',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `type` tinyint NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=172 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='斋日触发';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_ramadan_user_config`
--

DROP TABLE IF EXISTS `activity_ramadan_user_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_ramadan_user_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `type` tinyint NOT NULL,
  `first_diamond` int NOT NULL,
  `second_diamond` int NOT NULL,
  `third_diamond` int NOT NULL,
  `first_property_id` bigint NOT NULL COMMENT '第一名座驾ID',
  `first_property_duration` int NOT NULL COMMENT '第一名座驾时长',
  `second_property_id` bigint NOT NULL COMMENT '第二名座驾ID',
  `second_property_duration` int NOT NULL COMMENT '第二名座驾时长',
  `third_property_id` bigint NOT NULL COMMENT '第三名座驾ID',
  `third_property_duration` int NOT NULL COMMENT '第三名座驾时长',
  `first_headwear_id1` bigint NOT NULL COMMENT '第一名头饰ID',
  `first_headwear_duration1` int NOT NULL COMMENT '第一名头饰时长',
  `first_headwear_id2` bigint NOT NULL COMMENT '第一名头饰ID',
  `first_headwear_duration2` int NOT NULL COMMENT '第一名头饰时长',
  `second_headwear_id1` bigint NOT NULL COMMENT '第二名头饰ID',
  `second_headwear_duration1` int NOT NULL COMMENT '第二名头饰时长',
  `second_headwear_id2` bigint NOT NULL COMMENT '第二名头饰ID',
  `second_headwear_duration2` int NOT NULL COMMENT '第二名头饰时长',
  `third_headwear_id1` bigint NOT NULL COMMENT '第三名头饰ID',
  `third_headwear_duration1` int NOT NULL COMMENT '第三名头饰时长',
  `third_headwear_id2` bigint NOT NULL COMMENT '第三名头饰ID',
  `third_headwear_duration2` int NOT NULL COMMENT '第三名头饰时长',
  `first_medal_id` bigint NOT NULL COMMENT '第一名勋章ID',
  `first_medal_duration` int NOT NULL COMMENT '第一名勋章时长(特殊情况:单位天)',
  `second_medal_id` bigint NOT NULL COMMENT '第二名勋章ID',
  `second_medal_duration` int NOT NULL COMMENT '第二名勋章时长(特殊情况:单位天)',
  `third_medal_id` bigint NOT NULL COMMENT '第三名勋章ID',
  `third_medal_duration` int NOT NULL COMMENT '第三名勋章时长(特殊情况:单位天)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `first_noble_level` int NOT NULL DEFAULT '0',
  `first_noble_duration` int NOT NULL DEFAULT '0',
  `second_noble_level` int NOT NULL DEFAULT '0',
  `second_noble_duration` int NOT NULL DEFAULT '0',
  `third_noble_level` int NOT NULL DEFAULT '0',
  `third_noble_duration` int NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='斋日活动用户配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_recharge_first_config`
--

DROP TABLE IF EXISTS `activity_recharge_first_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_recharge_first_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `diamond_num` int NOT NULL COMMENT '钻石数量',
  `res_medal_id` bigint NOT NULL COMMENT '勋章ID',
  `res_medal_duration` int NOT NULL COMMENT '勋章时长',
  `res_medal_diamond` int NOT NULL,
  `res_headwear_id` bigint NOT NULL COMMENT '头饰ID',
  `res_headwear_duration` int NOT NULL COMMENT '头饰时长',
  `res_headwear_diamond` int NOT NULL,
  `res_property_id` bigint NOT NULL COMMENT '座驾ID',
  `res_property_duration` int NOT NULL COMMENT '座驾时长',
  `res_property_diamond` int NOT NULL,
  `res_noble_level` int NOT NULL COMMENT '贵族等级',
  `res_noble_duration` int NOT NULL COMMENT '贵族时长',
  `res_noble_diamond` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动首充配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_recharge_first_user`
--

DROP TABLE IF EXISTS `activity_recharge_first_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_recharge_first_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `diamond_account_detail_id` bigint NOT NULL COMMENT 'diamond_account_detail_id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=858 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动首充用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_tunisia_national_day_gift_config`
--

DROP TABLE IF EXISTS `activity_tunisia_national_day_gift_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_tunisia_national_day_gift_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `res_gift_id` bigint NOT NULL COMMENT '礼物ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`res_gift_id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='突尼斯国庆节触发礼物';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_tunisia_national_day_group_config`
--

DROP TABLE IF EXISTS `activity_tunisia_national_day_group_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_tunisia_national_day_group_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `first_medal_id` bigint NOT NULL COMMENT '第一名勋章ID',
  `second_medal_id` bigint NOT NULL COMMENT '第二名勋章ID',
  `third_medal_id` bigint NOT NULL COMMENT '第三名勋章ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='突尼斯国庆日活动群组配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_tunisia_national_day_trigger_config`
--

DROP TABLE IF EXISTS `activity_tunisia_national_day_trigger_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_tunisia_national_day_trigger_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `trigger_diamond` int NOT NULL COMMENT '触发钻石',
  `property_id1` bigint NOT NULL COMMENT '座驾ID',
  `property_duration1` int NOT NULL COMMENT '座驾时长',
  `property_id2` bigint NOT NULL COMMENT '座驾ID',
  `property_duration2` int NOT NULL COMMENT '座驾时长',
  `headwear_id1` bigint NOT NULL COMMENT '头饰ID',
  `headwear_duration1` int NOT NULL COMMENT '头饰时长',
  `headwear_id2` bigint NOT NULL COMMENT '头饰ID',
  `headwear_duration2` int NOT NULL COMMENT '头饰时长',
  `medal_id` bigint NOT NULL COMMENT '勋章ID',
  `medal_duration` int NOT NULL COMMENT '勋章时长',
  `diamond` int NOT NULL COMMENT '钻石',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='突尼斯国庆节触发';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_tunisia_national_day_user_config`
--

DROP TABLE IF EXISTS `activity_tunisia_national_day_user_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_tunisia_national_day_user_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `first_diamond` int NOT NULL,
  `second_diamond` int NOT NULL,
  `third_diamond` int NOT NULL,
  `first_property_id` bigint NOT NULL COMMENT '第一名座驾ID',
  `first_property_duration` int NOT NULL COMMENT '第一名座驾时长',
  `second_property_id` bigint NOT NULL COMMENT '第二名座驾ID',
  `second_property_duration` int NOT NULL COMMENT '第二名座驾时长',
  `third_property_id` bigint NOT NULL COMMENT '第三名座驾ID',
  `third_property_duration` int NOT NULL COMMENT '第三名座驾时长',
  `first_headwear_id1` bigint NOT NULL COMMENT '第一名头饰ID',
  `first_headwear_duration1` int NOT NULL COMMENT '第一名头饰时长',
  `first_headwear_id2` bigint NOT NULL COMMENT '第一名头饰ID',
  `first_headwear_duration2` int NOT NULL COMMENT '第一名头饰时长',
  `second_headwear_id1` bigint NOT NULL COMMENT '第二名头饰ID',
  `second_headwear_duration1` int NOT NULL COMMENT '第二名头饰时长',
  `second_headwear_id2` bigint NOT NULL COMMENT '第二名头饰ID',
  `second_headwear_duration2` int NOT NULL COMMENT '第二名头饰时长',
  `third_headwear_id1` bigint NOT NULL COMMENT '第三名头饰ID',
  `third_headwear_duration1` int NOT NULL COMMENT '第三名头饰时长',
  `third_headwear_id2` bigint NOT NULL COMMENT '第三名头饰ID',
  `third_headwear_duration2` int NOT NULL COMMENT '第三名头饰时长',
  `first_medal_id` bigint NOT NULL COMMENT '第一名勋章ID',
  `first_medal_duration` int NOT NULL COMMENT '第一名勋章时长(特殊情况:单位天)',
  `second_medal_id` bigint NOT NULL COMMENT '第二名勋章ID',
  `second_medal_duration` int NOT NULL COMMENT '第二名勋章时长(特殊情况:单位天)',
  `third_medal_id` bigint NOT NULL COMMENT '第三名勋章ID',
  `third_medal_duration` int NOT NULL COMMENT '第三名勋章时长(特殊情况:单位天)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='突尼斯国庆日活动用户配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `advertisement`
--

DROP TABLE IF EXISTS `advertisement`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `advertisement` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `title` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '广告标题',
  `icon` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '广告缩略图标',
  `url` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '前端URL',
  `status` tinyint NOT NULL COMMENT '状态(1-上架,0-下架)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=114 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='广告';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `agent_banner`
--

DROP TABLE IF EXISTS `agent_banner`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `agent_banner` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '标题',
  `image` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '缩略图',
  `url` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'URL',
  `group_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组ID',
  `n` int NOT NULL COMMENT '排序',
  `status` int NOT NULL COMMENT '状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `area` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '上线区域:0全区;1阿语区;2非阿语区;3指定国家',
  `start_at` int unsigned NOT NULL DEFAULT '0' COMMENT '上架时间戳',
  `end_at` int unsigned NOT NULL DEFAULT '0' COMMENT '下架时间戳',
  `country_list` varchar(800) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '指定区域的国家列表',
  PRIMARY KEY (`id`),
  KEY `Index_1` (`n`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='代理banner';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `agent_mgr`
--

DROP TABLE IF EXISTS `agent_mgr`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `agent_mgr` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL,
  `agent_id` bigint unsigned NOT NULL COMMENT '代理id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`),
  KEY `agent_id` (`agent_id`)
) ENGINE=InnoDB AUTO_INCREMENT=350 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='代理管理员';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `agora_recording`
--

DROP TABLE IF EXISTS `agora_recording`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `agora_recording` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `day` date NOT NULL,
  `video_uid` varchar(256) NOT NULL,
  `audio_filename` varchar(512) NOT NULL DEFAULT '',
  `video_filename` varchar(512) NOT NULL DEFAULT '',
  `mp4_filename` varchar(512) NOT NULL DEFAULT '',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `USER_DAY` (`user_id`,`day`),
  KEY `video_uid` (`video_uid`)
) ENGINE=InnoDB AUTO_INCREMENT=1439 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='音视频录制';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `award`
--

DROP TABLE IF EXISTS `award`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `award` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `activity_billboard_user_id` bigint NOT NULL COMMENT '活动榜单用户ID',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `diamond` int NOT NULL COMMENT '钻石数量',
  `property_id` bigint NOT NULL COMMENT '坐骑ID',
  `property_duration` int NOT NULL COMMENT '坐骑时长(单位秒, -1:无限)',
  `headwear_id` bigint NOT NULL COMMENT '坐骑ID',
  `headwear_duration` int NOT NULL COMMENT '坐骑时长(单位秒, -1:无限)',
  `medal_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'ID',
  `medal_duration` int unsigned NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `AK_Key_2` (`activity_billboard_user_id`,`user_id`),
  KEY `Index_1` (`activity_billboard_user_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活动榜单奖励';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bean_account`
--

DROP TABLE IF EXISTS `bean_account`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bean_account` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bean_num` bigint unsigned NOT NULL DEFAULT '0' COMMENT '豆子数量',
  `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `gold_num` bigint unsigned NOT NULL DEFAULT '0' COMMENT '收粉钻礼物得到的金币',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_alias` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=111119 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bean_account_detail`
--

DROP TABLE IF EXISTS `bean_account_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bean_account_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bean_account_id` bigint NOT NULL COMMENT '豆子帐号ID',
  `operate_id` bigint NOT NULL,
  `operate_type` tinyint NOT NULL COMMENT '来源类型(1:充值, 2:礼物',
  `origin_id` bigint NOT NULL COMMENT '来源ID',
  `add_reduce` tinyint NOT NULL COMMENT '类型(1:增加 2:减少)',
  `num` int NOT NULL COMMENT '数量',
  `remark` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '备注',
  `bef_num` bigint NOT NULL COMMENT '之前豆子数量',
  `aft_num` bigint NOT NULL COMMENT '之后豆子数量',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`,`operate_type`),
  KEY `Index_2` (`bean_account_id`,`operate_type`),
  KEY `created_time` (`created_time`),
  KEY `origin_id` (`origin_id`,`operate_type`)
) ENGINE=InnoDB AUTO_INCREMENT=1733629 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='豆子账号流水';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bean_account_detail_gold`
--

DROP TABLE IF EXISTS `bean_account_detail_gold`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bean_account_detail_gold` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bean_account_id` bigint NOT NULL COMMENT '豆子帐号ID',
  `operate_id` bigint NOT NULL,
  `operate_type` tinyint NOT NULL COMMENT '来源类型(1:充值, 2:礼物',
  `origin_id` bigint NOT NULL COMMENT '来源ID',
  `add_reduce` tinyint NOT NULL COMMENT '类型(1:增加 2:减少)',
  `num` int NOT NULL COMMENT '数量',
  `remark` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '备注',
  `bef_num` bigint NOT NULL COMMENT '之前数量',
  `aft_num` bigint NOT NULL COMMENT '之后数量',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`,`operate_type`),
  KEY `Index_2` (`bean_account_id`,`operate_type`),
  KEY `created_time` (`created_time`),
  KEY `origin_id` (`origin_id`,`operate_type`)
) ENGINE=InnoDB AUTO_INCREMENT=783 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='金币流水';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `bean_operate_set`
--

DROP TABLE IF EXISTS `bean_operate_set`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bean_operate_set` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `bean_num` int NOT NULL COMMENT '钻石数量',
  `frequency_num` int NOT NULL COMMENT '频率次数',
  `frequency_day` int NOT NULL COMMENT '频率天数',
  `bean_max_num` int NOT NULL COMMENT '最大金币数',
  `add_reduce` tinyint NOT NULL COMMENT '增加减少',
  `type` tinyint NOT NULL COMMENT '操作类型',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '操作名字',
  `status` tinyint NOT NULL COMMENT '状态(1:开始 0:关闭)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `diamond_type` tinyint NOT NULL DEFAULT '1' COMMENT '钻石类型1.黄钻2.粉钻',
  PRIMARY KEY (`id`),
  KEY `Index_1` (`type`)
) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='豆子操作';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `billboard_limit_user`
--

DROP TABLE IF EXISTS `billboard_limit_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `billboard_limit_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id,cp的话,就是cpId',
  `first_type` tinyint NOT NULL,
  `second_type` tinyint NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`,`first_type`,`second_type`)
) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='榜单黑名单';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `cache_db`
--

DROP TABLE IF EXISTS `cache_db`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cache_db` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `table_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'table_name',
  `table_id` bigint NOT NULL COMMENT 'table_id',
  `type` tinyint NOT NULL COMMENT '类型',
  `status` tinyint NOT NULL COMMENT '状态',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=152 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `candy_day_rank`
--

DROP TABLE IF EXISTS `candy_day_rank`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `candy_day_rank` (
  `date` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日期',
  `tz` tinyint NOT NULL DEFAULT '0' COMMENT '时区 0:北京 1:沙特',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `stake` bigint unsigned NOT NULL COMMENT '总参与钻石数',
  `award` bigint unsigned NOT NULL COMMENT '总中奖金额',
  `stake_times` bigint NOT NULL DEFAULT '0' COMMENT '投注次数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date`,`tz`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='candy 日榜';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `candy_level_config`
--

DROP TABLE IF EXISTS `candy_level_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `candy_level_config` (
  `level` bigint unsigned NOT NULL COMMENT '等级',
  `exp` bigint unsigned NOT NULL COMMENT '所需经验值',
  `award_type` tinyint(1) NOT NULL COMMENT '奖励类型 1:钻石 2:礼物 3:头饰 4:贵族 5:座驾',
  `res_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '资源id,钻石类型为0,贵族类型为贵族等级',
  `res_count` int unsigned NOT NULL COMMENT '资源个数',
  `res_day` int NOT NULL DEFAULT '0' COMMENT '资源天数,钻石类型为0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='candy 等级配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `candy_user_level`
--

DROP TABLE IF EXISTS `candy_user_level`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `candy_user_level` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户id',
  `level` bigint unsigned NOT NULL COMMENT '等级',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='candy用户等级';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `candy_user_level_detail`
--

DROP TABLE IF EXISTS `candy_user_level_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `candy_user_level_detail` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户id',
  `level` bigint unsigned NOT NULL COMMENT '等级',
  `award_type` tinyint(1) NOT NULL COMMENT '奖励类型 1:钻石 2:礼物 3:头饰 4:贵族 5:座驾',
  `res_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '资源id,钻石类型为0,贵族类型为贵族等级',
  `res_count` int unsigned NOT NULL COMMENT '资源个数',
  `res_day` int NOT NULL DEFAULT '0' COMMENT '资源天数,钻石类型为0',
  `status` tinyint(1) NOT NULL DEFAULT '2' COMMENT '状态 1:发奖成功 2:未发奖',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=90 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='candy用户等级明细';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `charge_callback_log`
--

DROP TABLE IF EXISTS `charge_callback_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `charge_callback_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `platform` smallint NOT NULL COMMENT '平台:4.checkout,5.茄子支付(payerMax)',
  `resp_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'resp_id',
  `resp_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'resp_type',
  `resp_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT 'resp_data',
  `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `resid_IDX` (`resp_id`) USING BTREE,
  KEY `createAt_IDX` (`create_at`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='充值回调日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `charge_card_info`
--

DROP TABLE IF EXISTS `charge_card_info`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `charge_card_info` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '支付卡名称',
  `icon` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '支付卡icon',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint NOT NULL DEFAULT '1',
  `paymenttype_code` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '卡类型代码',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家支持的支付卡和充值渠道';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `charge_country_channel`
--

DROP TABLE IF EXISTS `charge_country_channel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `charge_country_channel` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `country` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '国家',
  `card_id` int NOT NULL COMMENT '支付卡种类',
  `platform` int NOT NULL COMMENT '平台:4.checkout5.payerMax/茄子支付',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `country_card_plat_IDX` (`country`,`card_id`,`platform`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=276 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家支持的支付卡和充值渠道';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `charge_currency`
--

DROP TABLE IF EXISTS `charge_currency`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `charge_currency` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `platform` int NOT NULL COMMENT '平台:1.apple;2.google;3.starchat回调茄子支付;4.checkout5.payerMax/茄子支付',
  `currency_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '货币编码',
  `currency_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '货币名字',
  `country` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '国家',
  `calculating` int NOT NULL COMMENT '计算',
  `res_country` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '资源的国家',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `res_country_image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `is_common` tinyint NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `country_IDX` (`res_country`,`platform`) USING BTREE,
  KEY `platform_IDX` (`platform`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=76 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='充值货币';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `charge_ext_info`
--

DROP TABLE IF EXISTS `charge_ext_info`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `charge_ext_info` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `pay_order_id` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'pay_order表的id',
  `ext_order_id` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '支付平台的订单id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `order_id_IDX` (`pay_order_id`) USING BTREE,
  UNIQUE KEY `ext_order_id_IDX` (`ext_order_id`) USING BTREE,
  KEY `user_id_IDX` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='充值订单其他平台的信息';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `charge_white_list`
--

DROP TABLE IF EXISTS `charge_white_list`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `charge_white_list` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `platform` smallint unsigned NOT NULL,
  `user_id` bigint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `platform_user_IDX` (`platform`,`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='官网充值白名单';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `checkout_create_log`
--

DROP TABLE IF EXISTS `checkout_create_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `checkout_create_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `req_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT 'req_data',
  `resp_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT 'resp_data',
  `err_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT 'err_data',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3160 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='checkout创建日记';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `checkout_currency`
--

DROP TABLE IF EXISTS `checkout_currency`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `checkout_currency` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `currency_code` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '货币编码',
  `currency_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '货币名字',
  `country` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '国家',
  `calculating` int NOT NULL COMMENT '计算',
  `res_country` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '资源的国家',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `res_country_image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `is_common` tinyint NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key` (`currency_code`,`country`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=166 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='checkout货币';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `checkout_diamond`
--

DROP TABLE IF EXISTS `checkout_diamond`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `checkout_diamond` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `diamond` int NOT NULL COMMENT '钻石',
  `money` int NOT NULL COMMENT '金钱',
  `dollar` int NOT NULL,
  `currency_code` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '货币编码',
  `discount` int NOT NULL COMMENT '折扣',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `is_agent` tinyint NOT NULL DEFAULT '0' COMMENT '0.用户给自己充1.代理给自己充2.用户给代理充',
  `diamond_show` int NOT NULL DEFAULT '0' COMMENT '用户给代理充值(is_agent=2),用户看到的数量',
  PRIMARY KEY (`id`),
  KEY `Index_1` (`currency_code`)
) ENGINE=InnoDB AUTO_INCREMENT=1587 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='checkout钻石面板';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `client_report`
--

DROP TABLE IF EXISTS `client_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `client_report` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `type` tinyint NOT NULL COMMENT '类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=41864 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='客户端埋点上报';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `count_daily_user_active`
--

DROP TABLE IF EXISTS `count_daily_user_active`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `count_daily_user_active` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `date_str` date NOT NULL COMMENT '日期',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `imei` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备码',
  `online_time` bigint NOT NULL DEFAULT '0' COMMENT '用户设备在线时长/秒',
  `last_login_time` timestamp NULL DEFAULT NULL COMMENT '上次登录时间',
  `last_logout_time` timestamp NULL DEFAULT NULL COMMENT '上次登出时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `u_i_d` (`user_id`,`imei`,`date_str`),
  KEY `date` (`date_str`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1667 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='统计用户设备活跃';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `count_daily_user_active_log`
--

DROP TABLE IF EXISTS `count_daily_user_active_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `count_daily_user_active_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `date_str` date NOT NULL COMMENT '日期',
  `imei` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备码',
  `online_time` bigint NOT NULL DEFAULT '0' COMMENT '用户设备在线时长/秒',
  `last_login_time` timestamp NULL DEFAULT NULL COMMENT '登录时间',
  `last_logout_time` timestamp NULL DEFAULT NULL COMMENT '登出时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `u_d` (`user_id`,`date_str`),
  KEY `date` (`date_str`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=16344 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='统计用户设备活跃-日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `count_daily_user_login`
--

DROP TABLE IF EXISTS `count_daily_user_login`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `count_daily_user_login` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `date_str` date NOT NULL COMMENT '日期',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`date_str`),
  KEY `date_str` (`date_str`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=89949 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='统计进入系统的用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `count_emas_matchcard`
--

DROP TABLE IF EXISTS `count_emas_matchcard`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `count_emas_matchcard` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `cycle` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `deleted_count` int NOT NULL DEFAULT '0',
  `opened_count` int NOT NULL DEFAULT '0',
  `sms_receive_success_count` int NOT NULL DEFAULT '0',
  `sms_skip_count` int NOT NULL DEFAULT '0',
  `sms_receive_failed_count` int NOT NULL DEFAULT '0',
  `sms_failed_count` int NOT NULL DEFAULT '0',
  `received_count` int NOT NULL DEFAULT '0',
  `sent_count` int NOT NULL DEFAULT '0',
  `sms_sent_count` int NOT NULL DEFAULT '0',
  `accept_count` int NOT NULL DEFAULT '0',
  `status` tinyint NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=566 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `count_emas_matchcard_detail`
--

DROP TABLE IF EXISTS `count_emas_matchcard_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `count_emas_matchcard_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `count_emas_matchcard_id` bigint NOT NULL COMMENT 'count_emas_matchcard_id',
  `title` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'title',
  `body` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'body',
  `message_id` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'message_id',
  `err` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'err',
  `deleted_count` int NOT NULL DEFAULT '0',
  `opened_count` int NOT NULL DEFAULT '0',
  `sms_receive_success_count` int NOT NULL DEFAULT '0',
  `sms_skip_count` int NOT NULL DEFAULT '0',
  `sms_receive_failed_count` int NOT NULL DEFAULT '0',
  `sms_failed_count` int NOT NULL DEFAULT '0',
  `received_count` int NOT NULL DEFAULT '0',
  `sent_count` int NOT NULL DEFAULT '0',
  `sms_sent_count` int NOT NULL DEFAULT '0',
  `accept_count` int NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1053 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='统计emas发送匹配消息详细';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `country_consume`
--

DROP TABLE IF EXISTS `country_consume`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `country_consume` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `country` char(128) COLLATE utf8mb4_unicode_ci NOT NULL,
  `send_user_id` bigint unsigned NOT NULL COMMENT '发送人',
  `diamond` bigint NOT NULL DEFAULT '0',
  `ref_id` bigint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `ref_id_IDX` (`ref_id`) USING BTREE,
  KEY `country_IDX` (`country`) USING BTREE,
  KEY `created_time_IDX` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1546478 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `country_consume_last_week`
--

DROP TABLE IF EXISTS `country_consume_last_week`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `country_consume_last_week` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `country` char(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `send_user_id` bigint unsigned NOT NULL COMMENT '发送人',
  `diamond` bigint NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `country_user` (`country`,`send_user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=85 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家贡献-过期7天排行榜';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `country_consume_last_week_offset`
--

DROP TABLE IF EXISTS `country_consume_last_week_offset`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `country_consume_last_week_offset` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `last_cal_time` timestamp NULL DEFAULT NULL COMMENT '上次计算到的时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家贡献-过期7天排行榜-记录偏移值';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `country_lang_region`
--

DROP TABLE IF EXISTS `country_lang_region`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `country_lang_region` (
  `country` char(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '国家',
  `lang_region` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '语言区',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`country`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家语言区';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `country_mgr_user`
--

DROP TABLE IF EXISTS `country_mgr_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `country_mgr_user` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `country` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '国家',
  `user_id` bigint unsigned NOT NULL COMMENT '用户',
  `role` tinyint NOT NULL COMMENT '角色',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `country_user` (`user_id`,`country`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家管理人员';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `country_star_consume`
--

DROP TABLE IF EXISTS `country_star_consume`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `country_star_consume` (
  `activity_id` bigint unsigned NOT NULL,
  `country` char(128) NOT NULL,
  `send_user_id` bigint unsigned NOT NULL COMMENT '发送人',
  `gift_id` bigint unsigned NOT NULL,
  `diamond` bigint unsigned NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`activity_id`,`country`,`send_user_id`,`gift_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `country_star_gift`
--

DROP TABLE IF EXISTS `country_star_gift`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `country_star_gift` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `country` char(128) NOT NULL,
  `gift_id` bigint unsigned NOT NULL COMMENT '礼物id',
  `is_avatar` tinyint unsigned NOT NULL,
  `status` tinyint unsigned NOT NULL COMMENT '1-开;2-关',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `country_gift_idx` (`country`,`gift_id`)
) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='国家之星礼物配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `country_treasure_award`
--

DROP TABLE IF EXISTS `country_treasure_award`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `country_treasure_award` (
  `activity_id` bigint unsigned NOT NULL,
  `country` char(128) NOT NULL,
  `user_id` bigint unsigned NOT NULL,
  `award_id` int unsigned NOT NULL,
  `level` smallint unsigned NOT NULL,
  `diamond` int unsigned NOT NULL DEFAULT '0',
  `status` tinyint unsigned NOT NULL COMMENT '领取状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`activity_id`,`country`,`user_id`,`award_id`,`level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `cp`
--

DROP TABLE IF EXISTS `cp`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cp` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id1` bigint NOT NULL COMMENT 'user_id1',
  `user_id2` bigint NOT NULL COMMENT 'user_id2',
  `disconnect_second` bigint NOT NULL DEFAULT '0' COMMENT '中断时间(单位秒)',
  `score` int NOT NULL COMMENT '分数',
  `day_score` int NOT NULL DEFAULT '0' COMMENT '日分数',
  `period_day` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '日字符串',
  `week_score` int NOT NULL DEFAULT '0' COMMENT '周分数',
  `period_week` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `month_score` int NOT NULL DEFAULT '0',
  `period_month` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `status` tinyint NOT NULL COMMENT '状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id1`,`user_id2`),
  KEY `user_id1` (`user_id1`,`score`),
  KEY `user_id2` (`user_id2`,`score`),
  KEY `score` (`score`)
) ENGINE=InnoDB AUTO_INCREMENT=1106 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='CP,CP业务固定只有两个人 ,userId1>userId2,userId1+userId2保证唯一锁';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `cp_score_log`
--

DROP TABLE IF EXISTS `cp_score_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cp_score_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `cp_id` bigint NOT NULL COMMENT 'cp_id',
  `score` int NOT NULL COMMENT '分数',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `aft_score` int NOT NULL COMMENT '之后分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `origin_id` bigint NOT NULL COMMENT '来源Id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`cp_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=15776 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='cp得分日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `cp_status_log`
--

DROP TABLE IF EXISTS `cp_status_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cp_status_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '操作者',
  `cp_id` bigint NOT NULL COMMENT 'cp_id',
  `type` tinyint NOT NULL COMMENT '类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`cp_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1498 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='CP状态日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `dealer_charge_detail`
--

DROP TABLE IF EXISTS `dealer_charge_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dealer_charge_detail` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `dealer_id` bigint unsigned NOT NULL,
  `mgr_id` bigint unsigned NOT NULL COMMENT '后台发放代理充值的账户',
  `diamond` int unsigned NOT NULL,
  `dollar` int unsigned NOT NULL,
  `payment_method` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `type` tinyint NOT NULL DEFAULT '0' COMMENT '0.运营给代理充1.代理给自己充2.用户给代理充',
  `money` float NOT NULL DEFAULT '0' COMMENT '花费的货币数量',
  `currency` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '货币',
  `goods_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '充值钻石套餐id/商品id',
  `content_msg_id` bigint NOT NULL DEFAULT '0' COMMENT '文案翻译id',
  PRIMARY KEY (`id`),
  KEY `dealer_id_IDX` (`dealer_id`),
  KEY `created_time_IDX` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=371 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='币商钻石充值流水';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `dealer_country`
--

DROP TABLE IF EXISTS `dealer_country`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dealer_country` (
  `dealer_id` bigint unsigned NOT NULL,
  `country` char(100) NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`dealer_id`,`country`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='币商-国家关系';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `dealer_transfer_detail`
--

DROP TABLE IF EXISTS `dealer_transfer_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dealer_transfer_detail` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `dealer_id` bigint unsigned NOT NULL,
  `receiver_id` bigint unsigned NOT NULL,
  `diamond` int unsigned NOT NULL,
  `dollar` int unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `dealer_id_IDX` (`dealer_id`),
  KEY `created_time_IDX` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=1149 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='币商钻石转账流水';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `diamond_account`
--

DROP TABLE IF EXISTS `diamond_account`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `diamond_account` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `diamond_num` bigint NOT NULL DEFAULT '0' COMMENT '钻石数量',
  `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `pink_diamond_num` bigint NOT NULL DEFAULT '0' COMMENT '粉钻数量',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_alias` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4431 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `diamond_account_detail`
--

DROP TABLE IF EXISTS `diamond_account_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `diamond_account_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `diamond_account_id` bigint NOT NULL COMMENT '钻石帐号ID',
  `operate_id` bigint NOT NULL,
  `operate_type` tinyint NOT NULL COMMENT '来源类型(1:充值, 2:礼物',
  `origin_id` bigint NOT NULL COMMENT '来源ID',
  `add_reduce` tinyint NOT NULL COMMENT '类型(1:增加 2:减少)',
  `num` int NOT NULL COMMENT '数量',
  `remark` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '备注',
  `bef_num` bigint NOT NULL COMMENT '之前钻石数量',
  `aft_num` bigint NOT NULL COMMENT '之后钻石数量',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `operate_ids` varchar(400) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '批量送礼的operate_id列表',
  PRIMARY KEY (`id`),
  KEY `Index_2` (`diamond_account_id`,`operate_type`),
  KEY `created_time` (`created_time`),
  KEY `origin_id` (`origin_id`,`operate_type`),
  KEY `Index_1` (`user_id`,`operate_type`,`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=14747570 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='钻石账号流水';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Temporary table structure for view `diamond_account_detail_copy`
--

DROP TABLE IF EXISTS `diamond_account_detail_copy`;
/*!50001 DROP VIEW IF EXISTS `diamond_account_detail_copy`*/;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE VIEW `diamond_account_detail_copy` AS SELECT 
 1 AS `id`,
 1 AS `user_id`,
 1 AS `diamond_account_id`,
 1 AS `operate_id`,
 1 AS `operate_type`,
 1 AS `origin_id`,
 1 AS `add_reduce`,
 1 AS `num`,
 1 AS `remark`,
 1 AS `bef_num`,
 1 AS `aft_num`,
 1 AS `created_time`,
 1 AS `updated_time`,
 1 AS `operate_ids`*/;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `diamond_account_recharge_first`
--

DROP TABLE IF EXISTS `diamond_account_recharge_first`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `diamond_account_recharge_first` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `diamond_account_detail_id` bigint NOT NULL COMMENT 'diamond_account_detail_id',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=112 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='钻石首充记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `diamond_dealer`
--

DROP TABLE IF EXISTS `diamond_dealer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `diamond_dealer` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL,
  `diamond` int unsigned NOT NULL COMMENT '钻石余额',
  `wechat` char(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `whatsapp` char(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '淘汰次序,从1开始',
  `contact` char(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '对接人',
  `status` tinyint unsigned NOT NULL DEFAULT '1' COMMENT '状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `has_invite` tinyint NOT NULL DEFAULT '0' COMMENT '是否可以邀请别人为他充值(0否1是)',
  `is_family_agent` tinyint NOT NULL DEFAULT '0' COMMENT '是否家族代理',
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=369 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='币商';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `diamond_operate_set`
--

DROP TABLE IF EXISTS `diamond_operate_set`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `diamond_operate_set` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `diamond_num` int NOT NULL COMMENT '钻石数量',
  `frequency_num` int NOT NULL COMMENT '频率次数',
  `frequency_day` int NOT NULL COMMENT '频率天数',
  `diamond_max_num` int NOT NULL COMMENT '最大金币数',
  `add_reduce` tinyint NOT NULL COMMENT '增加减少',
  `type` tinyint NOT NULL COMMENT '操作类型',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '操作名字',
  `status` tinyint NOT NULL COMMENT '状态(1:开始 0:关闭)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `diamond_type` tinyint NOT NULL DEFAULT '1' COMMENT '钻石类型:1.黄钻2.粉钻',
  PRIMARY KEY (`id`),
  KEY `Index_1` (`type`)
) ENGINE=InnoDB AUTO_INCREMENT=444 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='钻石操作';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `diamond_panel`
--

DROP TABLE IF EXISTS `diamond_panel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `diamond_panel` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `platform` int NOT NULL COMMENT '平台:1.apple;2.google;3.starchat回调茄子支付;4.checkout5.payerMax/茄子支付',
  `diamond` int NOT NULL COMMENT '钻石',
  `money` int NOT NULL COMMENT '金钱',
  `dollar` int NOT NULL,
  `currency_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '货币编码',
  `discount` int NOT NULL COMMENT '折扣',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `card_id` int NOT NULL COMMENT '支付卡类型',
  `is_agent` tinyint NOT NULL DEFAULT '0' COMMENT '0.用户给自己充1.代理给自己充2.用户给代理充',
  `diamond_show` int NOT NULL DEFAULT '0' COMMENT '用户给代理充值(is_agent=2),用户看到的数量',
  PRIMARY KEY (`id`),
  KEY `Index_1` (`currency_code`)
) ENGINE=InnoDB AUTO_INCREMENT=417 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='充值钻石面板';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `diamond_pay_verify`
--

DROP TABLE IF EXISTS `diamond_pay_verify`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `diamond_pay_verify` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `platform` tinyint NOT NULL COMMENT '平台',
  `package_name` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'packageName',
  `product_id` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'productID',
  `purchase_token` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'purchaseToken',
  `order_id` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'orderID',
  `receipt` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT 'receipt',
  `transaction_id` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_date` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint DEFAULT NULL COMMENT '状态',
  `err` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '错误',
  `res` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '返回结果',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`),
  KEY `created_time_IDX` (`created_time`) USING BTREE,
  KEY `transaction_id_IDX` (`transaction_id`) USING BTREE,
  KEY `order_id_IDX` (`order_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=34564 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='支付校验记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `diamond_pink_account_detail`
--

DROP TABLE IF EXISTS `diamond_pink_account_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `diamond_pink_account_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `diamond_account_id` bigint NOT NULL COMMENT '钻石帐号ID',
  `operate_id` bigint NOT NULL,
  `operate_type` tinyint NOT NULL COMMENT '来源类型(1:充值, 2:礼物',
  `origin_id` bigint NOT NULL COMMENT '来源ID',
  `add_reduce` tinyint NOT NULL COMMENT '类型(1:增加 2:减少)',
  `num` int NOT NULL COMMENT '数量',
  `remark` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '备注',
  `bef_num` bigint NOT NULL COMMENT '之前粉钻数量',
  `aft_num` bigint NOT NULL COMMENT '之后粉钻数量',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_2` (`diamond_account_id`,`operate_type`),
  KEY `created_time` (`created_time`),
  KEY `origin_id` (`origin_id`,`operate_type`),
  KEY `Index_1` (`user_id`,`operate_type`,`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=14207154 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='粉钻流水';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `discovery_banner`
--

DROP TABLE IF EXISTS `discovery_banner`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `discovery_banner` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `title` char(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'title',
  `image` char(200) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'image',
  `url` char(200) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'url',
  `group_code` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'group_id',
  `n` int NOT NULL COMMENT 'n',
  `status` tinyint NOT NULL DEFAULT '1' COMMENT 'status',
  `begin_time` datetime NOT NULL COMMENT 'begin_time',
  `end_time` datetime NOT NULL COMMENT 'end_time',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `area` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '上线区域:0全区;1阿语区;2非阿语区;3指定国家',
  `country_list` varchar(800) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '指定区域的国家列表',
  PRIMARY KEY (`id`),
  KEY `Index_1` (`end_time`)
) ENGINE=InnoDB AUTO_INCREMENT=187 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户banner';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_gift_send`
--

DROP TABLE IF EXISTS `event_gift_send`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_gift_send` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id,也用于offset标记',
  `proto` tinyint(1) NOT NULL DEFAULT '1' COMMENT '解析payload协议 1:json',
  `payload` varbinary(2048) NOT NULL DEFAULT '' COMMENT '内容',
  `mark` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否标记处理,1:是 2:否',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `mark_hilo_group` tinyint(1) NOT NULL DEFAULT '2' COMMENT 'hilo_group服务的mark',
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `mark` (`mark`),
  KEY `mark_hilo_group` (`mark_hilo_group`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='送礼事件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_gift_send2`
--

DROP TABLE IF EXISTS `event_gift_send2`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_gift_send2` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id,也用于offset标记',
  `proto` tinyint(1) NOT NULL DEFAULT '1' COMMENT '解析payload协议 1:json',
  `payload` varbinary(2048) NOT NULL DEFAULT '' COMMENT '内容',
  `mark` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否标记处理,1:是 2:否',
  `mark_hilo_group` tinyint(1) NOT NULL DEFAULT '2' COMMENT 'hilo_group服务的mark',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `mark` (`mark`),
  KEY `mark_hilo_group` (`mark_hilo_group`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5428 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='送礼事件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_gift_send_offset`
--

DROP TABLE IF EXISTS `event_gift_send_offset`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_gift_send_offset` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mark_offset` bigint NOT NULL COMMENT 'event_gift_send的偏移值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='送礼事件-标记偏移值';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_gift_send_offset_hilo_group`
--

DROP TABLE IF EXISTS `event_gift_send_offset_hilo_group`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_gift_send_offset_hilo_group` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mark_offset` bigint NOT NULL COMMENT 'event_gift_send的偏移值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='送礼事件-标记偏移值';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_group_in2`
--

DROP TABLE IF EXISTS `event_group_in2`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_group_in2` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id,也用于offset标记',
  `proto` tinyint(1) NOT NULL DEFAULT '1' COMMENT '解析payload协议 1:json',
  `payload` varbinary(2048) NOT NULL DEFAULT '' COMMENT '内容',
  `mark` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否标记处理,1:是 2:否',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `mark` (`mark`)
) ENGINE=InnoDB AUTO_INCREMENT=9800 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='进房事件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_group_in_offset`
--

DROP TABLE IF EXISTS `event_group_in_offset`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_group_in_offset` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mark_offset` bigint NOT NULL COMMENT 'event_group_in的偏移值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='进房事件-标记偏移值';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_group_leave2`
--

DROP TABLE IF EXISTS `event_group_leave2`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_group_leave2` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id,也用于offset标记',
  `proto` tinyint(1) NOT NULL DEFAULT '1' COMMENT '解析payload协议 1:json',
  `payload` varbinary(2048) NOT NULL DEFAULT '' COMMENT '内容',
  `mark` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否标记处理,1:是 2:否',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `mark` (`mark`)
) ENGINE=InnoDB AUTO_INCREMENT=6973 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='离房事件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_group_leave_offset`
--

DROP TABLE IF EXISTS `event_group_leave_offset`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_group_leave_offset` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mark_offset` bigint NOT NULL COMMENT 'event_group_in的偏移值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='离房事件-标记偏移值';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_user_charge`
--

DROP TABLE IF EXISTS `event_user_charge`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_user_charge` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id,也用于offset标记',
  `proto` tinyint(1) NOT NULL DEFAULT '1' COMMENT '解析payload协议 1:json',
  `payload` varbinary(2048) NOT NULL DEFAULT '' COMMENT '内容',
  `mark` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否标记处理,1:是 2:否',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `mark` (`mark`)
) ENGINE=InnoDB AUTO_INCREMENT=229 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='充值事件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_user_charge_202211`
--

DROP TABLE IF EXISTS `event_user_charge_202211`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_user_charge_202211` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id,也用于offset标记',
  `proto` tinyint(1) NOT NULL DEFAULT '1' COMMENT '解析payload协议 1:json',
  `payload` varbinary(2048) NOT NULL DEFAULT '' COMMENT '内容',
  `mark` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否标记处理,1:是 2:否',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `mark` (`mark`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='充值事件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_user_charge_202212`
--

DROP TABLE IF EXISTS `event_user_charge_202212`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_user_charge_202212` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id,也用于offset标记',
  `proto` tinyint(1) NOT NULL DEFAULT '1' COMMENT '解析payload协议 1:json',
  `payload` varbinary(2048) NOT NULL DEFAULT '' COMMENT '内容',
  `mark` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否标记处理,1:是 2:否',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `mark` (`mark`)
) ENGINE=InnoDB AUTO_INCREMENT=398 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='充值事件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_user_charge_202301`
--

DROP TABLE IF EXISTS `event_user_charge_202301`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_user_charge_202301` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id,也用于offset标记',
  `proto` tinyint(1) NOT NULL DEFAULT '1' COMMENT '解析payload协议 1:json',
  `payload` varbinary(2048) NOT NULL DEFAULT '' COMMENT '内容',
  `mark` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否标记处理,1:是 2:否',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `mark` (`mark`)
) ENGINE=InnoDB AUTO_INCREMENT=98 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='充值事件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_user_charge_202302`
--

DROP TABLE IF EXISTS `event_user_charge_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_user_charge_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id,也用于offset标记',
  `proto` tinyint(1) NOT NULL DEFAULT '1' COMMENT '解析payload协议 1:json',
  `payload` varbinary(2048) NOT NULL DEFAULT '' COMMENT '内容',
  `mark` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否标记处理,1:是 2:否',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `mark` (`mark`)
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='充值事件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_user_charge_202303`
--

DROP TABLE IF EXISTS `event_user_charge_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_user_charge_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id,也用于offset标记',
  `proto` tinyint(1) NOT NULL DEFAULT '1' COMMENT '解析payload协议 1:json',
  `payload` varbinary(2048) NOT NULL DEFAULT '' COMMENT '内容',
  `mark` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否标记处理,1:是 2:否',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `mark` (`mark`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='充值事件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_user_charge_202304`
--

DROP TABLE IF EXISTS `event_user_charge_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_user_charge_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id,也用于offset标记',
  `proto` tinyint(1) NOT NULL DEFAULT '1' COMMENT '解析payload协议 1:json',
  `payload` varbinary(2048) NOT NULL DEFAULT '' COMMENT '内容',
  `mark` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否标记处理,1:是 2:否',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `mark` (`mark`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='充值事件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_user_charge_offset`
--

DROP TABLE IF EXISTS `event_user_charge_offset`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_user_charge_offset` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mark_offset` bigint NOT NULL COMMENT '偏移值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='充值事件-标记偏移值';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `fruit_day_rank`
--

DROP TABLE IF EXISTS `fruit_day_rank`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fruit_day_rank` (
  `period` date NOT NULL COMMENT '开始日期',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `stake` bigint unsigned NOT NULL COMMENT '总参与钻石数',
  `award` bigint unsigned NOT NULL COMMENT '总中奖金额',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`period`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='fruit日榜';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `fruit_day_rank_ksa`
--

DROP TABLE IF EXISTS `fruit_day_rank_ksa`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fruit_day_rank_ksa` (
  `period` date NOT NULL COMMENT '开始日期',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `stake` bigint unsigned NOT NULL COMMENT '总参与钻石数',
  `award` bigint unsigned NOT NULL COMMENT '总中奖金额',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`period`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='fruit 沙特日榜';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `fruit_machine`
--

DROP TABLE IF EXISTS `fruit_machine`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fruit_machine` (
  `date` date NOT NULL COMMENT '日期',
  `round` int unsigned NOT NULL COMMENT '轮次',
  `pool` int DEFAULT '0' COMMENT '当前奖池',
  `stake` int unsigned NOT NULL COMMENT '投注额',
  `total` int unsigned NOT NULL COMMENT '总奖池',
  `fruit_id` smallint unsigned NOT NULL COMMENT '开奖的水果ID',
  `award` int unsigned NOT NULL DEFAULT '0' COMMENT '奖金',
  `left_over` int NOT NULL DEFAULT '0' COMMENT '本轮盈余',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date`,`round`),
  KEY `created_time` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='水果机记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `fruit_machine_opt_cfg`
--

DROP TABLE IF EXISTS `fruit_machine_opt_cfg`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fruit_machine_opt_cfg` (
  `id` smallint unsigned NOT NULL COMMENT '选项ID',
  `name` char(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名称',
  `ratio` int unsigned NOT NULL COMMENT '赔率',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='水果机配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `fruit_machine_player`
--

DROP TABLE IF EXISTS `fruit_machine_player`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fruit_machine_player` (
  `date` date NOT NULL COMMENT '日期',
  `round` int unsigned NOT NULL COMMENT '轮次',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `fruit_num` int unsigned NOT NULL COMMENT '下注水果数',
  `award` int unsigned NOT NULL DEFAULT '0' COMMENT '赢得的金额',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date`,`user_id`,`round`),
  KEY `user_id` (`user_id`,`award`),
  KEY `created_time` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='水果机参与者';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `fruit_machine_pool`
--

DROP TABLE IF EXISTS `fruit_machine_pool`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fruit_machine_pool` (
  `id` smallint unsigned NOT NULL,
  `pool` bigint NOT NULL COMMENT '补贴奖池',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='水果机奖池';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `fruit_machine_stake`
--

DROP TABLE IF EXISTS `fruit_machine_stake`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fruit_machine_stake` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `date` date NOT NULL COMMENT '日期',
  `round` int unsigned NOT NULL COMMENT '轮次',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `fruit_id` smallint unsigned NOT NULL COMMENT '选项ID',
  `stake` int unsigned NOT NULL COMMENT '下注金额',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `option_IDX` (`date`,`user_id`,`round`,`fruit_id`),
  KEY `created_time` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=440917 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='水果机赌注';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `fruit_tycoon_pool`
--

DROP TABLE IF EXISTS `fruit_tycoon_pool`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fruit_tycoon_pool` (
  `period` date NOT NULL COMMENT '开始日期',
  `total_award` int unsigned NOT NULL COMMENT '总奖池',
  `ranking_award` int unsigned NOT NULL COMMENT '排行榜奖金',
  `watermelon_award` int unsigned NOT NULL COMMENT '西瓜奖金',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`period`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='水果机奖品池';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `fruit_tycoon_ranking`
--

DROP TABLE IF EXISTS `fruit_tycoon_ranking`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fruit_tycoon_ranking` (
  `period` date NOT NULL COMMENT '开始日期',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `rank` smallint unsigned NOT NULL COMMENT '排名',
  `money` int unsigned NOT NULL COMMENT '奖金',
  `status` tinyint NOT NULL COMMENT '是否领取',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`period`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='水果机排行榜奖';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `fruit_tycoon_watermelon`
--

DROP TABLE IF EXISTS `fruit_tycoon_watermelon`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `fruit_tycoon_watermelon` (
  `period` date NOT NULL COMMENT '开始日期',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `rank` smallint unsigned NOT NULL COMMENT '排名',
  `money` int unsigned NOT NULL COMMENT '奖金',
  `status` tinyint NOT NULL COMMENT '是否领取',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`period`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='水果机西瓜奖';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `game_info`
--

DROP TABLE IF EXISTS `game_info`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `game_info` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mg_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '第三方的游戏id',
  `game_type` int unsigned NOT NULL DEFAULT '0' COMMENT '游戏1.ludo',
  `mode` int NOT NULL DEFAULT '0' COMMENT '模式1.quick2.classic',
  `piece` int NOT NULL DEFAULT '0' COMMENT '游戏人数',
  `on_off1` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '通用开关1(ludo:是否开启魔法0否1是)',
  `diamond` bigint unsigned NOT NULL COMMENT '钻石',
  `create_id` bigint unsigned NOT NULL COMMENT '创建者id',
  `status` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '0.未开始 1.游戏中 2.结束',
  `auto_match` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否自动匹配0否1是',
  `tx_group_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组id',
  `game_round_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '本局游戏的id (重复上报,使用该字段去重)',
  `battle_start_at` int unsigned NOT NULL DEFAULT '0' COMMENT '战斗开始时间(秒)',
  `battle_end_at` int unsigned NOT NULL DEFAULT '0' COMMENT '战斗结束时间(秒)',
  `battle_duration` int unsigned NOT NULL DEFAULT '0' COMMENT '战斗总时间(秒)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新记录的时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `txGIdIng_idx` (`tx_group_id`,`battle_end_at`) USING BTREE,
  KEY `type_idx` (`game_type`) USING BTREE,
  KEY `cid_idx` (`create_id`) USING BTREE,
  KEY `cat_idx` (`created_time`) USING BTREE,
  KEY `uat_idx` (`updated_time`) USING BTREE,
  KEY `bStartAt_idx` (`battle_start_at`) USING BTREE,
  KEY `bEndAt_idx` (`battle_end_at`) USING BTREE,
  KEY `grId_idx` (`game_round_id`) USING BTREE,
  KEY `status_idx` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1614 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='游戏信息';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `game_player`
--

DROP TABLE IF EXISTS `game_player`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `game_player` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `game_id` bigint NOT NULL COMMENT '游戏id',
  `user_id` bigint NOT NULL COMMENT '玩家id',
  `status` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '0.未开始 1.游戏中 2.游戏结束 3.逃跑 4.创建者关闭游戏',
  `user_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '给游戏方的用户code',
  `rank` int unsigned NOT NULL DEFAULT '0' COMMENT '排名',
  `is_escaped` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '0:正常,1:逃跑',
  `is_ai` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '0:普通用户,1:机器人',
  `role` int NOT NULL DEFAULT '0' COMMENT '0:表示没有角色信息,玩家在游戏中的角色',
  `score` int NOT NULL DEFAULT '0' COMMENT '玩家当前局得到的分数',
  `is_win` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '结果 0:表示没有信息,1:输,2:赢,3:平局',
  `award` int unsigned NOT NULL DEFAULT '0' COMMENT '奖励',
  `extras` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '扩展参数',
  `is_managed` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否托管 0:未托管 1:托管',
  `end_at` int unsigned NOT NULL DEFAULT '0' COMMENT '游戏结束时间(秒)',
  `diamond` bigint NOT NULL COMMENT '黄钻收益,有可能负数',
  `seat_idx` tinyint NOT NULL DEFAULT '0' COMMENT '座位,从1开始',
  `external_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户别名',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新记录的时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uIdEndAt_idx` (`user_id`,`end_at`) USING BTREE,
  UNIQUE KEY `gidUid_idx` (`game_id`,`user_id`) USING BTREE,
  KEY `uid_idx` (`user_id`) USING BTREE,
  KEY `ext_idx` (`external_id`) USING BTREE,
  KEY `code_idx` (`user_code`) USING BTREE,
  KEY `cat_idx` (`created_time`) USING BTREE,
  KEY `uat_idx` (`updated_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3851 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='游戏玩家';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `game_player_opt_log`
--

DROP TABLE IF EXISTS `game_player_opt_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `game_player_opt_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `game_id` bigint NOT NULL COMMENT '游戏id',
  `user_id` bigint NOT NULL COMMENT '玩家id',
  `opt` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '1.加入游戏 2.退出游戏',
  `tx_group_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组id',
  `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`),
  KEY `gid_idx` (`game_id`) USING BTREE,
  KEY `uid_idx` (`user_id`) USING BTREE,
  KEY `cat_idx` (`create_at`) USING BTREE,
  KEY `txgid_idx` (`tx_group_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8767 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='游戏玩家操作日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `game_robot`
--

DROP TABLE IF EXISTS `game_robot`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `game_robot` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `state` tinyint NOT NULL DEFAULT '0' COMMENT '状态 0:闲置 1:使用中',
  `op_step` tinyint NOT NULL DEFAULT '0' COMMENT '步骤 0:无 1:进房 2:上麦 3:加入游戏',
  `group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '当前所在群',
  `mic_index` int NOT NULL DEFAULT '-1' COMMENT '当前所在麦位',
  `game_uid` int unsigned NOT NULL DEFAULT '0' COMMENT '当前所在游戏id',
  `mg_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '当前所在游戏sdk的id',
  `last_use_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '上次使用的时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `Index_1` (`user_id`) USING BTREE,
  KEY `Index_2` (`state`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='游戏机器人';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `game_robot_log`
--

DROP TABLE IF EXISTS `game_robot_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `game_robot_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `robot_uid` bigint NOT NULL COMMENT '机器人ID',
  `op` tinyint NOT NULL DEFAULT '0' COMMENT '1:进房 2:上麦 3:加入游戏 4:下麦 5:离房 6:退出游戏',
  `data_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '对应的groupId/gameUid/micIndex',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`robot_uid`)
) ENGINE=InnoDB AUTO_INCREMENT=13488 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='游戏机器人操作日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `game_sdk_report`
--

DROP TABLE IF EXISTS `game_sdk_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `game_sdk_report` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `tx_group_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组id',
  `game_round_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '本局游戏的id',
  `report_type` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '上报类型',
  `report_msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '上报数据对象',
  `external_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '给游戏方的用户id',
  `ss_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户ss_token,请求get_sstoken 接口返回ss_token参数',
  `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`),
  KEY `tgid_idx` (`tx_group_id`) USING BTREE,
  KEY `gid_idx` (`game_round_id`) USING BTREE,
  KEY `eid_idx` (`external_id`) USING BTREE,
  KEY `cat_idx` (`create_at`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1242 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='游戏sdk上报';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `gift_count_user`
--

DROP TABLE IF EXISTS `gift_count_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gift_count_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `res_gift_id` bigint NOT NULL COMMENT '礼物id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `num` int NOT NULL COMMENT '数量',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`res_gift_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=15655 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='礼物统计用户相关';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `gift_operate`
--

DROP TABLE IF EXISTS `gift_operate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gift_operate` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `res_gift_id` bigint NOT NULL COMMENT '礼物id',
  `gift_n` int NOT NULL DEFAULT '0',
  `send_user_id` bigint NOT NULL COMMENT '发送人',
  `receive_user_id` bigint NOT NULL COMMENT '接收人',
  `send_user_diamond` int NOT NULL DEFAULT '0' COMMENT '发送人送礼物对应的钻石',
  `receive_user_diamond` int NOT NULL DEFAULT '0' COMMENT '接受人收礼物对应的钻石',
  `receive_user_bean` int NOT NULL DEFAULT '0' COMMENT '接受人收礼物对应的豆子',
  `scene_type` tinyint NOT NULL COMMENT '赠送场景类型',
  `scene_uid` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '赠送场景ID',
  `bag_id` bigint NOT NULL DEFAULT '0' COMMENT '背包id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `礼物id` (`res_gift_id`),
  KEY `Index_3` (`receive_user_id`) USING BTREE,
  KEY `Index_2` (`send_user_id`,`res_gift_id`) USING BTREE,
  KEY `created_time` (`created_time`,`send_user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1655412 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='礼物操作';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `gift_private_record`
--

DROP TABLE IF EXISTS `gift_private_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gift_private_record` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `res_gift_id` bigint NOT NULL,
  `gift_n` int NOT NULL,
  `diamond_num` int unsigned NOT NULL,
  `send_user_id` bigint unsigned NOT NULL,
  `receive_user_id` bigint unsigned NOT NULL,
  `ref_id` bigint unsigned NOT NULL COMMENT '关联的钻石流水ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `origin_type` tinyint NOT NULL,
  `origin_id` bigint NOT NULL,
  `bag_id` bigint NOT NULL DEFAULT '0' COMMENT '背包id',
  PRIMARY KEY (`id`),
  KEY `sender_idx` (`send_user_id`) USING BTREE,
  KEY `receiver_idx` (`receive_user_id`) USING BTREE,
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=5360 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='私聊礼物记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `girl_support_gift_record`
--

DROP TABLE IF EXISTS `girl_support_gift_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `girl_support_gift_record` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `send_user_id` bigint NOT NULL COMMENT '发送人',
  `receive_user_id` bigint NOT NULL COMMENT '接收人',
  `diamond` int NOT NULL DEFAULT '0' COMMENT '发送人送礼物对应的钻石',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `receive_user_id` (`receive_user_id`) USING BTREE,
  KEY `created_time` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='女性扶持礼物记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `girl_support_user`
--

DROP TABLE IF EXISTS `girl_support_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `girl_support_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `ip` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'ip',
  `imei` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备码',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='女性扶持报名';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `global_broadcast_manager`
--

DROP TABLE IF EXISTS `global_broadcast_manager`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `global_broadcast_manager` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_1` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=179 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理人全球广播';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `google_subscribe_state`
--

DROP TABLE IF EXISTS `google_subscribe_state`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `google_subscribe_state` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `purchase_token` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL,
  `order_id` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL,
  `country_code` char(4) COLLATE utf8mb4_unicode_ci NOT NULL,
  `price_amount_micros` bigint NOT NULL,
  `price_currency_code` char(8) COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_time_millis` bigint NOT NULL,
  `expiry_time_millis` bigint NOT NULL,
  `auto_renewing` tinyint(1) NOT NULL COMMENT '是否自动续费',
  `linked_purchase_token` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `payment_state` bigint NOT NULL,
  `cancel_reason` bigint NOT NULL COMMENT '取消订阅的原因',
  `user_cancellation_time_millis` bigint NOT NULL DEFAULT '0' COMMENT '用户取消订阅的时刻',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `purchase_token` (`purchase_token`)
) ENGINE=InnoDB AUTO_INCREMENT=16280 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='GOOGLE订阅状态';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_activity`
--

DROP TABLE IF EXISTS `group_activity`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_activity` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `end_at` bigint unsigned NOT NULL COMMENT '结束时间戳,毫秒',
  `start_at` bigint unsigned NOT NULL COMMENT '开始时间戳,毫秒',
  `banner` varchar(400) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '活动横幅',
  `desc` varchar(400) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '活动描述',
  `ac_type` tinyint unsigned NOT NULL COMMENT '类型1.游戏2.比赛3.排队4.诗歌',
  `theme` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '主题',
  `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `im_group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组id',
  `update_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新记录的时间',
  `update_id` bigint NOT NULL COMMENT '修改人id',
  `create_id` bigint NOT NULL COMMENT '创建者id',
  `external_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '活动对外uid',
  `is_first` tinyint unsigned NOT NULL DEFAULT '2' COMMENT '是否首个活动1是2否',
  `audit_status` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '审核状态:0.等待计算1.未审核,2.已审核',
  `week_num` tinyint unsigned NOT NULL COMMENT '本周的第几次活动',
  `reward_diamond` bigint unsigned NOT NULL COMMENT '活动奖励钻石,活动结束且后台审核后才有值',
  `audit_user_id` bigint NOT NULL COMMENT '审核人id',
  `audit_at` timestamp NOT NULL COMMENT '审核时间',
  `diamond` bigint unsigned NOT NULL COMMENT '活动期间钻石流水',
  `support_num` bigint unsigned NOT NULL COMMENT '活动期间在群组里消费的人数',
  `audit_pass` tinyint unsigned NOT NULL COMMENT '审核是否通过:1.通过,2.未通过',
  PRIMARY KEY (`id`),
  UNIQUE KEY `extId_idx` (`external_id`) USING BTREE,
  UNIQUE KEY `imid_start_IDX` (`im_group_id`,`start_at`) USING BTREE,
  KEY `start_idx` (`start_at`) USING BTREE,
  KEY `gid_idx` (`im_group_id`) USING BTREE,
  KEY `cid_idx` (`create_id`) USING BTREE,
  KEY `end_idx` (`end_at`) USING BTREE,
  KEY `auditAt_idx` (`audit_at`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=255 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_activity_award_log`
--

DROP TABLE IF EXISTS `group_activity_award_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_activity_award_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_act_id` bigint unsigned NOT NULL COMMENT 'group_activity表id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户id',
  `im_group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组id',
  `award` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '奖励内容',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`) USING BTREE,
  KEY `group_act_id` (`group_act_id`) USING BTREE,
  KEY `im_group_id` (`im_group_id`) USING BTREE,
  KEY `created_time` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群组活动奖励log';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_activity_gift_record`
--

DROP TABLE IF EXISTS `group_activity_gift_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_activity_gift_record` (
  `group_act_id` bigint unsigned NOT NULL,
  `send_user_id` bigint unsigned NOT NULL,
  `diamond` bigint unsigned NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`group_act_id`,`send_user_id`),
  KEY `send_user_id` (`send_user_id`) USING BTREE,
  KEY `created_time` (`created_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='群组活动礼物记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_activity_subscribe`
--

DROP TABLE IF EXISTS `group_activity_subscribe`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_activity_subscribe` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `activity_id` int unsigned NOT NULL COMMENT '订阅的群组活动id',
  `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '订阅时间',
  `user_id` bigint NOT NULL COMMENT '用户id',
  PRIMARY KEY (`id`),
  UNIQUE KEY `activity_user_idx` (`activity_id`,`user_id`) USING BTREE,
  KEY `uid_idx` (`user_id`) USING BTREE,
  KEY `create_idx` (`create_at`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1537 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_banned`
--

DROP TABLE IF EXISTS `group_banned`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_banned` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `im_group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `mgr_id` bigint unsigned NOT NULL,
  `rule_id` bigint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `im_group_id` (`im_group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=419 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='封禁的群';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_banner`
--

DROP TABLE IF EXISTS `group_banner`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_banner` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '标题',
  `image` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '缩略图',
  `url` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'URL',
  `group_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组ID',
  `n` int NOT NULL COMMENT '排序',
  `status` int NOT NULL COMMENT '状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `area` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '上线区域:0全区;1阿语区;2非阿语区;3指定国家',
  `start_at` int unsigned NOT NULL DEFAULT '0' COMMENT '上架时间戳',
  `end_at` int unsigned NOT NULL DEFAULT '0' COMMENT '下架时间戳',
  `country_list` varchar(800) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '指定区域的国家列表',
  PRIMARY KEY (`id`),
  KEY `Index_1` (`n`)
) ENGINE=InnoDB AUTO_INCREMENT=2309 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群组banner';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_blacklist`
--

DROP TABLE IF EXISTS `group_blacklist`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_blacklist` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `im_group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `imei` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '设备号',
  `ip` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `group_user` (`im_group_id`,`user_id`),
  KEY `imei_IDX` (`imei`) USING BTREE,
  KEY `ip_IDX` (`ip`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1010 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群黑名单';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_custom_theme`
--

DROP TABLE IF EXISTS `group_custom_theme`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_custom_theme` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `im_group_id` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'im_group_id',
  `pic_url` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'pic_url',
  `expire_time` datetime NOT NULL COMMENT 'expire_time',
  `using` tinyint NOT NULL COMMENT 'useing',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`im_group_id`,`expire_time`)
) ENGINE=InnoDB AUTO_INCREMENT=579 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群自定义主题';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_info`
--

DROP TABLE IF EXISTS `group_info`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_info` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `im_group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tx_group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `type` smallint unsigned NOT NULL DEFAULT '2',
  `code` char(16) COLLATE utf8mb4_unicode_ci NOT NULL,
  `origin_code` char(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `owner` bigint unsigned NOT NULL,
  `name` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `introduction` varchar(512) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `notification` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `face_url` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `country` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '国家',
  `channel_id` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `password` char(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `entry_level` int unsigned NOT NULL DEFAULT '0',
  `mic_on` tinyint(1) NOT NULL DEFAULT '1',
  `load_history` tinyint(1) NOT NULL DEFAULT '1',
  `mic_num_type` tinyint NOT NULL DEFAULT '1',
  `theme_id` smallint NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `tourist_mic` tinyint NOT NULL DEFAULT '1' COMMENT '游客是否能上麦(1是2否)',
  `tourist_send_msg` tinyint NOT NULL DEFAULT '1' COMMENT '游客是否是否能发言(1是2否)',
  `tourist_send_pic` tinyint NOT NULL DEFAULT '1' COMMENT '游客是否能发图片(1是2否)',
  `member_fee` bigint unsigned NOT NULL DEFAULT '0' COMMENT '加入群组需要的黄钻数',
  PRIMARY KEY (`id`),
  UNIQUE KEY `im_group_id` (`im_group_id`),
  UNIQUE KEY `code` (`code`),
  KEY `tx_group_id_IDX` (`tx_group_id`) USING BTREE,
  KEY `owner` (`owner`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1444 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群组';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_invite_join`
--

DROP TABLE IF EXISTS `group_invite_join`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_invite_join` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL,
  `im_group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `invite_user_id` bigint unsigned NOT NULL COMMENT '邀请者id',
  `is_accept` tinyint NOT NULL DEFAULT '0' COMMENT '是否已经接受邀请',
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_group` (`user_id`,`im_group_id`),
  KEY `im_group_id` (`im_group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='邀请加入群组会员';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_kick_record`
--

DROP TABLE IF EXISTS `group_kick_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_kick_record` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `im_group_id` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'im_group_id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `be_kick_user_id` bigint NOT NULL COMMENT 'be_kick_user_id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=439 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='踢人记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_medal`
--

DROP TABLE IF EXISTS `group_medal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_medal` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `im_group_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'im_group_id',
  `res_medal_id` bigint NOT NULL COMMENT 'res_medal_id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `expire_at` datetime DEFAULT NULL COMMENT '过期时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`im_group_id`,`res_medal_id`),
  KEY `expire_at` (`expire_at`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=434 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群组勋章';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_member`
--

DROP TABLE IF EXISTS `group_member`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_member` (
  `group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`group_id`,`user_id`),
  KEY `user_id_IDX` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群永久成员';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_mic_in_log`
--

DROP TABLE IF EXISTS `group_mic_in_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_mic_in_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=389997 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='麦上用户的记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_mic_in_log_202212`
--

DROP TABLE IF EXISTS `group_mic_in_log_202212`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_mic_in_log_202212` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=195620 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='麦上用户的记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_mic_in_log_202301`
--

DROP TABLE IF EXISTS `group_mic_in_log_202301`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_mic_in_log_202301` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=122498 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='麦上用户的记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_mic_in_log_202302`
--

DROP TABLE IF EXISTS `group_mic_in_log_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_mic_in_log_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=99683 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='麦上用户的记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_mic_in_log_202303`
--

DROP TABLE IF EXISTS `group_mic_in_log_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_mic_in_log_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=32969 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='麦上用户的记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_mic_in_log_202304`
--

DROP TABLE IF EXISTS `group_mic_in_log_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_mic_in_log_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=16237 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='麦上用户的记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_mic_in_log_202305`
--

DROP TABLE IF EXISTS `group_mic_in_log_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_mic_in_log_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`created_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='麦上用户的记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_msg`
--

DROP TABLE IF EXISTS `group_msg`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_msg` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `callback_command` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '回调命令',
  `group_id` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组 ID',
  `type` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组类型',
  `from_account` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送者',
  `operator_account` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '请求的发起者',
  `random` bigint NOT NULL COMMENT '随机数',
  `msg_seq` bigint NOT NULL COMMENT '消息的序列号',
  `msg_time` bigint NOT NULL COMMENT '消息的时间',
  `online_only_flag` tinyint NOT NULL,
  `msg_body` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '消息体',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23192 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群消息';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_popular`
--

DROP TABLE IF EXISTS `group_popular`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_popular` (
  `group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='热门群白名单';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power`
--

DROP TABLE IF EXISTS `group_power`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_uid` char(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组UID',
  `name` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '运营后台看的',
  `status` tinyint NOT NULL COMMENT '状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `nameplate` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '家族铭牌',
  `declaration` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '家族宣言',
  `icon` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'https://image.whoisamy.shop/hilo/resource/family_default.png' COMMENT '家族头像',
  `modify_nameplate` tinyint NOT NULL DEFAULT '2' COMMENT '是否修改过nameplate,1:是 2:否',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_3` (`group_uid`)
) ENGINE=InnoDB AUTO_INCREMENT=269 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_apply_join`
--

DROP TABLE IF EXISTS `group_power_apply_join`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_apply_join` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '申请者id',
  `group_power_id` bigint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `is_accept` tinyint NOT NULL DEFAULT '0' COMMENT '是否已经接受',
  `mgr_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '审核的管理员id',
  PRIMARY KEY (`id`),
  KEY `group_power_id` (`group_power_id`),
  KEY `user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=70 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='申请加入家族';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_day_exp`
--

DROP TABLE IF EXISTS `group_power_day_exp`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_day_exp` (
  `date` date NOT NULL COMMENT '日期',
  `group_power_id` bigint NOT NULL COMMENT '势力id',
  `exp` bigint NOT NULL DEFAULT '0' COMMENT '经验值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date`,`group_power_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力-每日新增经验值';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_day_star`
--

DROP TABLE IF EXISTS `group_power_day_star`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_day_star` (
  `date` date NOT NULL COMMENT '日期,格式200601',
  `group_power_id` bigint NOT NULL COMMENT '势力id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `type` tinyint(1) NOT NULL COMMENT '类型 1:送礼 2:活跃 3:收礼',
  `score` bigint NOT NULL DEFAULT '0' COMMENT '对应分值',
  `last_cal_ts` bigint NOT NULL DEFAULT '0' COMMENT '上次计算时间戳, 计算上麦时长用',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date`,`group_power_id`,`user_id`,`type`),
  KEY `group_power_id` (`group_power_id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力-日家族之星';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_diamond_log`
--

DROP TABLE IF EXISTS `group_power_diamond_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_diamond_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_power_id` bigint unsigned NOT NULL COMMENT '国家势力ID',
  `send_user_id` bigint unsigned NOT NULL COMMENT '发送者ID',
  `send_group_id` char(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送群',
  `receive_user_id` bigint unsigned NOT NULL COMMENT '接收者ID',
  `diamond_num` int NOT NULL COMMENT '钻石',
  `gift_id` bigint NOT NULL COMMENT '礼物ID',
  `gift_num` int NOT NULL COMMENT '礼物数量',
  `gift_operate_id` bigint unsigned NOT NULL COMMENT '礼物操作ID',
  `type` tinyint NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`group_power_id`),
  KEY `created_time_IDX` (`created_time`,`send_group_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=45621 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力钻石流水';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_diamond_log_202301`
--

DROP TABLE IF EXISTS `group_power_diamond_log_202301`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_diamond_log_202301` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_power_id` bigint unsigned NOT NULL COMMENT '国家势力ID',
  `send_user_id` bigint unsigned NOT NULL COMMENT '发送者ID',
  `send_group_id` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送群',
  `receive_user_id` bigint unsigned NOT NULL COMMENT '接收者ID',
  `diamond_num` int NOT NULL COMMENT '钻石',
  `gift_id` bigint NOT NULL COMMENT '礼物ID',
  `gift_num` int NOT NULL COMMENT '礼物数量',
  `gift_operate_id` bigint unsigned NOT NULL COMMENT '礼物操作ID',
  `type` tinyint NOT NULL DEFAULT '0' COMMENT '增加的类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `group_power_id_IDX` (`group_power_id`,`send_group_id`) USING BTREE,
  KEY `created_time_2` (`created_time`,`group_power_id`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力钻石流水';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_diamond_log_202302`
--

DROP TABLE IF EXISTS `group_power_diamond_log_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_diamond_log_202302` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_power_id` bigint unsigned NOT NULL COMMENT '国家势力ID',
  `send_user_id` bigint unsigned NOT NULL COMMENT '发送者ID',
  `send_group_id` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送群',
  `receive_user_id` bigint unsigned NOT NULL COMMENT '接收者ID',
  `diamond_num` int NOT NULL COMMENT '钻石',
  `gift_id` bigint NOT NULL COMMENT '礼物ID',
  `gift_num` int NOT NULL COMMENT '礼物数量',
  `gift_operate_id` bigint unsigned NOT NULL COMMENT '礼物操作ID',
  `type` tinyint NOT NULL DEFAULT '0' COMMENT '增加的类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `group_power_id_IDX` (`group_power_id`,`send_group_id`) USING BTREE,
  KEY `created_time_2` (`created_time`,`group_power_id`)
) ENGINE=InnoDB AUTO_INCREMENT=644 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力钻石流水';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_diamond_log_202303`
--

DROP TABLE IF EXISTS `group_power_diamond_log_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_diamond_log_202303` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_power_id` bigint unsigned NOT NULL COMMENT '国家势力ID',
  `send_user_id` bigint unsigned NOT NULL COMMENT '发送者ID',
  `send_group_id` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送群',
  `receive_user_id` bigint unsigned NOT NULL COMMENT '接收者ID',
  `diamond_num` int NOT NULL COMMENT '钻石',
  `gift_id` bigint NOT NULL COMMENT '礼物ID',
  `gift_num` int NOT NULL COMMENT '礼物数量',
  `gift_operate_id` bigint unsigned NOT NULL COMMENT '礼物操作ID',
  `type` tinyint NOT NULL DEFAULT '0' COMMENT '增加的类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `group_power_id_IDX` (`group_power_id`,`send_group_id`) USING BTREE,
  KEY `created_time_2` (`created_time`,`group_power_id`)
) ENGINE=InnoDB AUTO_INCREMENT=271 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力钻石流水';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_diamond_log_202304`
--

DROP TABLE IF EXISTS `group_power_diamond_log_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_diamond_log_202304` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_power_id` bigint unsigned NOT NULL COMMENT '国家势力ID',
  `send_user_id` bigint unsigned NOT NULL COMMENT '发送者ID',
  `send_group_id` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送群',
  `receive_user_id` bigint unsigned NOT NULL COMMENT '接收者ID',
  `diamond_num` int NOT NULL COMMENT '钻石',
  `gift_id` bigint NOT NULL COMMENT '礼物ID',
  `gift_num` int NOT NULL COMMENT '礼物数量',
  `gift_operate_id` bigint unsigned NOT NULL COMMENT '礼物操作ID',
  `type` tinyint NOT NULL DEFAULT '0' COMMENT '增加的类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `group_power_id_IDX` (`group_power_id`,`send_group_id`) USING BTREE,
  KEY `created_time_2` (`created_time`,`group_power_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1552 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力钻石流水';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_diamond_log_202305`
--

DROP TABLE IF EXISTS `group_power_diamond_log_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_diamond_log_202305` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_power_id` bigint unsigned NOT NULL COMMENT '国家势力ID',
  `send_user_id` bigint unsigned NOT NULL COMMENT '发送者ID',
  `send_group_id` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送群',
  `receive_user_id` bigint unsigned NOT NULL COMMENT '接收者ID',
  `diamond_num` int NOT NULL COMMENT '钻石',
  `gift_id` bigint NOT NULL COMMENT '礼物ID',
  `gift_num` int NOT NULL COMMENT '礼物数量',
  `gift_operate_id` bigint unsigned NOT NULL COMMENT '礼物操作ID',
  `type` tinyint NOT NULL DEFAULT '0' COMMENT '增加的类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `group_power_id_IDX` (`group_power_id`,`send_group_id`) USING BTREE,
  KEY `created_time_2` (`created_time`,`group_power_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力钻石流水';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_exp_detail`
--

DROP TABLE IF EXISTS `group_power_exp_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_exp_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_power_id` bigint NOT NULL COMMENT '势力id',
  `user_id` bigint NOT NULL DEFAULT '0' COMMENT '用户id',
  `exp` bigint NOT NULL DEFAULT '0' COMMENT '经验值',
  `add_reduce` tinyint NOT NULL COMMENT '类型(1:增加 2:减少 3: 设置)',
  `bef_num` bigint NOT NULL COMMENT '之前积分数量',
  `aft_num` bigint NOT NULL COMMENT '之后积分数量',
  `remark` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '备注',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4150 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力-经验值明细';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_grade`
--

DROP TABLE IF EXISTS `group_power_grade`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_grade` (
  `group_power_id` bigint NOT NULL COMMENT '势力id',
  `exp` bigint NOT NULL DEFAULT '0' COMMENT '经验值',
  `grade` int NOT NULL DEFAULT '0' COMMENT '等级 0:青铜 1:白银 2:黄金 3:黑金',
  `expire_at` datetime NOT NULL COMMENT '过期时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`group_power_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力-等级';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_invite_join`
--

DROP TABLE IF EXISTS `group_power_invite_join`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_invite_join` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '被邀请者id',
  `group_power_id` bigint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `invite_user_id` bigint unsigned NOT NULL COMMENT '邀请者id',
  `is_accept` tinyint NOT NULL DEFAULT '0' COMMENT '是否已经接受邀请',
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_group` (`user_id`,`group_power_id`),
  KEY `group_power_id` (`group_power_id`),
  KEY `invite_user_id` (`invite_user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='邀请加入家族';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_month_star`
--

DROP TABLE IF EXISTS `group_power_month_star`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_month_star` (
  `month` char(6) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日期,格式200601',
  `group_power_id` bigint NOT NULL COMMENT '势力id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `type` tinyint(1) NOT NULL COMMENT '类型 1:送礼 2:活跃 3:收礼',
  `score` bigint NOT NULL DEFAULT '0' COMMENT '对应分值',
  `last_cal_ts` bigint NOT NULL DEFAULT '0' COMMENT '上次计算时间戳, 计算上麦时长用',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`month`,`group_power_id`,`user_id`,`type`),
  KEY `group_power_id` (`group_power_id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力-月度家族之星';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_on_mic`
--

DROP TABLE IF EXISTS `group_power_on_mic`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_on_mic` (
  `date` date NOT NULL COMMENT '日期',
  `group_power_id` bigint NOT NULL COMMENT '势力id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `seconds` bigint NOT NULL DEFAULT '0' COMMENT '上麦时长',
  `last_cal_ts` bigint NOT NULL DEFAULT '0' COMMENT '上次计算的上麦时间戳',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date`,`group_power_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力-上麦时长';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_on_mic_detail`
--

DROP TABLE IF EXISTS `group_power_on_mic_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_on_mic_detail` (
  `date` date NOT NULL COMMENT '日期',
  `group_power_id` bigint NOT NULL COMMENT '势力id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `minute` int NOT NULL COMMENT '奖励的分钟',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date`,`group_power_id`,`user_id`,`minute`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力-上麦时长-奖励明细';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_quit_log`
--

DROP TABLE IF EXISTS `group_power_quit_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_quit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户id',
  `mgr_id` bigint unsigned NOT NULL COMMENT '操作人id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `group_power_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`) USING BTREE,
  KEY `created_time` (`created_time`) USING BTREE,
  KEY `mgr_id` (`mgr_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_user`
--

DROP TABLE IF EXISTS `group_power_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_user` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_power_id` bigint unsigned NOT NULL COMMENT '国家势力ID',
  `user_id` bigint unsigned NOT NULL COMMENT '用户',
  `role` tinyint NOT NULL COMMENT '角色',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`) USING BTREE,
  KEY `group_power_id` (`group_power_id`,`role`)
) ENGINE=InnoDB AUTO_INCREMENT=1291 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_user_log`
--

DROP TABLE IF EXISTS `group_power_user_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_user_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_power_id` bigint unsigned NOT NULL COMMENT '国家势力ID',
  `user_id` bigint unsigned NOT NULL COMMENT '用户',
  `operate_type` tinyint NOT NULL COMMENT '操作类型',
  `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '备注,可能用于解散的人员记录',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`group_power_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1703 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家势力用户日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_power_week_diamond`
--

DROP TABLE IF EXISTS `group_power_week_diamond`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_power_week_diamond` (
  `week` date NOT NULL,
  `power_id` bigint unsigned NOT NULL COMMENT '国家势力ID',
  `group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `diamond` int NOT NULL COMMENT '钻石',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`week`,`power_id`,`group_id`),
  KEY `group_id_idx` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='国家势力周钻石统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_roles`
--

DROP TABLE IF EXISTS `group_roles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_roles` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL,
  `im_group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `role` smallint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_group` (`user_id`,`im_group_id`),
  KEY `im_group_id` (`im_group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=30954 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群组角色';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_setting`
--

DROP TABLE IF EXISTS `group_setting`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_setting` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `dice_num` smallint unsigned NOT NULL DEFAULT '5',
  `dice_type` smallint DEFAULT '1' COMMENT '数字类型  1: [0-9] 2:[1-6]',
  `profit_allocator` bigint unsigned NOT NULL DEFAULT '0' COMMENT '扶持奖励分配人',
  `is_hidden` tinyint(1) NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `group_id` (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=865 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群组配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_support_award_admin`
--

DROP TABLE IF EXISTS `group_support_award_admin`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_support_award_admin` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_uid` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组ID',
  `Issuer_user_id` bigint unsigned NOT NULL COMMENT '发放人',
  `user_id` bigint unsigned NOT NULL COMMENT '用户',
  `diamond_num` int NOT NULL COMMENT '钻石数量',
  `grade` int NOT NULL COMMENT '等级',
  `res_group_support_id` bigint unsigned NOT NULL COMMENT '扶持ID',
  `period` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发放周期时间(yyyy-MM-dd)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `group_uid` (`period`,`group_uid`) USING BTREE COMMENT '一个周期下,一个群只有一次利益分配者收益',
  KEY `Index_1` (`group_uid`,`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=549 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群组扶持奖励';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_support_award_mgr`
--

DROP TABLE IF EXISTS `group_support_award_mgr`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_support_award_mgr` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_uid` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组ID',
  `Issuer_user_id` bigint unsigned NOT NULL COMMENT '发放人',
  `user_id` bigint unsigned NOT NULL COMMENT '用户',
  `diamond_num` int NOT NULL COMMENT '钻石数量',
  `grade` int NOT NULL COMMENT '等级',
  `res_group_support_id` bigint unsigned NOT NULL COMMENT '扶持ID',
  `period` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发放周期时间(yyyy-MM-dd)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `period` (`period`,`group_uid`,`user_id`) USING BTREE COMMENT '一个周期内,在一个房间,用户只能获取一次',
  KEY `Index_1` (`group_uid`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=700 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群组扶持奖励';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_support_result`
--

DROP TABLE IF EXISTS `group_support_result`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_support_result` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_uid` char(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组ID',
  `grade` int NOT NULL COMMENT '等级',
  `period` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期时间(yyyy-MM-dd)',
  `heat` int unsigned NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `period` (`group_uid`,`period`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=404 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群组扶持结果';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_supporter`
--

DROP TABLE IF EXISTS `group_supporter`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_supporter` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `group_user_id_IDX` (`group_id`,`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=360 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群组支持者';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_top`
--

DROP TABLE IF EXISTS `group_top`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_top` (
  `id` int unsigned NOT NULL,
  `im_group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `im_group_id` (`im_group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='置顶的群';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_trtc`
--

DROP TABLE IF EXISTS `group_trtc`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_trtc` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `im_group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `im_group_id` (`im_group_id`),
  KEY `created_time` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='使用trtc的群组';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_user`
--

DROP TABLE IF EXISTS `group_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'group_info_id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `msg_status` tinyint NOT NULL COMMENT '群消息状态',
  `in_room_time` datetime DEFAULT NULL COMMENT '进入房间的时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`group_id`,`user_id`),
  KEY `group_id` (`group_id`,`created_time`,`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=11292 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_user_limits`
--

DROP TABLE IF EXISTS `group_user_limits`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_user_limits` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL,
  `max_join` int unsigned NOT NULL COMMENT '最多能加入的群数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群用户的上限';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group_welcome_text`
--

DROP TABLE IF EXISTS `group_welcome_text`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_welcome_text` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint unsigned NOT NULL,
  `text` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '欢迎语',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `group_id` (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=454 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='入群欢迎语';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `guild_user_hello`
--

DROP TABLE IF EXISTS `guild_user_hello`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `guild_user_hello` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL,
  `guild_user_id` bigint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_guild_idx` (`user_id`,`guild_user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3334 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `guild_user_hello_text`
--

DROP TABLE IF EXISTS `guild_user_hello_text`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `guild_user_hello_text` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `language` char(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '语言',
  `msg_id` int unsigned NOT NULL COMMENT '消息ID',
  `content` varchar(5600) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '内容',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `lang_id_idx` (`language`,`msg_id`)
) ENGINE=InnoDB AUTO_INCREMENT=222 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `hilo_configs`
--

DROP TABLE IF EXISTS `hilo_configs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hilo_configs` (
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `log_login_202209`
--

DROP TABLE IF EXISTS `log_login_202209`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `log_login_202209` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `is_succeed` tinyint NOT NULL COMMENT '是否成功',
  `imei` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备号',
  `login_type` smallint NOT NULL COMMENT '登陆类型 1:phone, 2:google, 3:facebook 4:apple 5:wechat',
  `device_type` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备类型',
  `client_ver` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '客户端版本',
  `login_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录token',
  `login_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间',
  `login_ip` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录ip',
  `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '失败错误信息',
  PRIMARY KEY (`id`),
  KEY `time_idx` (`login_time`) USING BTREE,
  KEY `ip_idx` (`login_ip`) USING BTREE,
  KEY `uid_idx` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=625 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `log_login_202210`
--

DROP TABLE IF EXISTS `log_login_202210`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `log_login_202210` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `is_succeed` tinyint NOT NULL COMMENT '是否成功',
  `imei` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备号',
  `login_type` smallint NOT NULL COMMENT '登陆类型 1:phone, 2:google, 3:facebook 4:apple 5:wechat',
  `device_type` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备类型',
  `client_ver` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '客户端版本',
  `login_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录token',
  `login_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间',
  `login_ip` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录ip',
  `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '失败错误信息',
  PRIMARY KEY (`id`),
  KEY `time_idx` (`login_time`) USING BTREE,
  KEY `ip_idx` (`login_ip`) USING BTREE,
  KEY `uid_idx` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=322 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `log_login_202211`
--

DROP TABLE IF EXISTS `log_login_202211`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `log_login_202211` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `is_succeed` tinyint NOT NULL COMMENT '是否成功',
  `imei` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备号',
  `login_type` smallint NOT NULL COMMENT '登陆类型 1:phone, 2:google, 3:facebook 4:apple 5:wechat',
  `device_type` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备类型',
  `client_ver` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '客户端版本',
  `login_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录token',
  `login_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间',
  `login_ip` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录ip',
  `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '失败错误信息',
  PRIMARY KEY (`id`),
  KEY `time_idx` (`login_time`) USING BTREE,
  KEY `ip_idx` (`login_ip`) USING BTREE,
  KEY `uid_idx` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=241 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `log_login_202212`
--

DROP TABLE IF EXISTS `log_login_202212`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `log_login_202212` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `is_succeed` tinyint NOT NULL COMMENT '是否成功',
  `imei` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备号',
  `login_type` smallint NOT NULL COMMENT '登陆类型 1:phone, 2:google, 3:facebook 4:apple 5:wechat',
  `device_type` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备类型',
  `client_ver` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '客户端版本',
  `login_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录token',
  `login_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间',
  `login_ip` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录ip',
  `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '失败错误信息',
  PRIMARY KEY (`id`),
  KEY `time_idx` (`login_time`) USING BTREE,
  KEY `ip_idx` (`login_ip`) USING BTREE,
  KEY `uid_idx` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=317 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `log_login_202301`
--

DROP TABLE IF EXISTS `log_login_202301`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `log_login_202301` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `is_succeed` tinyint NOT NULL COMMENT '是否成功',
  `imei` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备号',
  `login_type` smallint NOT NULL COMMENT '登陆类型 1:phone, 2:google, 3:facebook 4:apple 5:wechat',
  `device_type` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备类型',
  `client_ver` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '客户端版本',
  `login_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录token',
  `login_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间',
  `login_ip` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录ip',
  `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '失败错误信息',
  PRIMARY KEY (`id`),
  KEY `time_idx` (`login_time`) USING BTREE,
  KEY `ip_idx` (`login_ip`) USING BTREE,
  KEY `uid_idx` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=281 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `log_login_202302`
--

DROP TABLE IF EXISTS `log_login_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `log_login_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `is_succeed` tinyint NOT NULL COMMENT '是否成功',
  `imei` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备号',
  `login_type` smallint NOT NULL COMMENT '登陆类型 1:phone, 2:google, 3:facebook 4:apple 5:wechat',
  `device_type` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备类型',
  `client_ver` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '客户端版本',
  `login_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录token',
  `login_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间',
  `login_ip` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录ip',
  `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '失败错误信息',
  PRIMARY KEY (`id`),
  KEY `time_idx` (`login_time`) USING BTREE,
  KEY `ip_idx` (`login_ip`) USING BTREE,
  KEY `uid_idx` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=333 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `log_login_202303`
--

DROP TABLE IF EXISTS `log_login_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `log_login_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `is_succeed` tinyint NOT NULL COMMENT '是否成功',
  `imei` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备号',
  `login_type` smallint NOT NULL COMMENT '登陆类型 1:phone, 2:google, 3:facebook 4:apple 5:wechat',
  `device_type` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备类型',
  `client_ver` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '客户端版本',
  `login_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录token',
  `login_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间',
  `login_ip` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录ip',
  `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '失败错误信息',
  PRIMARY KEY (`id`),
  KEY `time_idx` (`login_time`) USING BTREE,
  KEY `ip_idx` (`login_ip`) USING BTREE,
  KEY `uid_idx` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=306 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `log_login_202304`
--

DROP TABLE IF EXISTS `log_login_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `log_login_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `is_succeed` tinyint NOT NULL COMMENT '是否成功',
  `imei` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备号',
  `login_type` smallint NOT NULL COMMENT '登陆类型 1:phone, 2:google, 3:facebook 4:apple 5:wechat',
  `device_type` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备类型',
  `client_ver` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '客户端版本',
  `login_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录token',
  `login_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间',
  `login_ip` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录ip',
  `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '失败错误信息',
  PRIMARY KEY (`id`),
  KEY `time_idx` (`login_time`) USING BTREE,
  KEY `ip_idx` (`login_ip`) USING BTREE,
  KEY `uid_idx` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=274 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `login_checkout_ip_white`
--

DROP TABLE IF EXISTS `login_checkout_ip_white`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `login_checkout_ip_white` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `black_uid` bigint unsigned NOT NULL DEFAULT '0' COMMENT '被拉黑的用户id',
  `ip` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '白名单ip',
  `black_ip` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '被拉黑的ip',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uid_IDX` (`user_id`),
  KEY `black_uid_IDX` (`black_uid`) USING BTREE,
  KEY `white_ip_IDX` (`ip`) USING BTREE,
  KEY `black_ip_IDX` (`black_ip`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='登录检查ip白名单';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `logout_config`
--

DROP TABLE IF EXISTS `logout_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `logout_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `logout_second` int NOT NULL COMMENT '注销后多少天(秒为单位)',
  `freeze_second` int NOT NULL COMMENT '冻结时间(秒为单位)',
  `diamond_num` int NOT NULL COMMENT '钻石数量',
  `bean_num` int NOT NULL COMMENT '豆子数量',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='注销配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `logout_requisition`
--

DROP TABLE IF EXISTS `logout_requisition`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `logout_requisition` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `status` tinyint NOT NULL COMMENT 'status',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=261 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='注销申请单';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `lucky_wheel`
--

DROP TABLE IF EXISTS `lucky_wheel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lucky_wheel` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `creator` bigint unsigned NOT NULL COMMENT '创建者',
  `creator_join` tinyint(1) NOT NULL DEFAULT '0' COMMENT '创建者是否加入',
  `entrance_fee` int unsigned NOT NULL COMMENT '入场费用',
  `auto_restart` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否自动创建下一轮',
  `player_num` int unsigned NOT NULL DEFAULT '0',
  `play_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '轮盘转动的时间',
  `next_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '下一个时刻',
  `status` tinyint unsigned NOT NULL COMMENT '状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `group_id` (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=9668 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='轮盘游戏控制';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `lucky_wheel_history`
--

DROP TABLE IF EXISTS `lucky_wheel_history`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lucky_wheel_history` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `wheel_id` bigint unsigned NOT NULL COMMENT '关联的轮盘ID',
  `group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `creator` bigint unsigned NOT NULL COMMENT '创建者',
  `entrance_fee` int unsigned NOT NULL COMMENT '入场费用',
  `player_num` int unsigned NOT NULL COMMENT '参与人数',
  `winner` bigint unsigned NOT NULL COMMENT '获胜者',
  `winner_award` int unsigned NOT NULL COMMENT '获胜者奖励',
  `group_owner` bigint unsigned NOT NULL COMMENT '群主',
  `group_owner_award` int unsigned NOT NULL COMMENT '群主奖励',
  `end_status` tinyint unsigned NOT NULL COMMENT '结束状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `wheel_id` (`wheel_id`),
  KEY `group_id` (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=33651 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='轮盘游戏历史';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `lucky_wheel_seat`
--

DROP TABLE IF EXISTS `lucky_wheel_seat`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lucky_wheel_seat` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `wheel_id` bigint unsigned NOT NULL COMMENT '关联的轮盘ID',
  `group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组ID',
  `seat_id` int unsigned NOT NULL COMMENT '座位编号,从0开始',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `seq_id` int unsigned NOT NULL DEFAULT '0' COMMENT '淘汰次序,从1开始',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `wheel_user` (`wheel_id`,`user_id`),
  UNIQUE KEY `wheel_seat` (`wheel_id`,`seat_id`)
) ENGINE=InnoDB AUTO_INCREMENT=17656 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='轮盘座位';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `lucky_wheel_user_option`
--

DROP TABLE IF EXISTS `lucky_wheel_user_option`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lucky_wheel_user_option` (
  `user_id` bigint unsigned NOT NULL,
  `group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_id` bigint unsigned NOT NULL,
  `self_join` tinyint(1) NOT NULL,
  `auto_restart` tinyint(1) NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`user_id`,`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运轮盘用户选项';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox`
--

DROP TABLE IF EXISTS `luckybox`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `diamond_num` int NOT NULL COMMENT 'diamond_num',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_award`
--

DROP TABLE IF EXISTS `luckybox_award`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_award` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `award_n` bigint NOT NULL COMMENT '奖品数量或者主键ID',
  `award_type` tinyint NOT NULL COMMENT '奖品类型',
  `pic_url` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '图片地址',
  `day_n` int NOT NULL COMMENT '当前数量',
  `day_total_n` int NOT NULL COMMENT '日临界数量',
  `day_str` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日字符串',
  `probability` int NOT NULL COMMENT '概率',
  `is_use` tinyint NOT NULL COMMENT '是否上架',
  `is_public_screen` tinyint NOT NULL COMMENT '是否公屏推送',
  `is_scroll_screen` tinyint NOT NULL COMMENT '是否滚动推送',
  `interval_n` int NOT NULL COMMENT '间隔多少次,才能增加',
  `protection_second` int NOT NULL DEFAULT '0' COMMENT '保护多少秒',
  `protection_sum` int NOT NULL COMMENT '保护的总金额阀值',
  `protection_probability` int NOT NULL COMMENT '保护之后的概率',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=622 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子奖励';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_cycle`
--

DROP TABLE IF EXISTS `luckybox_cycle`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_cycle` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `cycle` char(20) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `diamond` int NOT NULL COMMENT '奖金池',
  `begin_time` datetime NOT NULL,
  `end_time` datetime NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`cycle`)
) ENGINE=InnoDB AUTO_INCREMENT=329 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子奖金池';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_cycle_config`
--

DROP TABLE IF EXISTS `luckybox_cycle_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_cycle_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `pool_rate` int NOT NULL,
  `top1_rate` int NOT NULL COMMENT 'top1_rate',
  `top2_rate` int NOT NULL COMMENT 'top2_rate',
  `top3_rate` int NOT NULL COMMENT 'top3_rate',
  `top4_rate` int NOT NULL COMMENT 'top4_rate',
  `top5_rate` int NOT NULL COMMENT 'top5_rate',
  `top6_rate` int NOT NULL COMMENT 'top6_rate',
  `top7_rate` int NOT NULL COMMENT 'top7_rate',
  `top8_rate` int NOT NULL COMMENT 'top8_rate',
  `top9_rate` int NOT NULL COMMENT 'top9_rate',
  `top10_rate` int NOT NULL COMMENT 'top10_rate',
  `top11_rate` int NOT NULL COMMENT 'top11_rate',
  `top12_rate` int NOT NULL COMMENT 'top12_rate',
  `top13_rate` int NOT NULL COMMENT 'top13_rate',
  `top14_rate` int NOT NULL COMMENT 'top14_rate',
  `top15_rate` int NOT NULL COMMENT 'top15_rate',
  `top16_rate` int NOT NULL COMMENT 'top16_rate',
  `top17_rate` int NOT NULL COMMENT 'top17_rate',
  `top18_rate` int NOT NULL COMMENT 'top18_rate',
  `top19_rate` int NOT NULL COMMENT 'top19_rate',
  `top20_rate` int NOT NULL COMMENT 'top20_rate',
  `top21_rate` int NOT NULL COMMENT 'top21_rate',
  `top22_rate` int NOT NULL COMMENT 'top22_rate',
  `top23_rate` int NOT NULL COMMENT 'top23_rate',
  `top24_rate` int NOT NULL COMMENT 'top24_rate',
  `top25_rate` int NOT NULL COMMENT 'top25_rate',
  `top26_rate` int NOT NULL COMMENT 'top26_rate',
  `top27_rate` int NOT NULL COMMENT 'top27_rate',
  `top28_rate` int NOT NULL COMMENT 'top28_rate',
  `top29_rate` int NOT NULL COMMENT 'top29_rate',
  `top30_rate` int NOT NULL COMMENT 'top30_rate',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子周期配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_cycle_user`
--

DROP TABLE IF EXISTS `luckybox_cycle_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_cycle_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `luckybox_cycle_id` bigint NOT NULL COMMENT 'luckybox_cycle_id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `diamond` int NOT NULL COMMENT 'diamond',
  `cycle` char(20) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `award_diamond` int NOT NULL COMMENT '奖励钻石',
  `status` tinyint NOT NULL COMMENT '领取状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`luckybox_cycle_id`,`user_id`) USING BTREE,
  KEY `luckybox_cycle_id` (`luckybox_cycle_id`),
  KEY `luckybox_cycle_id_2` (`luckybox_cycle_id`,`award_diamond`)
) ENGINE=InnoDB AUTO_INCREMENT=2877 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子周期用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_total_user`
--

DROP TABLE IF EXISTS `luckybox_total_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_total_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL,
  `buy_diamond` int unsigned NOT NULL,
  `award_diamond` int unsigned NOT NULL,
  `award_n` bigint unsigned NOT NULL,
  `sync` tinyint NOT NULL DEFAULT '2' COMMENT '是否同步 1:是 2:否',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3790 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子用户汇总(全部)';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_user`
--

DROP TABLE IF EXISTS `luckybox_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `luckybox_award_id` bigint NOT NULL COMMENT '中奖奖励ID',
  `award_n` bigint NOT NULL COMMENT '奖品 (0代表未中奖)',
  `award_type` tinyint NOT NULL COMMENT '奖品类型',
  `buy_diamond` int NOT NULL DEFAULT '0' COMMENT '购买需要的钻石数量',
  `award_diamond` int NOT NULL DEFAULT '0' COMMENT '价值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `user_id` (`user_id`,`luckybox_award_id`,`id`),
  KEY `user_id_2` (`user_id`,`id`),
  KEY `user_id_3` (`user_id`,`award_diamond`)
) ENGINE=InnoDB AUTO_INCREMENT=473939918 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子抽奖记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_user_202203`
--

DROP TABLE IF EXISTS `luckybox_user_202203`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_user_202203` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `luckybox_award_id` bigint NOT NULL COMMENT '中奖奖励ID',
  `award_n` bigint NOT NULL COMMENT '奖品 (0代表未中奖)',
  `award_type` tinyint NOT NULL COMMENT '奖品类型',
  `buy_diamond` int NOT NULL DEFAULT '0' COMMENT '购买需要的钻石数量',
  `award_diamond` int NOT NULL DEFAULT '0' COMMENT '价值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`luckybox_award_id`,`id`) USING BTREE,
  KEY `user_id_2` (`user_id`,`id`) USING BTREE,
  KEY `user_id_3` (`user_id`,`award_diamond`),
  KEY `user_id_4` (`user_id`,`created_time`),
  KEY `created_time` (`created_time`,`user_id`) USING BTREE,
  KEY `luckybox_award_id` (`luckybox_award_id`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18687721 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子抽奖记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_user_202204`
--

DROP TABLE IF EXISTS `luckybox_user_202204`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_user_202204` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `luckybox_award_id` bigint NOT NULL COMMENT '中奖奖励ID',
  `award_n` bigint NOT NULL COMMENT '奖品 (0代表未中奖)',
  `award_type` tinyint NOT NULL COMMENT '奖品类型',
  `buy_diamond` int NOT NULL DEFAULT '0' COMMENT '购买需要的钻石数量',
  `award_diamond` int NOT NULL DEFAULT '0' COMMENT '价值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`luckybox_award_id`,`id`) USING BTREE,
  KEY `user_id_2` (`user_id`,`id`) USING BTREE,
  KEY `user_id_3` (`user_id`,`award_diamond`),
  KEY `user_id_4` (`user_id`,`created_time`),
  KEY `created_time` (`created_time`,`user_id`) USING BTREE,
  KEY `luckybox_award_id` (`luckybox_award_id`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=41162571 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子抽奖记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_user_202205`
--

DROP TABLE IF EXISTS `luckybox_user_202205`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_user_202205` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `luckybox_award_id` bigint NOT NULL COMMENT '中奖奖励ID',
  `award_n` bigint NOT NULL COMMENT '奖品 (0代表未中奖)',
  `award_type` tinyint NOT NULL COMMENT '奖品类型',
  `buy_diamond` int NOT NULL DEFAULT '0' COMMENT '购买需要的钻石数量',
  `award_diamond` int NOT NULL DEFAULT '0' COMMENT '价值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`luckybox_award_id`,`id`) USING BTREE,
  KEY `user_id_2` (`user_id`,`id`) USING BTREE,
  KEY `user_id_3` (`user_id`,`award_diamond`),
  KEY `user_id_4` (`user_id`,`created_time`),
  KEY `created_time` (`created_time`,`user_id`) USING BTREE,
  KEY `luckybox_award_id` (`luckybox_award_id`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=64107762 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子抽奖记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_user_202206`
--

DROP TABLE IF EXISTS `luckybox_user_202206`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_user_202206` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `luckybox_award_id` bigint NOT NULL COMMENT '中奖奖励ID',
  `award_n` bigint NOT NULL COMMENT '奖品 (0代表未中奖)',
  `award_type` tinyint NOT NULL COMMENT '奖品类型',
  `buy_diamond` int NOT NULL DEFAULT '0' COMMENT '购买需要的钻石数量',
  `award_diamond` int NOT NULL DEFAULT '0' COMMENT '价值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`luckybox_award_id`,`id`) USING BTREE,
  KEY `user_id_2` (`user_id`,`id`) USING BTREE,
  KEY `user_id_3` (`user_id`,`award_diamond`),
  KEY `user_id_4` (`user_id`,`created_time`),
  KEY `created_time` (`created_time`,`user_id`) USING BTREE,
  KEY `luckybox_award_id` (`luckybox_award_id`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=87007482 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子抽奖记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_user_202207`
--

DROP TABLE IF EXISTS `luckybox_user_202207`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_user_202207` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `luckybox_award_id` bigint NOT NULL COMMENT '中奖奖励ID',
  `award_n` bigint NOT NULL COMMENT '奖品 (0代表未中奖)',
  `award_type` tinyint NOT NULL COMMENT '奖品类型',
  `buy_diamond` int NOT NULL DEFAULT '0' COMMENT '购买需要的钻石数量',
  `award_diamond` int NOT NULL DEFAULT '0' COMMENT '价值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`luckybox_award_id`,`id`) USING BTREE,
  KEY `user_id_2` (`user_id`,`id`) USING BTREE,
  KEY `user_id_3` (`user_id`,`award_diamond`),
  KEY `user_id_4` (`user_id`,`created_time`),
  KEY `created_time` (`created_time`,`user_id`) USING BTREE,
  KEY `luckybox_award_id` (`luckybox_award_id`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=129612582 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子抽奖记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_user_202209`
--

DROP TABLE IF EXISTS `luckybox_user_202209`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_user_202209` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `luckybox_award_id` bigint NOT NULL COMMENT '中奖奖励ID',
  `award_n` bigint NOT NULL COMMENT '奖品 (0代表未中奖)',
  `award_type` tinyint NOT NULL COMMENT '奖品类型',
  `buy_diamond` int NOT NULL DEFAULT '0' COMMENT '购买需要的钻石数量',
  `award_diamond` int NOT NULL DEFAULT '0' COMMENT '价值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `user_id` (`user_id`,`luckybox_award_id`,`id`),
  KEY `user_id_2` (`user_id`,`id`),
  KEY `user_id_3` (`user_id`,`award_diamond`)
) ENGINE=InnoDB AUTO_INCREMENT=7883717 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子抽奖记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_user_202210`
--

DROP TABLE IF EXISTS `luckybox_user_202210`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_user_202210` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `luckybox_award_id` bigint NOT NULL COMMENT '中奖奖励ID',
  `award_n` bigint NOT NULL COMMENT '奖品 (0代表未中奖)',
  `award_type` tinyint NOT NULL COMMENT '奖品类型',
  `buy_diamond` int NOT NULL DEFAULT '0' COMMENT '购买需要的钻石数量',
  `award_diamond` int NOT NULL DEFAULT '0' COMMENT '价值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `user_id` (`user_id`,`luckybox_award_id`,`id`),
  KEY `user_id_2` (`user_id`,`id`),
  KEY `user_id_3` (`user_id`,`award_diamond`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子抽奖记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_user_20221009`
--

DROP TABLE IF EXISTS `luckybox_user_20221009`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_user_20221009` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `luckybox_award_id` bigint NOT NULL COMMENT '中奖奖励ID',
  `award_n` bigint NOT NULL COMMENT '奖品 (0代表未中奖)',
  `award_type` tinyint NOT NULL COMMENT '奖品类型',
  `buy_diamond` int NOT NULL DEFAULT '0' COMMENT '购买需要的钻石数量',
  `award_diamond` int NOT NULL DEFAULT '0' COMMENT '价值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`),
  KEY `user_id` (`user_id`,`luckybox_award_id`,`id`),
  KEY `user_id_2` (`user_id`,`id`),
  KEY `user_id_3` (`user_id`,`award_diamond`)
) ENGINE=InnoDB AUTO_INCREMENT=527902622 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运盒子抽奖记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_week_user`
--

DROP TABLE IF EXISTS `luckybox_week_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_week_user` (
  `date` date NOT NULL COMMENT '周期开始日期',
  `user_id` bigint unsigned NOT NULL,
  `buy_diamond` int unsigned NOT NULL,
  `award_diamond` int unsigned NOT NULL,
  `award_n` bigint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='幸运盒子用户汇总(周)';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `luckybox_week_user_20221023`
--

DROP TABLE IF EXISTS `luckybox_week_user_20221023`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `luckybox_week_user_20221023` (
  `date` date NOT NULL COMMENT '周期开始日期',
  `user_id` bigint unsigned NOT NULL,
  `buy_diamond` int unsigned NOT NULL,
  `award_diamond` int unsigned NOT NULL,
  `award_n` bigint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='幸运盒子用户汇总(周)';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_actity_set_daily`
--

DROP TABLE IF EXISTS `match_actity_set_daily`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_actity_set_daily` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `type` tinyint NOT NULL COMMENT 'type',
  `score` int NOT NULL COMMENT '分数',
  `max_score` int NOT NULL COMMENT '最大分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`type`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配活跃设置-每日分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_actity_set_score_grade`
--

DROP TABLE IF EXISTS `match_actity_set_score_grade`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_actity_set_score_grade` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小数量',
  `max_num` int NOT NULL COMMENT '最大数量',
  `grade` int NOT NULL COMMENT '等级',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=74 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配活跃配置分数等级';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_actity_user_score`
--

DROP TABLE IF EXISTS `match_actity_user_score`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_actity_user_score` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `score` int NOT NULL COMMENT '分数',
  `grade` int NOT NULL COMMENT '等级',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1426 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配活跃用户分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_actity_user_score_daily`
--

DROP TABLE IF EXISTS `match_actity_user_score_daily`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_actity_user_score_daily` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `type` tinyint NOT NULL COMMENT 'type',
  `score` int NOT NULL COMMENT '分数',
  `daily` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日期',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`daily`,`type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=9878 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配活跃用户每日分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_charm_set_score_grade`
--

DROP TABLE IF EXISTS `match_charm_set_score_grade`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_charm_set_score_grade` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小数量',
  `max_num` int NOT NULL COMMENT '最大数量',
  `grade` int NOT NULL COMMENT '等级',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=131 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='魅力分数同等级关系';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_charm_user_score`
--

DROP TABLE IF EXISTS `match_charm_user_score`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_charm_user_score` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `score` int NOT NULL COMMENT '分数',
  `grade` int NOT NULL COMMENT '等级',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1837 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户魅力分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_charm_user_score_detail`
--

DROP TABLE IF EXISTS `match_charm_user_score_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_charm_user_score_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_charm_user_score_id` bigint NOT NULL COMMENT '用户魅力分数ID',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `before_score` int NOT NULL COMMENT '之前分数',
  `score` int NOT NULL COMMENT '分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `type` tinyint NOT NULL COMMENT '类型',
  `orgin_id` bigint NOT NULL COMMENT '来源ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=363308 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户魅力分数详细表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_config`
--

DROP TABLE IF EXISTS `match_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `time_gift_id` bigint NOT NULL COMMENT '加时礼物',
  `minute_diamond` int NOT NULL COMMENT '分钟扣费',
  `goddess_open_close` int NOT NULL DEFAULT '0' COMMENT '女神开启关闭',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配卡配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_confirm`
--

DROP TABLE IF EXISTS `match_confirm`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_confirm` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_uid` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配UID',
  `channel_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `status` tinyint NOT NULL COMMENT '状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `start_timestamp` bigint NOT NULL DEFAULT '0' COMMENT '声网开始时间',
  `end_timestamp` bigint NOT NULL DEFAULT '0' COMMENT '声网结束时间',
  `reality_timestamp` bigint DEFAULT NULL COMMENT '实际通话时长',
  `pic_url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '图片地址',
  `version` int unsigned DEFAULT '0',
  `call_ready_time` timestamp NULL DEFAULT NULL COMMENT '第一帧的时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_uid`) USING BTREE,
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=453000 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配确认结果';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_confirm_free_time_record`
--

DROP TABLE IF EXISTS `match_confirm_free_time_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_confirm_free_time_record` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_uid` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配UID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`match_uid`)
) ENGINE=InnoDB AUTO_INCREMENT=13902 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配免费加时';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_confirm_gift_sum`
--

DROP TABLE IF EXISTS `match_confirm_gift_sum`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_confirm_gift_sum` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_uid` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配UID',
  `send_user_id` bigint NOT NULL COMMENT '发送者',
  `receive_user_id` bigint NOT NULL COMMENT '接收者',
  `time_diamond` int NOT NULL COMMENT '加时钻石汇总',
  `time_bean` int NOT NULL COMMENT '加时豆子汇总',
  `gift_diamond` int NOT NULL COMMENT '礼物钻石汇总',
  `gift_bean` int NOT NULL COMMENT '礼物豆子汇总',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_uid`,`receive_user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1224 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配过程礼物汇总';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_confirm_history`
--

DROP TABLE IF EXISTS `match_confirm_history`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_confirm_history` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `other_user_id` bigint NOT NULL COMMENT 'other_user_id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `match_uid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `n` int DEFAULT '0' COMMENT '次数',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`other_user_id`) USING BTREE,
  KEY `updated_time` (`updated_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=12302 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配历史';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_confirm_user`
--

DROP TABLE IF EXISTS `match_confirm_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_confirm_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `match_uid` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配UID',
  `other_user_id` bigint NOT NULL,
  `accept_refuse` tinyint NOT NULL COMMENT '接受拒绝',
  `agora_id` int DEFAULT NULL COMMENT '声网Id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `AK_Key_2` (`match_uid`,`user_id`),
  KEY `user_id` (`user_id`,`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=699236 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配参与者';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_confirm_user_condition`
--

DROP TABLE IF EXISTS `match_confirm_user_condition`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_confirm_user_condition` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_confrim_user_id` bigint NOT NULL COMMENT 'match_confrim_user_id',
  `condition_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'condition_type',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `AK_Key_2` (`match_confrim_user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3862 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='本次匹配的参与条件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle`
--

DROP TABLE IF EXISTS `match_cycle`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `join_num` int NOT NULL COMMENT '参与人数',
  `success_num` int NOT NULL COMMENT '匹配成功的人数',
  `fail_num` int NOT NULL COMMENT '匹配失败的人数',
  `trade_union_broadcast` tinyint NOT NULL COMMENT '是否发出工会广播  1:广播 2:不广播',
  `is_send` tinyint DEFAULT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=63313322 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_condition`
--

DROP TABLE IF EXISTS `match_cycle_condition`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_condition` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `type` tinyint NOT NULL COMMENT '类型(1:国家 2:性别)',
  `value` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`type`),
  KEY `Index_1` (`match_cycle`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期条件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_excellent_user`
--

DROP TABLE IF EXISTS `match_cycle_excellent_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_excellent_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_userId` (`match_cycle`,`user_id`),
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=2326731 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期质量分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_excellent_user_202302`
--

DROP TABLE IF EXISTS `match_cycle_excellent_user_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_excellent_user_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_userId` (`match_cycle`,`user_id`),
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期质量分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_excellent_user_202303`
--

DROP TABLE IF EXISTS `match_cycle_excellent_user_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_excellent_user_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_userId` (`match_cycle`,`user_id`),
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期质量分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_excellent_user_202304`
--

DROP TABLE IF EXISTS `match_cycle_excellent_user_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_excellent_user_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_userId` (`match_cycle`,`user_id`),
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期质量分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_excellent_user_202305`
--

DROP TABLE IF EXISTS `match_cycle_excellent_user_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_excellent_user_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_userId` (`match_cycle`,`user_id`),
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期质量分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_excellent_user_form`
--

DROP TABLE IF EXISTS `match_cycle_excellent_user_form`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_excellent_user_form` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=21895822 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期质量分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_excellent_user_form_202212`
--

DROP TABLE IF EXISTS `match_cycle_excellent_user_form_202212`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_excellent_user_form_202212` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=94 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期质量分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_excellent_user_form_202301`
--

DROP TABLE IF EXISTS `match_cycle_excellent_user_form_202301`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_excellent_user_form_202301` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=1133 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期质量分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_excellent_user_form_202302`
--

DROP TABLE IF EXISTS `match_cycle_excellent_user_form_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_excellent_user_form_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=551 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期质量分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_excellent_user_form_202303`
--

DROP TABLE IF EXISTS `match_cycle_excellent_user_form_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_excellent_user_form_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=144 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期质量分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_excellent_user_form_202304`
--

DROP TABLE IF EXISTS `match_cycle_excellent_user_form_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_excellent_user_form_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=205 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期质量分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_excellent_user_form_202305`
--

DROP TABLE IF EXISTS `match_cycle_excellent_user_form_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_excellent_user_form_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期质量分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_priority_user`
--

DROP TABLE IF EXISTS `match_cycle_priority_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_priority_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`),
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=2121256 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期优先度分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_priority_user_202302`
--

DROP TABLE IF EXISTS `match_cycle_priority_user_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_priority_user_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`),
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期优先度分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_priority_user_202303`
--

DROP TABLE IF EXISTS `match_cycle_priority_user_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_priority_user_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`),
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期优先度分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_priority_user_202304`
--

DROP TABLE IF EXISTS `match_cycle_priority_user_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_priority_user_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`),
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期优先度分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_priority_user_202305`
--

DROP TABLE IF EXISTS `match_cycle_priority_user_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_priority_user_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`),
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期优先度分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_priority_user_form`
--

DROP TABLE IF EXISTS `match_cycle_priority_user_form`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_priority_user_form` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=16161794 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期顺序分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_priority_user_form_202212`
--

DROP TABLE IF EXISTS `match_cycle_priority_user_form_202212`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_priority_user_form_202212` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=76 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期顺序分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_priority_user_form_202301`
--

DROP TABLE IF EXISTS `match_cycle_priority_user_form_202301`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_priority_user_form_202301` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=967 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期顺序分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_priority_user_form_202302`
--

DROP TABLE IF EXISTS `match_cycle_priority_user_form_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_priority_user_form_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=518 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期顺序分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_priority_user_form_202303`
--

DROP TABLE IF EXISTS `match_cycle_priority_user_form_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_priority_user_form_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=153 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期顺序分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_priority_user_form_202304`
--

DROP TABLE IF EXISTS `match_cycle_priority_user_form_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_priority_user_form_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=198 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期顺序分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_priority_user_form_202305`
--

DROP TABLE IF EXISTS `match_cycle_priority_user_form_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_priority_user_form_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`score`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期顺序分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_relation_user`
--

DROP TABLE IF EXISTS `match_cycle_relation_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_relation_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_userId` (`match_cycle`,`user_id`,`relation_user_id`),
  KEY `Index_1` (`match_cycle`,`user_id`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=1705463 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期关系分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_relation_user_202302`
--

DROP TABLE IF EXISTS `match_cycle_relation_user_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_relation_user_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_userId` (`match_cycle`,`user_id`,`relation_user_id`),
  KEY `Index_1` (`match_cycle`,`user_id`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期关系分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_relation_user_202303`
--

DROP TABLE IF EXISTS `match_cycle_relation_user_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_relation_user_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_userId` (`match_cycle`,`user_id`,`relation_user_id`),
  KEY `Index_1` (`match_cycle`,`user_id`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期关系分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_relation_user_202304`
--

DROP TABLE IF EXISTS `match_cycle_relation_user_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_relation_user_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_userId` (`match_cycle`,`user_id`,`relation_user_id`),
  KEY `Index_1` (`match_cycle`,`user_id`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期关系分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_relation_user_202305`
--

DROP TABLE IF EXISTS `match_cycle_relation_user_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_relation_user_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_userId` (`match_cycle`,`user_id`,`relation_user_id`),
  KEY `Index_1` (`match_cycle`,`user_id`,`score`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期关系分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_relation_user_form`
--

DROP TABLE IF EXISTS `match_cycle_relation_user_form`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_relation_user_form` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` int NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`relation_user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`user_id`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=9020459 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期关系分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_relation_user_form_202212`
--

DROP TABLE IF EXISTS `match_cycle_relation_user_form_202212`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_relation_user_form_202212` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` int NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`relation_user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`user_id`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期关系分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_relation_user_form_202301`
--

DROP TABLE IF EXISTS `match_cycle_relation_user_form_202301`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_relation_user_form_202301` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` int NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`relation_user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`user_id`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=278 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期关系分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_relation_user_form_202302`
--

DROP TABLE IF EXISTS `match_cycle_relation_user_form_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_relation_user_form_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` int NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`relation_user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`user_id`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=116 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期关系分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_relation_user_form_202303`
--

DROP TABLE IF EXISTS `match_cycle_relation_user_form_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_relation_user_form_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` int NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`relation_user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`user_id`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期关系分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_relation_user_form_202304`
--

DROP TABLE IF EXISTS `match_cycle_relation_user_form_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_relation_user_form_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` int NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`relation_user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`user_id`,`score`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期关系分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_relation_user_form_202305`
--

DROP TABLE IF EXISTS `match_cycle_relation_user_form_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_relation_user_form_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `num` int NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`match_cycle`,`user_id`,`relation_user_id`,`origin_type`) USING BTREE,
  KEY `Index_1` (`match_cycle`,`user_id`,`score`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配周期关系分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_cycle_success`
--

DROP TABLE IF EXISTS `match_cycle_success`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_cycle_success` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_cycle` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配周期',
  `match_uid` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '匹配UID',
  `user1_id` bigint NOT NULL COMMENT 'user1Id',
  `user2_Id` bigint NOT NULL COMMENT 'user2Id',
  `status` tinyint(1) NOT NULL,
  `priority` int NOT NULL,
  `excellent` int NOT NULL,
  `relation` int NOT NULL,
  `excellent_relation` int NOT NULL,
  `rpc_status` tinyint NOT NULL,
  `rpc_err` varchar(9999) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`,`user2_Id`),
  UNIQUE KEY `match_uid` (`match_uid`),
  KEY `user1_id` (`user1_id`,`created_time`) USING BTREE,
  KEY `user2_Id` (`user2_Id`,`created_time`) USING BTREE,
  KEY `match_cycle` (`match_cycle`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2264010 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配结果';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_enum_count`
--

DROP TABLE IF EXISTS `match_enum_count`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_enum_count` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `relation_user_id` bigint NOT NULL DEFAULT '0',
  `type` tinyint NOT NULL COMMENT '类型',
  `origin_type` tinyint NOT NULL DEFAULT '0',
  `num` int NOT NULL COMMENT '数量',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `AK_Key_2` (`user_id`,`type`),
  KEY `Index_1` (`user_id`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5102 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配元素统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_set_add_time_rate`
--

DROP TABLE IF EXISTS `match_excellent_set_add_time_rate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_set_add_time_rate` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` float NOT NULL COMMENT '最小数量',
  `max_num` float NOT NULL COMMENT '最大数量',
  `score` int NOT NULL COMMENT '分值',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='加时率率(视频通话加时次数/视频通话次数(匹配推送接受次数))';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_set_be_black`
--

DROP TABLE IF EXISTS `match_excellent_set_be_black`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_set_be_black` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小财富',
  `max_num` int NOT NULL COMMENT '最大财富',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='被拉黑的次数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_set_be_like`
--

DROP TABLE IF EXISTS `match_excellent_set_be_like`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_set_be_like` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小数量',
  `max_num` int NOT NULL COMMENT '最大数量',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='被喜欢的次数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_set_be_report`
--

DROP TABLE IF EXISTS `match_excellent_set_be_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_set_be_report` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小数量',
  `max_num` int NOT NULL COMMENT '最大数量',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='被举报的次数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_set_charm_grade`
--

DROP TABLE IF EXISTS `match_excellent_set_charm_grade`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_set_charm_grade` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小财富',
  `max_num` int NOT NULL COMMENT '最大财富',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='魅力等级';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_set_confirm_rate`
--

DROP TABLE IF EXISTS `match_excellent_set_confirm_rate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_set_confirm_rate` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` float NOT NULL COMMENT '最小数量',
  `max_num` float NOT NULL COMMENT '最大数量',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配接通率(匹配推送接受次数/匹配推送次数)';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_set_gift_video_receive_f`
--

DROP TABLE IF EXISTS `match_excellent_set_gift_video_receive_f`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_set_gift_video_receive_f` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小数量',
  `max_num` int NOT NULL COMMENT '最大数量',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='接收礼物次数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_set_gift_video_receive_num`
--

DROP TABLE IF EXISTS `match_excellent_set_gift_video_receive_num`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_set_gift_video_receive_num` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小数量',
  `max_num` int NOT NULL COMMENT '最大数量',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='接收礼物数量';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_set_like_me`
--

DROP TABLE IF EXISTS `match_excellent_set_like_me`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_set_like_me` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小数量',
  `max_num` int NOT NULL COMMENT '最大数量',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='被喜欢等级';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_set_session_create`
--

DROP TABLE IF EXISTS `match_excellent_set_session_create`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_set_session_create` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小财富',
  `max_num` int NOT NULL COMMENT '最大财富',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='融云会话被付费';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_set_trade_union`
--

DROP TABLE IF EXISTS `match_excellent_set_trade_union`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_set_trade_union` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小数量',
  `max_num` int NOT NULL COMMENT '最大数量',
  `score` int NOT NULL COMMENT '分值',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='工会成员';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_user`
--

DROP TABLE IF EXISTS `match_excellent_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_userId` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=53888 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配质量分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_user_detail`
--

DROP TABLE IF EXISTS `match_excellent_user_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_user_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '新增时间',
  `data_change` int NOT NULL DEFAULT '0',
  `num` float NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=5864868 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配质量详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_user_detail_202302`
--

DROP TABLE IF EXISTS `match_excellent_user_detail_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_user_detail_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '新增时间',
  `data_change` int NOT NULL DEFAULT '0',
  `num` float NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=403 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配质量详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_user_detail_202303`
--

DROP TABLE IF EXISTS `match_excellent_user_detail_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_user_detail_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '新增时间',
  `data_change` int NOT NULL DEFAULT '0',
  `num` float NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=453 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配质量详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_user_detail_202304`
--

DROP TABLE IF EXISTS `match_excellent_user_detail_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_user_detail_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '新增时间',
  `data_change` int NOT NULL DEFAULT '0',
  `num` float NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=926803 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配质量详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_user_detail_202305`
--

DROP TABLE IF EXISTS `match_excellent_user_detail_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_user_detail_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '新增时间',
  `data_change` int NOT NULL DEFAULT '0',
  `num` float NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配质量详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_user_detail_sum`
--

DROP TABLE IF EXISTS `match_excellent_user_detail_sum`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_user_detail_sum` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`origin_type`,`period`,`period_type`)
) ENGINE=InnoDB AUTO_INCREMENT=22994 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配质量详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_user_detail_sum_202302`
--

DROP TABLE IF EXISTS `match_excellent_user_detail_sum_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_user_detail_sum_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`origin_type`,`period`,`period_type`)
) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配质量详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_user_detail_sum_202303`
--

DROP TABLE IF EXISTS `match_excellent_user_detail_sum_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_user_detail_sum_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`origin_type`,`period`,`period_type`)
) ENGINE=InnoDB AUTO_INCREMENT=151 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配质量详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_user_detail_sum_202304`
--

DROP TABLE IF EXISTS `match_excellent_user_detail_sum_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_user_detail_sum_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`origin_type`,`period`,`period_type`)
) ENGINE=InnoDB AUTO_INCREMENT=182412 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配质量详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_user_detail_sum_202305`
--

DROP TABLE IF EXISTS `match_excellent_user_detail_sum_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_user_detail_sum_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`origin_type`,`period`,`period_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配质量详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_excellent_user_form`
--

DROP TABLE IF EXISTS `match_excellent_user_form`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_excellent_user_form` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_id` tinyint NOT NULL COMMENT '来源类型',
  `origin_type` bigint NOT NULL COMMENT '来源ID',
  `origin_name` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源名字',
  `num` float NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `userId` (`user_id`,`origin_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=131965 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配质量分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_gift_operate_count`
--

DROP TABLE IF EXISTS `match_gift_operate_count`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_gift_operate_count` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `type` tinyint NOT NULL COMMENT '类型',
  `num` int NOT NULL COMMENT '数量',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='礼物操作统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_set_active_grade`
--

DROP TABLE IF EXISTS `match_priority_set_active_grade`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_set_active_grade` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小值',
  `max_num` int NOT NULL COMMENT '最大值',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='活跃等级';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_set_again_refuse`
--

DROP TABLE IF EXISTS `match_priority_set_again_refuse`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_set_again_refuse` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小值',
  `max_num` int NOT NULL COMMENT '最大值',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='连续被拒';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_set_again_same_sex`
--

DROP TABLE IF EXISTS `match_priority_set_again_same_sex`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_set_again_same_sex` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小值',
  `max_num` int NOT NULL COMMENT '最大值',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配到同性';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_set_be_black`
--

DROP TABLE IF EXISTS `match_priority_set_be_black`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_set_be_black` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小财富',
  `max_num` int NOT NULL COMMENT '最大财富',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='被拉黑';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_set_be_report`
--

DROP TABLE IF EXISTS `match_priority_set_be_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_set_be_report` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小财富',
  `max_num` int NOT NULL COMMENT '最大财富',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='被举报';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_set_daily_user`
--

DROP TABLE IF EXISTS `match_priority_set_daily_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_set_daily_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小值',
  `max_num` int NOT NULL COMMENT '最大值',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='每日新登陆用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_set_diamond`
--

DROP TABLE IF EXISTS `match_priority_set_diamond`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_set_diamond` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小钻石',
  `max_num` int NOT NULL COMMENT '最大钻石',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='钻石等级';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_set_first_pay`
--

DROP TABLE IF EXISTS `match_priority_set_first_pay`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_set_first_pay` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小财富',
  `max_num` int NOT NULL COMMENT '最大财富',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='24小时首充用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_set_new_user`
--

DROP TABLE IF EXISTS `match_priority_set_new_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_set_new_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小值',
  `max_num` int NOT NULL COMMENT '最大值',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='新用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_set_recently_pay`
--

DROP TABLE IF EXISTS `match_priority_set_recently_pay`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_set_recently_pay` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小财富',
  `max_num` int NOT NULL COMMENT '最大财富',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='近期充值';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_set_trade_union`
--

DROP TABLE IF EXISTS `match_priority_set_trade_union`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_set_trade_union` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小数量',
  `max_num` int NOT NULL COMMENT '最大数量',
  `score` int NOT NULL COMMENT '分值',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='优先度工会成员';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_set_wealth_grade`
--

DROP TABLE IF EXISTS `match_priority_set_wealth_grade`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_set_wealth_grade` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小财富',
  `max_num` int NOT NULL COMMENT '最大财富',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='财富等级';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user`
--

DROP TABLE IF EXISTS `match_priority_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_userId` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4911 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配优先度分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user_detail`
--

DROP TABLE IF EXISTS `match_priority_user_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '触发类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '触发备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户行为ID',
  `data_change` int NOT NULL DEFAULT '0',
  `num` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配分数详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user_detail_202211`
--

DROP TABLE IF EXISTS `match_priority_user_detail_202211`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user_detail_202211` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '触发类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '触发备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户行为ID',
  `data_change` int NOT NULL DEFAULT '0',
  `num` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=16587 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配分数详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user_detail_202212`
--

DROP TABLE IF EXISTS `match_priority_user_detail_202212`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user_detail_202212` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '触发类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '触发备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户行为ID',
  `data_change` int NOT NULL DEFAULT '0',
  `num` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=40879 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配分数详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user_detail_202301`
--

DROP TABLE IF EXISTS `match_priority_user_detail_202301`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user_detail_202301` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '触发类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '触发备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户行为ID',
  `data_change` int NOT NULL DEFAULT '0',
  `num` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=2134 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配分数详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user_detail_202302`
--

DROP TABLE IF EXISTS `match_priority_user_detail_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user_detail_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '触发类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '触发备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户行为ID',
  `data_change` int NOT NULL DEFAULT '0',
  `num` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=1733 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配分数详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user_detail_202303`
--

DROP TABLE IF EXISTS `match_priority_user_detail_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user_detail_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '触发类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '触发备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户行为ID',
  `data_change` int NOT NULL DEFAULT '0',
  `num` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=1212 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配分数详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user_detail_202304`
--

DROP TABLE IF EXISTS `match_priority_user_detail_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user_detail_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '触发类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '触发备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户行为ID',
  `data_change` int NOT NULL DEFAULT '0',
  `num` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=1031 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配分数详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user_detail_202305`
--

DROP TABLE IF EXISTS `match_priority_user_detail_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user_detail_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '触发类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '触发备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户行为ID',
  `data_change` int NOT NULL DEFAULT '0',
  `num` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配分数详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user_detail_sum`
--

DROP TABLE IF EXISTS `match_priority_user_detail_sum`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user_detail_sum` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`,`origin_type`,`period`,`period_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=46739 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配优先详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user_detail_sum_202302`
--

DROP TABLE IF EXISTS `match_priority_user_detail_sum_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user_detail_sum_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`,`origin_type`,`period`,`period_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=652 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配优先详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user_detail_sum_202303`
--

DROP TABLE IF EXISTS `match_priority_user_detail_sum_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user_detail_sum_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`,`origin_type`,`period`,`period_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=911 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配优先详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user_detail_sum_202304`
--

DROP TABLE IF EXISTS `match_priority_user_detail_sum_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user_detail_sum_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`,`origin_type`,`period`,`period_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=655 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配优先详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user_detail_sum_202305`
--

DROP TABLE IF EXISTS `match_priority_user_detail_sum_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user_detail_sum_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`,`origin_type`,`period`,`period_type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配优先详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_priority_user_form`
--

DROP TABLE IF EXISTS `match_priority_user_form`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_priority_user_form` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `score` int NOT NULL COMMENT '分数',
  `origin_id` tinyint NOT NULL COMMENT '来源类型',
  `origin_type` bigint NOT NULL COMMENT '来源ID',
  `origin_name` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源名字',
  `num` int NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `userId` (`user_id`,`origin_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=21182 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配顺序分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_set_like`
--

DROP TABLE IF EXISTS `match_relation_set_like`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_set_like` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小值',
  `max_num` int NOT NULL COMMENT '最大值',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='是否喜欢等级';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_set_match_refuse`
--

DROP TABLE IF EXISTS `match_relation_set_match_refuse`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_set_match_refuse` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小数量',
  `max_num` int NOT NULL COMMENT '最大数量',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='被拒绝的次数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_set_match_user`
--

DROP TABLE IF EXISTS `match_relation_set_match_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_set_match_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小数量',
  `max_num` int NOT NULL COMMENT '最大数量',
  `score` int NOT NULL COMMENT '分值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配过的用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_set_match_user_last_time`
--

DROP TABLE IF EXISTS `match_relation_set_match_user_last_time`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_set_match_user_last_time` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小数量',
  `max_num` int NOT NULL COMMENT '最大数量',
  `score` int NOT NULL COMMENT '分值',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='上一轮匹配推送过的用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_set_session_no_match_confirm`
--

DROP TABLE IF EXISTS `match_relation_set_session_no_match_confirm`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_set_session_no_match_confirm` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小数量',
  `max_num` int NOT NULL COMMENT '最大数量',
  `score` int NOT NULL COMMENT '分值',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='付费发送过消息但没进行过视频聊天';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user`
--

DROP TABLE IF EXISTS `match_relation_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_userId` (`user_id`,`relation_user_id`),
  KEY `relation_user_id` (`relation_user_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=616382 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_detail`
--

DROP TABLE IF EXISTS `match_relation_user_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'log_id',
  `data_change` int NOT NULL DEFAULT '0',
  `num` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`relation_user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=10244142 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_detail_202301`
--

DROP TABLE IF EXISTS `match_relation_user_detail_202301`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_detail_202301` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'log_id',
  `data_change` int NOT NULL DEFAULT '0',
  `num` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`relation_user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=149 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_detail_202302`
--

DROP TABLE IF EXISTS `match_relation_user_detail_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_detail_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'log_id',
  `data_change` int NOT NULL DEFAULT '0',
  `num` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`relation_user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=268 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_detail_202303`
--

DROP TABLE IF EXISTS `match_relation_user_detail_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_detail_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'log_id',
  `data_change` int NOT NULL DEFAULT '0',
  `num` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`relation_user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=95 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_detail_202304`
--

DROP TABLE IF EXISTS `match_relation_user_detail_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_detail_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'log_id',
  `data_change` int NOT NULL DEFAULT '0',
  `num` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`relation_user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=2728177 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_detail_202305`
--

DROP TABLE IF EXISTS `match_relation_user_detail_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_detail_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `bef_score` int NOT NULL COMMENT '之前分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `score` int NOT NULL COMMENT '分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `origin_remark` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源备注',
  `log_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'log_id',
  `data_change` int NOT NULL DEFAULT '0',
  `num` int NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`relation_user_id`),
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_detail_sum`
--

DROP TABLE IF EXISTS `match_relation_user_detail_sum`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_detail_sum` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`relation_user_id`,`origin_type`,`period`,`period_type`)
) ENGINE=InnoDB AUTO_INCREMENT=110284 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_detail_sum_202301`
--

DROP TABLE IF EXISTS `match_relation_user_detail_sum_202301`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_detail_sum_202301` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`period_type`,`period`,`origin_type`,`user_id`,`relation_user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=286 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_detail_sum_202302`
--

DROP TABLE IF EXISTS `match_relation_user_detail_sum_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_detail_sum_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`period_type`,`period`,`origin_type`,`user_id`,`relation_user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=555 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_detail_sum_202303`
--

DROP TABLE IF EXISTS `match_relation_user_detail_sum_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_detail_sum_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`period_type`,`period`,`origin_type`,`user_id`,`relation_user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=159 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_detail_sum_202304`
--

DROP TABLE IF EXISTS `match_relation_user_detail_sum_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_detail_sum_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`period_type`,`period`,`origin_type`,`user_id`,`relation_user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3233751 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_detail_sum_202305`
--

DROP TABLE IF EXISTS `match_relation_user_detail_sum_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_detail_sum_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `total_score` int NOT NULL COMMENT '总分数',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `period` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '周期',
  `period_type` tinyint NOT NULL COMMENT '周期类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`period_type`,`period`,`origin_type`,`user_id`,`relation_user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系详情统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_form`
--

DROP TABLE IF EXISTS `match_relation_user_form`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_form` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `origin_id` tinyint NOT NULL COMMENT '来源ID',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `origin_name` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源名字',
  `num` int NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`relation_user_id`,`origin_type`) USING BTREE,
  KEY `relation_user_id` (`relation_user_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=195459 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_form_202302`
--

DROP TABLE IF EXISTS `match_relation_user_form_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_form_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `origin_id` tinyint NOT NULL COMMENT '来源ID',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `origin_name` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源名字',
  `num` int NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`relation_user_id`,`origin_type`) USING BTREE,
  KEY `relation_user_id` (`relation_user_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_form_202303`
--

DROP TABLE IF EXISTS `match_relation_user_form_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_form_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `origin_id` tinyint NOT NULL COMMENT '来源ID',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `origin_name` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源名字',
  `num` int NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`relation_user_id`,`origin_type`) USING BTREE,
  KEY `relation_user_id` (`relation_user_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_form_202304`
--

DROP TABLE IF EXISTS `match_relation_user_form_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_form_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `origin_id` tinyint NOT NULL COMMENT '来源ID',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `origin_name` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源名字',
  `num` int NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`relation_user_id`,`origin_type`) USING BTREE,
  KEY `relation_user_id` (`relation_user_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1060981 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_relation_user_form_202305`
--

DROP TABLE IF EXISTS `match_relation_user_form_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_relation_user_form_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'userId',
  `relation_user_id` bigint NOT NULL COMMENT '关系的人',
  `score` int NOT NULL COMMENT '分数',
  `origin_id` tinyint NOT NULL COMMENT '来源ID',
  `origin_type` bigint NOT NULL COMMENT '来源类型',
  `origin_name` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '来源名字',
  `num` int NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`relation_user_id`,`origin_type`) USING BTREE,
  KEY `relation_user_id` (`relation_user_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配关系分数构成';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_set_condition`
--

DROP TABLE IF EXISTS `match_set_condition`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_set_condition` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `type` tinyint NOT NULL COMMENT '分类',
  `type_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '分类名字',
  `condition_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '条件分类',
  `condition_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '条件名字',
  `domain_num` int NOT NULL COMMENT '钻石数量',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='匹配条件';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_wealth_set_score_grade`
--

DROP TABLE IF EXISTS `match_wealth_set_score_grade`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_wealth_set_score_grade` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min_num` int NOT NULL COMMENT '最小数量',
  `max_num` int NOT NULL COMMENT '最大数量',
  `grade` int NOT NULL COMMENT '等级',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=131 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='财富分数同等级关系';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_wealth_user_score`
--

DROP TABLE IF EXISTS `match_wealth_user_score`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_wealth_user_score` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `score` int NOT NULL COMMENT '分数',
  `grade` int NOT NULL COMMENT '等级',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1104 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户财富分数';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `match_wealth_user_score_detail`
--

DROP TABLE IF EXISTS `match_wealth_user_score_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `match_wealth_user_score_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `match_wealth_user_score_id` bigint NOT NULL COMMENT '用户财富分数ID',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `before_score` int NOT NULL COMMENT '之前分数',
  `score` int NOT NULL COMMENT '分数',
  `after_score` int NOT NULL COMMENT '之后分数',
  `type` tinyint NOT NULL COMMENT '类型',
  `orgin_id` bigint NOT NULL COMMENT '来源ID',
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1292556 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户财富分数详细表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr`
--

DROP TABLE IF EXISTS `mgr`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'name',
  `user_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '使用者名字',
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '密码',
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '1:主账号 2:子账号',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=145 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理人';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_advice`
--

DROP TABLE IF EXISTS `mgr_advice`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_advice` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `advice` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '意见',
  `pic_urls` varchar(15000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '图片',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=439 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户提供\r\n';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_deal`
--

DROP TABLE IF EXISTS `mgr_deal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_deal` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mgr_id` bigint NOT NULL COMMENT '处理者',
  `deal_type` tinyint NOT NULL COMMENT '处理方式(1:忽略,2:冻结)',
  `reason_type` tinyint NOT NULL COMMENT '处理理由',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `type` tinyint NOT NULL DEFAULT '0' COMMENT '0.后台操作1.超管操作',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3652 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_imei`
--

DROP TABLE IF EXISTS `mgr_imei`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_imei` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mgr_id` bigint NOT NULL COMMENT '管理人ID',
  `imei` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备码',
  `reason_type` tinyint NOT NULL COMMENT '处理原因',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `imei_IDX` (`imei`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=679 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理设备';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_imei_log`
--

DROP TABLE IF EXISTS `mgr_imei_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_imei_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mgr_id` bigint NOT NULL COMMENT '管理人ID',
  `imei` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备码',
  `reason_type` tinyint NOT NULL COMMENT '处理原因',
  `type` tinyint NOT NULL COMMENT '类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=276 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理设备日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_ip`
--

DROP TABLE IF EXISTS `mgr_ip`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_ip` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mgr_id` bigint NOT NULL COMMENT '管理人ID',
  `ip` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备码',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=593 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理ip';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_operation_log`
--

DROP TABLE IF EXISTS `mgr_operation_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_operation_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `module_id` bigint unsigned NOT NULL COMMENT '模块表的id',
  `module_url_id` bigint unsigned NOT NULL COMMENT '模块表url的id',
  `content` varchar(2047) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '操作内容',
  `description` text COLLATE utf8mb4_unicode_ci COMMENT '描述',
  `media_urls` varchar(2047) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '图片/视屏 json数组',
  `target_uid` bigint unsigned NOT NULL DEFAULT '0' COMMENT '被处理的ID',
  `oper_uid` bigint unsigned NOT NULL DEFAULT '0' COMMENT '操作人ID',
  `mgr_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '管理人id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=193 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理员操作记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_operation_module`
--

DROP TABLE IF EXISTS `mgr_operation_module`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_operation_module` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `module_name` varchar(63) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模块名称',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理员操作模块';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_operation_module_url`
--

DROP TABLE IF EXISTS `mgr_operation_module_url`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_operation_module_url` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `module_id` bigint unsigned NOT NULL COMMENT '模块id',
  `method` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'http请求method: GET|POST|PUT|DELETE等',
  `full_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'http请求路径',
  `remark` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '备注',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `method` (`method`,`full_path`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理员操作模块-url';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_permission`
--

DROP TABLE IF EXISTS `mgr_permission`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_permission` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mgr_id` bigint NOT NULL COMMENT 'mgr_id',
  `permission_id` bigint NOT NULL COMMENT '拥有的权限ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`mgr_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10657 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理人权限';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_permission_config`
--

DROP TABLE IF EXISTS `mgr_permission_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_permission_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `parent_id` bigint NOT NULL COMMENT '父节点(没有父节点为0)',
  `name` char(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名字',
  `method_url` char(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '限制method+url',
  `type` tinyint NOT NULL COMMENT '0:url 1:一级目录 2:二级目录',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3107 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理人权限配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_report`
--

DROP TABLE IF EXISTS `mgr_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_report` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `from_user_id` bigint NOT NULL COMMENT '举报者',
  `to_user_id` bigint NOT NULL COMMENT '被举报人',
  `from_page_type` tinyint NOT NULL COMMENT '来自哪个页面或操作 1.视频页2.查看详情3.聊天页4.匹配历史5.群组活动',
  `origin_id` bigint NOT NULL DEFAULT '0' COMMENT '来源ID',
  `reason_type` tinyint NOT NULL COMMENT '举报原因 视频页1.言语骚扰 2.不雅行为 聊天页1.不良信息 2.不雅照片;群组活动:5.色情6.未成年7.广告8.其他',
  `image_url` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '举报图片',
  `reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint NOT NULL COMMENT '状态 1.待处理 2.已忽略 3.处罚',
  `report_deal_id` bigint NOT NULL COMMENT '处理Id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`from_user_id`,`to_user_id`),
  KEY `Index_2` (`to_user_id`,`from_user_id`),
  KEY `Index_3` (`status`,`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=6255 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_report_group`
--

DROP TABLE IF EXISTS `mgr_report_group`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_report_group` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `from_user_id` bigint NOT NULL COMMENT '举报者',
  `group_id` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '被举报人',
  `reason_type` tinyint NOT NULL COMMENT '举报原因 视频页1.言语骚扰 2.不雅行为 聊天页1.不良信息 2.不雅照片',
  `image_url` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '举报图片',
  `reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint NOT NULL COMMENT '状态 1.待处理 2.已忽略 3.处罚',
  `report_deal_id` bigint NOT NULL COMMENT '处理Id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`from_user_id`,`group_id`),
  KEY `Index_2` (`group_id`,`from_user_id`),
  KEY `Index_3` (`status`,`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=5601 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_send_diamond_bill`
--

DROP TABLE IF EXISTS `mgr_send_diamond_bill`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_send_diamond_bill` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `create_mgr_id` bigint unsigned NOT NULL COMMENT '创建者',
  `send_mgr_id` bigint DEFAULT NULL COMMENT '发放者',
  `uuid` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'uuid',
  `status` tinyint NOT NULL COMMENT '状态',
  `send_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '发送时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`uuid`)
) ENGINE=InnoDB AUTO_INCREMENT=288 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理人发放钻石';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_send_diamond_bill_detail`
--

DROP TABLE IF EXISTS `mgr_send_diamond_bill_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_send_diamond_bill_detail` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mgr_send_diamond_bill_id` bigint unsigned NOT NULL COMMENT 'mgr_send_diamond_bill_id',
  `uuid` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'uuid',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `diamond` int NOT NULL COMMENT '钻石',
  `reason` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '原因',
  `type` tinyint NOT NULL COMMENT '类型(1活动扶持 2活动奖励)',
  `status` tinyint NOT NULL COMMENT '状态(未发放,发放成功,发放失败)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`mgr_send_diamond_bill_id`),
  KEY `Index_2` (`uuid`)
) ENGINE=InnoDB AUTO_INCREMENT=360 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理人发放钻石详情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_send_noble`
--

DROP TABLE IF EXISTS `mgr_send_noble`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_send_noble` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `bill_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'bill_id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `level` int NOT NULL COMMENT '贵族等级',
  `day` int NOT NULL COMMENT '天数',
  `reason` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '原因',
  `status` tinyint NOT NULL COMMENT '状态(0未发放,1发放成功,2发放失败)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `mgr_id` bigint unsigned NOT NULL COMMENT '发放人id',
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_bill_id_IDX` (`user_id`,`bill_id`) USING BTREE,
  KEY `bill_id_IDX` (`bill_id`) USING BTREE,
  KEY `mgr_id_IDX` (`mgr_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=99 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理人发放贵族';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_send_user_bag`
--

DROP TABLE IF EXISTS `mgr_send_user_bag`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_send_user_bag` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `bill_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'bill_id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `res_type` int unsigned NOT NULL COMMENT '资源类型 1:礼物',
  `res_id` bigint unsigned NOT NULL COMMENT '资源ID',
  `count` int DEFAULT '0' COMMENT '道具数量',
  `day` int NOT NULL COMMENT '天数',
  `reason` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '原因',
  `status` tinyint NOT NULL COMMENT '状态(0未发放,1发放成功,2发放失败)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `mgr_id` bigint unsigned NOT NULL COMMENT '发放人id',
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_bill_id_IDX` (`user_id`,`bill_id`) USING BTREE,
  KEY `bill_id_IDX` (`bill_id`) USING BTREE,
  KEY `mgr_id_IDX` (`mgr_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理人发放用户背包';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_url_log`
--

DROP TABLE IF EXISTS `mgr_url_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_url_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `trace_id` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'TraceId',
  `mgr_id` bigint NOT NULL COMMENT '管理人ID',
  `method` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '方法',
  `url` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '地址',
  `params` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '参数',
  `result` tinyint NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `AK_Key_2` (`mgr_id`)
) ENGINE=InnoDB AUTO_INCREMENT=16898 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理人请求日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mgr_user_status`
--

DROP TABLE IF EXISTS `mgr_user_status`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mgr_user_status` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `status` tinyint NOT NULL COMMENT '状态(1:永久冻结,2:封禁)',
  `end_time` datetime DEFAULT NULL COMMENT '解禁截至时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `AK_Key_2` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1592 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='管理_用户状态';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `moderate_record`
--

DROP TABLE IF EXISTS `moderate_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `moderate_record` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL,
  `file_name` varchar(512) NOT NULL,
  `labels` varchar(1024) NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_idx` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `msg_batch_record`
--

DROP TABLE IF EXISTS `msg_batch_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `msg_batch_record` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `send_user_id` bigint unsigned NOT NULL,
  `content` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
  `pic_url` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `url` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `action_type` smallint unsigned NOT NULL,
  `total` int unsigned NOT NULL,
  `failed_count` int unsigned NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `send_user_IDX` (`send_user_id`) USING BTREE,
  KEY `created_time_IDX` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `msg_sys`
--

DROP TABLE IF EXISTS `msg_sys`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `msg_sys` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `title` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '标题',
  `content` varchar(3000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '内容',
  `pic_url` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '图片地址',
  `url` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'H5地址',
  `expect_send_time` timestamp NOT NULL COMMENT '预计发送时间',
  `action_type` tinyint NOT NULL DEFAULT '0' COMMENT '0:无跳转 1:网页跳转, 2:跳转到用户 3:跳转到群组',
  `actual_send_time` timestamp NULL DEFAULT NULL COMMENT '实际发送时间',
  `area` tinyint NOT NULL DEFAULT '0' COMMENT '区域 0:全区 1:阿语 2:非阿语',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=432 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='系统推送';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `msg_sys_record`
--

DROP TABLE IF EXISTS `msg_sys_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `msg_sys_record` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `type` int NOT NULL COMMENT '类型',
  `status` tinyint NOT NULL DEFAULT '1',
  `msg_sys_id` bigint NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `type` (`type`) USING BTREE,
  KEY `Index_1` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=357 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='推送系统消息记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `msg_sys_user`
--

DROP TABLE IF EXISTS `msg_sys_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `msg_sys_user` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT 'user_id',
  `type` tinyint NOT NULL DEFAULT '1' COMMENT '类型',
  `msg_sys_last_id` bigint unsigned NOT NULL COMMENT 'msg_sys_last_id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`,`type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6163 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='系统消息用户读位置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `msg_user_record`
--

DROP TABLE IF EXISTS `msg_user_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `msg_user_record` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `type` tinyint NOT NULL COMMENT '类型(1:新用户 2:投诉)',
  `nick` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '昵称',
  `nick_user_id` bigint NOT NULL DEFAULT '0',
  `diamond_income` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `day_num` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '多少天',
  `property_url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '座驾地址',
  `bean_num` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `group_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=347386 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='推送记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `open_screen`
--

DROP TABLE IF EXISTS `open_screen`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `open_screen` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `title` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'title',
  `image` char(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'image',
  `url` char(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'url',
  `group_code` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'group_id',
  `begin_time` datetime NOT NULL COMMENT 'begin_time',
  `end_time` datetime NOT NULL COMMENT 'end_time',
  `type` tinyint NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `area` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '上线区域:0全区;1阿语区;2非阿语区;3指定国家',
  `country_list` varchar(800) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '指定区域的国家列表',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=262 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='开屏弹窗';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `operate_user_memo`
--

DROP TABLE IF EXISTS `operate_user_memo`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `operate_user_memo` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mgr_id` bigint unsigned NOT NULL COMMENT '管理员ID',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `memo` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '上报数据对象',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='运营备忘录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `operation_log`
--

DROP TABLE IF EXISTS `operation_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `operation_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `mgr_id` bigint unsigned NOT NULL COMMENT 'user_id',
  `doc` json DEFAULT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=379 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `pay_order`
--

DROP TABLE IF EXISTS `pay_order`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pay_order` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `platform` tinyint NOT NULL COMMENT '平台',
  `order_id` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'orderID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `amount` int NOT NULL COMMENT '钻石数量',
  `price` int NOT NULL COMMENT '价格',
  `user_id` bigint NOT NULL DEFAULT '0',
  `status` tinyint NOT NULL DEFAULT '2' COMMENT '1:准备 2:成功',
  `refund_time` datetime DEFAULT NULL,
  `type` tinyint NOT NULL DEFAULT '0' COMMENT '类型:0.默认1.代理充值2.用户给代理充值',
  `money` float NOT NULL DEFAULT '0' COMMENT '花费的货币数量',
  `currency` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '货币',
  `goods_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '充值钻石套餐id/商品id',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`platform`,`order_id`),
  KEY `user_id_plat_IDX` (`user_id`,`platform`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3792 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='支付订单';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `pay_to_checkout`
--

DROP TABLE IF EXISTS `pay_to_checkout`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pay_to_checkout` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='支付不成功返回checkout链接';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `power_support_award`
--

DROP TABLE IF EXISTS `power_support_award`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `power_support_award` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `week` date NOT NULL,
  `power_id` bigint unsigned NOT NULL COMMENT '国家势力ID',
  `diamond` int NOT NULL COMMENT '钻石',
  `level` char(1) NOT NULL COMMENT '等级',
  `owner` bigint unsigned NOT NULL COMMENT '势力主',
  `owner_salary` int unsigned NOT NULL,
  `assistant_1` bigint unsigned NOT NULL,
  `assistant_2` bigint unsigned NOT NULL,
  `assistant_3` bigint unsigned NOT NULL,
  `assistant_salary` int unsigned NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `week` (`week`,`power_id`)
) ENGINE=InnoDB AUTO_INCREMENT=444 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='势力周扶持发奖记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `promotion_agent`
--

DROP TABLE IF EXISTS `promotion_agent`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `promotion_agent` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `manager_id` bigint NOT NULL COMMENT '经理人id',
  `agent_id` bigint DEFAULT NULL COMMENT '推广员id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `agent_id` (`agent_id`),
  KEY `manager_id` (`manager_id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='推广员';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `promotion_agent_log`
--

DROP TABLE IF EXISTS `promotion_agent_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `promotion_agent_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `manager_id` bigint NOT NULL COMMENT '经理人id',
  `agent_id` bigint DEFAULT NULL COMMENT '推广员id',
  `add_reduce` tinyint(1) NOT NULL COMMENT '操作 1:增加 2:删除',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='推广员-增加删除日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `promotion_invite`
--

DROP TABLE IF EXISTS `promotion_invite`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `promotion_invite` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `manager_id` bigint DEFAULT NULL COMMENT '经理id',
  `agent_id` bigint DEFAULT NULL COMMENT '推广员id',
  `invitee` bigint DEFAULT NULL COMMENT '被邀请人user_id',
  `platform` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '来自平台',
  `platform_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '平台id',
  `reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '邀请原因',
  `invite_date` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '邀请日期',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `invitee` (`invitee`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='推广-邀请关系';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `promotion_invite_log`
--

DROP TABLE IF EXISTS `promotion_invite_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `promotion_invite_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `agent_id` bigint DEFAULT NULL COMMENT '推广员id',
  `invitee` bigint DEFAULT NULL COMMENT '被邀请人user_id',
  `add_reduce` tinyint(1) NOT NULL COMMENT '操作 1:增加 2:删除',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='推广-邀请关系增加删除日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `promotion_team`
--

DROP TABLE IF EXISTS `promotion_team`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `promotion_team` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `manager_id` bigint NOT NULL COMMENT '经理人id',
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '团队名称',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `manager_id` (`manager_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='推广团队';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `promotion_team_data`
--

DROP TABLE IF EXISTS `promotion_team_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `promotion_team_data` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `team_id` bigint DEFAULT NULL COMMENT '团队id',
  `invite_charge_cnt` bigint DEFAULT NULL COMMENT '邀请充值用户数',
  `month_pay_sum` double NOT NULL COMMENT '30天内充值$',
  `two_month_pay_sum` double NOT NULL COMMENT '60天内充值$',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `team_id` (`team_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='推广团队静态数据';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `read_last`
--

DROP TABLE IF EXISTS `read_last`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `read_last` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `type` tinyint NOT NULL COMMENT '类型',
  `n` int NOT NULL COMMENT '次数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `AK_Key_2` (`user_id`,`type`)
) ENGINE=InnoDB AUTO_INCREMENT=2541 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='已读截至时间(产品眼中的新已读,就是气泡中+),';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `read_note`
--

DROP TABLE IF EXISTS `read_note`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `read_note` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `other_user_id` bigint NOT NULL COMMENT 'other_user_id',
  `type` tinyint NOT NULL COMMENT '类型',
  `has_read` tinyint NOT NULL COMMENT '是否已读',
  `has_del` tinyint NOT NULL DEFAULT '2' COMMENT '是否删除',
  `n` int NOT NULL DEFAULT '0' COMMENT '次数,更新次数,无意义,是为了触发update',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`other_user_id`,`type`)
) ENGINE=InnoDB AUTO_INCREMENT=119436 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='已读';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `recall`
--

DROP TABLE IF EXISTS `recall`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `recall` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `cycle` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'cycle',
  `n` int NOT NULL DEFAULT '0' COMMENT '发送的数量',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=456012 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户召回批次';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `recall_user`
--

DROP TABLE IF EXISTS `recall_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `recall_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `recall_id` bigint NOT NULL COMMENT '批次ID',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id, created_time` (`user_id`,`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=80222 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户召回用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `recommend_user`
--

DROP TABLE IF EXISTS `recommend_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `recommend_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `status` tinyint NOT NULL DEFAULT '1',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2009 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='推荐用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_code`
--

DROP TABLE IF EXISTS `res_code`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_code` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'code',
  PRIMARY KEY (`id`),
  KEY `AK_Key_2` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=640 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='资源的code';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_country`
--

DROP TABLE IF EXISTS `res_country`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_country` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名字',
  `short_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '缩写',
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `icon` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '图标',
  `icon2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '国旗2',
  `lang` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '语言',
  `is_common` tinyint NOT NULL COMMENT '是否常见',
  `is_default` tinyint NOT NULL,
  `status` tinyint NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `remarks` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '备注',
  `standard_short_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '国际标准缩写',
  `area_code` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '国家手机号码区号',
  `area_code_name` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '手机号域名国家缩写',
  `area` tinyint unsigned NOT NULL DEFAULT '2' COMMENT '1.阿语区 2.除了阿语区的其他地区',
  PRIMARY KEY (`id`),
  KEY `Index_1` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=522 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国家';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_dealer_transfer`
--

DROP TABLE IF EXISTS `res_dealer_transfer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_dealer_transfer` (
  `id` int unsigned NOT NULL,
  `diamond` int unsigned NOT NULL,
  `dollar` int unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='币商钻石转账配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_gift`
--

DROP TABLE IF EXISTS `res_gift`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_gift` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '名字',
  `icon_url` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'icon地址',
  `svag_url` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'svag地址',
  `music_url` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '音乐地址',
  `column` smallint unsigned DEFAULT '0' COMMENT '分栏ID',
  `diamond_num` int NOT NULL COMMENT '钻石数量',
  `bean_num` int NOT NULL COMMENT '豆子数量',
  `receive_diamond_num` int NOT NULL DEFAULT '0' COMMENT '接受礼物的一方钻石数量',
  `second` int NOT NULL COMMENT '秒',
  `n` int NOT NULL COMMENT '排序',
  `group_broadcast` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否全群组广播',
  `cp` tinyint NOT NULL DEFAULT '0',
  `together` tinyint NOT NULL DEFAULT '0',
  `status` tinyint NOT NULL COMMENT '状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `gift_type` tinyint NOT NULL DEFAULT '1' COMMENT '礼物类型:1.黄钻礼物2.粉钻礼物',
  PRIMARY KEY (`id`),
  KEY `Index_1` (`n`,`status`)
) ENGINE=InnoDB AUTO_INCREMENT=3114 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='礼物';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_gift_avatar`
--

DROP TABLE IF EXISTS `res_gift_avatar`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_gift_avatar` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `res_gift_id` bigint NOT NULL COMMENT 'res_gift_id',
  `type` tinyint NOT NULL COMMENT '类型',
  `send_user_id` bigint NOT NULL COMMENT 'send_user_id',
  `receiver_user_id` bigint NOT NULL COMMENT 'receiver_user_id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `type_IDX` (`type`,`res_gift_id`) USING BTREE,
  KEY `Index_1` (`res_gift_id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='礼物头像';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_group_support`
--

DROP TABLE IF EXISTS `res_group_support`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_group_support` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `grade` tinyint(1) NOT NULL COMMENT '等级',
  `contribute_user_num` int NOT NULL COMMENT '贡献人数',
  `contribute_diamond_num` int NOT NULL COMMENT '贡献钻石',
  `admin_award` int NOT NULL COMMENT '群主奖励',
  `mgr_num` int NOT NULL COMMENT '管理数量',
  `mgr_award` int NOT NULL COMMENT '管理人奖励',
  `status` tinyint NOT NULL COMMENT '状态(1:正常 2:删除)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=79 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群组扶持资源';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_group_theme`
--

DROP TABLE IF EXISTS `res_group_theme`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_group_theme` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `url` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
  `weight` int NOT NULL,
  `status` tinyint unsigned NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `weight_IDX` (`weight`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=182 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='群主题';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_headwear`
--

DROP TABLE IF EXISTS `res_headwear`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_headwear` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '头饰名称',
  `pic_url` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '图片',
  `effect_url` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '特效',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2005 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='头饰配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_headwear_diamond`
--

DROP TABLE IF EXISTS `res_headwear_diamond`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_headwear_diamond` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `res_headwear_id` bigint NOT NULL COMMENT 'res_headwear_id',
  `diamond_num` int NOT NULL COMMENT '钻石数量',
  `second` int NOT NULL COMMENT '时长(秒)',
  `status` tinyint NOT NULL COMMENT '状态',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='头饰价格';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_language`
--

DROP TABLE IF EXISTS `res_language`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_language` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名字',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '备注',
  `res_country_id` bigint NOT NULL COMMENT '国家ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='语言';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_lucky_wheel`
--

DROP TABLE IF EXISTS `res_lucky_wheel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_lucky_wheel` (
  `id` int unsigned NOT NULL,
  `entrance_fee` int unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='幸运轮盘配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_medal`
--

DROP TABLE IF EXISTS `res_medal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_medal` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `pic_url` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
  `svga_url` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
  `sort` int NOT NULL DEFAULT '0' COMMENT '排序,值越低越靠前',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `type` tinyint NOT NULL DEFAULT '0',
  `scope` tinyint NOT NULL DEFAULT '1',
  `threshold` int NOT NULL DEFAULT '0',
  `no_pic_url` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `i` int NOT NULL DEFAULT '0' COMMENT '排序',
  `attr_type` tinyint unsigned NOT NULL DEFAULT '1' COMMENT '勋章类型1.个人2.房间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4792 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='勋章资源';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_medal_public_obtain`
--

DROP TABLE IF EXISTS `res_medal_public_obtain`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_medal_public_obtain` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `res_medal_id` bigint NOT NULL COMMENT 'res_property_id',
  `res_gift_id` bigint NOT NULL COMMENT 'res_gift_id',
  `type` tinyint NOT NULL COMMENT '类型',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `AK_Key_2` (`res_medal_id`,`res_gift_id`)
) ENGINE=InnoDB AUTO_INCREMENT=351 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='送了多少礼物,送勋章具,财富等级得勋章,魅力等级得勋章';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_mic_emoji`
--

DROP TABLE IF EXISTS `res_mic_emoji`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_mic_emoji` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` char(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名字',
  `icon_url` char(250) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'icon地址',
  `svag_url` char(250) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'svag地址',
  `n` int NOT NULL COMMENT '排序',
  `status` tinyint NOT NULL COMMENT '状态',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=322 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='麦位表情';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_msg_translate`
--

DROP TABLE IF EXISTS `res_msg_translate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_msg_translate` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `language` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '语言',
  `title` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '标题',
  `content` varchar(5600) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '内容',
  `icon_url` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '图标url',
  `msg_type` tinyint NOT NULL COMMENT '消息类型(1:系统消息,2:用户消息)',
  `type` int NOT NULL COMMENT '消息类型(1)',
  `action_type` tinyint NOT NULL DEFAULT '0' COMMENT '跳转类型',
  `action_url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '跳转的路径',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`msg_type`,`type`)
) ENGINE=InnoDB AUTO_INCREMENT=5289 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='资源消息的的翻译';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_multi_text`
--

DROP TABLE IF EXISTS `res_multi_text`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_multi_text` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `msg_id` int unsigned NOT NULL COMMENT '消息ID',
  `language` char(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '语言',
  `content` varchar(5600) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '内容',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_lang` (`msg_id`,`language`)
) ENGINE=InnoDB AUTO_INCREMENT=2214 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='多语言文本';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_nameplate`
--

DROP TABLE IF EXISTS `res_nameplate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_nameplate` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `pic_url` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `svga_url` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `sort` int NOT NULL DEFAULT '0' COMMENT '排序,值越低越靠前',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `type` tinyint NOT NULL DEFAULT '0',
  `scope` tinyint NOT NULL DEFAULT '1',
  `threshold` int NOT NULL DEFAULT '0',
  `no_pic_url` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='铭牌资源';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_noble`
--

DROP TABLE IF EXISTS `res_noble`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_noble` (
  `level` smallint unsigned NOT NULL COMMENT '贵族等级',
  `purchase_price` int unsigned NOT NULL COMMENT '购买价格',
  `renewal_price` int unsigned NOT NULL COMMENT '续费价格',
  `duration` smallint unsigned NOT NULL,
  `pic_url` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '大图url',
  `daily_gold` int unsigned NOT NULL COMMENT '每日登录领取的金币',
  `ride_id` int unsigned NOT NULL COMMENT '赠送的勋章ID',
  `headdress_id` int unsigned NOT NULL COMMENT '赠送的头饰ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='贵族配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_power_support`
--

DROP TABLE IF EXISTS `res_power_support`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_power_support` (
  `level` char(1) NOT NULL COMMENT '等级',
  `trophy` int unsigned NOT NULL COMMENT '阈值',
  `owner_salary` int unsigned NOT NULL,
  `assistant_salary` int unsigned NOT NULL,
  `assistant_num` int unsigned NOT NULL COMMENT '助手数量',
  PRIMARY KEY (`level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='势力周扶持配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_property`
--

DROP TABLE IF EXISTS `res_property`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_property` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '道具名称',
  `pic_url` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '图片',
  `effect_url` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '特效',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1242 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='道具配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_property_avatar`
--

DROP TABLE IF EXISTS `res_property_avatar`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_property_avatar` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `res_property_id` bigint NOT NULL COMMENT 'res_property_id',
  `type` tinyint NOT NULL COMMENT '类型',
  `send_user_id` bigint NOT NULL COMMENT 'send_user_id',
  `receiver_user_id` bigint NOT NULL COMMENT 'receiver_user_id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`res_property_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='道具头像';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_property_diamond`
--

DROP TABLE IF EXISTS `res_property_diamond`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_property_diamond` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `res_property_id` bigint NOT NULL COMMENT 'res_property_id',
  `diamond_num` int NOT NULL COMMENT '钻石数量',
  `second` int NOT NULL COMMENT '时长(秒)',
  `status` tinyint NOT NULL COMMENT '状态',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=68 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='道具价格';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_purchase_diamond`
--

DROP TABLE IF EXISTS `res_purchase_diamond`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_purchase_diamond` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `product_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '产品ID',
  `amount` int NOT NULL COMMENT '钻石数量',
  `price` int NOT NULL COMMENT '价格',
  `platform` tinyint NOT NULL COMMENT '平台 1.安卓 2.iOS',
  `status` tinyint NOT NULL COMMENT '状态',
  `n` int NOT NULL COMMENT '排序',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `discount` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '折扣描述',
  `diamond_type` tinyint NOT NULL DEFAULT '1' COMMENT '类型:1.黄钻2.粉钻',
  PRIMARY KEY (`id`),
  KEY `Index_1` (`platform`,`status`,`n`)
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='充值面版\r\n';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_purchase_vip`
--

DROP TABLE IF EXISTS `res_purchase_vip`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_purchase_vip` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `product_id` char(200) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '产品ID',
  `price` int NOT NULL COMMENT '价格',
  `platform` tinyint NOT NULL COMMENT '平台 ',
  `status` tinyint NOT NULL COMMENT '状态',
  `n` int NOT NULL COMMENT '排序',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='VIP面板';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_tradeunion_welcome`
--

DROP TABLE IF EXISTS `res_tradeunion_welcome`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_tradeunion_welcome` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `language` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '语言',
  `content` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '内容',
  PRIMARY KEY (`id`),
  KEY `language` (`language`)
) ENGINE=InnoDB AUTO_INCREMENT=152 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='资源-公会欢迎语';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `res_uid`
--

DROP TABLE IF EXISTS `res_uid`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_uid` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=220 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='资源ID';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rocket_award`
--

DROP TABLE IF EXISTS `rocket_award`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rocket_award` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `result_id` bigint unsigned NOT NULL COMMENT '关联的resultID',
  `user_id` bigint unsigned NOT NULL,
  `rank` tinyint unsigned NOT NULL COMMENT '贡献排名(从0开始)',
  `award_cfg_id` bigint unsigned NOT NULL COMMENT '获得的奖品配置id',
  `diamond` int unsigned NOT NULL COMMENT '获得的小额钻石数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `result_user_idx` (`result_id`,`user_id`),
  KEY `rank_IDX` (`rank`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=33119 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='火箭奖励表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rocket_award_config`
--

DROP TABLE IF EXISTS `rocket_award_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rocket_award_config` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `stage` tinyint unsigned NOT NULL COMMENT '阶段id',
  `seq` tinyint unsigned NOT NULL COMMENT '次序',
  `award_type` tinyint unsigned NOT NULL COMMENT '奖励类型',
  `award_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '奖励ID',
  `num` int unsigned NOT NULL COMMENT '数量',
  `duration` int unsigned NOT NULL DEFAULT '0' COMMENT '奖励时长(天)',
  `probability` smallint unsigned NOT NULL COMMENT '中奖概率%',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `stage` (`stage`,`seq`)
) ENGINE=InnoDB AUTO_INCREMENT=172 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='火箭奖励配置表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rocket_contribute`
--

DROP TABLE IF EXISTS `rocket_contribute`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rocket_contribute` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `period` date NOT NULL COMMENT '日期',
  `round` int unsigned NOT NULL DEFAULT '0' COMMENT '轮次',
  `stage` smallint unsigned NOT NULL DEFAULT '0' COMMENT '阶段',
  `user_id` bigint unsigned NOT NULL,
  `gift_ref_id` bigint unsigned NOT NULL COMMENT '关联的礼物记录ID',
  `diamond` int unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `group_period_id` (`group_id`,`period`)
) ENGINE=InnoDB AUTO_INCREMENT=1568113 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='火箭贡献表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rocket_guest_award`
--

DROP TABLE IF EXISTS `rocket_guest_award`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rocket_guest_award` (
  `stage` tinyint unsigned NOT NULL COMMENT '阶段id',
  `lower_bound` int unsigned NOT NULL COMMENT '随机范围的下限',
  `upper_bound` int unsigned NOT NULL COMMENT '随机范围的上限',
  `total` int unsigned NOT NULL COMMENT '总上限',
  `probability` smallint unsigned NOT NULL COMMENT '中奖概率%',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`stage`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='火箭观众奖励配置表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rocket_info`
--

DROP TABLE IF EXISTS `rocket_info`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rocket_info` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `period` date NOT NULL COMMENT '日期',
  `round` int unsigned NOT NULL DEFAULT '0' COMMENT '今天产生了多少轮火箭',
  `stage` smallint unsigned NOT NULL DEFAULT '0' COMMENT '当前在哪个阶段',
  `score` int unsigned NOT NULL DEFAULT '0' COMMENT '火箭积分',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `group_period_id` (`group_id`,`period`)
) ENGINE=InnoDB AUTO_INCREMENT=1383213 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='火箭信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rocket_result`
--

DROP TABLE IF EXISTS `rocket_result`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rocket_result` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `period` date NOT NULL COMMENT '日期',
  `round` int unsigned NOT NULL DEFAULT '0' COMMENT '轮次',
  `stage` smallint unsigned NOT NULL DEFAULT '0' COMMENT '阶段',
  `is_awarded` tinyint(1) NOT NULL DEFAULT '0' COMMENT '奖励是否已发放',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `rocket_id` (`group_id`,`period`,`round`,`stage`),
  KEY `stage_IDX` (`stage`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=18541 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='火箭结果表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rocket_stage`
--

DROP TABLE IF EXISTS `rocket_stage`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rocket_stage` (
  `id` tinyint unsigned NOT NULL COMMENT '阶段id',
  `diamond` int unsigned NOT NULL COMMENT '升级需要的钻石数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='火箭升级配置表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `roderate_record`
--

DROP TABLE IF EXISTS `roderate_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `roderate_record` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL,
  `file_name` varchar(512) NOT NULL,
  `labels` varchar(1024) NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_idx` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `room_banner`
--

DROP TABLE IF EXISTS `room_banner`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `room_banner` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '标题',
  `image` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '缩略图',
  `url` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'URL',
  `n` int NOT NULL COMMENT '排序',
  `status` tinyint unsigned NOT NULL COMMENT '状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `area` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '上线区域:0全区;1阿语区;2非阿语区;3指定国家',
  `country_list` varchar(800) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '指定区域的国家列表',
  PRIMARY KEY (`id`),
  KEY `n_IDX` (`n`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=254 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='房间里的banner';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `room_day_consume`
--

DROP TABLE IF EXISTS `room_day_consume`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `room_day_consume` (
  `group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `day` date NOT NULL,
  `diamond` bigint unsigned NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`group_id`,`day`),
  KEY `created_time_IDX` (`created_time`) USING BTREE,
  KEY `day_IDX` (`day`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `room_medal_config`
--

DROP TABLE IF EXISTS `room_medal_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `room_medal_config` (
  `level` smallint unsigned NOT NULL COMMENT '等级',
  `threshold` bigint unsigned NOT NULL COMMENT '阈值',
  `medal_id` bigint unsigned NOT NULL COMMENT '勋章ID',
  `desc` varchar(1024) NOT NULL COMMENT '文案',
  `inactive_url` varchar(1024) NOT NULL,
  `active_url` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  PRIMARY KEY (`level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='房间勋章配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `room_month_consume`
--

DROP TABLE IF EXISTS `room_month_consume`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `room_month_consume` (
  `group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `month` char(6) COLLATE utf8mb4_unicode_ci NOT NULL,
  `diamond` bigint unsigned NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`group_id`,`month`),
  KEY `created_time_IDX` (`created_time`) USING BTREE,
  KEY `month_IDX` (`month`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `room_user_day_consume`
--

DROP TABLE IF EXISTS `room_user_day_consume`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `room_user_day_consume` (
  `day` date NOT NULL,
  `group_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `send_user_id` bigint unsigned NOT NULL,
  `diamond` bigint unsigned NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`day`,`group_id`,`send_user_id`),
  KEY `group_IDX` (`group_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `room_week_consume`
--

DROP TABLE IF EXISTS `room_week_consume`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `room_week_consume` (
  `group_id` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
  `week` date NOT NULL,
  `diamond` bigint unsigned NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`group_id`,`week`),
  KEY `created_time_IDX` (`created_time`) USING BTREE,
  KEY `week_IDX` (`week`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rpc_log`
--

DROP TABLE IF EXISTS `rpc_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rpc_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` varchar(700) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'user_id',
  `type` tinyint unsigned NOT NULL COMMENT 'type',
  `msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'msg',
  `err` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'err',
  `fail_uids` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`,`type`),
  KEY `type` (`type`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3039642 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='rpc的日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rpc_log_202212`
--

DROP TABLE IF EXISTS `rpc_log_202212`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rpc_log_202212` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` varchar(700) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'user_id',
  `type` tinyint unsigned NOT NULL COMMENT 'type',
  `msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'msg',
  `err` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'err',
  `fail_uids` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`,`type`),
  KEY `type` (`type`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=47212 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='rpc的日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rpc_log_202301`
--

DROP TABLE IF EXISTS `rpc_log_202301`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rpc_log_202301` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` varchar(700) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'user_id',
  `type` tinyint unsigned NOT NULL COMMENT 'type',
  `msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'msg',
  `err` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'err',
  `fail_uids` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`,`type`),
  KEY `type` (`type`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=57920 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='rpc的日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rpc_log_202302`
--

DROP TABLE IF EXISTS `rpc_log_202302`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rpc_log_202302` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` varchar(700) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'user_id',
  `type` tinyint unsigned NOT NULL COMMENT 'type',
  `msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'msg',
  `err` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'err',
  `fail_uids` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`,`type`),
  KEY `type` (`type`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=45424 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='rpc的日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rpc_log_202303`
--

DROP TABLE IF EXISTS `rpc_log_202303`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rpc_log_202303` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` varchar(700) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'user_id',
  `type` tinyint unsigned NOT NULL COMMENT 'type',
  `msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'msg',
  `err` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'err',
  `fail_uids` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`,`type`),
  KEY `type` (`type`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=50990 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='rpc的日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rpc_log_202304`
--

DROP TABLE IF EXISTS `rpc_log_202304`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rpc_log_202304` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` varchar(700) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'user_id',
  `type` tinyint unsigned NOT NULL COMMENT 'type',
  `msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'msg',
  `err` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'err',
  `fail_uids` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`,`type`),
  KEY `type` (`type`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=37012 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='rpc的日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rpc_log_202305`
--

DROP TABLE IF EXISTS `rpc_log_202305`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rpc_log_202305` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` varchar(700) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'user_id',
  `type` tinyint unsigned NOT NULL COMMENT 'type',
  `msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'msg',
  `err` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'err',
  `fail_uids` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`,`type`),
  KEY `type` (`type`,`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='rpc的日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `session`
--

DROP TABLE IF EXISTS `session`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `session` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `session_uid` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'sessionUid',
  `type` tinyint NOT NULL COMMENT '会话类型',
  `orgin_type` tinyint NOT NULL COMMENT '来源类型',
  `origin_id` bigint NOT NULL COMMENT '来源ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`session_uid`)
) ENGINE=InnoDB AUTO_INCREMENT=16602 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='会话';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `session_free_user`
--

DROP TABLE IF EXISTS `session_free_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `session_free_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `day` date NOT NULL COMMENT '日期',
  `n` int NOT NULL COMMENT '次数',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_3` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=342 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='免费视频';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `session_pay`
--

DROP TABLE IF EXISTS `session_pay`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `session_pay` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `type` tinyint NOT NULL COMMENT '类型(1:支付者 2:参与者)',
  `session_id` bigint NOT NULL COMMENT '会话ID',
  `diamond_account_detail_id` bigint NOT NULL COMMENT '钻石消费详情',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`session_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=33192 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='会话支付';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `session_view`
--

DROP TABLE IF EXISTS `session_view`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `session_view` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `other_user_id` bigint NOT NULL COMMENT 'other_user_id',
  `session_id` bigint NOT NULL COMMENT 'session_id',
  `session_uid` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'session_uid',
  `logic_del` tinyint NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `i` int NOT NULL DEFAULT '0',
  `callback_time` datetime DEFAULT NULL COMMENT 'im回调时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`other_user_id`) USING BTREE,
  KEY `Index_1` (`other_user_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=32812 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='会话视图';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sheep_match_queue`
--

DROP TABLE IF EXISTS `sheep_match_queue`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sheep_match_queue` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `sex` tinyint NOT NULL COMMENT '性别',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='羊羊队列表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sheep_match_robot`
--

DROP TABLE IF EXISTS `sheep_match_robot`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sheep_match_robot` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1001 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='羊羊robot表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sheep_match_success`
--

DROP TABLE IF EXISTS `sheep_match_success`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sheep_match_success` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id1` bigint NOT NULL COMMENT '用户id1',
  `user_id2` bigint NOT NULL COMMENT '用户id2',
  `ai1` tinyint NOT NULL DEFAULT '0' COMMENT 'user_id1是否ai 0:否 1:是',
  `ai2` tinyint NOT NULL DEFAULT '0' COMMENT 'user_id2是否ai 0:否 1:是',
  `type` smallint unsigned NOT NULL COMMENT '1:随机匹配 2:指定匹配',
  `start_ux` bigint NOT NULL DEFAULT '0' COMMENT 'user1开始时间',
  `end_ux` bigint NOT NULL DEFAULT '0' COMMENT '结束时间',
  `winner` bigint NOT NULL DEFAULT '0' COMMENT '赢家',
  `payload` varchar(255) DEFAULT NULL COMMENT '回调body',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='羊羊匹配成功表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `slot_day_rank`
--

DROP TABLE IF EXISTS `slot_day_rank`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `slot_day_rank` (
  `date` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日期',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `stake` bigint unsigned NOT NULL COMMENT '总参与钻石数',
  `award` bigint unsigned NOT NULL COMMENT '总中奖金额',
  `stake_times` bigint NOT NULL DEFAULT '0' COMMENT '投注次数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='slot 日榜';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `slot_level_config`
--

DROP TABLE IF EXISTS `slot_level_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `slot_level_config` (
  `level` bigint unsigned NOT NULL COMMENT '等级',
  `exp` bigint unsigned NOT NULL COMMENT '所需经验值',
  `award_type` tinyint(1) NOT NULL COMMENT '奖励类型 1:钻石 2:礼物 3:头饰 4:贵族 5:座驾',
  `res_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '资源id,钻石类型为0,贵族类型为贵族等级',
  `res_count` int unsigned NOT NULL COMMENT '资源个数',
  `res_day` int NOT NULL DEFAULT '0' COMMENT '资源天数,钻石类型为0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='slot 等级配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `slot_sdk_report`
--

DROP TABLE IF EXISTS `slot_sdk_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `slot_sdk_report` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户id',
  `report_msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '上报数据对象',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4814 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='slot游戏sdk上报';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `slot_user_level`
--

DROP TABLE IF EXISTS `slot_user_level`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `slot_user_level` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户id',
  `level` bigint unsigned NOT NULL COMMENT '等级',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户等级';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `slot_user_level_detail`
--

DROP TABLE IF EXISTS `slot_user_level_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `slot_user_level_detail` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户id',
  `level` bigint unsigned NOT NULL COMMENT '等级',
  `award_type` tinyint(1) NOT NULL COMMENT '奖励类型 1:钻石 2:礼物 3:头饰 4:贵族 5:座驾',
  `res_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '资源id,钻石类型为0,贵族类型为贵族等级',
  `res_count` int unsigned NOT NULL COMMENT '资源个数',
  `res_day` int NOT NULL DEFAULT '0' COMMENT '资源天数,钻石类型为0',
  `status` tinyint(1) NOT NULL DEFAULT '2' COMMENT '状态 1:发奖成功 2:未发奖',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=576 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户等级明细';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `splash_screen`
--

DROP TABLE IF EXISTS `splash_screen`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `splash_screen` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `title` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'title',
  `image` char(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'image',
  `url` char(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'url',
  `group_code` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'group_id',
  `begin_time` datetime NOT NULL COMMENT 'begin_time',
  `end_time` datetime NOT NULL COMMENT 'end_time',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `area` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '上线区域:0全区;1阿语区;2非阿语区;3指定国家',
  `country_list` varchar(800) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '指定区域的国家列表',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=152 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='运营弹窗';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `starchat_charge`
--

DROP TABLE IF EXISTS `starchat_charge`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `starchat_charge` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `app_id` char(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `country` char(16) COLLATE utf8mb4_unicode_ci NOT NULL,
  `currency` char(16) COLLATE utf8mb4_unicode_ci NOT NULL,
  `discount_amount` int NOT NULL,
  `goods_id` char(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `order_amount` float NOT NULL,
  `order_no` char(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `pay_amount` float NOT NULL,
  `pay_type` char(16) COLLATE utf8mb4_unicode_ci NOT NULL,
  `quantity` int NOT NULL,
  `user_id` char(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `order_no_IDX` (`order_no`) USING BTREE,
  KEY `user_id_IDX` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `static_day_stat`
--

DROP TABLE IF EXISTS `static_day_stat`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `static_day_stat` (
  `date` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日期',
  `dau` bigint unsigned NOT NULL COMMENT 'DAU',
  `retention` bigint unsigned NOT NULL COMMENT '次日存留',
  `retention_ratio` bigint unsigned NOT NULL COMMENT '次日存留率',
  `new_user` bigint unsigned NOT NULL COMMENT '新注册',
  `confirm_count` bigint unsigned NOT NULL COMMENT '双方同意视频聊天的次数',
  `video_count` bigint unsigned NOT NULL COMMENT '视频聊天的次数',
  `video_user_count` bigint unsigned NOT NULL COMMENT '视频聊天的用户数',
  `apple_pay` bigint unsigned NOT NULL COMMENT '当日消费(苹果)',
  `google_pay` bigint unsigned NOT NULL COMMENT '当日消费(谷歌)',
  `official_pay` bigint unsigned NOT NULL COMMENT '当日充值(官网,当前包含渠道:checkout、茄子)',
  `agent_pay` bigint unsigned NOT NULL COMMENT '代理充值(当前包含渠道:茄子)',
  `eggplant_pay` bigint unsigned NOT NULL COMMENT '当日充值(茄子)',
  `checkout_pay` bigint unsigned NOT NULL COMMENT '当日充值(官网,当前包含渠道:checkout、茄子)',
  `total_pay` bigint unsigned NOT NULL COMMENT '当日消费合计',
  `income` bigint unsigned NOT NULL COMMENT '当日预估收入',
  `charge_user_count` bigint unsigned NOT NULL COMMENT '当日充值人数',
  `charge_count` bigint unsigned NOT NULL COMMENT '当日充值次数',
  `vip_buy_count` bigint unsigned NOT NULL COMMENT '当日购买vip的人数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='静态数据-日活天数据';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `static_fruit_machine_award_week`
--

DROP TABLE IF EXISTS `static_fruit_machine_award_week`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `static_fruit_machine_award_week` (
  `begin_date` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日期',
  `end_date` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日期',
  `rank` int NOT NULL COMMENT '排名',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `stake` bigint unsigned NOT NULL COMMENT '总参与钻石数',
  `award` bigint unsigned NOT NULL COMMENT '总中奖金额',
  `profit_loss` bigint NOT NULL COMMENT '盈亏(中奖-投注)',
  `charge_money` float NOT NULL COMMENT '充值金额 $',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`begin_date`,`end_date`,`rank`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='静态数据-水果机周排行数据-中奖';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `static_fruit_machine_day`
--

DROP TABLE IF EXISTS `static_fruit_machine_day`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `static_fruit_machine_day` (
  `date` varchar(127) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日期',
  `round_num` int NOT NULL COMMENT '总轮数',
  `user_num` int NOT NULL COMMENT '总参与人数',
  `award_num` int NOT NULL DEFAULT '0' COMMENT '中奖人数',
  `stake` bigint unsigned NOT NULL COMMENT '总参与钻石数',
  `award` bigint unsigned NOT NULL COMMENT '总中奖金额',
  `recycle` bigint unsigned NOT NULL COMMENT '总回收钻石数',
  `top_consumer` varchar(127) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '消费TOP1',
  `top_consumer_diamond` bigint unsigned NOT NULL COMMENT '消费TOP1消费金额',
  `top_winner` varchar(127) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '中奖TOP1',
  `top_winner_diamond` bigint unsigned NOT NULL COMMENT '中奖TOP1中奖金额',
  `left_over` int NOT NULL DEFAULT '0' COMMENT '今日盈余',
  `pool` int NOT NULL DEFAULT '0' COMMENT '当前奖池',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='静态数据-水果机天数据';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `static_fruit_machine_stake_week`
--

DROP TABLE IF EXISTS `static_fruit_machine_stake_week`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `static_fruit_machine_stake_week` (
  `begin_date` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日期',
  `end_date` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日期',
  `rank` int NOT NULL COMMENT '排名',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `stake` bigint unsigned NOT NULL COMMENT '总参与钻石数',
  `award` bigint unsigned NOT NULL COMMENT '总中奖金额',
  `profit_loss` bigint NOT NULL COMMENT '盈亏(中奖-投注)',
  `charge_money` float NOT NULL COMMENT '充值金额 $',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`begin_date`,`end_date`,`rank`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='静态数据-水果机周排行数据-投注';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `static_luckybox_award_count_day`
--

DROP TABLE IF EXISTS `static_luckybox_award_count_day`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `static_luckybox_award_count_day` (
  `date_str` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日期',
  `buy_diamonds` bigint NOT NULL DEFAULT '0' COMMENT '消耗总金币',
  `award_diamonds` bigint NOT NULL DEFAULT '0' COMMENT '抽出奖品总价值',
  `lottery_num` bigint NOT NULL DEFAULT '0' COMMENT '总抽奖次数',
  `person_sum` bigint NOT NULL DEFAULT '0' COMMENT '总抽奖人数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date_str`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='静态数据-幸运盒子奖励统计-天数据';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `static_luckybox_award_detail_day`
--

DROP TABLE IF EXISTS `static_luckybox_award_detail_day`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `static_luckybox_award_detail_day` (
  `date_str` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日期',
  `luckybox_award_id` int NOT NULL DEFAULT '0' COMMENT '奖品ID',
  `award_type` int NOT NULL DEFAULT '0' COMMENT '奖品名称 1:钻石',
  `total_diamond` bigint NOT NULL DEFAULT '0' COMMENT '中奖价值',
  `n` int NOT NULL DEFAULT '0' COMMENT '中奖次数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date_str`,`luckybox_award_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='静态数据-幸运盒子抽奖明细-天数据';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `super_manager`
--

DROP TABLE IF EXISTS `super_manager`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `super_manager` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_1` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='超级管理人';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `task_config`
--

DROP TABLE IF EXISTS `task_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `task_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名字',
  `diamond` int NOT NULL COMMENT '钻石',
  `type` tinyint NOT NULL COMMENT '类型',
  `rate_type` tinyint NOT NULL COMMENT '频率类型(1:每日任务 2:进阶任务)',
  `finish_n` int NOT NULL COMMENT '完成次数',
  `i` int NOT NULL COMMENT '排序',
  `status` tinyint NOT NULL COMMENT '状态',
  `award_n` int NOT NULL COMMENT '奖励次数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=82 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='任务配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `task_user`
--

DROP TABLE IF EXISTS `task_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `task_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `task_config_id` bigint NOT NULL COMMENT '任务ID',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `day_str` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日期字符串',
  `finish_n` int NOT NULL COMMENT '完成了多少次了',
  `award_n` int NOT NULL COMMENT '奖励次数',
  `has_finish` tinyint NOT NULL COMMENT '是否已经完成',
  `has_award` tinyint NOT NULL COMMENT '是否已经领取奖励(全部完成奖励)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`task_config_id`,`user_id`,`day_str`)
) ENGINE=InnoDB AUTO_INCREMENT=11213 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='任务用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `task_user_detail`
--

DROP TABLE IF EXISTS `task_user_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `task_user_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `task_user_id` bigint NOT NULL COMMENT 'task_user_id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `task_config_id` bigint NOT NULL COMMENT 'task_config_id',
  `origin_id` bigint NOT NULL COMMENT '来源ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=135873 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='任务用户明细';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `trade_union_agent`
--

DROP TABLE IF EXISTS `trade_union_agent`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `trade_union_agent` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名字',
  `status` tinyint NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=132 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='工会用户代理';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tx_moderate_record`
--

DROP TABLE IF EXISTS `tx_moderate_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tx_moderate_record` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL,
  `data_id` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
  `file_url` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
  `suggestion` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL,
  `response` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_idx` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user`
--

DROP TABLE IF EXISTS `user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `external_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '别名',
  `avatar` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '头像',
  `default_avatar` tinyint(1) NOT NULL DEFAULT '1',
  `nick` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '昵称',
  `sex` tinyint NOT NULL COMMENT '性别',
  `birthday` bigint DEFAULT '0' COMMENT '出生日期',
  `country` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '国家',
  `country_icon` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '国旗图标地址',
  `language` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `description` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '个性签名',
  `is_push` tinyint NOT NULL,
  `is_show_age` tinyint NOT NULL,
  `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '邀请码',
  `origin_code` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '原始邀请码',
  `status` tinyint NOT NULL DEFAULT '1' COMMENT '状态',
  `device_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT 'ios,Android',
  `logout_time` bigint NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `network_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '买量network',
  `tracker_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '买量tracker',
  `campaign_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '买量campaign',
  `adid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '买量adid',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uid` (`code`),
  KEY `external_id_IDX` (`external_id`) USING BTREE,
  KEY `country_IDX` (`country`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=7643 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_appversion`
--

DROP TABLE IF EXISTS `user_appversion`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_appversion` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `device_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT 'ios,Android',
  `appversion` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '版本号',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`),
  KEY `da_idx` (`device_type`,`appversion`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=526 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='版本号';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_award_data`
--

DROP TABLE IF EXISTS `user_award_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_award_data` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `timestart` int unsigned NOT NULL DEFAULT '0',
  `data_type` tinyint NOT NULL DEFAULT '0' COMMENT '1日数据2周数据3月数据',
  `number` int NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_bag`
--

DROP TABLE IF EXISTS `user_bag`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_bag` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `res_type` int unsigned NOT NULL COMMENT '道具类型 1:礼物道具',
  `res_id` bigint unsigned NOT NULL COMMENT '道具资源id',
  `count` int DEFAULT '0' COMMENT '道具数量',
  `end_time` datetime DEFAULT NULL COMMENT '有效截至时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `end_idx` (`user_id`,`res_type`,`res_id`,`end_time`)
) ENGINE=InnoDB AUTO_INCREMENT=313 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户背包';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_bag_detail`
--

DROP TABLE IF EXISTS `user_bag_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_bag_detail` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL,
  `bag_id` bigint NOT NULL DEFAULT '0' COMMENT '背包id',
  `res_type` int unsigned NOT NULL COMMENT '资源类型 1:礼物',
  `res_id` bigint unsigned NOT NULL COMMENT '资源ID',
  `count` int DEFAULT '0' COMMENT '道具数量',
  `add_reduce` tinyint NOT NULL COMMENT '类型(1:增加 2:减少)',
  `bef_num` bigint NOT NULL COMMENT '之前数量',
  `aft_num` bigint NOT NULL COMMENT '之后数量',
  `remark` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '备注',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_idx` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=571 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户背包明细';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_bind_info`
--

DROP TABLE IF EXISTS `user_bind_info`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_bind_info` (
  `user_id` bigint unsigned NOT NULL,
  `phone` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '手机号码(包含区号)',
  `phone_country` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '手机号所属国家',
  `pwd` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '账号密码',
  `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `area_code` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '国家区号',
  `icon` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '国家图标',
  PRIMARY KEY (`user_id`),
  UNIQUE KEY `phone_IDX` (`phone`,`area_code`) USING BTREE,
  KEY `create_at_IDX` (`create_at`) USING BTREE,
  KEY `update_at_IDX` (`update_at`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_black_tencentyun_tmp`
--

DROP TABLE IF EXISTS `user_black_tencentyun_tmp`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_black_tencentyun_tmp` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_external` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'user_external',
  `block_external` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'block_external',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='腾讯云临时表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_block`
--

DROP TABLE IF EXISTS `user_block`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_block` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `block_user_id` bigint NOT NULL COMMENT '拉黑用户ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`,`block_user_id`),
  KEY `Index_1` (`user_id`,`created_time`),
  KEY `Index_2` (`block_user_id`,`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=7003 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='黑名单';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_code_gen_range`
--

DROP TABLE IF EXISTS `user_code_gen_range`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_code_gen_range` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `min` bigint NOT NULL COMMENT 'code范围的下限',
  `max` bigint NOT NULL COMMENT 'code范围的上限',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='预备生成的code范围';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_consume_half_month`
--

DROP TABLE IF EXISTS `user_consume_half_month`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_consume_half_month` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `send_user_id` bigint unsigned NOT NULL COMMENT '发送人',
  `receive_user_id` bigint unsigned NOT NULL COMMENT '接收人',
  `diamond` bigint NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_idx` (`receive_user_id`,`send_user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=415 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户贡献-过去15天排行榜';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_consume_half_month_offset`
--

DROP TABLE IF EXISTS `user_consume_half_month_offset`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_consume_half_month_offset` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `last_cal_time` timestamp NULL DEFAULT NULL COMMENT '上次计算到的时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户贡献-过去15天排行榜-记录偏移值';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_count`
--

DROP TABLE IF EXISTS `user_count`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_count` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `type` tinyint NOT NULL COMMENT '类型',
  `num` int NOT NULL COMMENT '数量',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`type`)
) ENGINE=InnoDB AUTO_INCREMENT=5098 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_country_log`
--

DROP TABLE IF EXISTS `user_country_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_country_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `before_country` char(20) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '之前国家',
  `after_country` char(20) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '现在国家',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=280 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户国家修改记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_enter_room`
--

DROP TABLE IF EXISTS `user_enter_room`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_enter_room` (
  `user_id` bigint unsigned NOT NULL,
  `group_id` char(32) NOT NULL,
  `enter_time` datetime NOT NULL COMMENT '最近一次进入时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`user_id`,`group_id`),
  KEY `group_IDX` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户进房间记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_global_broadcast`
--

DROP TABLE IF EXISTS `user_global_broadcast`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_global_broadcast` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `group_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '群组ID',
  `msg` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '消息',
  `status` tinyint NOT NULL COMMENT '状态',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2024 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户全球广播';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_global_broadcast_limit`
--

DROP TABLE IF EXISTS `user_global_broadcast_limit`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_global_broadcast_limit` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `end_time` datetime DEFAULT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=351 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户全球广播限制';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_global_broadcast_prohibit`
--

DROP TABLE IF EXISTS `user_global_broadcast_prohibit`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_global_broadcast_prohibit` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `user_global_broadcast_id` bigint NOT NULL COMMENT 'user_global_broadcast_id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=249 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户全球广播删除';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_headwear`
--

DROP TABLE IF EXISTS `user_headwear`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_headwear` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `headwear_id` bigint NOT NULL COMMENT '头饰ID',
  `end_time` timestamp NOT NULL COMMENT '有效截至时间',
  `using` tinyint NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`,`headwear_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4772 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户头饰';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_headwear_log`
--

DROP TABLE IF EXISTS `user_headwear_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_headwear_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `headwear_id` bigint NOT NULL COMMENT '头饰ID',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `type` tinyint NOT NULL COMMENT '类型(1:原来基础上延迟 2:直接修改截至时间 3:删除)',
  `add_second` int DEFAULT NULL COMMENT '增加时间(单位秒)',
  `update_end_time` timestamp NULL DEFAULT NULL COMMENT '修改截止时间',
  `operate_user_id` bigint NOT NULL DEFAULT '0' COMMENT '操作者ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`),
  KEY `Index_2` (`user_id`,`headwear_id`)
) ENGINE=InnoDB AUTO_INCREMENT=17443 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户头饰日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_imei`
--

DROP TABLE IF EXISTS `user_imei`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_imei` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `imei` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备码',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`),
  KEY `imei_IDX` (`imei`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4021 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='设备码';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_interaction`
--

DROP TABLE IF EXISTS `user_interaction`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_interaction` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `send_user_id` bigint unsigned NOT NULL,
  `receive_user_id` bigint unsigned NOT NULL,
  `src_type` tinyint unsigned NOT NULL COMMENT '来源',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `receiver_idx` (`receive_user_id`) USING BTREE,
  KEY `created_time` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=2940 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户互动记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_ip`
--

DROP TABLE IF EXISTS `user_ip`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_ip` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `ip` char(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'ip',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2111 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户IP';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_like`
--

DROP TABLE IF EXISTS `user_like`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_like` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '喜欢者ID',
  `like_user_id` bigint NOT NULL COMMENT '被喜欢者ID',
  `scene_type` tinyint NOT NULL DEFAULT '0' COMMENT '1:随机匹配',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `AK_Key_2` (`user_id`,`like_user_id`),
  KEY `Index_2` (`like_user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=30676 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户喜欢';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_like_operate`
--

DROP TABLE IF EXISTS `user_like_operate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_like_operate` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '喜欢者ID',
  `like_user_id` bigint unsigned NOT NULL COMMENT '被喜欢者ID',
  `type` tinyint NOT NULL COMMENT '类型(1:喜欢,2:取消喜欢)',
  `scene_type` tinyint NOT NULL DEFAULT '0' COMMENT '1:随机匹配',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`,`like_user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6176 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户喜欢操作';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_match_card`
--

DROP TABLE IF EXISTS `user_match_card`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_match_card` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `remain_n` int NOT NULL COMMENT '剩余次数',
  `date_str` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '日期',
  `has_vip_daily_in` tinyint NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1731 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户匹配卡';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_match_card_config`
--

DROP TABLE IF EXISTS `user_match_card_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_match_card_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `sign_no_vip_day_n` int NOT NULL COMMENT '签到非VIP匹配卡',
  `sign_vip_day_n` int NOT NULL COMMENT '签到VIP匹配卡',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户匹配卡配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_medal`
--

DROP TABLE IF EXISTS `user_medal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_medal` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `medal_id` int unsigned NOT NULL COMMENT '勋章ID',
  `end_time` datetime DEFAULT NULL COMMENT '有效截至时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_medal_un` (`user_id`,`medal_id`),
  KEY `user_id_IDX` (`user_id`) USING BTREE,
  KEY `medal_id_IDX` (`medal_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6681 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户勋章';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_nameplate`
--

DROP TABLE IF EXISTS `user_nameplate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_nameplate` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `nameplate_id` int unsigned NOT NULL COMMENT '铭牌ID',
  `end_time` datetime DEFAULT NULL COMMENT '有效截至时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_nameplate_un` (`user_id`,`nameplate_id`),
  KEY `user_id_IDX` (`user_id`) USING BTREE,
  KEY `nameplate_id_IDX` (`nameplate_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户铭牌';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_nameplate_log`
--

DROP TABLE IF EXISTS `user_nameplate_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_nameplate_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `sender_id` bigint unsigned NOT NULL,
  `receiver_id` bigint unsigned NOT NULL,
  `nameplate_id` int unsigned NOT NULL COMMENT '铭牌ID',
  `old_end_time` datetime DEFAULT NULL COMMENT '旧截止时间',
  `new_end_time` datetime NOT NULL COMMENT '截止时间',
  `mgr_id` bigint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `receiver_id` (`receiver_id`) USING BTREE,
  KEY `mgr_id` (`mgr_id`) USING BTREE,
  KEY `created_time` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户铭牌日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_noble`
--

DROP TABLE IF EXISTS `user_noble`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_noble` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `level` smallint unsigned NOT NULL COMMENT '贵族等级',
  `end_time` datetime NOT NULL COMMENT '有效截至时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_level_IDX` (`user_id`,`level`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1644 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='贵族身份';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_noble_log`
--

DROP TABLE IF EXISTS `user_noble_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_noble_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `sender_id` bigint unsigned NOT NULL,
  `receiver_id` bigint unsigned NOT NULL,
  `level` smallint unsigned NOT NULL,
  `money` int unsigned NOT NULL COMMENT '花费',
  `src_type` smallint unsigned NOT NULL DEFAULT '1',
  `old_end_time` datetime NOT NULL COMMENT '旧截止时间',
  `new_end_time` datetime NOT NULL COMMENT '截止时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `receiver_id` (`receiver_id`) USING BTREE,
  KEY `created_time` (`created_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3358 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='贵族消费日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_oauth`
--

DROP TABLE IF EXISTS `user_oauth`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_oauth` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `third_party_id` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '第三方ID',
  `third_party_type` tinyint NOT NULL COMMENT '第三方类型',
  `third_party_token` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '第三方token',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `third_party_id` (`third_party_id`,`third_party_type`),
  UNIQUE KEY `uid_tid_IDX` (`user_id`,`third_party_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4503 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='授权登陆';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_on_mic`
--

DROP TABLE IF EXISTS `user_on_mic`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_on_mic` (
  `date` date NOT NULL COMMENT '日期',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `seconds` bigint NOT NULL DEFAULT '0' COMMENT '上麦时长',
  `last_cal_ts` bigint NOT NULL DEFAULT '0' COMMENT '上次计算的上麦时间戳',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `tz` tinyint NOT NULL DEFAULT '0' COMMENT '时区 0:北京 1:沙特',
  PRIMARY KEY (`date`,`user_id`,`tz`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户上麦时长';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_photos`
--

DROP TABLE IF EXISTS `user_photos`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_photos` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL,
  `photo_url` varchar(1024) NOT NULL DEFAULT '',
  `position` tinyint unsigned NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `USER_ID` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2021 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_property`
--

DROP TABLE IF EXISTS `user_property`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_property` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `property_id` bigint unsigned NOT NULL COMMENT '道具ID',
  `end_time` timestamp NOT NULL COMMENT '有效截至时间',
  `using` tinyint NOT NULL DEFAULT '0',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`),
  KEY `property_id` (`property_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4324 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户道具';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_property_log`
--

DROP TABLE IF EXISTS `user_property_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_property_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `property_id` bigint NOT NULL COMMENT '道具ID',
  `origin_type` tinyint NOT NULL COMMENT '来源类型',
  `type` tinyint NOT NULL COMMENT '类型(1:原来基础上延迟 2:直接修改截至时间 3:删除)',
  `add_second` int DEFAULT NULL COMMENT '增加时间(单位秒)',
  `update_end_time` timestamp NULL DEFAULT NULL COMMENT '修改截止时间',
  `operate_user_id` bigint NOT NULL DEFAULT '0' COMMENT '操作者ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=16360 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户道具日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_relation`
--

DROP TABLE IF EXISTS `user_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_relation` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id_1` bigint unsigned NOT NULL,
  `user_id_2` bigint unsigned NOT NULL,
  `heart_value` int NOT NULL DEFAULT '0' COMMENT '永恒之心值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `USER_ID` (`user_id_1`)
) ENGINE=InnoDB AUTO_INCREMENT=6382 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户成长关系';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_request_last`
--

DROP TABLE IF EXISTS `user_request_last`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_request_last` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `time_last` timestamp NOT NULL COMMENT '最后的时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2061 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户请求最后时间';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_svip`
--

DROP TABLE IF EXISTS `user_svip`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_svip` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `points` bigint unsigned NOT NULL DEFAULT '0' COMMENT '积分',
  `level` int unsigned NOT NULL DEFAULT '0' COMMENT 'svip等级',
  `expire_at` datetime NOT NULL COMMENT '过期时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`),
  KEY `expire_at` (`expire_at`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户SVIP';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_svip_detail`
--

DROP TABLE IF EXISTS `user_svip_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_svip_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `add_reduce` tinyint NOT NULL COMMENT '类型(1:增加 2:减少 3: 设置)',
  `num` int NOT NULL COMMENT '数量',
  `remark` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '备注',
  `bef_num` bigint NOT NULL COMMENT '之前积分数量',
  `aft_num` bigint NOT NULL COMMENT '之后积分数量',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `created_time` (`created_time`) USING BTREE,
  KEY `user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=626 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户SVIP增减明细';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_svip_privilege`
--

DROP TABLE IF EXISTS `user_svip_privilege`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_svip_privilege` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `type` int NOT NULL COMMENT '类型 1.专属勋章, 2.专属标识, 3.设备和IP踢出房间, 4.隐藏在线, 5.禁止跟随, 6.炫彩昵称, 7.隐藏礼物墙, 8.隐藏访客记录, 9.排行榜隐身, 10.房间防踢, 11.房间防抱下麦',
  `open_close` tinyint NOT NULL COMMENT '1:开启 2:关闭',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`,`type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户SVIP特权开关';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_trade_union`
--

DROP TABLE IF EXISTS `user_trade_union`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_trade_union` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `match_notification` tinyint NOT NULL,
  `agent_id` bigint NOT NULL DEFAULT '0' COMMENT '不存在则为0',
  `starchat_id` bigint unsigned NOT NULL DEFAULT '0',
  `avatar` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '公会头像',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2442 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='工会用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_transfer_detail`
--

DROP TABLE IF EXISTS `user_transfer_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_transfer_detail` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `pay_order_id` bigint NOT NULL COMMENT 'pay_order表id',
  `dealer_id` bigint unsigned NOT NULL COMMENT '收钻代理userid',
  `user_id` bigint unsigned NOT NULL COMMENT '充值支付的userid',
  `diamond` int unsigned NOT NULL,
  `dollar` int unsigned NOT NULL,
  `status` tinyint NOT NULL DEFAULT '2' COMMENT '1:准备 2:成功',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `pay_id_IDX` (`pay_order_id`),
  KEY `dealer_id_IDX` (`dealer_id`),
  KEY `user_id_IDX` (`user_id`),
  KEY `created_time_IDX` (`created_time`)
) ENGINE=InnoDB AUTO_INCREMENT=201 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户给币商充值钻石记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_vip`
--

DROP TABLE IF EXISTS `user_vip`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_vip` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `expire_at` datetime NOT NULL COMMENT '过期时间',
  `type` tinyint NOT NULL COMMENT '类型(1:用户充值 2:后台赠送)',
  `platform` tinyint NOT NULL COMMENT '平台',
  `vip_subscribe_order_id` bigint NOT NULL COMMENT 'vip订阅订单',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10534 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户VIP';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_visit`
--

DROP TABLE IF EXISTS `user_visit`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_visit` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户',
  `visit_user_id` bigint NOT NULL COMMENT '访问者',
  `n` int NOT NULL DEFAULT '1' COMMENT '访问次数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `AK_Key_2` (`user_id`,`visit_user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=67757 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户访问';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_wealth`
--

DROP TABLE IF EXISTS `user_wealth`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_wealth` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `wealth` int NOT NULL COMMENT '财富值',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=194 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户财富';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `version_control`
--

DROP TABLE IF EXISTS `version_control`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `version_control` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `platform` varchar(63) NOT NULL COMMENT 'android / ios',
  `audit_version` varchar(255) NOT NULL DEFAULT '' COMMENT '提审版本号,>=时会过滤敏感模块',
  `status` tinyint(1) NOT NULL DEFAULT '2' COMMENT '1:有效 2:无效',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='版本控制';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `video_agora_log`
--

DROP TABLE IF EXISTS `video_agora_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `video_agora_log` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `video_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '视频ID',
  `request_id` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '声网日志ID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_1` (`video_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=46060 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='声网日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `video_chat_time_total`
--

DROP TABLE IF EXISTS `video_chat_time_total`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `video_chat_time_total` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户id',
  `video_seconds` bigint DEFAULT '0' COMMENT '视频聊天时长/秒',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uid` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=204 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='视频聊天总时长';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `video_data`
--

DROP TABLE IF EXISTS `video_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `video_data` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `date_str` date NOT NULL,
  `data_type` tinyint NOT NULL DEFAULT '1' COMMENT '1每天的数据',
  `dau` int unsigned NOT NULL DEFAULT '0',
  `video_dau` int unsigned NOT NULL DEFAULT '1' COMMENT '参与视频总人数',
  `video_keep` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '视频留存',
  `video_time` int NOT NULL DEFAULT '0' COMMENT '总通话时长',
  `video_diamond` int unsigned NOT NULL DEFAULT '0' COMMENT '视频总消耗',
  `video_start` int NOT NULL DEFAULT '0' COMMENT '发起随机匹配的人数总和',
  `video_match` int NOT NULL DEFAULT '0' COMMENT '发起匹配的次数总和',
  `video_success` int NOT NULL DEFAULT '0' COMMENT '匹配成功次数',
  `video_everyone` int unsigned NOT NULL DEFAULT '0' COMMENT '1v1人数',
  `video_everyone_all` int NOT NULL DEFAULT '0' COMMENT '1v1总次数',
  `video_everyone_success` int unsigned NOT NULL DEFAULT '0' COMMENT '1v1成功次数',
  `region` tinyint NOT NULL DEFAULT '0' COMMENT '用户的区域',
  `country` tinyint NOT NULL DEFAULT '0' COMMENT '国家',
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `date_str_IDX` (`date_str`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=29140 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `video_detail`
--

DROP TABLE IF EXISTS `video_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `video_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `video_uid` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '视频UID',
  `channel_id` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '频道ID',
  `send_user_id` bigint NOT NULL COMMENT '发起者',
  `receive_user_id` bigint NOT NULL COMMENT '接收者',
  `send_time` timestamp NOT NULL COMMENT '发起时间',
  `receive_time` timestamp NULL DEFAULT NULL COMMENT '接收时间',
  `refuse_time` timestamp NULL DEFAULT NULL COMMENT '拒绝时间',
  `refuse_user_id` bigint DEFAULT NULL COMMENT '拒绝用户ID',
  `send_agora_id` int NOT NULL COMMENT '发起者声网token',
  `receive_agora_id` int NOT NULL COMMENT '发起者声网id',
  `send_agora_token` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '接收者声网token',
  `receive_agora_token` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '接收者声网id',
  `status` tinyint NOT NULL COMMENT '状态',
  `type` tinyint NOT NULL COMMENT '类型',
  `start_time` timestamp NOT NULL COMMENT '开始时间',
  `end_time` timestamp NOT NULL COMMENT '结束时间',
  `reality_time` timestamp NULL DEFAULT NULL COMMENT '实际结束时间',
  `end_user_id` bigint DEFAULT NULL COMMENT '结束通话的人(已经通话了的结束)',
  `cost_diamond` int NOT NULL COMMENT '花费的钻石',
  `is_pink` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否粉钻 1:是 2:否',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `call_ready_time` timestamp NULL DEFAULT NULL COMMENT '第一帧的时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_match_uid` (`video_uid`),
  KEY `AK_channel_id` (`channel_id`)
) ENGINE=InnoDB AUTO_INCREMENT=53724 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='视频';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `video_free_time_record`
--

DROP TABLE IF EXISTS `video_free_time_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `video_free_time_record` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `video_uid` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '1对1UID',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`video_uid`)
) ENGINE=InnoDB AUTO_INCREMENT=13082 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='1对1视频免费加时';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `video_free_user`
--

DROP TABLE IF EXISTS `video_free_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `video_free_user` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT 'user_id',
  `day` date NOT NULL COMMENT '日期',
  `n` int NOT NULL COMMENT '次数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1223 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='视频免费用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `video_gift_sum`
--

DROP TABLE IF EXISTS `video_gift_sum`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `video_gift_sum` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `video_uid` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '视频UID',
  `send_user_id` bigint NOT NULL COMMENT '发起者',
  `receive_user_id` bigint NOT NULL COMMENT '接收者',
  `send_diamond` int NOT NULL COMMENT '发送者花费的钻石',
  `receive_bean` int NOT NULL COMMENT '接收者收到的豆子',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `Index_1` (`video_uid`,`send_user_id`,`receive_user_id`) USING BTREE,
  KEY `video_uid` (`video_uid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=438 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='视频礼物统计';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `video_minute_detail`
--

DROP TABLE IF EXISTS `video_minute_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `video_minute_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `video_uid` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '视频UID',
  `uuid` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'UUID',
  `send_user_id` bigint NOT NULL COMMENT '发起者',
  `receive_user_id` bigint NOT NULL COMMENT '接收者',
  `diamond` int NOT NULL COMMENT '钻石数量',
  `bean` int NOT NULL COMMENT '豆子数量',
  `type` tinyint NOT NULL COMMENT '类型(1:callReady 2:分钟加时)',
  `status` tinyint NOT NULL COMMENT '状态(1:预状态,2:预扣费 3:已处理)',
  `deal_status` tinyint NOT NULL COMMENT '处理结果(1:退费,2:扣费)',
  `next_time` int NOT NULL COMMENT '预状态发起时间',
  `expect_check_time` int NOT NULL COMMENT '预状态应答时间',
  `actual_check_time` int NOT NULL COMMENT '预先扣费时间',
  `cost_time` int NOT NULL COMMENT '退费时间',
  `expect_deal_time` int NOT NULL COMMENT '扣费时间',
  `actual_deal_time` int NOT NULL COMMENT '期待处理时间',
  `end_type` tinyint NOT NULL DEFAULT '0',
  `end_err` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `is_pink` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否粉钻 1:是 2:否',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`uuid`),
  KEY `Index_1` (`video_uid`),
  KEY `Index_3` (`status`,`end_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2008 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='视频分钟明细';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `video_minute_detail_log`
--

DROP TABLE IF EXISTS `video_minute_detail_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `video_minute_detail_log` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `video_uid` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '视频UID',
  `uuid` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'UUID',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `remark` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'remark',
  `err` tinytext COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'err',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `Index_1` (`video_uid`)
) ENGINE=InnoDB AUTO_INCREMENT=2383 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='视频分钟核心日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `video_minute_sum`
--

DROP TABLE IF EXISTS `video_minute_sum`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `video_minute_sum` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `video_uid` varchar(260) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '视频UID',
  `send_user_id` bigint NOT NULL COMMENT 'user_id',
  `receive_user_id` bigint NOT NULL,
  `diamond` int NOT NULL COMMENT 'diamond',
  `bean` int NOT NULL COMMENT '豆子',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`video_uid`,`send_user_id`,`receive_user_id`) USING BTREE,
  UNIQUE KEY `video_uid` (`video_uid`)
) ENGINE=InnoDB AUTO_INCREMENT=1441 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='视频分钟汇总';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `video_read`
--

DROP TABLE IF EXISTS `video_read`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `video_read` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `type` tinyint NOT NULL COMMENT '类型',
  `read_time` timestamp NOT NULL COMMENT '已读时间',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `video_relation`
--

DROP TABLE IF EXISTS `video_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `video_relation` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `send_user_id` bigint NOT NULL COMMENT '发起者',
  `receive_user_id` bigint NOT NULL COMMENT '接收者',
  `type` tinyint NOT NULL COMMENT '类型',
  `n` int NOT NULL COMMENT '次数',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`send_user_id`,`receive_user_id`,`type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=899 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='视频中,人物关系,视频次数,';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `video_trade_union_gift`
--

DROP TABLE IF EXISTS `video_trade_union_gift`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `video_trade_union_gift` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `res_gift_id` bigint NOT NULL COMMENT 'res_gift_id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='视频公会用户礼物';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vip_subscribe_apple`
--

DROP TABLE IF EXISTS `vip_subscribe_apple`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vip_subscribe_apple` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT 'user_id',
  `receipt` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'apple_receipt',
  `transaction_id` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'apple_transaction_id',
  `original_transaction_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `AK_Key_2` (`transaction_id`),
  KEY `original_transaction_id` (`original_transaction_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1306 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Vip订阅订单,记录的数据用户定时轮询查询。查询状态\r\n';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `vip_subscribe_google`
--

DROP TABLE IF EXISTS `vip_subscribe_google`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vip_subscribe_google` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint unsigned NOT NULL COMMENT 'user_id',
  `package_name` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL,
  `subscription_id` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL,
  `purchase_token` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `purchase_token` (`purchase_token`)
) ENGINE=InnoDB AUTO_INCREMENT=504 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Vip订阅订单(google)';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `watch_adv_record`
--

DROP TABLE IF EXISTS `watch_adv_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `watch_adv_record` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `transaction_id` char(64) NOT NULL,
  `user_id` bigint unsigned NOT NULL,
  `external_id` char(64) NOT NULL,
  `time_stamp` bigint NOT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `transaction_id` (`transaction_id`),
  KEY `user_id_idx` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=112 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='观看视频广告记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `watermelon_winner`
--

DROP TABLE IF EXISTS `watermelon_winner`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `watermelon_winner` (
  `date` date NOT NULL COMMENT '日期',
  `round` int unsigned NOT NULL COMMENT '轮次',
  `user_id` bigint unsigned NOT NULL COMMENT '用户ID',
  `award` int unsigned NOT NULL DEFAULT '0' COMMENT '赢得的金额',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`date`,`round`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='西瓜中奖记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `weekly_star_award_config`
--

DROP TABLE IF EXISTS `weekly_star_award_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `weekly_star_award_config` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
  `n` smallint unsigned NOT NULL COMMENT '名次',
  `diamond` int unsigned NOT NULL COMMENT '第一名钻石数量',
  `headdress_id` bigint unsigned NOT NULL COMMENT '头饰ID',
  `headdress_duration` int NOT NULL COMMENT '头饰时长(单位秒, -1:无限)',
  `property_id` bigint unsigned NOT NULL COMMENT '坐骑ID',
  `property_duration` int NOT NULL COMMENT '坐骑时长(单位秒, -1:无限)',
  `medal_id` bigint unsigned NOT NULL COMMENT '勋章ID',
  `medal_duration` int unsigned NOT NULL COMMENT '勋章时长(单位天)',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `order` (`n`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `weekly_star_gift`
--

DROP TABLE IF EXISTS `weekly_star_gift`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `weekly_star_gift` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `activity_billboard_id` bigint NOT NULL DEFAULT '0',
  `start_date` datetime NOT NULL COMMENT '开始日期',
  `gift_id` bigint NOT NULL COMMENT '礼物id',
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `date_gift_idx` (`start_date`,`gift_id`),
  KEY `activity_billboard_id` (`activity_billboard_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1674 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='周星活动礼物配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Final view structure for view `diamond_account_detail_copy`
--

/*!50001 DROP VIEW IF EXISTS `diamond_account_detail_copy`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = utf8 */;
/*!50001 SET character_set_results     = utf8 */;
/*!50001 SET collation_connection      = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `diamond_account_detail_copy` AS select `diamond_account_detail`.`id` AS `id`,`diamond_account_detail`.`user_id` AS `user_id`,`diamond_account_detail`.`diamond_account_id` AS `diamond_account_id`,`diamond_account_detail`.`operate_id` AS `operate_id`,`diamond_account_detail`.`operate_type` AS `operate_type`,`diamond_account_detail`.`origin_id` AS `origin_id`,`diamond_account_detail`.`add_reduce` AS `add_reduce`,`diamond_account_detail`.`num` AS `num`,`diamond_account_detail`.`remark` AS `remark`,`diamond_account_detail`.`bef_num` AS `bef_num`,`diamond_account_detail`.`aft_num` AS `aft_num`,`diamond_account_detail`.`created_time` AS `created_time`,`diamond_account_detail`.`updated_time` AS `updated_time`,`diamond_account_detail`.`operate_ids` AS `operate_ids` from `diamond_account_detail` */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2023-04-20 17:45:02