INSERT INTO `periods` VALUES (122307,NULL,'2101-09',2101,9,'2101-09-01','2101-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122308,NULL,'2101-10',2101,10,'2101-10-01','2101-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122309,NULL,'2101-11',2101,11,'2101-11-01','2101-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122310,NULL,'2101-12',2101,12,'2101-12-01','2101-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122314,NULL,'2102-01',2102,1,'2102-01-01','2102-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122315,NULL,'2102-02',2102,2,'2102-02-01','2102-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122316,NULL,'2102-03',2102,3,'2102-03-01','2102-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122317,NULL,'2102-04',2102,4,'2102-04-01','2102-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122318,NULL,'2102-05',2102,5,'2102-05-01','2102-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122319,NULL,'2102-06',2102,6,'2102-06-01','2102-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122320,NULL,'2102-07',2102,7,'2102-07-01','2102-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122321,NULL,'2102-08',2102,8,'2102-08-01','2102-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122322,NULL,'2102-09',2102,9,'2102-09-01','2102-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122323,NULL,'2102-10',2102,10,'2102-10-01','2102-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122324,NULL,'2102-11',2102,11,'2102-11-01','2102-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122325,NULL,'2102-12',2102,12,'2102-12-01','2102-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122329,NULL,'2103-01',2103,1,'2103-01-01','2103-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122330,NULL,'2103-02',2103,2,'2103-02-01','2103-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122331,NULL,'2103-03',2103,3,'2103-03-01','2103-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122332,NULL,'2103-04',2103,4,'2103-04-01','2103-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122333,NULL,'2103-05',2103,5,'2103-05-01','2103-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122334,NULL,'2103-06',2103,6,'2103-06-01','2103-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122335,NULL,'2103-07',2103,7,'2103-07-01','2103-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122336,NULL,'2103-08',2103,8,'2103-08-01','2103-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122337,NULL,'2103-09',2103,9,'2103-09-01','2103-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122338,NULL,'2103-10',2103,10,'2103-10-01','2103-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122339,NULL,'2103-11',2103,11,'2103-11-01','2103-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122340,NULL,'2103-12',2103,12,'2103-12-01','2103-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122344,NULL,'2104-01',2104,1,'2104-01-01','2104-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122345,NULL,'2104-02',2104,2,'2104-02-01','2104-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122346,NULL,'2104-03',2104,3,'2104-03-01','2104-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122347,NULL,'2104-04',2104,4,'2104-04-01','2104-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122348,NULL,'2104-05',2104,5,'2104-05-01','2104-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122349,NULL,'2104-06',2104,6,'2104-06-01','2104-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122350,NULL,'2104-07',2104,7,'2104-07-01','2104-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122351,NULL,'2104-08',2104,8,'2104-08-01','2104-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122352,NULL,'2104-09',2104,9,'2104-09-01','2104-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122353,NULL,'2104-10',2104,10,'2104-10-01','2104-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122354,NULL,'2104-11',2104,11,'2104-11-01','2104-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122355,NULL,'2104-12',2104,12,'2104-12-01','2104-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122359,NULL,'2105-01',2105,1,'2105-01-01','2105-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122360,NULL,'2105-02',2105,2,'2105-02-01','2105-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122361,NULL,'2105-03',2105,3,'2105-03-01','2105-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122362,NULL,'2105-04',2105,4,'2105-04-01','2105-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122363,NULL,'2105-05',2105,5,'2105-05-01','2105-05-31',NULL,NULL,40802,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (122364,NULL,'2105-06',2105,6,'2105-06-01','2105-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122365,NULL,'2105-07',2105,7,'2105-07-01','2105-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122366,NULL,'2105-08',2105,8,'2105-08-01','2105-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122367,NULL,'2105-09',2105,9,'2105-09-01','2105-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122368,NULL,'2105-10',2105,10,'2105-10-01','2105-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122369,NULL,'2105-11',2105,11,'2105-11-01','2105-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122370,NULL,'2105-12',2105,12,'2105-12-01','2105-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122374,NULL,'2106-01',2106,1,'2106-01-01','2106-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122375,NULL,'2106-02',2106,2,'2106-02-01','2106-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122376,NULL,'2106-03',2106,3,'2106-03-01','2106-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122377,NULL,'2106-04',2106,4,'2106-04-01','2106-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122378,NULL,'2106-05',2106,5,'2106-05-01','2106-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122379,NULL,'2106-06',2106,6,'2106-06-01','2106-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122380,NULL,'2106-07',2106,7,'2106-07-01','2106-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122381,NULL,'2106-08',2106,8,'2106-08-01','2106-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122382,NULL,'2106-09',2106,9,'2106-09-01','2106-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122383,NULL,'2106-10',2106,10,'2106-10-01','2106-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122384,NULL,'2106-11',2106,11,'2106-11-01','2106-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122385,NULL,'2106-12',2106,12,'2106-12-01','2106-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122389,NULL,'2107-01',2107,1,'2107-01-01','2107-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122390,NULL,'2107-02',2107,2,'2107-02-01','2107-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122391,NULL,'2107-03',2107,3,'2107-03-01','2107-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122392,NULL,'2107-04',2107,4,'2107-04-01','2107-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122393,NULL,'2107-05',2107,5,'2107-05-01','2107-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122394,NULL,'2107-06',2107,6,'2107-06-01','2107-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122395,NULL,'2107-07',2107,7,'2107-07-01','2107-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122396,NULL,'2107-08',2107,8,'2107-08-01','2107-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122397,NULL,'2107-09',2107,9,'2107-09-01','2107-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122398,NULL,'2107-10',2107,10,'2107-10-01','2107-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122399,NULL,'2107-11',2107,11,'2107-11-01','2107-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122400,NULL,'2107-12',2107,12,'2107-12-01','2107-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122404,NULL,'2108-01',2108,1,'2108-01-01','2108-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122405,NULL,'2108-02',2108,2,'2108-02-01','2108-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122406,NULL,'2108-03',2108,3,'2108-03-01','2108-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122407,NULL,'2108-04',2108,4,'2108-04-01','2108-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122408,NULL,'2108-05',2108,5,'2108-05-01','2108-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122409,NULL,'2108-06',2108,6,'2108-06-01','2108-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122410,NULL,'2108-07',2108,7,'2108-07-01','2108-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122411,NULL,'2108-08',2108,8,'2108-08-01','2108-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122412,NULL,'2108-09',2108,9,'2108-09-01','2108-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122413,NULL,'2108-10',2108,10,'2108-10-01','2108-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122414,NULL,'2108-11',2108,11,'2108-11-01','2108-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122415,NULL,'2108-12',2108,12,'2108-12-01','2108-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122419,NULL,'2109-01',2109,1,'2109-01-01','2109-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122420,NULL,'2109-02',2109,2,'2109-02-01','2109-02-28',NULL,NULL,40802,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (122421,NULL,'2109-03',2109,3,'2109-03-01','2109-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122422,NULL,'2109-04',2109,4,'2109-04-01','2109-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122423,NULL,'2109-05',2109,5,'2109-05-01','2109-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122424,NULL,'2109-06',2109,6,'2109-06-01','2109-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122425,NULL,'2109-07',2109,7,'2109-07-01','2109-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122426,NULL,'2109-08',2109,8,'2109-08-01','2109-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122427,NULL,'2109-09',2109,9,'2109-09-01','2109-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122428,NULL,'2109-10',2109,10,'2109-10-01','2109-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122429,NULL,'2109-11',2109,11,'2109-11-01','2109-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122430,NULL,'2109-12',2109,12,'2109-12-01','2109-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122434,NULL,'2110-01',2110,1,'2110-01-01','2110-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122435,NULL,'2110-02',2110,2,'2110-02-01','2110-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122436,NULL,'2110-03',2110,3,'2110-03-01','2110-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122437,NULL,'2110-04',2110,4,'2110-04-01','2110-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122438,NULL,'2110-05',2110,5,'2110-05-01','2110-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122439,NULL,'2110-06',2110,6,'2110-06-01','2110-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122440,NULL,'2110-07',2110,7,'2110-07-01','2110-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122441,NULL,'2110-08',2110,8,'2110-08-01','2110-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122442,NULL,'2110-09',2110,9,'2110-09-01','2110-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122443,NULL,'2110-10',2110,10,'2110-10-01','2110-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122444,NULL,'2110-11',2110,11,'2110-11-01','2110-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122445,NULL,'2110-12',2110,12,'2110-12-01','2110-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122449,NULL,'2111-01',2111,1,'2111-01-01','2111-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122450,NULL,'2111-02',2111,2,'2111-02-01','2111-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122451,NULL,'2111-03',2111,3,'2111-03-01','2111-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122452,NULL,'2111-04',2111,4,'2111-04-01','2111-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122453,NULL,'2111-05',2111,5,'2111-05-01','2111-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122454,NULL,'2111-06',2111,6,'2111-06-01','2111-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122455,NULL,'2111-07',2111,7,'2111-07-01','2111-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122456,NULL,'2111-08',2111,8,'2111-08-01','2111-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122457,NULL,'2111-09',2111,9,'2111-09-01','2111-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122458,NULL,'2111-10',2111,10,'2111-10-01','2111-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122459,NULL,'2111-11',2111,11,'2111-11-01','2111-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122460,NULL,'2111-12',2111,12,'2111-12-01','2111-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122464,NULL,'2112-01',2112,1,'2112-01-01','2112-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122465,NULL,'2112-02',2112,2,'2112-02-01','2112-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122466,NULL,'2112-03',2112,3,'2112-03-01','2112-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122467,NULL,'2112-04',2112,4,'2112-04-01','2112-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122468,NULL,'2112-05',2112,5,'2112-05-01','2112-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122469,NULL,'2112-06',2112,6,'2112-06-01','2112-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122470,NULL,'2112-07',2112,7,'2112-07-01','2112-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122471,NULL,'2112-08',2112,8,'2112-08-01','2112-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122472,NULL,'2112-09',2112,9,'2112-09-01','2112-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122473,NULL,'2112-10',2112,10,'2112-10-01','2112-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122474,NULL,'2112-11',2112,11,'2112-11-01','2112-11-30',NULL,NULL,40802,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (122475,NULL,'2112-12',2112,12,'2112-12-01','2112-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122479,NULL,'2113-01',2113,1,'2113-01-01','2113-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122480,NULL,'2113-02',2113,2,'2113-02-01','2113-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122481,NULL,'2113-03',2113,3,'2113-03-01','2113-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122482,NULL,'2113-04',2113,4,'2113-04-01','2113-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122483,NULL,'2113-05',2113,5,'2113-05-01','2113-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122484,NULL,'2113-06',2113,6,'2113-06-01','2113-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122485,NULL,'2113-07',2113,7,'2113-07-01','2113-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122486,NULL,'2113-08',2113,8,'2113-08-01','2113-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122487,NULL,'2113-09',2113,9,'2113-09-01','2113-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122488,NULL,'2113-10',2113,10,'2113-10-01','2113-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122489,NULL,'2113-11',2113,11,'2113-11-01','2113-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122490,NULL,'2113-12',2113,12,'2113-12-01','2113-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122494,NULL,'2114-01',2114,1,'2114-01-01','2114-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122495,NULL,'2114-02',2114,2,'2114-02-01','2114-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122496,NULL,'2114-03',2114,3,'2114-03-01','2114-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122497,NULL,'2114-04',2114,4,'2114-04-01','2114-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122498,NULL,'2114-05',2114,5,'2114-05-01','2114-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122499,NULL,'2114-06',2114,6,'2114-06-01','2114-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122500,NULL,'2114-07',2114,7,'2114-07-01','2114-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122501,NULL,'2114-08',2114,8,'2114-08-01','2114-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122502,NULL,'2114-09',2114,9,'2114-09-01','2114-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122503,NULL,'2114-10',2114,10,'2114-10-01','2114-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122504,NULL,'2114-11',2114,11,'2114-11-01','2114-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122505,NULL,'2114-12',2114,12,'2114-12-01','2114-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122509,NULL,'2115-01',2115,1,'2115-01-01','2115-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122510,NULL,'2115-02',2115,2,'2115-02-01','2115-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122511,NULL,'2115-03',2115,3,'2115-03-01','2115-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122512,NULL,'2115-04',2115,4,'2115-04-01','2115-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122513,NULL,'2115-05',2115,5,'2115-05-01','2115-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122514,NULL,'2115-06',2115,6,'2115-06-01','2115-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122515,NULL,'2115-07',2115,7,'2115-07-01','2115-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122516,NULL,'2115-08',2115,8,'2115-08-01','2115-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122517,NULL,'2115-09',2115,9,'2115-09-01','2115-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122518,NULL,'2115-10',2115,10,'2115-10-01','2115-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122519,NULL,'2115-11',2115,11,'2115-11-01','2115-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122520,NULL,'2115-12',2115,12,'2115-12-01','2115-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122524,NULL,'2116-01',2116,1,'2116-01-01','2116-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122525,NULL,'2116-02',2116,2,'2116-02-01','2116-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122526,NULL,'2116-03',2116,3,'2116-03-01','2116-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122527,NULL,'2116-04',2116,4,'2116-04-01','2116-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122528,NULL,'2116-05',2116,5,'2116-05-01','2116-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122529,NULL,'2116-06',2116,6,'2116-06-01','2116-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122530,NULL,'2116-07',2116,7,'2116-07-01','2116-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122531,NULL,'2116-08',2116,8,'2116-08-01','2116-08-31',NULL,NULL,40802,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (122532,NULL,'2116-09',2116,9,'2116-09-01','2116-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122533,NULL,'2116-10',2116,10,'2116-10-01','2116-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122534,NULL,'2116-11',2116,11,'2116-11-01','2116-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122535,NULL,'2116-12',2116,12,'2116-12-01','2116-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122539,NULL,'2117-01',2117,1,'2117-01-01','2117-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122540,NULL,'2117-02',2117,2,'2117-02-01','2117-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122541,NULL,'2117-03',2117,3,'2117-03-01','2117-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122542,NULL,'2117-04',2117,4,'2117-04-01','2117-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122543,NULL,'2117-05',2117,5,'2117-05-01','2117-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122544,NULL,'2117-06',2117,6,'2117-06-01','2117-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122545,NULL,'2117-07',2117,7,'2117-07-01','2117-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122546,NULL,'2117-08',2117,8,'2117-08-01','2117-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122547,NULL,'2117-09',2117,9,'2117-09-01','2117-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122548,NULL,'2117-10',2117,10,'2117-10-01','2117-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122549,NULL,'2117-11',2117,11,'2117-11-01','2117-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122550,NULL,'2117-12',2117,12,'2117-12-01','2117-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122554,NULL,'2118-01',2118,1,'2118-01-01','2118-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122555,NULL,'2118-02',2118,2,'2118-02-01','2118-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122556,NULL,'2118-03',2118,3,'2118-03-01','2118-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122557,NULL,'2118-04',2118,4,'2118-04-01','2118-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122558,NULL,'2118-05',2118,5,'2118-05-01','2118-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122559,NULL,'2118-06',2118,6,'2118-06-01','2118-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122560,NULL,'2118-07',2118,7,'2118-07-01','2118-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122561,NULL,'2118-08',2118,8,'2118-08-01','2118-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122562,NULL,'2118-09',2118,9,'2118-09-01','2118-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122563,NULL,'2118-10',2118,10,'2118-10-01','2118-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122564,NULL,'2118-11',2118,11,'2118-11-01','2118-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122565,NULL,'2118-12',2118,12,'2118-12-01','2118-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122569,NULL,'2119-01',2119,1,'2119-01-01','2119-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122570,NULL,'2119-02',2119,2,'2119-02-01','2119-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122571,NULL,'2119-03',2119,3,'2119-03-01','2119-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122572,NULL,'2119-04',2119,4,'2119-04-01','2119-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122573,NULL,'2119-05',2119,5,'2119-05-01','2119-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122574,NULL,'2119-06',2119,6,'2119-06-01','2119-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122575,NULL,'2119-07',2119,7,'2119-07-01','2119-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122576,NULL,'2119-08',2119,8,'2119-08-01','2119-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122577,NULL,'2119-09',2119,9,'2119-09-01','2119-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122578,NULL,'2119-10',2119,10,'2119-10-01','2119-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122579,NULL,'2119-11',2119,11,'2119-11-01','2119-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122580,NULL,'2119-12',2119,12,'2119-12-01','2119-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122584,NULL,'2120-01',2120,1,'2120-01-01','2120-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122585,NULL,'2120-02',2120,2,'2120-02-01','2120-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122586,NULL,'2120-03',2120,3,'2120-03-01','2120-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122587,NULL,'2120-04',2120,4,'2120-04-01','2120-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122588,NULL,'2120-05',2120,5,'2120-05-01','2120-05-31',NULL,NULL,40802,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (122589,NULL,'2120-06',2120,6,'2120-06-01','2120-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122590,NULL,'2120-07',2120,7,'2120-07-01','2120-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122591,NULL,'2120-08',2120,8,'2120-08-01','2120-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122592,NULL,'2120-09',2120,9,'2120-09-01','2120-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122593,NULL,'2120-10',2120,10,'2120-10-01','2120-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122594,NULL,'2120-11',2120,11,'2120-11-01','2120-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122595,NULL,'2120-12',2120,12,'2120-12-01','2120-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122599,NULL,'2121-01',2121,1,'2121-01-01','2121-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122600,NULL,'2121-02',2121,2,'2121-02-01','2121-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122601,NULL,'2121-03',2121,3,'2121-03-01','2121-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122602,NULL,'2121-04',2121,4,'2121-04-01','2121-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122603,NULL,'2121-05',2121,5,'2121-05-01','2121-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122604,NULL,'2121-06',2121,6,'2121-06-01','2121-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122605,NULL,'2121-07',2121,7,'2121-07-01','2121-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122606,NULL,'2121-08',2121,8,'2121-08-01','2121-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122607,NULL,'2121-09',2121,9,'2121-09-01','2121-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122608,NULL,'2121-10',2121,10,'2121-10-01','2121-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122609,NULL,'2121-11',2121,11,'2121-11-01','2121-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122610,NULL,'2121-12',2121,12,'2121-12-01','2121-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122614,NULL,'2122-01',2122,1,'2122-01-01','2122-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122615,NULL,'2122-02',2122,2,'2122-02-01','2122-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122616,NULL,'2122-03',2122,3,'2122-03-01','2122-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122617,NULL,'2122-04',2122,4,'2122-04-01','2122-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122618,NULL,'2122-05',2122,5,'2122-05-01','2122-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122619,NULL,'2122-06',2122,6,'2122-06-01','2122-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122620,NULL,'2122-07',2122,7,'2122-07-01','2122-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122621,NULL,'2122-08',2122,8,'2122-08-01','2122-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122622,NULL,'2122-09',2122,9,'2122-09-01','2122-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122623,NULL,'2122-10',2122,10,'2122-10-01','2122-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122624,NULL,'2122-11',2122,11,'2122-11-01','2122-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122625,NULL,'2122-12',2122,12,'2122-12-01','2122-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122629,NULL,'2123-01',2123,1,'2123-01-01','2123-01-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122630,NULL,'2123-02',2123,2,'2123-02-01','2123-02-28',NULL,NULL,40802,0,NULL,1,0,0,1),(122631,NULL,'2123-03',2123,3,'2123-03-01','2123-03-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122632,NULL,'2123-04',2123,4,'2123-04-01','2123-04-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122633,NULL,'2123-05',2123,5,'2123-05-01','2123-05-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122634,NULL,'2123-06',2123,6,'2123-06-01','2123-06-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122635,NULL,'2123-07',2123,7,'2123-07-01','2123-07-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122636,NULL,'2123-08',2123,8,'2123-08-01','2123-08-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122637,NULL,'2123-09',2123,9,'2123-09-01','2123-09-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122638,NULL,'2123-10',2123,10,'2123-10-01','2123-10-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122639,NULL,'2123-11',2123,11,'2123-11-01','2123-11-30',NULL,NULL,40802,0,NULL,1,0,0,1),(122640,NULL,'2123-12',2123,12,'2123-12-01','2123-12-31',NULL,NULL,40802,0,NULL,1,0,0,1),(122644,NULL,'2023-06',2023,6,'2023-06-01','2023-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122645,1060,'2023-07',2023,7,'2023-07-01','2023-07-31',NULL,'2023-09-05 12:59:28',40803,0,NULL,3,1,0,1);
INSERT INTO `periods` VALUES (122646,1060,'2023-08',2023,8,'2023-08-01','2023-08-31',NULL,'2023-10-04 09:46:05',40803,0,NULL,3,1,0,1),(122647,1060,'2023-09',2023,9,'2023-09-01','2023-09-30',NULL,'2023-11-07 11:36:14',40803,0,NULL,3,1,0,1),(122648,1060,'2023-10',2023,10,'2023-10-01','2023-10-31',NULL,'2023-12-06 11:23:50',40803,0,NULL,3,1,0,1),(122649,1060,'2023-11',2023,11,'2023-11-01','2023-11-30',NULL,'2023-12-06 11:24:07',40803,0,NULL,2,0,0,1),(122650,NULL,'2023-12',2023,12,'2023-12-01','2023-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122651,NULL,'2024-01',2024,1,'2024-01-01','2024-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122652,NULL,'2024-02',2024,2,'2024-02-01','2024-02-29',NULL,'2024-02-29 08:49:54',40803,0,NULL,1,0,0,1),(122653,NULL,'2024-03',2024,3,'2024-03-01','2024-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122654,NULL,'2024-04',2024,4,'2024-04-01','2024-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122655,NULL,'2024-05',2024,5,'2024-05-01','2024-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122656,NULL,'2024-06',2024,6,'2024-06-01','2024-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122657,NULL,'2024-07',2024,7,'2024-07-01','2024-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122658,NULL,'2024-08',2024,8,'2024-08-01','2024-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122659,NULL,'2024-09',2024,9,'2024-09-01','2024-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122660,NULL,'2024-10',2024,10,'2024-10-01','2024-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122661,NULL,'2024-11',2024,11,'2024-11-01','2024-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122662,NULL,'2024-12',2024,12,'2024-12-01','2024-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122666,NULL,'2025-01',2025,1,'2025-01-01','2025-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122667,NULL,'2025-02',2025,2,'2025-02-01','2025-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122668,NULL,'2025-03',2025,3,'2025-03-01','2025-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122669,NULL,'2025-04',2025,4,'2025-04-01','2025-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122670,NULL,'2025-05',2025,5,'2025-05-01','2025-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122671,NULL,'2025-06',2025,6,'2025-06-01','2025-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122672,NULL,'2025-07',2025,7,'2025-07-01','2025-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122673,NULL,'2025-08',2025,8,'2025-08-01','2025-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122674,NULL,'2025-09',2025,9,'2025-09-01','2025-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122675,NULL,'2025-10',2025,10,'2025-10-01','2025-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122676,NULL,'2025-11',2025,11,'2025-11-01','2025-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122677,NULL,'2025-12',2025,12,'2025-12-01','2025-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122681,NULL,'2026-01',2026,1,'2026-01-01','2026-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122682,NULL,'2026-02',2026,2,'2026-02-01','2026-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122683,NULL,'2026-03',2026,3,'2026-03-01','2026-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122684,NULL,'2026-04',2026,4,'2026-04-01','2026-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122685,NULL,'2026-05',2026,5,'2026-05-01','2026-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122686,NULL,'2026-06',2026,6,'2026-06-01','2026-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122687,NULL,'2026-07',2026,7,'2026-07-01','2026-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122688,NULL,'2026-08',2026,8,'2026-08-01','2026-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122689,NULL,'2026-09',2026,9,'2026-09-01','2026-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122690,NULL,'2026-10',2026,10,'2026-10-01','2026-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122691,NULL,'2026-11',2026,11,'2026-11-01','2026-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122692,NULL,'2026-12',2026,12,'2026-12-01','2026-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122696,NULL,'2027-01',2027,1,'2027-01-01','2027-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122697,NULL,'2027-02',2027,2,'2027-02-01','2027-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122698,NULL,'2027-03',2027,3,'2027-03-01','2027-03-31',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (122699,NULL,'2027-04',2027,4,'2027-04-01','2027-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122700,NULL,'2027-05',2027,5,'2027-05-01','2027-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122701,NULL,'2027-06',2027,6,'2027-06-01','2027-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122702,NULL,'2027-07',2027,7,'2027-07-01','2027-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122703,NULL,'2027-08',2027,8,'2027-08-01','2027-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122704,NULL,'2027-09',2027,9,'2027-09-01','2027-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122705,NULL,'2027-10',2027,10,'2027-10-01','2027-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122706,NULL,'2027-11',2027,11,'2027-11-01','2027-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122707,NULL,'2027-12',2027,12,'2027-12-01','2027-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122711,NULL,'2028-01',2028,1,'2028-01-01','2028-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122712,NULL,'2028-02',2028,2,'2028-02-01','2028-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122713,NULL,'2028-03',2028,3,'2028-03-01','2028-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122714,NULL,'2028-04',2028,4,'2028-04-01','2028-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122715,NULL,'2028-05',2028,5,'2028-05-01','2028-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122716,NULL,'2028-06',2028,6,'2028-06-01','2028-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122717,NULL,'2028-07',2028,7,'2028-07-01','2028-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122718,NULL,'2028-08',2028,8,'2028-08-01','2028-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122719,NULL,'2028-09',2028,9,'2028-09-01','2028-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122720,NULL,'2028-10',2028,10,'2028-10-01','2028-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122721,NULL,'2028-11',2028,11,'2028-11-01','2028-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122722,NULL,'2028-12',2028,12,'2028-12-01','2028-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122726,NULL,'2029-01',2029,1,'2029-01-01','2029-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122727,NULL,'2029-02',2029,2,'2029-02-01','2029-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122728,NULL,'2029-03',2029,3,'2029-03-01','2029-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122729,NULL,'2029-04',2029,4,'2029-04-01','2029-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122730,NULL,'2029-05',2029,5,'2029-05-01','2029-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122731,NULL,'2029-06',2029,6,'2029-06-01','2029-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122732,NULL,'2029-07',2029,7,'2029-07-01','2029-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122733,NULL,'2029-08',2029,8,'2029-08-01','2029-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122734,NULL,'2029-09',2029,9,'2029-09-01','2029-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122735,NULL,'2029-10',2029,10,'2029-10-01','2029-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122736,NULL,'2029-11',2029,11,'2029-11-01','2029-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122737,NULL,'2029-12',2029,12,'2029-12-01','2029-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122741,NULL,'2030-01',2030,1,'2030-01-01','2030-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122742,NULL,'2030-02',2030,2,'2030-02-01','2030-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122743,NULL,'2030-03',2030,3,'2030-03-01','2030-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122744,NULL,'2030-04',2030,4,'2030-04-01','2030-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122745,NULL,'2030-05',2030,5,'2030-05-01','2030-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122746,NULL,'2030-06',2030,6,'2030-06-01','2030-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122747,NULL,'2030-07',2030,7,'2030-07-01','2030-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122748,NULL,'2030-08',2030,8,'2030-08-01','2030-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122749,NULL,'2030-09',2030,9,'2030-09-01','2030-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122750,NULL,'2030-10',2030,10,'2030-10-01','2030-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122751,NULL,'2030-11',2030,11,'2030-11-01','2030-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122752,NULL,'2030-12',2030,12,'2030-12-01','2030-12-31',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (122756,NULL,'2031-01',2031,1,'2031-01-01','2031-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122757,NULL,'2031-02',2031,2,'2031-02-01','2031-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122758,NULL,'2031-03',2031,3,'2031-03-01','2031-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122759,NULL,'2031-04',2031,4,'2031-04-01','2031-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122760,NULL,'2031-05',2031,5,'2031-05-01','2031-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122761,NULL,'2031-06',2031,6,'2031-06-01','2031-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122762,NULL,'2031-07',2031,7,'2031-07-01','2031-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122763,NULL,'2031-08',2031,8,'2031-08-01','2031-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122764,NULL,'2031-09',2031,9,'2031-09-01','2031-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122765,NULL,'2031-10',2031,10,'2031-10-01','2031-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122766,NULL,'2031-11',2031,11,'2031-11-01','2031-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122767,NULL,'2031-12',2031,12,'2031-12-01','2031-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122771,NULL,'2032-01',2032,1,'2032-01-01','2032-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122772,NULL,'2032-02',2032,2,'2032-02-01','2032-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122773,NULL,'2032-03',2032,3,'2032-03-01','2032-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122774,NULL,'2032-04',2032,4,'2032-04-01','2032-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122775,NULL,'2032-05',2032,5,'2032-05-01','2032-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122776,NULL,'2032-06',2032,6,'2032-06-01','2032-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122777,NULL,'2032-07',2032,7,'2032-07-01','2032-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122778,NULL,'2032-08',2032,8,'2032-08-01','2032-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122779,NULL,'2032-09',2032,9,'2032-09-01','2032-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122780,NULL,'2032-10',2032,10,'2032-10-01','2032-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122781,NULL,'2032-11',2032,11,'2032-11-01','2032-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122782,NULL,'2032-12',2032,12,'2032-12-01','2032-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122786,NULL,'2033-01',2033,1,'2033-01-01','2033-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122787,NULL,'2033-02',2033,2,'2033-02-01','2033-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122788,NULL,'2033-03',2033,3,'2033-03-01','2033-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122789,NULL,'2033-04',2033,4,'2033-04-01','2033-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122790,NULL,'2033-05',2033,5,'2033-05-01','2033-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122791,NULL,'2033-06',2033,6,'2033-06-01','2033-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122792,NULL,'2033-07',2033,7,'2033-07-01','2033-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122793,NULL,'2033-08',2033,8,'2033-08-01','2033-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122794,NULL,'2033-09',2033,9,'2033-09-01','2033-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122795,NULL,'2033-10',2033,10,'2033-10-01','2033-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122796,NULL,'2033-11',2033,11,'2033-11-01','2033-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122797,NULL,'2033-12',2033,12,'2033-12-01','2033-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122801,NULL,'2034-01',2034,1,'2034-01-01','2034-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122802,NULL,'2034-02',2034,2,'2034-02-01','2034-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122803,NULL,'2034-03',2034,3,'2034-03-01','2034-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122804,NULL,'2034-04',2034,4,'2034-04-01','2034-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122805,NULL,'2034-05',2034,5,'2034-05-01','2034-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122806,NULL,'2034-06',2034,6,'2034-06-01','2034-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122807,NULL,'2034-07',2034,7,'2034-07-01','2034-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122808,NULL,'2034-08',2034,8,'2034-08-01','2034-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122809,NULL,'2034-09',2034,9,'2034-09-01','2034-09-30',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (122810,NULL,'2034-10',2034,10,'2034-10-01','2034-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122811,NULL,'2034-11',2034,11,'2034-11-01','2034-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122812,NULL,'2034-12',2034,12,'2034-12-01','2034-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122816,NULL,'2035-01',2035,1,'2035-01-01','2035-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122817,NULL,'2035-02',2035,2,'2035-02-01','2035-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122818,NULL,'2035-03',2035,3,'2035-03-01','2035-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122819,NULL,'2035-04',2035,4,'2035-04-01','2035-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122820,NULL,'2035-05',2035,5,'2035-05-01','2035-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122821,NULL,'2035-06',2035,6,'2035-06-01','2035-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122822,NULL,'2035-07',2035,7,'2035-07-01','2035-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122823,NULL,'2035-08',2035,8,'2035-08-01','2035-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122824,NULL,'2035-09',2035,9,'2035-09-01','2035-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122825,NULL,'2035-10',2035,10,'2035-10-01','2035-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122826,NULL,'2035-11',2035,11,'2035-11-01','2035-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122827,NULL,'2035-12',2035,12,'2035-12-01','2035-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122831,NULL,'2036-01',2036,1,'2036-01-01','2036-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122832,NULL,'2036-02',2036,2,'2036-02-01','2036-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122833,NULL,'2036-03',2036,3,'2036-03-01','2036-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122834,NULL,'2036-04',2036,4,'2036-04-01','2036-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122835,NULL,'2036-05',2036,5,'2036-05-01','2036-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122836,NULL,'2036-06',2036,6,'2036-06-01','2036-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122837,NULL,'2036-07',2036,7,'2036-07-01','2036-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122838,NULL,'2036-08',2036,8,'2036-08-01','2036-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122839,NULL,'2036-09',2036,9,'2036-09-01','2036-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122840,NULL,'2036-10',2036,10,'2036-10-01','2036-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122841,NULL,'2036-11',2036,11,'2036-11-01','2036-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122842,NULL,'2036-12',2036,12,'2036-12-01','2036-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122846,NULL,'2037-01',2037,1,'2037-01-01','2037-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122847,NULL,'2037-02',2037,2,'2037-02-01','2037-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122848,NULL,'2037-03',2037,3,'2037-03-01','2037-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122849,NULL,'2037-04',2037,4,'2037-04-01','2037-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122850,NULL,'2037-05',2037,5,'2037-05-01','2037-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122851,NULL,'2037-06',2037,6,'2037-06-01','2037-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122852,NULL,'2037-07',2037,7,'2037-07-01','2037-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122853,NULL,'2037-08',2037,8,'2037-08-01','2037-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122854,NULL,'2037-09',2037,9,'2037-09-01','2037-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122855,NULL,'2037-10',2037,10,'2037-10-01','2037-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122856,NULL,'2037-11',2037,11,'2037-11-01','2037-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122857,NULL,'2037-12',2037,12,'2037-12-01','2037-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122861,NULL,'2038-01',2038,1,'2038-01-01','2038-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122862,NULL,'2038-02',2038,2,'2038-02-01','2038-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122863,NULL,'2038-03',2038,3,'2038-03-01','2038-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122864,NULL,'2038-04',2038,4,'2038-04-01','2038-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122865,NULL,'2038-05',2038,5,'2038-05-01','2038-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122866,NULL,'2038-06',2038,6,'2038-06-01','2038-06-30',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (122867,NULL,'2038-07',2038,7,'2038-07-01','2038-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122868,NULL,'2038-08',2038,8,'2038-08-01','2038-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122869,NULL,'2038-09',2038,9,'2038-09-01','2038-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122870,NULL,'2038-10',2038,10,'2038-10-01','2038-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122871,NULL,'2038-11',2038,11,'2038-11-01','2038-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122872,NULL,'2038-12',2038,12,'2038-12-01','2038-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122876,NULL,'2039-01',2039,1,'2039-01-01','2039-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122877,NULL,'2039-02',2039,2,'2039-02-01','2039-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122878,NULL,'2039-03',2039,3,'2039-03-01','2039-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122879,NULL,'2039-04',2039,4,'2039-04-01','2039-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122880,NULL,'2039-05',2039,5,'2039-05-01','2039-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122881,NULL,'2039-06',2039,6,'2039-06-01','2039-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122882,NULL,'2039-07',2039,7,'2039-07-01','2039-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122883,NULL,'2039-08',2039,8,'2039-08-01','2039-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122884,NULL,'2039-09',2039,9,'2039-09-01','2039-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122885,NULL,'2039-10',2039,10,'2039-10-01','2039-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122886,NULL,'2039-11',2039,11,'2039-11-01','2039-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122887,NULL,'2039-12',2039,12,'2039-12-01','2039-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122891,NULL,'2040-01',2040,1,'2040-01-01','2040-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122892,NULL,'2040-02',2040,2,'2040-02-01','2040-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122893,NULL,'2040-03',2040,3,'2040-03-01','2040-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122894,NULL,'2040-04',2040,4,'2040-04-01','2040-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122895,NULL,'2040-05',2040,5,'2040-05-01','2040-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122896,NULL,'2040-06',2040,6,'2040-06-01','2040-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122897,NULL,'2040-07',2040,7,'2040-07-01','2040-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122898,NULL,'2040-08',2040,8,'2040-08-01','2040-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122899,NULL,'2040-09',2040,9,'2040-09-01','2040-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122900,NULL,'2040-10',2040,10,'2040-10-01','2040-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122901,NULL,'2040-11',2040,11,'2040-11-01','2040-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122902,NULL,'2040-12',2040,12,'2040-12-01','2040-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122906,NULL,'2041-01',2041,1,'2041-01-01','2041-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122907,NULL,'2041-02',2041,2,'2041-02-01','2041-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122908,NULL,'2041-03',2041,3,'2041-03-01','2041-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122909,NULL,'2041-04',2041,4,'2041-04-01','2041-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122910,NULL,'2041-05',2041,5,'2041-05-01','2041-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122911,NULL,'2041-06',2041,6,'2041-06-01','2041-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122912,NULL,'2041-07',2041,7,'2041-07-01','2041-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122913,NULL,'2041-08',2041,8,'2041-08-01','2041-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122914,NULL,'2041-09',2041,9,'2041-09-01','2041-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122915,NULL,'2041-10',2041,10,'2041-10-01','2041-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122916,NULL,'2041-11',2041,11,'2041-11-01','2041-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122917,NULL,'2041-12',2041,12,'2041-12-01','2041-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122921,NULL,'2042-01',2042,1,'2042-01-01','2042-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122922,NULL,'2042-02',2042,2,'2042-02-01','2042-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122923,NULL,'2042-03',2042,3,'2042-03-01','2042-03-31',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (122924,NULL,'2042-04',2042,4,'2042-04-01','2042-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122925,NULL,'2042-05',2042,5,'2042-05-01','2042-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122926,NULL,'2042-06',2042,6,'2042-06-01','2042-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122927,NULL,'2042-07',2042,7,'2042-07-01','2042-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122928,NULL,'2042-08',2042,8,'2042-08-01','2042-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122929,NULL,'2042-09',2042,9,'2042-09-01','2042-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122930,NULL,'2042-10',2042,10,'2042-10-01','2042-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122931,NULL,'2042-11',2042,11,'2042-11-01','2042-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122932,NULL,'2042-12',2042,12,'2042-12-01','2042-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122936,NULL,'2043-01',2043,1,'2043-01-01','2043-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122937,NULL,'2043-02',2043,2,'2043-02-01','2043-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122938,NULL,'2043-03',2043,3,'2043-03-01','2043-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122939,NULL,'2043-04',2043,4,'2043-04-01','2043-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122940,NULL,'2043-05',2043,5,'2043-05-01','2043-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122941,NULL,'2043-06',2043,6,'2043-06-01','2043-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122942,NULL,'2043-07',2043,7,'2043-07-01','2043-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122943,NULL,'2043-08',2043,8,'2043-08-01','2043-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122944,NULL,'2043-09',2043,9,'2043-09-01','2043-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122945,NULL,'2043-10',2043,10,'2043-10-01','2043-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122946,NULL,'2043-11',2043,11,'2043-11-01','2043-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122947,NULL,'2043-12',2043,12,'2043-12-01','2043-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122951,NULL,'2044-01',2044,1,'2044-01-01','2044-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122952,NULL,'2044-02',2044,2,'2044-02-01','2044-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122953,NULL,'2044-03',2044,3,'2044-03-01','2044-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122954,NULL,'2044-04',2044,4,'2044-04-01','2044-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122955,NULL,'2044-05',2044,5,'2044-05-01','2044-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122956,NULL,'2044-06',2044,6,'2044-06-01','2044-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122957,NULL,'2044-07',2044,7,'2044-07-01','2044-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122958,NULL,'2044-08',2044,8,'2044-08-01','2044-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122959,NULL,'2044-09',2044,9,'2044-09-01','2044-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122960,NULL,'2044-10',2044,10,'2044-10-01','2044-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122961,NULL,'2044-11',2044,11,'2044-11-01','2044-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122962,NULL,'2044-12',2044,12,'2044-12-01','2044-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122966,NULL,'2045-01',2045,1,'2045-01-01','2045-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122967,NULL,'2045-02',2045,2,'2045-02-01','2045-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122968,NULL,'2045-03',2045,3,'2045-03-01','2045-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122969,NULL,'2045-04',2045,4,'2045-04-01','2045-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122970,NULL,'2045-05',2045,5,'2045-05-01','2045-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122971,NULL,'2045-06',2045,6,'2045-06-01','2045-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122972,NULL,'2045-07',2045,7,'2045-07-01','2045-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122973,NULL,'2045-08',2045,8,'2045-08-01','2045-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122974,NULL,'2045-09',2045,9,'2045-09-01','2045-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122975,NULL,'2045-10',2045,10,'2045-10-01','2045-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122976,NULL,'2045-11',2045,11,'2045-11-01','2045-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122977,NULL,'2045-12',2045,12,'2045-12-01','2045-12-31',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (122981,NULL,'2046-01',2046,1,'2046-01-01','2046-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122982,NULL,'2046-02',2046,2,'2046-02-01','2046-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122983,NULL,'2046-03',2046,3,'2046-03-01','2046-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122984,NULL,'2046-04',2046,4,'2046-04-01','2046-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122985,NULL,'2046-05',2046,5,'2046-05-01','2046-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122986,NULL,'2046-06',2046,6,'2046-06-01','2046-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122987,NULL,'2046-07',2046,7,'2046-07-01','2046-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122988,NULL,'2046-08',2046,8,'2046-08-01','2046-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122989,NULL,'2046-09',2046,9,'2046-09-01','2046-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122990,NULL,'2046-10',2046,10,'2046-10-01','2046-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122991,NULL,'2046-11',2046,11,'2046-11-01','2046-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(122992,NULL,'2046-12',2046,12,'2046-12-01','2046-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122996,NULL,'2047-01',2047,1,'2047-01-01','2047-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122997,NULL,'2047-02',2047,2,'2047-02-01','2047-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(122998,NULL,'2047-03',2047,3,'2047-03-01','2047-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(122999,NULL,'2047-04',2047,4,'2047-04-01','2047-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123000,NULL,'2047-05',2047,5,'2047-05-01','2047-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123001,NULL,'2047-06',2047,6,'2047-06-01','2047-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123002,NULL,'2047-07',2047,7,'2047-07-01','2047-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123003,NULL,'2047-08',2047,8,'2047-08-01','2047-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123004,NULL,'2047-09',2047,9,'2047-09-01','2047-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123005,NULL,'2047-10',2047,10,'2047-10-01','2047-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123006,NULL,'2047-11',2047,11,'2047-11-01','2047-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123007,NULL,'2047-12',2047,12,'2047-12-01','2047-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123011,NULL,'2048-01',2048,1,'2048-01-01','2048-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123012,NULL,'2048-02',2048,2,'2048-02-01','2048-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123013,NULL,'2048-03',2048,3,'2048-03-01','2048-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123014,NULL,'2048-04',2048,4,'2048-04-01','2048-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123015,NULL,'2048-05',2048,5,'2048-05-01','2048-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123016,NULL,'2048-06',2048,6,'2048-06-01','2048-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123017,NULL,'2048-07',2048,7,'2048-07-01','2048-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123018,NULL,'2048-08',2048,8,'2048-08-01','2048-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123019,NULL,'2048-09',2048,9,'2048-09-01','2048-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123020,NULL,'2048-10',2048,10,'2048-10-01','2048-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123021,NULL,'2048-11',2048,11,'2048-11-01','2048-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123022,NULL,'2048-12',2048,12,'2048-12-01','2048-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123026,NULL,'2049-01',2049,1,'2049-01-01','2049-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123027,NULL,'2049-02',2049,2,'2049-02-01','2049-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123028,NULL,'2049-03',2049,3,'2049-03-01','2049-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123029,NULL,'2049-04',2049,4,'2049-04-01','2049-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123030,NULL,'2049-05',2049,5,'2049-05-01','2049-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123031,NULL,'2049-06',2049,6,'2049-06-01','2049-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123032,NULL,'2049-07',2049,7,'2049-07-01','2049-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123033,NULL,'2049-08',2049,8,'2049-08-01','2049-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123034,NULL,'2049-09',2049,9,'2049-09-01','2049-09-30',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123035,NULL,'2049-10',2049,10,'2049-10-01','2049-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123036,NULL,'2049-11',2049,11,'2049-11-01','2049-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123037,NULL,'2049-12',2049,12,'2049-12-01','2049-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123041,NULL,'2050-01',2050,1,'2050-01-01','2050-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123042,NULL,'2050-02',2050,2,'2050-02-01','2050-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123043,NULL,'2050-03',2050,3,'2050-03-01','2050-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123044,NULL,'2050-04',2050,4,'2050-04-01','2050-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123045,NULL,'2050-05',2050,5,'2050-05-01','2050-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123046,NULL,'2050-06',2050,6,'2050-06-01','2050-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123047,NULL,'2050-07',2050,7,'2050-07-01','2050-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123048,NULL,'2050-08',2050,8,'2050-08-01','2050-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123049,NULL,'2050-09',2050,9,'2050-09-01','2050-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123050,NULL,'2050-10',2050,10,'2050-10-01','2050-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123051,NULL,'2050-11',2050,11,'2050-11-01','2050-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123052,NULL,'2050-12',2050,12,'2050-12-01','2050-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123056,NULL,'2051-01',2051,1,'2051-01-01','2051-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123057,NULL,'2051-02',2051,2,'2051-02-01','2051-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123058,NULL,'2051-03',2051,3,'2051-03-01','2051-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123059,NULL,'2051-04',2051,4,'2051-04-01','2051-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123060,NULL,'2051-05',2051,5,'2051-05-01','2051-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123061,NULL,'2051-06',2051,6,'2051-06-01','2051-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123062,NULL,'2051-07',2051,7,'2051-07-01','2051-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123063,NULL,'2051-08',2051,8,'2051-08-01','2051-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123064,NULL,'2051-09',2051,9,'2051-09-01','2051-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123065,NULL,'2051-10',2051,10,'2051-10-01','2051-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123066,NULL,'2051-11',2051,11,'2051-11-01','2051-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123067,NULL,'2051-12',2051,12,'2051-12-01','2051-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123071,NULL,'2052-01',2052,1,'2052-01-01','2052-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123072,NULL,'2052-02',2052,2,'2052-02-01','2052-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123073,NULL,'2052-03',2052,3,'2052-03-01','2052-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123074,NULL,'2052-04',2052,4,'2052-04-01','2052-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123075,NULL,'2052-05',2052,5,'2052-05-01','2052-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123076,NULL,'2052-06',2052,6,'2052-06-01','2052-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123077,NULL,'2052-07',2052,7,'2052-07-01','2052-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123078,NULL,'2052-08',2052,8,'2052-08-01','2052-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123079,NULL,'2052-09',2052,9,'2052-09-01','2052-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123080,NULL,'2052-10',2052,10,'2052-10-01','2052-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123081,NULL,'2052-11',2052,11,'2052-11-01','2052-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123082,NULL,'2052-12',2052,12,'2052-12-01','2052-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123086,NULL,'2053-01',2053,1,'2053-01-01','2053-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123087,NULL,'2053-02',2053,2,'2053-02-01','2053-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123088,NULL,'2053-03',2053,3,'2053-03-01','2053-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123089,NULL,'2053-04',2053,4,'2053-04-01','2053-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123090,NULL,'2053-05',2053,5,'2053-05-01','2053-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123091,NULL,'2053-06',2053,6,'2053-06-01','2053-06-30',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123092,NULL,'2053-07',2053,7,'2053-07-01','2053-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123093,NULL,'2053-08',2053,8,'2053-08-01','2053-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123094,NULL,'2053-09',2053,9,'2053-09-01','2053-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123095,NULL,'2053-10',2053,10,'2053-10-01','2053-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123096,NULL,'2053-11',2053,11,'2053-11-01','2053-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123097,NULL,'2053-12',2053,12,'2053-12-01','2053-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123101,NULL,'2054-01',2054,1,'2054-01-01','2054-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123102,NULL,'2054-02',2054,2,'2054-02-01','2054-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123103,NULL,'2054-03',2054,3,'2054-03-01','2054-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123104,NULL,'2054-04',2054,4,'2054-04-01','2054-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123105,NULL,'2054-05',2054,5,'2054-05-01','2054-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123106,NULL,'2054-06',2054,6,'2054-06-01','2054-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123107,NULL,'2054-07',2054,7,'2054-07-01','2054-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123108,NULL,'2054-08',2054,8,'2054-08-01','2054-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123109,NULL,'2054-09',2054,9,'2054-09-01','2054-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123110,NULL,'2054-10',2054,10,'2054-10-01','2054-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123111,NULL,'2054-11',2054,11,'2054-11-01','2054-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123112,NULL,'2054-12',2054,12,'2054-12-01','2054-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123116,NULL,'2055-01',2055,1,'2055-01-01','2055-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123117,NULL,'2055-02',2055,2,'2055-02-01','2055-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123118,NULL,'2055-03',2055,3,'2055-03-01','2055-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123119,NULL,'2055-04',2055,4,'2055-04-01','2055-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123120,NULL,'2055-05',2055,5,'2055-05-01','2055-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123121,NULL,'2055-06',2055,6,'2055-06-01','2055-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123122,NULL,'2055-07',2055,7,'2055-07-01','2055-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123123,NULL,'2055-08',2055,8,'2055-08-01','2055-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123124,NULL,'2055-09',2055,9,'2055-09-01','2055-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123125,NULL,'2055-10',2055,10,'2055-10-01','2055-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123126,NULL,'2055-11',2055,11,'2055-11-01','2055-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123127,NULL,'2055-12',2055,12,'2055-12-01','2055-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123131,NULL,'2056-01',2056,1,'2056-01-01','2056-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123132,NULL,'2056-02',2056,2,'2056-02-01','2056-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123133,NULL,'2056-03',2056,3,'2056-03-01','2056-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123134,NULL,'2056-04',2056,4,'2056-04-01','2056-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123135,NULL,'2056-05',2056,5,'2056-05-01','2056-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123136,NULL,'2056-06',2056,6,'2056-06-01','2056-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123137,NULL,'2056-07',2056,7,'2056-07-01','2056-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123138,NULL,'2056-08',2056,8,'2056-08-01','2056-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123139,NULL,'2056-09',2056,9,'2056-09-01','2056-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123140,NULL,'2056-10',2056,10,'2056-10-01','2056-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123141,NULL,'2056-11',2056,11,'2056-11-01','2056-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123142,NULL,'2056-12',2056,12,'2056-12-01','2056-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123146,NULL,'2057-01',2057,1,'2057-01-01','2057-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123147,NULL,'2057-02',2057,2,'2057-02-01','2057-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123148,NULL,'2057-03',2057,3,'2057-03-01','2057-03-31',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123149,NULL,'2057-04',2057,4,'2057-04-01','2057-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123150,NULL,'2057-05',2057,5,'2057-05-01','2057-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123151,NULL,'2057-06',2057,6,'2057-06-01','2057-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123152,NULL,'2057-07',2057,7,'2057-07-01','2057-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123153,NULL,'2057-08',2057,8,'2057-08-01','2057-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123154,NULL,'2057-09',2057,9,'2057-09-01','2057-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123155,NULL,'2057-10',2057,10,'2057-10-01','2057-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123156,NULL,'2057-11',2057,11,'2057-11-01','2057-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123157,NULL,'2057-12',2057,12,'2057-12-01','2057-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123161,NULL,'2058-01',2058,1,'2058-01-01','2058-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123162,NULL,'2058-02',2058,2,'2058-02-01','2058-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123163,NULL,'2058-03',2058,3,'2058-03-01','2058-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123164,NULL,'2058-04',2058,4,'2058-04-01','2058-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123165,NULL,'2058-05',2058,5,'2058-05-01','2058-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123166,NULL,'2058-06',2058,6,'2058-06-01','2058-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123167,NULL,'2058-07',2058,7,'2058-07-01','2058-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123168,NULL,'2058-08',2058,8,'2058-08-01','2058-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123169,NULL,'2058-09',2058,9,'2058-09-01','2058-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123170,NULL,'2058-10',2058,10,'2058-10-01','2058-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123171,NULL,'2058-11',2058,11,'2058-11-01','2058-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123172,NULL,'2058-12',2058,12,'2058-12-01','2058-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123176,NULL,'2059-01',2059,1,'2059-01-01','2059-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123177,NULL,'2059-02',2059,2,'2059-02-01','2059-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123178,NULL,'2059-03',2059,3,'2059-03-01','2059-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123179,NULL,'2059-04',2059,4,'2059-04-01','2059-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123180,NULL,'2059-05',2059,5,'2059-05-01','2059-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123181,NULL,'2059-06',2059,6,'2059-06-01','2059-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123182,NULL,'2059-07',2059,7,'2059-07-01','2059-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123183,NULL,'2059-08',2059,8,'2059-08-01','2059-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123184,NULL,'2059-09',2059,9,'2059-09-01','2059-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123185,NULL,'2059-10',2059,10,'2059-10-01','2059-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123186,NULL,'2059-11',2059,11,'2059-11-01','2059-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123187,NULL,'2059-12',2059,12,'2059-12-01','2059-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123191,NULL,'2060-01',2060,1,'2060-01-01','2060-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123192,NULL,'2060-02',2060,2,'2060-02-01','2060-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123193,NULL,'2060-03',2060,3,'2060-03-01','2060-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123194,NULL,'2060-04',2060,4,'2060-04-01','2060-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123195,NULL,'2060-05',2060,5,'2060-05-01','2060-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123196,NULL,'2060-06',2060,6,'2060-06-01','2060-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123197,NULL,'2060-07',2060,7,'2060-07-01','2060-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123198,NULL,'2060-08',2060,8,'2060-08-01','2060-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123199,NULL,'2060-09',2060,9,'2060-09-01','2060-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123200,NULL,'2060-10',2060,10,'2060-10-01','2060-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123201,NULL,'2060-11',2060,11,'2060-11-01','2060-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123202,NULL,'2060-12',2060,12,'2060-12-01','2060-12-31',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123206,NULL,'2061-01',2061,1,'2061-01-01','2061-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123207,NULL,'2061-02',2061,2,'2061-02-01','2061-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123208,NULL,'2061-03',2061,3,'2061-03-01','2061-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123209,NULL,'2061-04',2061,4,'2061-04-01','2061-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123210,NULL,'2061-05',2061,5,'2061-05-01','2061-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123211,NULL,'2061-06',2061,6,'2061-06-01','2061-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123212,NULL,'2061-07',2061,7,'2061-07-01','2061-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123213,NULL,'2061-08',2061,8,'2061-08-01','2061-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123214,NULL,'2061-09',2061,9,'2061-09-01','2061-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123215,NULL,'2061-10',2061,10,'2061-10-01','2061-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123216,NULL,'2061-11',2061,11,'2061-11-01','2061-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123217,NULL,'2061-12',2061,12,'2061-12-01','2061-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123221,NULL,'2062-01',2062,1,'2062-01-01','2062-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123222,NULL,'2062-02',2062,2,'2062-02-01','2062-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123223,NULL,'2062-03',2062,3,'2062-03-01','2062-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123224,NULL,'2062-04',2062,4,'2062-04-01','2062-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123225,NULL,'2062-05',2062,5,'2062-05-01','2062-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123226,NULL,'2062-06',2062,6,'2062-06-01','2062-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123227,NULL,'2062-07',2062,7,'2062-07-01','2062-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123228,NULL,'2062-08',2062,8,'2062-08-01','2062-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123229,NULL,'2062-09',2062,9,'2062-09-01','2062-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123230,NULL,'2062-10',2062,10,'2062-10-01','2062-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123231,NULL,'2062-11',2062,11,'2062-11-01','2062-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123232,NULL,'2062-12',2062,12,'2062-12-01','2062-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123236,NULL,'2063-01',2063,1,'2063-01-01','2063-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123237,NULL,'2063-02',2063,2,'2063-02-01','2063-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123238,NULL,'2063-03',2063,3,'2063-03-01','2063-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123239,NULL,'2063-04',2063,4,'2063-04-01','2063-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123240,NULL,'2063-05',2063,5,'2063-05-01','2063-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123241,NULL,'2063-06',2063,6,'2063-06-01','2063-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123242,NULL,'2063-07',2063,7,'2063-07-01','2063-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123243,NULL,'2063-08',2063,8,'2063-08-01','2063-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123244,NULL,'2063-09',2063,9,'2063-09-01','2063-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123245,NULL,'2063-10',2063,10,'2063-10-01','2063-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123246,NULL,'2063-11',2063,11,'2063-11-01','2063-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123247,NULL,'2063-12',2063,12,'2063-12-01','2063-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123251,NULL,'2064-01',2064,1,'2064-01-01','2064-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123252,NULL,'2064-02',2064,2,'2064-02-01','2064-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123253,NULL,'2064-03',2064,3,'2064-03-01','2064-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123254,NULL,'2064-04',2064,4,'2064-04-01','2064-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123255,NULL,'2064-05',2064,5,'2064-05-01','2064-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123256,NULL,'2064-06',2064,6,'2064-06-01','2064-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123257,NULL,'2064-07',2064,7,'2064-07-01','2064-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123258,NULL,'2064-08',2064,8,'2064-08-01','2064-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123259,NULL,'2064-09',2064,9,'2064-09-01','2064-09-30',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123260,NULL,'2064-10',2064,10,'2064-10-01','2064-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123261,NULL,'2064-11',2064,11,'2064-11-01','2064-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123262,NULL,'2064-12',2064,12,'2064-12-01','2064-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123266,NULL,'2065-01',2065,1,'2065-01-01','2065-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123267,NULL,'2065-02',2065,2,'2065-02-01','2065-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123268,NULL,'2065-03',2065,3,'2065-03-01','2065-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123269,NULL,'2065-04',2065,4,'2065-04-01','2065-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123270,NULL,'2065-05',2065,5,'2065-05-01','2065-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123271,NULL,'2065-06',2065,6,'2065-06-01','2065-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123272,NULL,'2065-07',2065,7,'2065-07-01','2065-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123273,NULL,'2065-08',2065,8,'2065-08-01','2065-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123274,NULL,'2065-09',2065,9,'2065-09-01','2065-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123275,NULL,'2065-10',2065,10,'2065-10-01','2065-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123276,NULL,'2065-11',2065,11,'2065-11-01','2065-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123277,NULL,'2065-12',2065,12,'2065-12-01','2065-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123281,NULL,'2066-01',2066,1,'2066-01-01','2066-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123282,NULL,'2066-02',2066,2,'2066-02-01','2066-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123283,NULL,'2066-03',2066,3,'2066-03-01','2066-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123284,NULL,'2066-04',2066,4,'2066-04-01','2066-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123285,NULL,'2066-05',2066,5,'2066-05-01','2066-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123286,NULL,'2066-06',2066,6,'2066-06-01','2066-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123287,NULL,'2066-07',2066,7,'2066-07-01','2066-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123288,NULL,'2066-08',2066,8,'2066-08-01','2066-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123289,NULL,'2066-09',2066,9,'2066-09-01','2066-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123290,NULL,'2066-10',2066,10,'2066-10-01','2066-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123291,NULL,'2066-11',2066,11,'2066-11-01','2066-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123292,NULL,'2066-12',2066,12,'2066-12-01','2066-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123296,NULL,'2067-01',2067,1,'2067-01-01','2067-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123297,NULL,'2067-02',2067,2,'2067-02-01','2067-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123298,NULL,'2067-03',2067,3,'2067-03-01','2067-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123299,NULL,'2067-04',2067,4,'2067-04-01','2067-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123300,NULL,'2067-05',2067,5,'2067-05-01','2067-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123301,NULL,'2067-06',2067,6,'2067-06-01','2067-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123302,NULL,'2067-07',2067,7,'2067-07-01','2067-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123303,NULL,'2067-08',2067,8,'2067-08-01','2067-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123304,NULL,'2067-09',2067,9,'2067-09-01','2067-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123305,NULL,'2067-10',2067,10,'2067-10-01','2067-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123306,NULL,'2067-11',2067,11,'2067-11-01','2067-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123307,NULL,'2067-12',2067,12,'2067-12-01','2067-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123311,NULL,'2068-01',2068,1,'2068-01-01','2068-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123312,NULL,'2068-02',2068,2,'2068-02-01','2068-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123313,NULL,'2068-03',2068,3,'2068-03-01','2068-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123314,NULL,'2068-04',2068,4,'2068-04-01','2068-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123315,NULL,'2068-05',2068,5,'2068-05-01','2068-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123316,NULL,'2068-06',2068,6,'2068-06-01','2068-06-30',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123317,NULL,'2068-07',2068,7,'2068-07-01','2068-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123318,NULL,'2068-08',2068,8,'2068-08-01','2068-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123319,NULL,'2068-09',2068,9,'2068-09-01','2068-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123320,NULL,'2068-10',2068,10,'2068-10-01','2068-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123321,NULL,'2068-11',2068,11,'2068-11-01','2068-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123322,NULL,'2068-12',2068,12,'2068-12-01','2068-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123326,NULL,'2069-01',2069,1,'2069-01-01','2069-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123327,NULL,'2069-02',2069,2,'2069-02-01','2069-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123328,NULL,'2069-03',2069,3,'2069-03-01','2069-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123329,NULL,'2069-04',2069,4,'2069-04-01','2069-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123330,NULL,'2069-05',2069,5,'2069-05-01','2069-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123331,NULL,'2069-06',2069,6,'2069-06-01','2069-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123332,NULL,'2069-07',2069,7,'2069-07-01','2069-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123333,NULL,'2069-08',2069,8,'2069-08-01','2069-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123334,NULL,'2069-09',2069,9,'2069-09-01','2069-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123335,NULL,'2069-10',2069,10,'2069-10-01','2069-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123336,NULL,'2069-11',2069,11,'2069-11-01','2069-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123337,NULL,'2069-12',2069,12,'2069-12-01','2069-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123341,NULL,'2070-01',2070,1,'2070-01-01','2070-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123342,NULL,'2070-02',2070,2,'2070-02-01','2070-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123343,NULL,'2070-03',2070,3,'2070-03-01','2070-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123344,NULL,'2070-04',2070,4,'2070-04-01','2070-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123345,NULL,'2070-05',2070,5,'2070-05-01','2070-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123346,NULL,'2070-06',2070,6,'2070-06-01','2070-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123347,NULL,'2070-07',2070,7,'2070-07-01','2070-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123348,NULL,'2070-08',2070,8,'2070-08-01','2070-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123349,NULL,'2070-09',2070,9,'2070-09-01','2070-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123350,NULL,'2070-10',2070,10,'2070-10-01','2070-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123351,NULL,'2070-11',2070,11,'2070-11-01','2070-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123352,NULL,'2070-12',2070,12,'2070-12-01','2070-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123356,NULL,'2071-01',2071,1,'2071-01-01','2071-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123357,NULL,'2071-02',2071,2,'2071-02-01','2071-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123358,NULL,'2071-03',2071,3,'2071-03-01','2071-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123359,NULL,'2071-04',2071,4,'2071-04-01','2071-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123360,NULL,'2071-05',2071,5,'2071-05-01','2071-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123361,NULL,'2071-06',2071,6,'2071-06-01','2071-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123362,NULL,'2071-07',2071,7,'2071-07-01','2071-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123363,NULL,'2071-08',2071,8,'2071-08-01','2071-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123364,NULL,'2071-09',2071,9,'2071-09-01','2071-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123365,NULL,'2071-10',2071,10,'2071-10-01','2071-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123366,NULL,'2071-11',2071,11,'2071-11-01','2071-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123367,NULL,'2071-12',2071,12,'2071-12-01','2071-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123371,NULL,'2072-01',2072,1,'2072-01-01','2072-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123372,NULL,'2072-02',2072,2,'2072-02-01','2072-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123373,NULL,'2072-03',2072,3,'2072-03-01','2072-03-31',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123374,NULL,'2072-04',2072,4,'2072-04-01','2072-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123375,NULL,'2072-05',2072,5,'2072-05-01','2072-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123376,NULL,'2072-06',2072,6,'2072-06-01','2072-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123377,NULL,'2072-07',2072,7,'2072-07-01','2072-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123378,NULL,'2072-08',2072,8,'2072-08-01','2072-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123379,NULL,'2072-09',2072,9,'2072-09-01','2072-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123380,NULL,'2072-10',2072,10,'2072-10-01','2072-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123381,NULL,'2072-11',2072,11,'2072-11-01','2072-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123382,NULL,'2072-12',2072,12,'2072-12-01','2072-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123386,NULL,'2073-01',2073,1,'2073-01-01','2073-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123387,NULL,'2073-02',2073,2,'2073-02-01','2073-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123388,NULL,'2073-03',2073,3,'2073-03-01','2073-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123389,NULL,'2073-04',2073,4,'2073-04-01','2073-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123390,NULL,'2073-05',2073,5,'2073-05-01','2073-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123391,NULL,'2073-06',2073,6,'2073-06-01','2073-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123392,NULL,'2073-07',2073,7,'2073-07-01','2073-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123393,NULL,'2073-08',2073,8,'2073-08-01','2073-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123394,NULL,'2073-09',2073,9,'2073-09-01','2073-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123395,NULL,'2073-10',2073,10,'2073-10-01','2073-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123396,NULL,'2073-11',2073,11,'2073-11-01','2073-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123397,NULL,'2073-12',2073,12,'2073-12-01','2073-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123401,NULL,'2074-01',2074,1,'2074-01-01','2074-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123402,NULL,'2074-02',2074,2,'2074-02-01','2074-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123403,NULL,'2074-03',2074,3,'2074-03-01','2074-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123404,NULL,'2074-04',2074,4,'2074-04-01','2074-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123405,NULL,'2074-05',2074,5,'2074-05-01','2074-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123406,NULL,'2074-06',2074,6,'2074-06-01','2074-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123407,NULL,'2074-07',2074,7,'2074-07-01','2074-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123408,NULL,'2074-08',2074,8,'2074-08-01','2074-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123409,NULL,'2074-09',2074,9,'2074-09-01','2074-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123410,NULL,'2074-10',2074,10,'2074-10-01','2074-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123411,NULL,'2074-11',2074,11,'2074-11-01','2074-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123412,NULL,'2074-12',2074,12,'2074-12-01','2074-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123416,NULL,'2075-01',2075,1,'2075-01-01','2075-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123417,NULL,'2075-02',2075,2,'2075-02-01','2075-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123418,NULL,'2075-03',2075,3,'2075-03-01','2075-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123419,NULL,'2075-04',2075,4,'2075-04-01','2075-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123420,NULL,'2075-05',2075,5,'2075-05-01','2075-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123421,NULL,'2075-06',2075,6,'2075-06-01','2075-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123422,NULL,'2075-07',2075,7,'2075-07-01','2075-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123423,NULL,'2075-08',2075,8,'2075-08-01','2075-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123424,NULL,'2075-09',2075,9,'2075-09-01','2075-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123425,NULL,'2075-10',2075,10,'2075-10-01','2075-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123426,NULL,'2075-11',2075,11,'2075-11-01','2075-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123427,NULL,'2075-12',2075,12,'2075-12-01','2075-12-31',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123431,NULL,'2076-01',2076,1,'2076-01-01','2076-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123432,NULL,'2076-02',2076,2,'2076-02-01','2076-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123433,NULL,'2076-03',2076,3,'2076-03-01','2076-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123434,NULL,'2076-04',2076,4,'2076-04-01','2076-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123435,NULL,'2076-05',2076,5,'2076-05-01','2076-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123436,NULL,'2076-06',2076,6,'2076-06-01','2076-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123437,NULL,'2076-07',2076,7,'2076-07-01','2076-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123438,NULL,'2076-08',2076,8,'2076-08-01','2076-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123439,NULL,'2076-09',2076,9,'2076-09-01','2076-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123440,NULL,'2076-10',2076,10,'2076-10-01','2076-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123441,NULL,'2076-11',2076,11,'2076-11-01','2076-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123442,NULL,'2076-12',2076,12,'2076-12-01','2076-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123446,NULL,'2077-01',2077,1,'2077-01-01','2077-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123447,NULL,'2077-02',2077,2,'2077-02-01','2077-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123448,NULL,'2077-03',2077,3,'2077-03-01','2077-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123449,NULL,'2077-04',2077,4,'2077-04-01','2077-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123450,NULL,'2077-05',2077,5,'2077-05-01','2077-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123451,NULL,'2077-06',2077,6,'2077-06-01','2077-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123452,NULL,'2077-07',2077,7,'2077-07-01','2077-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123453,NULL,'2077-08',2077,8,'2077-08-01','2077-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123454,NULL,'2077-09',2077,9,'2077-09-01','2077-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123455,NULL,'2077-10',2077,10,'2077-10-01','2077-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123456,NULL,'2077-11',2077,11,'2077-11-01','2077-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123457,NULL,'2077-12',2077,12,'2077-12-01','2077-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123461,NULL,'2078-01',2078,1,'2078-01-01','2078-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123462,NULL,'2078-02',2078,2,'2078-02-01','2078-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123463,NULL,'2078-03',2078,3,'2078-03-01','2078-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123464,NULL,'2078-04',2078,4,'2078-04-01','2078-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123465,NULL,'2078-05',2078,5,'2078-05-01','2078-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123466,NULL,'2078-06',2078,6,'2078-06-01','2078-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123467,NULL,'2078-07',2078,7,'2078-07-01','2078-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123468,NULL,'2078-08',2078,8,'2078-08-01','2078-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123469,NULL,'2078-09',2078,9,'2078-09-01','2078-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123470,NULL,'2078-10',2078,10,'2078-10-01','2078-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123471,NULL,'2078-11',2078,11,'2078-11-01','2078-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123472,NULL,'2078-12',2078,12,'2078-12-01','2078-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123476,NULL,'2079-01',2079,1,'2079-01-01','2079-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123477,NULL,'2079-02',2079,2,'2079-02-01','2079-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123478,NULL,'2079-03',2079,3,'2079-03-01','2079-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123479,NULL,'2079-04',2079,4,'2079-04-01','2079-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123480,NULL,'2079-05',2079,5,'2079-05-01','2079-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123481,NULL,'2079-06',2079,6,'2079-06-01','2079-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123482,NULL,'2079-07',2079,7,'2079-07-01','2079-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123483,NULL,'2079-08',2079,8,'2079-08-01','2079-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123484,NULL,'2079-09',2079,9,'2079-09-01','2079-09-30',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123485,NULL,'2079-10',2079,10,'2079-10-01','2079-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123486,NULL,'2079-11',2079,11,'2079-11-01','2079-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123487,NULL,'2079-12',2079,12,'2079-12-01','2079-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123491,NULL,'2080-01',2080,1,'2080-01-01','2080-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123492,NULL,'2080-02',2080,2,'2080-02-01','2080-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123493,NULL,'2080-03',2080,3,'2080-03-01','2080-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123494,NULL,'2080-04',2080,4,'2080-04-01','2080-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123495,NULL,'2080-05',2080,5,'2080-05-01','2080-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123496,NULL,'2080-06',2080,6,'2080-06-01','2080-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123497,NULL,'2080-07',2080,7,'2080-07-01','2080-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123498,NULL,'2080-08',2080,8,'2080-08-01','2080-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123499,NULL,'2080-09',2080,9,'2080-09-01','2080-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123500,NULL,'2080-10',2080,10,'2080-10-01','2080-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123501,NULL,'2080-11',2080,11,'2080-11-01','2080-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123502,NULL,'2080-12',2080,12,'2080-12-01','2080-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123506,NULL,'2081-01',2081,1,'2081-01-01','2081-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123507,NULL,'2081-02',2081,2,'2081-02-01','2081-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123508,NULL,'2081-03',2081,3,'2081-03-01','2081-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123509,NULL,'2081-04',2081,4,'2081-04-01','2081-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123510,NULL,'2081-05',2081,5,'2081-05-01','2081-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123511,NULL,'2081-06',2081,6,'2081-06-01','2081-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123512,NULL,'2081-07',2081,7,'2081-07-01','2081-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123513,NULL,'2081-08',2081,8,'2081-08-01','2081-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123514,NULL,'2081-09',2081,9,'2081-09-01','2081-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123515,NULL,'2081-10',2081,10,'2081-10-01','2081-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123516,NULL,'2081-11',2081,11,'2081-11-01','2081-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123517,NULL,'2081-12',2081,12,'2081-12-01','2081-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123521,NULL,'2082-01',2082,1,'2082-01-01','2082-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123522,NULL,'2082-02',2082,2,'2082-02-01','2082-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123523,NULL,'2082-03',2082,3,'2082-03-01','2082-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123524,NULL,'2082-04',2082,4,'2082-04-01','2082-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123525,NULL,'2082-05',2082,5,'2082-05-01','2082-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123526,NULL,'2082-06',2082,6,'2082-06-01','2082-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123527,NULL,'2082-07',2082,7,'2082-07-01','2082-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123528,NULL,'2082-08',2082,8,'2082-08-01','2082-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123529,NULL,'2082-09',2082,9,'2082-09-01','2082-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123530,NULL,'2082-10',2082,10,'2082-10-01','2082-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123531,NULL,'2082-11',2082,11,'2082-11-01','2082-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123532,NULL,'2082-12',2082,12,'2082-12-01','2082-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123536,NULL,'2083-01',2083,1,'2083-01-01','2083-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123537,NULL,'2083-02',2083,2,'2083-02-01','2083-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123538,NULL,'2083-03',2083,3,'2083-03-01','2083-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123539,NULL,'2083-04',2083,4,'2083-04-01','2083-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123540,NULL,'2083-05',2083,5,'2083-05-01','2083-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123541,NULL,'2083-06',2083,6,'2083-06-01','2083-06-30',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123542,NULL,'2083-07',2083,7,'2083-07-01','2083-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123543,NULL,'2083-08',2083,8,'2083-08-01','2083-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123544,NULL,'2083-09',2083,9,'2083-09-01','2083-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123545,NULL,'2083-10',2083,10,'2083-10-01','2083-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123546,NULL,'2083-11',2083,11,'2083-11-01','2083-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123547,NULL,'2083-12',2083,12,'2083-12-01','2083-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123551,NULL,'2084-01',2084,1,'2084-01-01','2084-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123552,NULL,'2084-02',2084,2,'2084-02-01','2084-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123553,NULL,'2084-03',2084,3,'2084-03-01','2084-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123554,NULL,'2084-04',2084,4,'2084-04-01','2084-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123555,NULL,'2084-05',2084,5,'2084-05-01','2084-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123556,NULL,'2084-06',2084,6,'2084-06-01','2084-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123557,NULL,'2084-07',2084,7,'2084-07-01','2084-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123558,NULL,'2084-08',2084,8,'2084-08-01','2084-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123559,NULL,'2084-09',2084,9,'2084-09-01','2084-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123560,NULL,'2084-10',2084,10,'2084-10-01','2084-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123561,NULL,'2084-11',2084,11,'2084-11-01','2084-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123562,NULL,'2084-12',2084,12,'2084-12-01','2084-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123566,NULL,'2085-01',2085,1,'2085-01-01','2085-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123567,NULL,'2085-02',2085,2,'2085-02-01','2085-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123568,NULL,'2085-03',2085,3,'2085-03-01','2085-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123569,NULL,'2085-04',2085,4,'2085-04-01','2085-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123570,NULL,'2085-05',2085,5,'2085-05-01','2085-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123571,NULL,'2085-06',2085,6,'2085-06-01','2085-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123572,NULL,'2085-07',2085,7,'2085-07-01','2085-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123573,NULL,'2085-08',2085,8,'2085-08-01','2085-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123574,NULL,'2085-09',2085,9,'2085-09-01','2085-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123575,NULL,'2085-10',2085,10,'2085-10-01','2085-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123576,NULL,'2085-11',2085,11,'2085-11-01','2085-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123577,NULL,'2085-12',2085,12,'2085-12-01','2085-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123581,NULL,'2086-01',2086,1,'2086-01-01','2086-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123582,NULL,'2086-02',2086,2,'2086-02-01','2086-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123583,NULL,'2086-03',2086,3,'2086-03-01','2086-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123584,NULL,'2086-04',2086,4,'2086-04-01','2086-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123585,NULL,'2086-05',2086,5,'2086-05-01','2086-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123586,NULL,'2086-06',2086,6,'2086-06-01','2086-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123587,NULL,'2086-07',2086,7,'2086-07-01','2086-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123588,NULL,'2086-08',2086,8,'2086-08-01','2086-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123589,NULL,'2086-09',2086,9,'2086-09-01','2086-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123590,NULL,'2086-10',2086,10,'2086-10-01','2086-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123591,NULL,'2086-11',2086,11,'2086-11-01','2086-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123592,NULL,'2086-12',2086,12,'2086-12-01','2086-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123596,NULL,'2087-01',2087,1,'2087-01-01','2087-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123597,NULL,'2087-02',2087,2,'2087-02-01','2087-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123598,NULL,'2087-03',2087,3,'2087-03-01','2087-03-31',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123599,NULL,'2087-04',2087,4,'2087-04-01','2087-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123600,NULL,'2087-05',2087,5,'2087-05-01','2087-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123601,NULL,'2087-06',2087,6,'2087-06-01','2087-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123602,NULL,'2087-07',2087,7,'2087-07-01','2087-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123603,NULL,'2087-08',2087,8,'2087-08-01','2087-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123604,NULL,'2087-09',2087,9,'2087-09-01','2087-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123605,NULL,'2087-10',2087,10,'2087-10-01','2087-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123606,NULL,'2087-11',2087,11,'2087-11-01','2087-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123607,NULL,'2087-12',2087,12,'2087-12-01','2087-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123611,NULL,'2088-01',2088,1,'2088-01-01','2088-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123612,NULL,'2088-02',2088,2,'2088-02-01','2088-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123613,NULL,'2088-03',2088,3,'2088-03-01','2088-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123614,NULL,'2088-04',2088,4,'2088-04-01','2088-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123615,NULL,'2088-05',2088,5,'2088-05-01','2088-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123616,NULL,'2088-06',2088,6,'2088-06-01','2088-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123617,NULL,'2088-07',2088,7,'2088-07-01','2088-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123618,NULL,'2088-08',2088,8,'2088-08-01','2088-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123619,NULL,'2088-09',2088,9,'2088-09-01','2088-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123620,NULL,'2088-10',2088,10,'2088-10-01','2088-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123621,NULL,'2088-11',2088,11,'2088-11-01','2088-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123622,NULL,'2088-12',2088,12,'2088-12-01','2088-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123626,NULL,'2089-01',2089,1,'2089-01-01','2089-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123627,NULL,'2089-02',2089,2,'2089-02-01','2089-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123628,NULL,'2089-03',2089,3,'2089-03-01','2089-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123629,NULL,'2089-04',2089,4,'2089-04-01','2089-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123630,NULL,'2089-05',2089,5,'2089-05-01','2089-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123631,NULL,'2089-06',2089,6,'2089-06-01','2089-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123632,NULL,'2089-07',2089,7,'2089-07-01','2089-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123633,NULL,'2089-08',2089,8,'2089-08-01','2089-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123634,NULL,'2089-09',2089,9,'2089-09-01','2089-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123635,NULL,'2089-10',2089,10,'2089-10-01','2089-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123636,NULL,'2089-11',2089,11,'2089-11-01','2089-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123637,NULL,'2089-12',2089,12,'2089-12-01','2089-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123641,NULL,'2090-01',2090,1,'2090-01-01','2090-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123642,NULL,'2090-02',2090,2,'2090-02-01','2090-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123643,NULL,'2090-03',2090,3,'2090-03-01','2090-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123644,NULL,'2090-04',2090,4,'2090-04-01','2090-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123645,NULL,'2090-05',2090,5,'2090-05-01','2090-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123646,NULL,'2090-06',2090,6,'2090-06-01','2090-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123647,NULL,'2090-07',2090,7,'2090-07-01','2090-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123648,NULL,'2090-08',2090,8,'2090-08-01','2090-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123649,NULL,'2090-09',2090,9,'2090-09-01','2090-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123650,NULL,'2090-10',2090,10,'2090-10-01','2090-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123651,NULL,'2090-11',2090,11,'2090-11-01','2090-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123652,NULL,'2090-12',2090,12,'2090-12-01','2090-12-31',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123656,NULL,'2091-01',2091,1,'2091-01-01','2091-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123657,NULL,'2091-02',2091,2,'2091-02-01','2091-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123658,NULL,'2091-03',2091,3,'2091-03-01','2091-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123659,NULL,'2091-04',2091,4,'2091-04-01','2091-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123660,NULL,'2091-05',2091,5,'2091-05-01','2091-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123661,NULL,'2091-06',2091,6,'2091-06-01','2091-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123662,NULL,'2091-07',2091,7,'2091-07-01','2091-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123663,NULL,'2091-08',2091,8,'2091-08-01','2091-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123664,NULL,'2091-09',2091,9,'2091-09-01','2091-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123665,NULL,'2091-10',2091,10,'2091-10-01','2091-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123666,NULL,'2091-11',2091,11,'2091-11-01','2091-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123667,NULL,'2091-12',2091,12,'2091-12-01','2091-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123671,NULL,'2092-01',2092,1,'2092-01-01','2092-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123672,NULL,'2092-02',2092,2,'2092-02-01','2092-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123673,NULL,'2092-03',2092,3,'2092-03-01','2092-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123674,NULL,'2092-04',2092,4,'2092-04-01','2092-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123675,NULL,'2092-05',2092,5,'2092-05-01','2092-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123676,NULL,'2092-06',2092,6,'2092-06-01','2092-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123677,NULL,'2092-07',2092,7,'2092-07-01','2092-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123678,NULL,'2092-08',2092,8,'2092-08-01','2092-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123679,NULL,'2092-09',2092,9,'2092-09-01','2092-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123680,NULL,'2092-10',2092,10,'2092-10-01','2092-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123681,NULL,'2092-11',2092,11,'2092-11-01','2092-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123682,NULL,'2092-12',2092,12,'2092-12-01','2092-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123686,NULL,'2093-01',2093,1,'2093-01-01','2093-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123687,NULL,'2093-02',2093,2,'2093-02-01','2093-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123688,NULL,'2093-03',2093,3,'2093-03-01','2093-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123689,NULL,'2093-04',2093,4,'2093-04-01','2093-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123690,NULL,'2093-05',2093,5,'2093-05-01','2093-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123691,NULL,'2093-06',2093,6,'2093-06-01','2093-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123692,NULL,'2093-07',2093,7,'2093-07-01','2093-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123693,NULL,'2093-08',2093,8,'2093-08-01','2093-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123694,NULL,'2093-09',2093,9,'2093-09-01','2093-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123695,NULL,'2093-10',2093,10,'2093-10-01','2093-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123696,NULL,'2093-11',2093,11,'2093-11-01','2093-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123697,NULL,'2093-12',2093,12,'2093-12-01','2093-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123701,NULL,'2094-01',2094,1,'2094-01-01','2094-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123702,NULL,'2094-02',2094,2,'2094-02-01','2094-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123703,NULL,'2094-03',2094,3,'2094-03-01','2094-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123704,NULL,'2094-04',2094,4,'2094-04-01','2094-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123705,NULL,'2094-05',2094,5,'2094-05-01','2094-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123706,NULL,'2094-06',2094,6,'2094-06-01','2094-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123707,NULL,'2094-07',2094,7,'2094-07-01','2094-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123708,NULL,'2094-08',2094,8,'2094-08-01','2094-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123709,NULL,'2094-09',2094,9,'2094-09-01','2094-09-30',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123710,NULL,'2094-10',2094,10,'2094-10-01','2094-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123711,NULL,'2094-11',2094,11,'2094-11-01','2094-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123712,NULL,'2094-12',2094,12,'2094-12-01','2094-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123716,NULL,'2095-01',2095,1,'2095-01-01','2095-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123717,NULL,'2095-02',2095,2,'2095-02-01','2095-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123718,NULL,'2095-03',2095,3,'2095-03-01','2095-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123719,NULL,'2095-04',2095,4,'2095-04-01','2095-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123720,NULL,'2095-05',2095,5,'2095-05-01','2095-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123721,NULL,'2095-06',2095,6,'2095-06-01','2095-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123722,NULL,'2095-07',2095,7,'2095-07-01','2095-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123723,NULL,'2095-08',2095,8,'2095-08-01','2095-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123724,NULL,'2095-09',2095,9,'2095-09-01','2095-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123725,NULL,'2095-10',2095,10,'2095-10-01','2095-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123726,NULL,'2095-11',2095,11,'2095-11-01','2095-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123727,NULL,'2095-12',2095,12,'2095-12-01','2095-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123731,NULL,'2096-01',2096,1,'2096-01-01','2096-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123732,NULL,'2096-02',2096,2,'2096-02-01','2096-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123733,NULL,'2096-03',2096,3,'2096-03-01','2096-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123734,NULL,'2096-04',2096,4,'2096-04-01','2096-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123735,NULL,'2096-05',2096,5,'2096-05-01','2096-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123736,NULL,'2096-06',2096,6,'2096-06-01','2096-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123737,NULL,'2096-07',2096,7,'2096-07-01','2096-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123738,NULL,'2096-08',2096,8,'2096-08-01','2096-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123739,NULL,'2096-09',2096,9,'2096-09-01','2096-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123740,NULL,'2096-10',2096,10,'2096-10-01','2096-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123741,NULL,'2096-11',2096,11,'2096-11-01','2096-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123742,NULL,'2096-12',2096,12,'2096-12-01','2096-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123746,NULL,'2097-01',2097,1,'2097-01-01','2097-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123747,NULL,'2097-02',2097,2,'2097-02-01','2097-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123748,NULL,'2097-03',2097,3,'2097-03-01','2097-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123749,NULL,'2097-04',2097,4,'2097-04-01','2097-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123750,NULL,'2097-05',2097,5,'2097-05-01','2097-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123751,NULL,'2097-06',2097,6,'2097-06-01','2097-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123752,NULL,'2097-07',2097,7,'2097-07-01','2097-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123753,NULL,'2097-08',2097,8,'2097-08-01','2097-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123754,NULL,'2097-09',2097,9,'2097-09-01','2097-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123755,NULL,'2097-10',2097,10,'2097-10-01','2097-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123756,NULL,'2097-11',2097,11,'2097-11-01','2097-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123757,NULL,'2097-12',2097,12,'2097-12-01','2097-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123761,NULL,'2098-01',2098,1,'2098-01-01','2098-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123762,NULL,'2098-02',2098,2,'2098-02-01','2098-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123763,NULL,'2098-03',2098,3,'2098-03-01','2098-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123764,NULL,'2098-04',2098,4,'2098-04-01','2098-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123765,NULL,'2098-05',2098,5,'2098-05-01','2098-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123766,NULL,'2098-06',2098,6,'2098-06-01','2098-06-30',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123767,NULL,'2098-07',2098,7,'2098-07-01','2098-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123768,NULL,'2098-08',2098,8,'2098-08-01','2098-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123769,NULL,'2098-09',2098,9,'2098-09-01','2098-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123770,NULL,'2098-10',2098,10,'2098-10-01','2098-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123771,NULL,'2098-11',2098,11,'2098-11-01','2098-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123772,NULL,'2098-12',2098,12,'2098-12-01','2098-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123776,NULL,'2099-01',2099,1,'2099-01-01','2099-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123777,NULL,'2099-02',2099,2,'2099-02-01','2099-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123778,NULL,'2099-03',2099,3,'2099-03-01','2099-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123779,NULL,'2099-04',2099,4,'2099-04-01','2099-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123780,NULL,'2099-05',2099,5,'2099-05-01','2099-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123781,NULL,'2099-06',2099,6,'2099-06-01','2099-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123782,NULL,'2099-07',2099,7,'2099-07-01','2099-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123783,NULL,'2099-08',2099,8,'2099-08-01','2099-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123784,NULL,'2099-09',2099,9,'2099-09-01','2099-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123785,NULL,'2099-10',2099,10,'2099-10-01','2099-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123786,NULL,'2099-11',2099,11,'2099-11-01','2099-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123787,NULL,'2099-12',2099,12,'2099-12-01','2099-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123791,NULL,'2100-01',2100,1,'2100-01-01','2100-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123792,NULL,'2100-02',2100,2,'2100-02-01','2100-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123793,NULL,'2100-03',2100,3,'2100-03-01','2100-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123794,NULL,'2100-04',2100,4,'2100-04-01','2100-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123795,NULL,'2100-05',2100,5,'2100-05-01','2100-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123796,NULL,'2100-06',2100,6,'2100-06-01','2100-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123797,NULL,'2100-07',2100,7,'2100-07-01','2100-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123798,NULL,'2100-08',2100,8,'2100-08-01','2100-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123799,NULL,'2100-09',2100,9,'2100-09-01','2100-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123800,NULL,'2100-10',2100,10,'2100-10-01','2100-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123801,NULL,'2100-11',2100,11,'2100-11-01','2100-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123802,NULL,'2100-12',2100,12,'2100-12-01','2100-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123806,NULL,'2101-01',2101,1,'2101-01-01','2101-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123807,NULL,'2101-02',2101,2,'2101-02-01','2101-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123808,NULL,'2101-03',2101,3,'2101-03-01','2101-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123809,NULL,'2101-04',2101,4,'2101-04-01','2101-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123810,NULL,'2101-05',2101,5,'2101-05-01','2101-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123811,NULL,'2101-06',2101,6,'2101-06-01','2101-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123812,NULL,'2101-07',2101,7,'2101-07-01','2101-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123813,NULL,'2101-08',2101,8,'2101-08-01','2101-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123814,NULL,'2101-09',2101,9,'2101-09-01','2101-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123815,NULL,'2101-10',2101,10,'2101-10-01','2101-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123816,NULL,'2101-11',2101,11,'2101-11-01','2101-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123817,NULL,'2101-12',2101,12,'2101-12-01','2101-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123821,NULL,'2102-01',2102,1,'2102-01-01','2102-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123822,NULL,'2102-02',2102,2,'2102-02-01','2102-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123823,NULL,'2102-03',2102,3,'2102-03-01','2102-03-31',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123824,NULL,'2102-04',2102,4,'2102-04-01','2102-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123825,NULL,'2102-05',2102,5,'2102-05-01','2102-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123826,NULL,'2102-06',2102,6,'2102-06-01','2102-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123827,NULL,'2102-07',2102,7,'2102-07-01','2102-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123828,NULL,'2102-08',2102,8,'2102-08-01','2102-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123829,NULL,'2102-09',2102,9,'2102-09-01','2102-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123830,NULL,'2102-10',2102,10,'2102-10-01','2102-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123831,NULL,'2102-11',2102,11,'2102-11-01','2102-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123832,NULL,'2102-12',2102,12,'2102-12-01','2102-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123836,NULL,'2103-01',2103,1,'2103-01-01','2103-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123837,NULL,'2103-02',2103,2,'2103-02-01','2103-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123838,NULL,'2103-03',2103,3,'2103-03-01','2103-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123839,NULL,'2103-04',2103,4,'2103-04-01','2103-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123840,NULL,'2103-05',2103,5,'2103-05-01','2103-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123841,NULL,'2103-06',2103,6,'2103-06-01','2103-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123842,NULL,'2103-07',2103,7,'2103-07-01','2103-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123843,NULL,'2103-08',2103,8,'2103-08-01','2103-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123844,NULL,'2103-09',2103,9,'2103-09-01','2103-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123845,NULL,'2103-10',2103,10,'2103-10-01','2103-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123846,NULL,'2103-11',2103,11,'2103-11-01','2103-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123847,NULL,'2103-12',2103,12,'2103-12-01','2103-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123851,NULL,'2104-01',2104,1,'2104-01-01','2104-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123852,NULL,'2104-02',2104,2,'2104-02-01','2104-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123853,NULL,'2104-03',2104,3,'2104-03-01','2104-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123854,NULL,'2104-04',2104,4,'2104-04-01','2104-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123855,NULL,'2104-05',2104,5,'2104-05-01','2104-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123856,NULL,'2104-06',2104,6,'2104-06-01','2104-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123857,NULL,'2104-07',2104,7,'2104-07-01','2104-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123858,NULL,'2104-08',2104,8,'2104-08-01','2104-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123859,NULL,'2104-09',2104,9,'2104-09-01','2104-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123860,NULL,'2104-10',2104,10,'2104-10-01','2104-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123861,NULL,'2104-11',2104,11,'2104-11-01','2104-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123862,NULL,'2104-12',2104,12,'2104-12-01','2104-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123866,NULL,'2105-01',2105,1,'2105-01-01','2105-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123867,NULL,'2105-02',2105,2,'2105-02-01','2105-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123868,NULL,'2105-03',2105,3,'2105-03-01','2105-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123869,NULL,'2105-04',2105,4,'2105-04-01','2105-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123870,NULL,'2105-05',2105,5,'2105-05-01','2105-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123871,NULL,'2105-06',2105,6,'2105-06-01','2105-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123872,NULL,'2105-07',2105,7,'2105-07-01','2105-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123873,NULL,'2105-08',2105,8,'2105-08-01','2105-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123874,NULL,'2105-09',2105,9,'2105-09-01','2105-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123875,NULL,'2105-10',2105,10,'2105-10-01','2105-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123876,NULL,'2105-11',2105,11,'2105-11-01','2105-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123877,NULL,'2105-12',2105,12,'2105-12-01','2105-12-31',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123881,NULL,'2106-01',2106,1,'2106-01-01','2106-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123882,NULL,'2106-02',2106,2,'2106-02-01','2106-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123883,NULL,'2106-03',2106,3,'2106-03-01','2106-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123884,NULL,'2106-04',2106,4,'2106-04-01','2106-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123885,NULL,'2106-05',2106,5,'2106-05-01','2106-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123886,NULL,'2106-06',2106,6,'2106-06-01','2106-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123887,NULL,'2106-07',2106,7,'2106-07-01','2106-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123888,NULL,'2106-08',2106,8,'2106-08-01','2106-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123889,NULL,'2106-09',2106,9,'2106-09-01','2106-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123890,NULL,'2106-10',2106,10,'2106-10-01','2106-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123891,NULL,'2106-11',2106,11,'2106-11-01','2106-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123892,NULL,'2106-12',2106,12,'2106-12-01','2106-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123896,NULL,'2107-01',2107,1,'2107-01-01','2107-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123897,NULL,'2107-02',2107,2,'2107-02-01','2107-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123898,NULL,'2107-03',2107,3,'2107-03-01','2107-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123899,NULL,'2107-04',2107,4,'2107-04-01','2107-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123900,NULL,'2107-05',2107,5,'2107-05-01','2107-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123901,NULL,'2107-06',2107,6,'2107-06-01','2107-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123902,NULL,'2107-07',2107,7,'2107-07-01','2107-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123903,NULL,'2107-08',2107,8,'2107-08-01','2107-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123904,NULL,'2107-09',2107,9,'2107-09-01','2107-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123905,NULL,'2107-10',2107,10,'2107-10-01','2107-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123906,NULL,'2107-11',2107,11,'2107-11-01','2107-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123907,NULL,'2107-12',2107,12,'2107-12-01','2107-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123911,NULL,'2108-01',2108,1,'2108-01-01','2108-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123912,NULL,'2108-02',2108,2,'2108-02-01','2108-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123913,NULL,'2108-03',2108,3,'2108-03-01','2108-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123914,NULL,'2108-04',2108,4,'2108-04-01','2108-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123915,NULL,'2108-05',2108,5,'2108-05-01','2108-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123916,NULL,'2108-06',2108,6,'2108-06-01','2108-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123917,NULL,'2108-07',2108,7,'2108-07-01','2108-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123918,NULL,'2108-08',2108,8,'2108-08-01','2108-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123919,NULL,'2108-09',2108,9,'2108-09-01','2108-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123920,NULL,'2108-10',2108,10,'2108-10-01','2108-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123921,NULL,'2108-11',2108,11,'2108-11-01','2108-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123922,NULL,'2108-12',2108,12,'2108-12-01','2108-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123926,NULL,'2109-01',2109,1,'2109-01-01','2109-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123927,NULL,'2109-02',2109,2,'2109-02-01','2109-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123928,NULL,'2109-03',2109,3,'2109-03-01','2109-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123929,NULL,'2109-04',2109,4,'2109-04-01','2109-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123930,NULL,'2109-05',2109,5,'2109-05-01','2109-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123931,NULL,'2109-06',2109,6,'2109-06-01','2109-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123932,NULL,'2109-07',2109,7,'2109-07-01','2109-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123933,NULL,'2109-08',2109,8,'2109-08-01','2109-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123934,NULL,'2109-09',2109,9,'2109-09-01','2109-09-30',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123935,NULL,'2109-10',2109,10,'2109-10-01','2109-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123936,NULL,'2109-11',2109,11,'2109-11-01','2109-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123937,NULL,'2109-12',2109,12,'2109-12-01','2109-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123941,NULL,'2110-01',2110,1,'2110-01-01','2110-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123942,NULL,'2110-02',2110,2,'2110-02-01','2110-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123943,NULL,'2110-03',2110,3,'2110-03-01','2110-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123944,NULL,'2110-04',2110,4,'2110-04-01','2110-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123945,NULL,'2110-05',2110,5,'2110-05-01','2110-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123946,NULL,'2110-06',2110,6,'2110-06-01','2110-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123947,NULL,'2110-07',2110,7,'2110-07-01','2110-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123948,NULL,'2110-08',2110,8,'2110-08-01','2110-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123949,NULL,'2110-09',2110,9,'2110-09-01','2110-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123950,NULL,'2110-10',2110,10,'2110-10-01','2110-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123951,NULL,'2110-11',2110,11,'2110-11-01','2110-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123952,NULL,'2110-12',2110,12,'2110-12-01','2110-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123956,NULL,'2111-01',2111,1,'2111-01-01','2111-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123957,NULL,'2111-02',2111,2,'2111-02-01','2111-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123958,NULL,'2111-03',2111,3,'2111-03-01','2111-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123959,NULL,'2111-04',2111,4,'2111-04-01','2111-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123960,NULL,'2111-05',2111,5,'2111-05-01','2111-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123961,NULL,'2111-06',2111,6,'2111-06-01','2111-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123962,NULL,'2111-07',2111,7,'2111-07-01','2111-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123963,NULL,'2111-08',2111,8,'2111-08-01','2111-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123964,NULL,'2111-09',2111,9,'2111-09-01','2111-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123965,NULL,'2111-10',2111,10,'2111-10-01','2111-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123966,NULL,'2111-11',2111,11,'2111-11-01','2111-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123967,NULL,'2111-12',2111,12,'2111-12-01','2111-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123971,NULL,'2112-01',2112,1,'2112-01-01','2112-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123972,NULL,'2112-02',2112,2,'2112-02-01','2112-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123973,NULL,'2112-03',2112,3,'2112-03-01','2112-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123974,NULL,'2112-04',2112,4,'2112-04-01','2112-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123975,NULL,'2112-05',2112,5,'2112-05-01','2112-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123976,NULL,'2112-06',2112,6,'2112-06-01','2112-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123977,NULL,'2112-07',2112,7,'2112-07-01','2112-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123978,NULL,'2112-08',2112,8,'2112-08-01','2112-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123979,NULL,'2112-09',2112,9,'2112-09-01','2112-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123980,NULL,'2112-10',2112,10,'2112-10-01','2112-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123981,NULL,'2112-11',2112,11,'2112-11-01','2112-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123982,NULL,'2112-12',2112,12,'2112-12-01','2112-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123986,NULL,'2113-01',2113,1,'2113-01-01','2113-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123987,NULL,'2113-02',2113,2,'2113-02-01','2113-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(123988,NULL,'2113-03',2113,3,'2113-03-01','2113-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123989,NULL,'2113-04',2113,4,'2113-04-01','2113-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123990,NULL,'2113-05',2113,5,'2113-05-01','2113-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123991,NULL,'2113-06',2113,6,'2113-06-01','2113-06-30',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (123992,NULL,'2113-07',2113,7,'2113-07-01','2113-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123993,NULL,'2113-08',2113,8,'2113-08-01','2113-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123994,NULL,'2113-09',2113,9,'2113-09-01','2113-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123995,NULL,'2113-10',2113,10,'2113-10-01','2113-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(123996,NULL,'2113-11',2113,11,'2113-11-01','2113-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(123997,NULL,'2113-12',2113,12,'2113-12-01','2113-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124001,NULL,'2114-01',2114,1,'2114-01-01','2114-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124002,NULL,'2114-02',2114,2,'2114-02-01','2114-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(124003,NULL,'2114-03',2114,3,'2114-03-01','2114-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124004,NULL,'2114-04',2114,4,'2114-04-01','2114-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124005,NULL,'2114-05',2114,5,'2114-05-01','2114-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124006,NULL,'2114-06',2114,6,'2114-06-01','2114-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124007,NULL,'2114-07',2114,7,'2114-07-01','2114-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124008,NULL,'2114-08',2114,8,'2114-08-01','2114-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124009,NULL,'2114-09',2114,9,'2114-09-01','2114-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124010,NULL,'2114-10',2114,10,'2114-10-01','2114-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124011,NULL,'2114-11',2114,11,'2114-11-01','2114-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124012,NULL,'2114-12',2114,12,'2114-12-01','2114-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124016,NULL,'2115-01',2115,1,'2115-01-01','2115-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124017,NULL,'2115-02',2115,2,'2115-02-01','2115-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(124018,NULL,'2115-03',2115,3,'2115-03-01','2115-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124019,NULL,'2115-04',2115,4,'2115-04-01','2115-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124020,NULL,'2115-05',2115,5,'2115-05-01','2115-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124021,NULL,'2115-06',2115,6,'2115-06-01','2115-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124022,NULL,'2115-07',2115,7,'2115-07-01','2115-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124023,NULL,'2115-08',2115,8,'2115-08-01','2115-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124024,NULL,'2115-09',2115,9,'2115-09-01','2115-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124025,NULL,'2115-10',2115,10,'2115-10-01','2115-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124026,NULL,'2115-11',2115,11,'2115-11-01','2115-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124027,NULL,'2115-12',2115,12,'2115-12-01','2115-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124031,NULL,'2116-01',2116,1,'2116-01-01','2116-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124032,NULL,'2116-02',2116,2,'2116-02-01','2116-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(124033,NULL,'2116-03',2116,3,'2116-03-01','2116-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124034,NULL,'2116-04',2116,4,'2116-04-01','2116-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124035,NULL,'2116-05',2116,5,'2116-05-01','2116-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124036,NULL,'2116-06',2116,6,'2116-06-01','2116-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124037,NULL,'2116-07',2116,7,'2116-07-01','2116-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124038,NULL,'2116-08',2116,8,'2116-08-01','2116-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124039,NULL,'2116-09',2116,9,'2116-09-01','2116-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124040,NULL,'2116-10',2116,10,'2116-10-01','2116-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124041,NULL,'2116-11',2116,11,'2116-11-01','2116-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124042,NULL,'2116-12',2116,12,'2116-12-01','2116-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124046,NULL,'2117-01',2117,1,'2117-01-01','2117-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124047,NULL,'2117-02',2117,2,'2117-02-01','2117-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(124048,NULL,'2117-03',2117,3,'2117-03-01','2117-03-31',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (124049,NULL,'2117-04',2117,4,'2117-04-01','2117-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124050,NULL,'2117-05',2117,5,'2117-05-01','2117-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124051,NULL,'2117-06',2117,6,'2117-06-01','2117-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124052,NULL,'2117-07',2117,7,'2117-07-01','2117-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124053,NULL,'2117-08',2117,8,'2117-08-01','2117-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124054,NULL,'2117-09',2117,9,'2117-09-01','2117-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124055,NULL,'2117-10',2117,10,'2117-10-01','2117-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124056,NULL,'2117-11',2117,11,'2117-11-01','2117-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124057,NULL,'2117-12',2117,12,'2117-12-01','2117-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124061,NULL,'2118-01',2118,1,'2118-01-01','2118-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124062,NULL,'2118-02',2118,2,'2118-02-01','2118-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(124063,NULL,'2118-03',2118,3,'2118-03-01','2118-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124064,NULL,'2118-04',2118,4,'2118-04-01','2118-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124065,NULL,'2118-05',2118,5,'2118-05-01','2118-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124066,NULL,'2118-06',2118,6,'2118-06-01','2118-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124067,NULL,'2118-07',2118,7,'2118-07-01','2118-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124068,NULL,'2118-08',2118,8,'2118-08-01','2118-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124069,NULL,'2118-09',2118,9,'2118-09-01','2118-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124070,NULL,'2118-10',2118,10,'2118-10-01','2118-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124071,NULL,'2118-11',2118,11,'2118-11-01','2118-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124072,NULL,'2118-12',2118,12,'2118-12-01','2118-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124076,NULL,'2119-01',2119,1,'2119-01-01','2119-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124077,NULL,'2119-02',2119,2,'2119-02-01','2119-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(124078,NULL,'2119-03',2119,3,'2119-03-01','2119-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124079,NULL,'2119-04',2119,4,'2119-04-01','2119-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124080,NULL,'2119-05',2119,5,'2119-05-01','2119-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124081,NULL,'2119-06',2119,6,'2119-06-01','2119-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124082,NULL,'2119-07',2119,7,'2119-07-01','2119-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124083,NULL,'2119-08',2119,8,'2119-08-01','2119-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124084,NULL,'2119-09',2119,9,'2119-09-01','2119-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124085,NULL,'2119-10',2119,10,'2119-10-01','2119-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124086,NULL,'2119-11',2119,11,'2119-11-01','2119-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124087,NULL,'2119-12',2119,12,'2119-12-01','2119-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124091,NULL,'2120-01',2120,1,'2120-01-01','2120-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124092,NULL,'2120-02',2120,2,'2120-02-01','2120-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(124093,NULL,'2120-03',2120,3,'2120-03-01','2120-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124094,NULL,'2120-04',2120,4,'2120-04-01','2120-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124095,NULL,'2120-05',2120,5,'2120-05-01','2120-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124096,NULL,'2120-06',2120,6,'2120-06-01','2120-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124097,NULL,'2120-07',2120,7,'2120-07-01','2120-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124098,NULL,'2120-08',2120,8,'2120-08-01','2120-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124099,NULL,'2120-09',2120,9,'2120-09-01','2120-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124100,NULL,'2120-10',2120,10,'2120-10-01','2120-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124101,NULL,'2120-11',2120,11,'2120-11-01','2120-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124102,NULL,'2120-12',2120,12,'2120-12-01','2120-12-31',NULL,NULL,40803,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (124106,NULL,'2121-01',2121,1,'2121-01-01','2121-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124107,NULL,'2121-02',2121,2,'2121-02-01','2121-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(124108,NULL,'2121-03',2121,3,'2121-03-01','2121-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124109,NULL,'2121-04',2121,4,'2121-04-01','2121-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124110,NULL,'2121-05',2121,5,'2121-05-01','2121-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124111,NULL,'2121-06',2121,6,'2121-06-01','2121-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124112,NULL,'2121-07',2121,7,'2121-07-01','2121-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124113,NULL,'2121-08',2121,8,'2121-08-01','2121-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124114,NULL,'2121-09',2121,9,'2121-09-01','2121-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124115,NULL,'2121-10',2121,10,'2121-10-01','2121-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124116,NULL,'2121-11',2121,11,'2121-11-01','2121-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124117,NULL,'2121-12',2121,12,'2121-12-01','2121-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124121,NULL,'2122-01',2122,1,'2122-01-01','2122-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124122,NULL,'2122-02',2122,2,'2122-02-01','2122-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(124123,NULL,'2122-03',2122,3,'2122-03-01','2122-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124124,NULL,'2122-04',2122,4,'2122-04-01','2122-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124125,NULL,'2122-05',2122,5,'2122-05-01','2122-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124126,NULL,'2122-06',2122,6,'2122-06-01','2122-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124127,NULL,'2122-07',2122,7,'2122-07-01','2122-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124128,NULL,'2122-08',2122,8,'2122-08-01','2122-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124129,NULL,'2122-09',2122,9,'2122-09-01','2122-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124130,NULL,'2122-10',2122,10,'2122-10-01','2122-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124131,NULL,'2122-11',2122,11,'2122-11-01','2122-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124132,NULL,'2122-12',2122,12,'2122-12-01','2122-12-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124136,NULL,'2123-01',2123,1,'2123-01-01','2123-01-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124137,NULL,'2123-02',2123,2,'2123-02-01','2123-02-28',NULL,NULL,40803,0,NULL,1,0,0,1),(124138,NULL,'2123-03',2123,3,'2123-03-01','2123-03-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124139,NULL,'2123-04',2123,4,'2123-04-01','2123-04-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124140,NULL,'2123-05',2123,5,'2123-05-01','2123-05-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124141,NULL,'2123-06',2123,6,'2123-06-01','2123-06-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124142,NULL,'2123-07',2123,7,'2123-07-01','2123-07-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124143,NULL,'2123-08',2123,8,'2123-08-01','2123-08-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124144,NULL,'2123-09',2123,9,'2123-09-01','2123-09-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124145,NULL,'2123-10',2123,10,'2123-10-01','2123-10-31',NULL,NULL,40803,0,NULL,1,0,0,1),(124146,NULL,'2123-11',2123,11,'2123-11-01','2123-11-30',NULL,NULL,40803,0,NULL,1,0,0,1),(124147,NULL,'2123-12',2123,12,'2123-12-01','2123-12-31',NULL,NULL,40803,0,NULL,1,0,0,1);

--
-- Table structure for table `person_activities`
--

CREATE TABLE `person_activities` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `activity_id` int(10) unsigned NOT NULL,
  `is_principal` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_activities_person_id_foreign` (`person_id`),
  KEY `person_activities_activity_id_foreign` (`activity_id`),
  CONSTRAINT `person_activities_activity_id_foreign` FOREIGN KEY (`activity_id`) REFERENCES `activities` (`id`),
  CONSTRAINT `person_activities_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=192 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_activities`
--

INSERT INTO `person_activities` VALUES (103,1060,40776,306,1,'2022-11-09 22:37:01','2022-11-09 22:37:01',NULL),(104,1060,40776,834,0,'2022-11-09 22:37:01','2022-11-09 22:37:01',NULL),(136,1060,40799,568,1,'2023-07-03 12:06:42','2023-07-03 12:06:42',NULL),(144,1060,40801,150,1,'2023-07-06 11:22:18','2023-07-06 11:22:18',NULL),(157,1060,40803,602,1,'2023-08-08 11:59:05','2023-08-08 11:59:05',NULL),(158,1060,40803,598,0,'2023-08-08 11:59:05','2023-08-08 11:59:05',NULL),(159,1060,40803,539,0,'2023-08-08 11:59:05','2023-08-08 11:59:05',NULL),(160,1060,40803,591,0,'2023-08-08 11:59:05','2023-08-08 11:59:05',NULL),(175,1060,40719,796,1,'2024-02-08 17:17:06','2024-02-08 17:17:06',NULL),(176,1060,40720,614,1,'2024-02-08 17:17:38','2024-02-08 17:17:38',NULL),(177,1060,40720,198,0,'2024-02-08 17:17:38','2024-02-08 17:17:38',NULL),(180,1060,40721,57,1,'2024-02-08 17:19:31','2024-02-08 17:19:31',NULL),(181,1060,40721,790,0,'2024-02-08 17:19:31','2024-02-08 17:19:31',NULL),(182,1060,40727,405,1,'2024-02-08 17:19:38','2024-02-08 17:19:38',NULL),(183,1060,40752,702,1,'2024-02-08 17:19:58','2024-02-08 17:19:58',NULL),(184,1060,40752,789,0,'2024-02-08 17:19:58','2024-02-08 17:19:58',NULL),(185,1060,40775,567,1,'2024-02-08 17:22:15','2024-02-08 17:22:15',NULL),(186,1060,40796,609,1,'2024-02-08 17:22:26','2024-02-08 17:22:26',NULL),(188,1060,40798,424,1,'2024-02-08 17:48:12','2024-02-08 17:48:12',NULL),(189,1060,40800,440,1,'2024-02-08 17:48:25','2024-02-08 17:48:25',NULL),(190,1060,40802,150,1,'2024-02-08 17:48:34','2024-02-08 17:48:34',NULL),(191,1060,40802,568,0,'2024-02-08 17:48:34','2024-02-08 17:48:34',NULL);

--
-- Table structure for table `person_cobrador`
--

CREATE TABLE `person_cobrador` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `cobrador_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_cobrador_person_id_foreign` (`person_id`),
  KEY `person_cobrador_cobrador_id_foreign` (`cobrador_id`),
  KEY `person_cobrador_person_id_relationed_foreign` (`person_id_relationed`),
  CONSTRAINT `person_cobrador_cobrador_id_foreign` FOREIGN KEY (`cobrador_id`) REFERENCES `cobradores` (`id`),
  CONSTRAINT `person_cobrador_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_cobrador_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_cobrador`
--


--
-- Table structure for table `person_cobrador_history`
--

CREATE TABLE `person_cobrador_history` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `cobrador_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_cobrador_history_person_id_foreign` (`person_id`),
  KEY `person_cobrador_history_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `person_cobrador_history_cobrador_id_foreign` (`cobrador_id`),
  CONSTRAINT `person_cobrador_history_cobrador_id_foreign` FOREIGN KEY (`cobrador_id`) REFERENCES `cobradores` (`id`),
  CONSTRAINT `person_cobrador_history_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_cobrador_history_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_cobrador_history`
--


--
-- Table structure for table `person_configurations`
--

CREATE TABLE `person_configurations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `period_id` int(10) unsigned DEFAULT NULL,
  `zone_id` int(10) unsigned DEFAULT NULL,
  `settle_calc_by_coef` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `active` int(10) unsigned DEFAULT NULL,
  `enviarMail` int(11) DEFAULT '1',
  `honorario` decimal(16,2) DEFAULT '0.00',
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned DEFAULT NULL,
  `month_close` int(10) unsigned DEFAULT NULL,
  `iva_condition_id` int(10) unsigned DEFAULT NULL,
  `obligation_sell` int(10) unsigned DEFAULT NULL,
  `obligation_buy` int(10) unsigned DEFAULT NULL,
  `obligation_iva` int(10) unsigned DEFAULT NULL,
  `obligation_electronic_receipt` int(10) unsigned DEFAULT NULL,
  `obligation_iibb` int(10) unsigned DEFAULT NULL,
  `obligation_other_taxes` int(10) unsigned DEFAULT NULL,
  `liquidation_start_period` varchar(7) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `obligation_salaries` int(10) unsigned DEFAULT NULL,
  `empleada_domestica` tinyint(1) NOT NULL DEFAULT '0',
  `prorratear_iva` tinyint(1) NOT NULL DEFAULT '0',
  `is_itc` tinyint(1) NOT NULL DEFAULT '0',
  `priority_order` int(10) unsigned DEFAULT NULL,
  `person_id_administrador` int(11) DEFAULT NULL,
  `person_id_titular` int(11) DEFAULT NULL,
  `logo_path` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `certificado_afip_path` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `llave_afip_path` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `access_electronic_receipt` int(10) unsigned DEFAULT '0',
  `ruta_logo_fa` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `inicio_actividades` date DEFAULT NULL,
  `fecha_de_mono_to_ri` date DEFAULT NULL,
  `iibb` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fe_leyenda` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `atencion_iva` tinyint(1) NOT NULL DEFAULT '0',
  `atencion_iva_comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `atencion_iibb` tinyint(1) NOT NULL DEFAULT '0',
  `atencion_iibb_comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `usar_multimoneda` tinyint(1) NOT NULL DEFAULT '0',
  `is_ag_per_ret` tinyint(1) NOT NULL DEFAULT '0',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `barcode_columns` tinyint(3) unsigned NOT NULL DEFAULT '3' COMMENT 'Cantidad de columnas en la hoja de etiquetas',
  `barcode_rows` tinyint(3) unsigned NOT NULL DEFAULT '10' COMMENT 'Cantidad de filas en la hoja de etiquetas',
  `barcode_width_cm` decimal(4,2) NOT NULL DEFAULT '6.50' COMMENT 'Ancho de cada etiqueta en cm',
  `barcode_height_cm` decimal(4,2) NOT NULL DEFAULT '2.50' COMMENT 'Alto de cada etiqueta en cm',
  `barcode_page_size` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'A4' COMMENT 'Tamaño de página (A4, Letter, etc)',
  PRIMARY KEY (`id`),
  KEY `person_configurations_person_id_foreign` (`person_id`),
  KEY `person_configurations_period_id_foreign` (`period_id`),
  KEY `person_configurations_zone_id_foreign` (`zone_id`),
  KEY `person_configurations_iva_condition_id_foreign` (`iva_condition_id`),
  KEY `person_configurations_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  CONSTRAINT `person_configurations_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `person_configurations_iva_condition_id_foreign` FOREIGN KEY (`iva_condition_id`) REFERENCES `iva_conditions` (`id`),
  CONSTRAINT `person_configurations_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `person_configurations_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_configurations_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=84 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_configurations`
--

INSERT INTO `person_configurations` VALUES (2,1060,40719,NULL,NULL,0,'2020-09-25 09:24:47','2024-02-08 17:17:06',1,1,0.00,NULL,12,1,0,0,0,0,3,NULL,'2020-1',0,0,0,0,2,40719,40719,NULL,NULL,NULL,0,NULL,'2023-04-25','0000-00-00',NULL,NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(3,1060,40720,NULL,NULL,0,'2022-07-15 13:16:08','2024-02-08 17:17:38',2,1,0.00,NULL,12,2,1,1,1,0,3,NULL,'2022-07',1,0,1,1,1,40720,40720,NULL,NULL,NULL,0,'img//30715249118/logo.jpeg','2022-07-01','0000-00-00','000-054628-8',NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(4,1060,40721,NULL,NULL,0,'2022-08-01 13:25:51','2024-02-08 17:19:31',1,1,0.00,NULL,12,2,0,0,0,0,3,NULL,'2022-07',0,0,0,0,1,40721,40721,NULL,NULL,NULL,0,NULL,'2022-08-01','0000-00-00','007-008871-1',NULL,0,NULL,1,'actividad cria de ganado porcino exenta.-',0,0,NULL,3,10,6.50,2.50,'A4'),(10,1060,40727,NULL,NULL,0,'2022-10-12 23:33:38','2024-02-08 17:19:38',1,1,0.00,NULL,12,2,0,0,0,0,3,NULL,'2022-07',0,0,0,0,2,40727,40727,NULL,NULL,NULL,0,NULL,'2022-10-12','0000-00-00','000-065972-2',NULL,1,'Solicitar con tiempo facturas de las empresas participantes por los dividendos.-',1,'Presentar antes del 10 de cada mes, controlar las retenciones practicadas por el estado provincial de La Rioja',0,0,NULL,3,10,6.50,2.50,'A4'),(34,1060,40752,NULL,NULL,0,'2022-11-09 20:36:35','2024-02-08 17:19:58',1,1,0.00,NULL,12,2,1,1,1,1,3,NULL,'2022-01',1,0,0,0,1,40752,40752,NULL,NULL,NULL,0,NULL,'2022-11-09','0000-00-00','007-01126-6',NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(56,1060,40775,NULL,NULL,0,'2022-11-09 21:34:58','2024-02-08 17:22:15',1,1,0.00,NULL,12,2,1,1,1,0,3,NULL,'2022-10',1,0,0,0,2,40775,40775,NULL,NULL,NULL,0,NULL,'2014-12-01','0000-00-00','007-004951-1',NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(57,1060,40776,NULL,NULL,0,'2022-11-09 22:20:27','2022-11-09 22:37:01',2,1,0.00,NULL,12,2,1,1,1,0,3,NULL,'2022-10',1,0,0,0,2,40776,40776,NULL,NULL,NULL,0,NULL,'2009-09-01',NULL,'000-039561-1',NULL,1,NULL,1,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(77,1060,40796,NULL,NULL,0,'2023-02-02 17:32:25','2024-02-08 17:22:26',1,1,0.00,NULL,12,2,0,0,0,0,3,NULL,'2023-01',0,0,0,0,1,40796,40796,NULL,NULL,NULL,0,NULL,'2024-02-08','0000-00-00',NULL,NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(78,1060,40798,NULL,NULL,0,'2023-02-03 08:11:18','2024-02-08 17:48:12',1,1,0.00,NULL,2,2,1,1,1,1,3,NULL,'2023-01',1,0,0,0,1,40798,40798,NULL,NULL,NULL,0,NULL,'2024-02-08','0000-00-00',NULL,NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(79,1060,40799,NULL,NULL,0,'2023-07-03 12:06:42','2023-07-03 12:06:42',2,1,0.00,NULL,12,2,1,1,1,1,1,NULL,'2023-06',1,0,0,0,2,40799,40799,NULL,NULL,NULL,0,NULL,'0000-00-00','0000-00-00','000-0251259-9',NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(80,1060,40800,NULL,NULL,0,'2023-07-05 22:04:15','2024-02-08 17:48:25',1,1,0.00,NULL,12,2,0,0,0,0,3,NULL,'2023-06',0,0,0,0,2,40800,40800,NULL,NULL,NULL,0,NULL,'2012-04-27','0000-00-00','000-046268-8',NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(81,1060,40801,NULL,NULL,0,'2023-07-06 11:22:18','2023-07-06 11:22:18',2,1,0.00,NULL,12,2,1,1,1,1,1,NULL,'2023-06',1,0,0,0,2,40801,40801,NULL,NULL,NULL,0,NULL,'0000-00-00','0000-00-00',NULL,NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(82,1060,40802,NULL,NULL,0,'2023-07-25 11:28:12','2024-02-08 17:48:34',2,1,0.00,NULL,12,2,0,0,0,0,1,NULL,'2023-06',1,0,0,0,2,40802,40802,NULL,NULL,NULL,0,NULL,'2023-07-25','0000-00-00','000-044510-0',NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(83,1060,40803,NULL,NULL,0,'2023-07-25 12:39:42','2023-08-08 11:59:05',2,1,0.00,NULL,12,2,0,0,0,0,1,NULL,'2023-06',1,0,0,0,2,40803,40803,NULL,NULL,NULL,0,NULL,'2023-08-08','0000-00-00','000-031675-5',NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4');

--
-- Table structure for table `person_liquidators`
--

CREATE TABLE `person_liquidators` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `liquidator_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_liquidators_person_id_foreign` (`person_id`),
  KEY `person_liquidators_liquidator_id_foreign` (`liquidator_id`),
  CONSTRAINT `person_liquidators_liquidator_id_foreign` FOREIGN KEY (`liquidator_id`) REFERENCES `liquidators` (`id`),
  CONSTRAINT `person_liquidators_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_liquidators`
--


--
-- Table structure for table `person_pagos_lugares`
--

CREATE TABLE `person_pagos_lugares` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contacto` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `direccion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `localidad_id` int(10) unsigned DEFAULT NULL,
  `telefono` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mail` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `horario_de_llamada` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `horario_de_pago` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cobradores_metodo_id` bigint(20) unsigned DEFAULT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_pagos_lugares_person_id_foreign` (`person_id`),
  KEY `person_pagos_lugares_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `person_pagos_lugares_localidad_id_foreign` (`localidad_id`),
  KEY `person_pagos_lugares_cobradores_metodo_id_foreign` (`cobradores_metodo_id`),
  CONSTRAINT `person_pagos_lugares_cobradores_metodo_id_foreign` FOREIGN KEY (`cobradores_metodo_id`) REFERENCES `cobradores_metodos` (`id`),
  CONSTRAINT `person_pagos_lugares_localidad_id_foreign` FOREIGN KEY (`localidad_id`) REFERENCES `localidad` (`id`),
  CONSTRAINT `person_pagos_lugares_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_pagos_lugares_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_pagos_lugares`
--


--
-- Table structure for table `person_pagos_promesas`
--

CREATE TABLE `person_pagos_promesas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `person_pago_lugar_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_pagos_promesas_person_id_foreign` (`person_id`),
  KEY `person_pagos_promesas_person_id_relationed_foreign` (`person_id_relationed`),
  CONSTRAINT `person_pagos_promesas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_pagos_promesas_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_pagos_promesas`
--


--
-- Table structure for table `person_pay_methods`
--

CREATE TABLE `person_pay_methods` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `pay_method_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_pay_methods_person_id_foreign` (`person_id`),
  KEY `person_pay_methods_pay_method_id_foreign` (`pay_method_id`),
  CONSTRAINT `person_pay_methods_pay_method_id_foreign` FOREIGN KEY (`pay_method_id`) REFERENCES `pay_methods` (`id`),
  CONSTRAINT `person_pay_methods_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_pay_methods`
--

INSERT INTO `person_pay_methods` VALUES (22,1060,40720,2,'2024-02-08 17:17:38','2024-02-08 17:17:38',NULL),(25,1060,40721,2,'2024-02-08 17:19:31','2024-02-08 17:19:31',NULL),(26,1060,40721,1,'2024-02-08 17:19:31','2024-02-08 17:19:31',NULL),(27,1060,40800,2,'2024-02-08 17:48:25','2024-02-08 17:48:25',NULL);

--
-- Table structure for table `person_relationeds`
--

CREATE TABLE `person_relationeds` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `client_id` int(10) unsigned NOT NULL,
  `cliente_relationed_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_relationeds_person_id_foreign` (`person_id`),
  KEY `person_relationeds_client_id_foreign` (`client_id`),
  KEY `person_relationeds_cliente_relationed_id_foreign` (`cliente_relationed_id`),
  CONSTRAINT `person_relationeds_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_relationeds_cliente_relationed_id_foreign` FOREIGN KEY (`cliente_relationed_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_relationeds_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_relationeds`
--


--
-- Table structure for table `person_types`
--

CREATE TABLE `person_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `description` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `person_types_description_unique` (`description`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_types`
--

INSERT INTO `person_types` VALUES (1,NULL,'Persona Humana',NULL,NULL,NULL),(2,NULL,'Persona Juridica',NULL,NULL,NULL);

--
-- Table structure for table `person_zone_actividad`
--

CREATE TABLE `person_zone_actividad` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `zone_id` int(10) unsigned NOT NULL,
  `actividad_id` int(10) unsigned NOT NULL,
  `calculo_iibb` int(11) NOT NULL,
  `coef` decimal(16,5) NOT NULL DEFAULT '0.00000',
  `alicuota` decimal(16,5) NOT NULL DEFAULT '0.00000',
  `cm_articulo_regimen_id` int(10) unsigned NOT NULL DEFAULT '1',
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_zone_actividad_person_id_foreign` (`person_id`),
  KEY `person_zone_actividad_zone_id_foreign` (`zone_id`),
  KEY `person_zone_actividad_actividad_id_foreign` (`actividad_id`),
  KEY `person_zone_actividad_cm_articulo_regimen_id_foreign` (`cm_articulo_regimen_id`),
  CONSTRAINT `person_zone_actividad_actividad_id_foreign` FOREIGN KEY (`actividad_id`) REFERENCES `activities` (`id`),
  CONSTRAINT `person_zone_actividad_cm_articulo_regimen_id_foreign` FOREIGN KEY (`cm_articulo_regimen_id`) REFERENCES `cm_articulos_regimenes` (`id`),
  CONSTRAINT `person_zone_actividad_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_zone_actividad_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=188 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_zone_actividad`
--

INSERT INTO `person_zone_actividad` VALUES (102,1060,40776,9,306,1,0.00000,0.00000,1,1,'2022-11-09 22:37:01','2022-11-09 22:37:01',NULL),(103,1060,40776,9,834,1,0.00000,0.00000,1,1,'2022-11-09 22:37:01','2022-11-09 22:37:01',NULL),(132,1060,40799,9,568,1,0.00000,0.00000,1,1,'2023-07-03 12:06:42','2023-07-03 12:06:42',NULL),(140,1060,40801,9,150,1,0.00000,0.00000,1,1,'2023-07-06 11:22:18','2023-07-06 11:22:18',NULL),(153,1060,40803,9,602,1,0.00000,0.00000,1,1,'2023-08-08 11:59:05','2023-08-08 11:59:05',NULL),(154,1060,40803,9,598,1,0.00000,0.00000,1,1,'2023-08-08 11:59:05','2023-08-08 11:59:05',NULL),(155,1060,40803,9,539,1,0.00000,0.00000,1,1,'2023-08-08 11:59:05','2023-08-08 11:59:05',NULL),(156,1060,40803,9,591,1,0.00000,0.00000,1,1,'2023-08-08 11:59:05','2023-08-08 11:59:05',NULL),(171,1060,40719,22,796,1,0.00000,0.00000,1,1,'2024-02-08 17:17:06','2024-02-08 17:17:06',NULL),(172,1060,40720,9,614,1,0.00000,0.00000,1,1,'2024-02-08 17:17:38','2024-02-08 17:17:38',NULL),(173,1060,40720,9,198,1,0.00000,0.00000,1,1,'2024-02-08 17:17:38','2024-02-08 17:17:38',NULL),(176,1060,40721,9,57,1,0.00000,0.00000,1,1,'2024-02-08 17:19:31','2024-02-08 17:19:31',NULL),(177,1060,40721,9,790,1,0.00000,0.00000,1,1,'2024-02-08 17:19:31','2024-02-08 17:19:31',NULL),(178,1060,40727,9,405,1,0.00000,0.00000,1,1,'2024-02-08 17:19:38','2024-02-08 17:19:38',NULL),(179,1060,40752,9,702,1,0.00000,0.00000,1,1,'2024-02-08 17:19:58','2024-02-08 17:19:58',NULL),(180,1060,40752,9,789,1,0.00000,0.00000,1,1,'2024-02-08 17:19:58','2024-02-08 17:19:58',NULL),(181,1060,40775,9,567,1,0.00000,0.00000,1,1,'2024-02-08 17:22:15','2024-02-08 17:22:15',NULL),(182,1060,40796,9,609,1,0.00000,0.00000,1,1,'2024-02-08 17:22:26','2024-02-08 17:22:26',NULL),(184,1060,40798,9,424,1,0.00000,0.00000,1,1,'2024-02-08 17:48:12','2024-02-08 17:48:12',NULL),(185,1060,40800,9,440,1,0.00000,0.00000,1,1,'2024-02-08 17:48:25','2024-02-08 17:48:25',NULL),(186,1060,40802,9,150,1,0.00000,0.00000,1,1,'2024-02-08 17:48:34','2024-02-08 17:48:34',NULL),(187,1060,40802,9,568,1,0.00000,0.00000,1,1,'2024-02-08 17:48:34','2024-02-08 17:48:34',NULL);

--
-- Table structure for table `person_zones`
--

CREATE TABLE `person_zones` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `sifere_coef` decimal(8,4) NOT NULL DEFAULT '0.0000',
  `iibb_aliquot` decimal(8,4) NOT NULL DEFAULT '0.0000',
  `zone_id` int(10) unsigned NOT NULL,
  `is_principal` tinyint(1) NOT NULL DEFAULT '0',
  `iibb_perception_id` int(10) unsigned DEFAULT NULL,
  `retention_id` int(10) unsigned DEFAULT NULL,
  `activity_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_zones_zone_id_foreign` (`zone_id`),
  KEY `person_zones_person_id_foreign` (`person_id`),
  CONSTRAINT `person_zones_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_zones_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=137 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_zones`
--

INSERT INTO `person_zones` VALUES (67,1060,0.0000,0.0000,9,1,NULL,NULL,NULL,'2022-11-09 22:37:01','2022-11-09 22:37:01',40776,NULL),(98,1060,0.0000,0.0000,9,1,NULL,NULL,NULL,'2023-07-03 12:06:42','2023-07-03 12:06:42',40799,NULL),(106,1060,0.0000,0.0000,9,1,NULL,NULL,NULL,'2023-07-06 11:22:18','2023-07-06 11:22:18',40801,NULL),(112,1060,0.0000,0.0000,9,1,NULL,NULL,NULL,'2023-08-08 11:59:05','2023-08-08 11:59:05',40803,NULL),(125,1060,0.0000,0.0000,22,1,NULL,NULL,NULL,'2024-02-08 17:17:06','2024-02-08 17:17:06',40719,NULL),(126,1060,0.0000,0.0000,9,1,NULL,NULL,NULL,'2024-02-08 17:17:38','2024-02-08 17:17:38',40720,NULL),(128,1060,0.0000,0.0000,9,1,NULL,NULL,NULL,'2024-02-08 17:19:31','2024-02-08 17:19:31',40721,NULL),(129,1060,0.0000,0.0000,9,1,NULL,NULL,NULL,'2024-02-08 17:19:38','2024-02-08 17:19:38',40727,NULL),(130,1060,0.0000,0.0000,9,1,NULL,NULL,NULL,'2024-02-08 17:19:58','2024-02-08 17:19:58',40752,NULL),(131,1060,0.0000,0.0000,9,1,NULL,NULL,NULL,'2024-02-08 17:22:15','2024-02-08 17:22:15',40775,NULL),(132,1060,0.0000,0.0000,9,1,NULL,NULL,NULL,'2024-02-08 17:22:26','2024-02-08 17:22:26',40796,NULL),(134,1060,0.0000,0.0000,9,1,NULL,NULL,NULL,'2024-02-08 17:48:12','2024-02-08 17:48:12',40798,NULL),(135,1060,0.0000,0.0000,9,1,NULL,NULL,NULL,'2024-02-08 17:48:25','2024-02-08 17:48:25',40800,NULL),(136,1060,0.0000,0.0000,9,1,NULL,NULL,NULL,'2024-02-08 17:48:34','2024-02-08 17:48:34',40802,NULL);

--
-- Table structure for table `persons`
--

CREATE TABLE `persons` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `field_name1` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `fantasy_name` text COLLATE utf8mb4_unicode_ci,
  `codigo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `field_name2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `document_type` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
  `document` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cond_frente_al_iva_id` int(10) unsigned DEFAULT NULL,
  `country_id` int(10) unsigned DEFAULT NULL,
  `state_id` int(10) unsigned DEFAULT NULL,
  `zone_id` int(10) unsigned DEFAULT NULL,
  `plan_cuenta_id` int(10) unsigned DEFAULT NULL,
  `iva_creditos_tipo_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `activity_id` int(10) unsigned DEFAULT NULL,
  `address` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `latitud` decimal(10,7) DEFAULT NULL,
  `longitud` decimal(10,7) DEFAULT NULL,
  `localidad_id` int(10) unsigned DEFAULT NULL,
  `person_type_id` int(10) unsigned DEFAULT NULL,
  `fa_iva_condition_id` int(10) unsigned DEFAULT NULL,
  `fa_codigo_postal` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `email` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `iva_per_regimen_id` bigint(20) unsigned DEFAULT NULL,
  `iva_ret_regimen_id` bigint(20) unsigned DEFAULT NULL,
  `obligation_iibb` bigint(20) unsigned DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `document_UNIQUE` (`document`),
  KEY `persons_zone_id_foreign` (`zone_id`),
  KEY `persons_person_type_id_foreign` (`person_type_id`),
  KEY `persons_plan_cuenta_id_foreign` (`plan_cuenta_id`),
  KEY `persons_iva_creditos_tipo_id_foreign` (`iva_creditos_tipo_id`),
  KEY `persons_cond_frente_al_iva_id_foreign` (`cond_frente_al_iva_id`),
  KEY `persons_localidad_id_foreign` (`localidad_id`),
  KEY `persons_iva_ret_regimen_id_foreign` (`iva_ret_regimen_id`),
  KEY `persons_iva_per_regimen_id_foreign` (`iva_per_regimen_id`),
  CONSTRAINT `persons_cond_frente_al_iva_id_foreign` FOREIGN KEY (`cond_frente_al_iva_id`) REFERENCES `condicion_frente_al_iva` (`id`),
  CONSTRAINT `persons_iva_creditos_tipo_id_foreign` FOREIGN KEY (`iva_creditos_tipo_id`) REFERENCES `iva_creditos_tipos` (`id`),
  CONSTRAINT `persons_iva_per_regimen_id_foreign` FOREIGN KEY (`iva_per_regimen_id`) REFERENCES `iva_per_regimenes` (`id`),
  CONSTRAINT `persons_iva_ret_regimen_id_foreign` FOREIGN KEY (`iva_ret_regimen_id`) REFERENCES `iva_ret_regimenes` (`id`),
  CONSTRAINT `persons_localidad_id_foreign` FOREIGN KEY (`localidad_id`) REFERENCES `localidad` (`id`),
  CONSTRAINT `persons_person_type_id_foreign` FOREIGN KEY (`person_type_id`) REFERENCES `person_types` (`id`),
  CONSTRAINT `persons_plan_cuenta_id_foreign` FOREIGN KEY (`plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `persons_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=40804 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons`
--

INSERT INTO `persons` VALUES (3,NULL,'Larzabal Hernan',NULL,'3',NULL,'cuit','20-28468190-9',NULL,NULL,22,22,NULL,NULL,'2018-05-12 20:55:07','2018-05-14 01:54:15',1,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40717,NULL,'Taxes Software',NULL,'40717',NULL,'cuit','30-71625124-8',NULL,NULL,22,22,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40718,NULL,'Consumidor Final',NULL,'40718',NULL,'cuit','20-11111111-2',NULL,NULL,22,22,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40719,NULL,'Aguero Marcelo',NULL,'40719',NULL,'cuit','20-23241193-8',6,NULL,NULL,NULL,NULL,NULL,'2020-09-25 15:24:26','2025-07-04 15:04:14',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40720,NULL,'SWLAR SRL',NULL,'40720',NULL,'cuit','30-71524911-8',1,NULL,NULL,NULL,NULL,NULL,'2022-07-15 13:16:08','2025-07-04 15:04:14',NULL,'ADOLFO E DAVILA 470',NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40721,NULL,'GRANJA DEL VALLE SRL',NULL,'40721',NULL,'cuit','30-71249066-3',1,NULL,NULL,NULL,NULL,NULL,'2022-08-01 13:25:51','2025-07-04 15:04:14',NULL,'colon s/n',NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40727,NULL,'BOSETTI Y CIA S.A. - RIOJA VIAL S.A.U. - MAGGIORA S.A - UNION TRANSITORIA',NULL,'40727',NULL,'cuit','30-71762334-3',1,NULL,NULL,NULL,NULL,NULL,'2022-10-12 23:33:38','2025-07-04 15:04:14',NULL,'AV ORTIZ DE OCAMPO 3086 - LA RIOJA (CAPITAL) 5300',NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40752,NULL,'BELSAVAC SRL',NULL,'40752',NULL,'cuit','30-57341006-4',1,NULL,NULL,NULL,NULL,NULL,'2022-11-09 20:36:35','2025-07-04 15:04:14',NULL,'9 de Julio esquina Adolfo E Davila',NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40775,NULL,'CHOQUE MAMANI PASICA',NULL,'40775',NULL,'cuit','27-93975496-8',1,NULL,NULL,NULL,NULL,NULL,'2022-11-09 21:34:58','2025-07-04 15:04:14',NULL,'WAMATINAG ESQ SAN MARTIN - CHILECITO - 5360 - LA RIOJA',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40776,NULL,'MEDINA GRACIELA NOEMI',NULL,'40776',NULL,'cuit','27-31475573-7',1,NULL,NULL,NULL,NULL,NULL,'2022-11-09 22:20:27','2025-07-04 15:04:14',NULL,'BENJAMIN MATIENZO 3147  BARRIO: Parque Industrial LA RIOJA',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40796,NULL,'ELIAS ROXANA MARIA',NULL,'40796',NULL,'cuit','27-26442269-3',1,NULL,NULL,NULL,NULL,NULL,'2023-02-02 17:32:24','2025-07-04 15:04:14',NULL,'ADOLFO E DAVILA 76',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40798,NULL,'RILOSTAR S.A.',NULL,'40798',NULL,'cuit','30-67174281-4',1,NULL,NULL,NULL,NULL,NULL,'2023-02-03 08:11:18','2025-07-04 15:04:14',NULL,'SANTA ROSA NRO 176',NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40799,NULL,'GOYOCHEA RICARDO REMIGIO',NULL,'40799',NULL,'cuit','20-16152463-9',1,NULL,NULL,NULL,NULL,NULL,'2023-07-03 12:06:42','2025-07-04 15:04:14',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40800,NULL,'MATESICH FERNANDO MIGUEL ANDRES',NULL,'40800',NULL,'cuit','23-24877657-9',1,NULL,NULL,NULL,NULL,NULL,'2023-07-05 22:04:15','2025-07-04 15:04:14',NULL,'Av. Ortiz de Ocampo 2840 La Rioja',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40801,NULL,'GODOY DANIELA',NULL,'40801',NULL,'cuit','27-31903141-9',1,NULL,NULL,NULL,NULL,NULL,'2023-07-06 11:22:18','2025-07-04 15:04:14',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40802,NULL,'GOYOCHEA CARLOS',NULL,'40802',NULL,'cuit','20-22443702-2',1,NULL,NULL,NULL,NULL,NULL,'2023-07-25 11:28:12','2025-07-04 15:04:14',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40803,NULL,'PERALTA SARA',NULL,'40803',NULL,'cuit','27-22135467-8',1,NULL,NULL,NULL,NULL,NULL,'2023-07-25 12:39:42','2025-07-04 15:04:14',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `persons_custom_form`
--

CREATE TABLE `persons_custom_form` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `p_c_servicio_id` bigint(20) unsigned NOT NULL,
  `configuracion` json NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `persons_custom_form_person_id_foreign` (`person_id`),
  KEY `persons_custom_form_p_c_servicio_id_foreign` (`p_c_servicio_id`),
  CONSTRAINT `persons_custom_form_p_c_servicio_id_foreign` FOREIGN KEY (`p_c_servicio_id`) REFERENCES `persons_custom_servicios` (`id`),
  CONSTRAINT `persons_custom_form_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons_custom_form`
--


--
-- Table structure for table `persons_custom_servicios`
--

CREATE TABLE `persons_custom_servicios` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons_custom_servicios`
--

INSERT INTO `persons_custom_servicios` VALUES (1,NULL,'Ordenes de Trabajo',0,NULL,NULL,NULL),(2,NULL,'Formularios Ordenes',0,'2025-07-06 23:47:08','2025-07-06 23:47:08',NULL),(3,NULL,'Formulario Receipts',0,'2025-07-09 15:38:01','2025-07-09 15:38:01',NULL);

--
-- Table structure for table `persons_datos`
--

CREATE TABLE `persons_datos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dato_1` longtext COLLATE utf8mb4_unicode_ci,
  `dato_2` longtext COLLATE utf8mb4_unicode_ci,
  `dato_3` longtext COLLATE utf8mb4_unicode_ci,
  `dato_4` longtext COLLATE utf8mb4_unicode_ci,
  `dato_5` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `persons_datos_person_id_foreign` (`person_id`),
  CONSTRAINT `persons_datos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons_datos`
--


--
-- Table structure for table `persons_files`
--

CREATE TABLE `persons_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_original` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `persons_files_person_id_foreign` (`person_id`),
  CONSTRAINT `persons_files_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons_files`
--


--
-- Table structure for table `persons_sicore`
--

CREATE TABLE `persons_sicore` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(10) unsigned NOT NULL,
  `is_inscripto` tinyint(1) NOT NULL,
  `sicore_regimen_id` bigint(20) unsigned NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `persons_sicore_person_id_foreign` (`person_id`),
  KEY `persons_sicore_sicore_regimen_id_foreign` (`sicore_regimen_id`),
  CONSTRAINT `persons_sicore_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `persons_sicore_sicore_regimen_id_foreign` FOREIGN KEY (`sicore_regimen_id`) REFERENCES `sicore_regimenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons_sicore`
--


--
-- Table structure for table `plazo_de_pago`
--

CREATE TABLE `plazo_de_pago` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `plazo_de_pago`
--

INSERT INTO `plazo_de_pago` VALUES (1,NULL,'0 dias FF',1,NULL,NULL,NULL),(2,NULL,'7 dias FF',1,NULL,NULL,NULL),(3,NULL,'15 dias FF',1,NULL,NULL,NULL),(4,NULL,'30 dias FF',1,NULL,NULL,NULL),(5,NULL,'45 dias FF',1,NULL,NULL,NULL),(6,NULL,'60 dias FF',1,NULL,NULL,NULL);

--
-- Table structure for table `ppc_comunicaciones`
--

CREATE TABLE `ppc_comunicaciones` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `ppc_comunicaciones_type_id` bigint(20) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `is_propio` tinyint(1) NOT NULL DEFAULT '0',
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `ppc_type_id` bigint(20) unsigned NOT NULL,
  `ppc_user_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL,
  `titulo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ppc_comunicaciones_ppc_comunicaciones_type_id_foreign` (`ppc_comunicaciones_type_id`),
  KEY `ppc_comunicaciones_person_id_foreign` (`person_id`),
  KEY `ppc_comunicaciones_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `ppc_comunicaciones_ppc_type_id_foreign` (`ppc_type_id`),
  KEY `ppc_comunicaciones_ppc_user_id_foreign` (`ppc_user_id`),
  CONSTRAINT `ppc_comunicaciones_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_comunicaciones_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_comunicaciones_ppc_comunicaciones_type_id_foreign` FOREIGN KEY (`ppc_comunicaciones_type_id`) REFERENCES `ppc_comunicaciones_types` (`id`),
  CONSTRAINT `ppc_comunicaciones_ppc_type_id_foreign` FOREIGN KEY (`ppc_type_id`) REFERENCES `ppc_types` (`id`),
  CONSTRAINT `ppc_comunicaciones_ppc_user_id_foreign` FOREIGN KEY (`ppc_user_id`) REFERENCES `ppc_users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_comunicaciones`
--


--
-- Table structure for table `ppc_comunicaciones_files`
--

CREATE TABLE `ppc_comunicaciones_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `ppc_comunicacion_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_original` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ppc_comunicaciones_files_ppc_comunicacion_id_foreign` (`ppc_comunicacion_id`),
  CONSTRAINT `ppc_comunicaciones_files_ppc_comunicacion_id_foreign` FOREIGN KEY (`ppc_comunicacion_id`) REFERENCES `ppc_comunicaciones` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_comunicaciones_files`
--


--
-- Table structure for table `ppc_comunicaciones_types`
--

CREATE TABLE `ppc_comunicaciones_types` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_comunicaciones_types`
--

INSERT INTO `ppc_comunicaciones_types` VALUES (1,NULL,'Legajos',1,NULL,NULL,NULL),(2,NULL,'Notificaciones',1,NULL,NULL,NULL);

--
-- Table structure for table `ppc_receipts`
--

CREATE TABLE `ppc_receipts` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `type_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `ppc_user_id` bigint(20) unsigned NOT NULL,
  `ppc_type_id` bigint(20) unsigned NOT NULL,
  `was_leida` tinyint(1) NOT NULL DEFAULT '0',
  `fecha` datetime NOT NULL,
  `titulo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci,
  `file` text COLLATE utf8mb4_unicode_ci,
  `type_receipt_id` int(10) unsigned DEFAULT NULL,
  `sucursal` int(11) DEFAULT NULL,
  `numero` int(11) DEFAULT NULL,
  `fecha_emision` date NOT NULL,
  `fecha_vto` date DEFAULT NULL,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cotizacion` decimal(16,2) NOT NULL DEFAULT '0.00',
  `subtotal` decimal(16,2) NOT NULL DEFAULT '0.00',
  `impuestos` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `forma_de_entrega_id` bigint(20) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned DEFAULT NULL,
  `documento_asoc` text COLLATE utf8mb4_unicode_ci,
  `ppc_receipt_estado_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `comentario_recepcion` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ppc_receipts_type_id_foreign` (`type_id`),
  KEY `ppc_receipts_person_id_foreign` (`person_id`),
  KEY `ppc_receipts_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `ppc_receipts_ppc_type_id_foreign` (`ppc_type_id`),
  KEY `ppc_receipts_ppc_user_id_foreign` (`ppc_user_id`),
  KEY `ppc_receipts_type_receipt_id_foreign` (`type_receipt_id`),
  KEY `ppc_receipts_moneda_id_foreign` (`moneda_id`),
  KEY `ppc_receipts_forma_de_entrega_id_foreign` (`forma_de_entrega_id`),
  KEY `ppc_receipts_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `ppc_receipts_ppc_receipt_estado_id_foreign` (`ppc_receipt_estado_id`),
  CONSTRAINT `ppc_receipts_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `ppc_receipts_forma_de_entrega_id_foreign` FOREIGN KEY (`forma_de_entrega_id`) REFERENCES `forma_de_entrega` (`id`),
  CONSTRAINT `ppc_receipts_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `ppc_receipts_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_receipts_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_receipts_ppc_receipt_estado_id_foreign` FOREIGN KEY (`ppc_receipt_estado_id`) REFERENCES `ppc_receipts_estados` (`id`),
  CONSTRAINT `ppc_receipts_ppc_type_id_foreign` FOREIGN KEY (`ppc_type_id`) REFERENCES `ppc_types` (`id`),
  CONSTRAINT `ppc_receipts_ppc_user_id_foreign` FOREIGN KEY (`ppc_user_id`) REFERENCES `ppc_users` (`id`),
  CONSTRAINT `ppc_receipts_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `types` (`id`),
  CONSTRAINT `ppc_receipts_type_receipt_id_foreign` FOREIGN KEY (`type_receipt_id`) REFERENCES `receipt_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_receipts`
--


--
-- Table structure for table `ppc_receipts_estados`
--

CREATE TABLE `ppc_receipts_estados` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_receipts_estados`
--

INSERT INTO `ppc_receipts_estados` VALUES (1,NULL,'Pendiente',1,NULL,NULL,NULL),(2,NULL,'Rechazado',1,NULL,NULL,NULL),(3,NULL,'Aprobado',1,NULL,NULL,NULL);

--
-- Table structure for table `ppc_receipts_files`
--

CREATE TABLE `ppc_receipts_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `ppc_receipt_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_original` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ppc_receipts_files_ppc_receipt_id_foreign` (`ppc_receipt_id`),
  CONSTRAINT `ppc_receipts_files_ppc_receipt_id_foreign` FOREIGN KEY (`ppc_receipt_id`) REFERENCES `ppc_receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_receipts_files`
--


--
-- Table structure for table `ppc_types`
--

CREATE TABLE `ppc_types` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_types`
--

INSERT INTO `ppc_types` VALUES (1,NULL,'Proveedor',1,NULL,NULL,NULL),(2,NULL,'Cliente',1,NULL,NULL,NULL),(3,NULL,'Ambos',1,NULL,NULL,NULL);

--
-- Table structure for table `ppc_users`
--

CREATE TABLE `ppc_users` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `person_id_ppc_user` int(10) unsigned NOT NULL,
  `ppc_type_id` bigint(20) unsigned NOT NULL,
  `login_user` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `password` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_principal` tinyint(1) NOT NULL DEFAULT '1',
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ppc_users_person_id_foreign` (`person_id`),
  KEY `ppc_users_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `ppc_users_person_id_ppc_user_foreign` (`person_id_ppc_user`),
  KEY `ppc_users_ppc_type_id_foreign` (`ppc_type_id`),
  CONSTRAINT `ppc_users_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_users_person_id_ppc_user_foreign` FOREIGN KEY (`person_id_ppc_user`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_users_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_users_ppc_type_id_foreign` FOREIGN KEY (`ppc_type_id`) REFERENCES `ppc_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_users`
--


--
-- Table structure for table `pre_facturas`
--

CREATE TABLE `pre_facturas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fact_elec_receipt_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL,
  `fecha_facturado` date DEFAULT NULL,
  `neto` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pre_facturas_person_id_foreign` (`person_id`),
  KEY `pre_facturas_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `pre_facturas_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  CONSTRAINT `pre_facturas_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`),
  CONSTRAINT `pre_facturas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `pre_facturas_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pre_facturas`
--


--
-- Table structure for table `pre_facturas_files`
--

CREATE TABLE `pre_facturas_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `pre_factura_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_original` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pre_facturas_files_pre_factura_id_foreign` (`pre_factura_id`),
  CONSTRAINT `pre_facturas_files_pre_factura_id_foreign` FOREIGN KEY (`pre_factura_id`) REFERENCES `pre_facturas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pre_facturas_files`
--


--
-- Table structure for table `pre_facturas_ots`
--

CREATE TABLE `pre_facturas_ots` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `pre_factura_id` bigint(20) unsigned NOT NULL,
  `inv_ot_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pre_facturas_ots_pre_factura_id_foreign` (`pre_factura_id`),
  KEY `pre_facturas_ots_inv_ot_id_foreign` (`inv_ot_id`),
  CONSTRAINT `pre_facturas_ots_inv_ot_id_foreign` FOREIGN KEY (`inv_ot_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `pre_facturas_ots_pre_factura_id_foreign` FOREIGN KEY (`pre_factura_id`) REFERENCES `pre_facturas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pre_facturas_ots`
--


--
-- Table structure for table `presupuesto_config`
--

CREATE TABLE `presupuesto_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `num_inicial` int(10) unsigned NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `presupuesto_config_person_id_foreign` (`person_id`),
  CONSTRAINT `presupuesto_config_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `presupuesto_config`
--


--
-- Table structure for table `presupuestos`
--

CREATE TABLE `presupuestos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL DEFAULT '2019-12-23',
  `punto_venta_id` int(10) unsigned NOT NULL,
  `system_tax_id` int(10) unsigned NOT NULL DEFAULT '7',
  `numero` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_receptor` int(10) unsigned NOT NULL DEFAULT '3',
  `texto` longtext COLLATE utf8mb4_unicode_ci,
  `iva_si_no` tinyint(1) NOT NULL DEFAULT '0',
  `neto` decimal(16,2) NOT NULL DEFAULT '0.00',
  `iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `presupuestos_punto_venta_id_foreign` (`punto_venta_id`),
  KEY `presupuestos_person_id_foreign` (`person_id`),
  KEY `presupuestos_person_id_receptor_foreign` (`person_id_receptor`),
  KEY `presupuestos_system_tax_id_foreign` (`system_tax_id`),
  CONSTRAINT `presupuestos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `presupuestos_person_id_receptor_foreign` FOREIGN KEY (`person_id_receptor`) REFERENCES `persons` (`id`),
  CONSTRAINT `presupuestos_punto_venta_id_foreign` FOREIGN KEY (`punto_venta_id`) REFERENCES `fact_elec_puntos_venta` (`id`),
  CONSTRAINT `presupuestos_system_tax_id_foreign` FOREIGN KEY (`system_tax_id`) REFERENCES `system_taxes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `presupuestos`
--


--
-- Table structure for table `prod_variant_types`
--

CREATE TABLE `prod_variant_types` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `prod_variant_types_person_id_foreign` (`person_id`),
  CONSTRAINT `prod_variant_types_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `prod_variant_types`
--


--
-- Table structure for table `prod_variant_values`
--

CREATE TABLE `prod_variant_values` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `prod_variant_type_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `prod_variant_values_person_id_foreign` (`person_id`),
  KEY `prod_variant_values_prod_variant_type_id_foreign` (`prod_variant_type_id`),
  CONSTRAINT `prod_variant_values_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `prod_variant_values_prod_variant_type_id_foreign` FOREIGN KEY (`prod_variant_type_id`) REFERENCES `prod_variant_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `prod_variant_values`
--


--
-- Table structure for table `prod_variants`
--

CREATE TABLE `prod_variants` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_product_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `prod_variants_person_id_foreign` (`person_id`),
  KEY `prod_variants_inv_product_id_foreign` (`inv_product_id`),
  CONSTRAINT `prod_variants_inv_product_id_foreign` FOREIGN KEY (`inv_product_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `prod_variants_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `prod_variants`
--


--
-- Table structure for table `prod_variants_detail`
--

CREATE TABLE `prod_variants_detail` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `prod_variant_id` bigint(20) unsigned NOT NULL,
  `prod_variant_value_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `prod_variants_detail_prod_variant_id_foreign` (`prod_variant_id`),
  KEY `prod_variants_detail_prod_variant_value_id_foreign` (`prod_variant_value_id`),
  CONSTRAINT `prod_variants_detail_prod_variant_id_foreign` FOREIGN KEY (`prod_variant_id`) REFERENCES `prod_variants` (`id`),
  CONSTRAINT `prod_variants_detail_prod_variant_value_id_foreign` FOREIGN KEY (`prod_variant_value_id`) REFERENCES `prod_variant_values` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `prod_variants_detail`
--


--
-- Table structure for table `querys`
--

CREATE TABLE `querys` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `querys`
--

INSERT INTO `querys` VALUES (1,NULL,'Factura Electronica Masiva Productos',1,'2022-02-01 17:51:12','2022-02-01 17:51:12',NULL);

--
-- Table structure for table `querys_details`
--

CREATE TABLE `querys_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned DEFAULT NULL,
  `query_id` bigint(20) unsigned NOT NULL,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `querys_details_query_id_foreign` (`query_id`),
  KEY `querys_details_person_id_foreign` (`person_id`),
  CONSTRAINT `querys_details_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `querys_details_query_id_foreign` FOREIGN KEY (`query_id`) REFERENCES `querys` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `querys_details`
--


--
-- Table structure for table `queue_proceso_resultado`
--

CREATE TABLE `queue_proceso_resultado` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `queue_proceso_id` int(10) unsigned DEFAULT NULL,
  `resultado` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `queue_proceso_resultado_queue_proceso_id_foreign` (`queue_proceso_id`),
  CONSTRAINT `queue_proceso_resultado_queue_proceso_id_foreign` FOREIGN KEY (`queue_proceso_id`) REFERENCES `queue_procesos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `queue_proceso_resultado`
--


--
-- Table structure for table `queue_procesos`
--

CREATE TABLE `queue_procesos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `queue_procesos`
--

INSERT INTO `queue_procesos` VALUES (1,NULL,'Importar - Excel',NULL,NULL,NULL),(2,NULL,'Importar - Mis Comprobantes',NULL,NULL,NULL),(3,NULL,'Importar - Portal IVA','2022-03-16 00:37:22','2022-03-16 00:37:22',NULL),(4,NULL,'Importar - Archivos PEM F8011','2022-07-10 22:59:00','2022-07-10 22:59:00',NULL);

--
-- Table structure for table `receipt_dc_ordenes`
--

CREATE TABLE `receipt_dc_ordenes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `receipt_id` int(10) unsigned NOT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_id_oc` bigint(20) unsigned NOT NULL,
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `receipt_dc_ordenes_receipt_id_foreign` (`receipt_id`),
  KEY `receipt_dc_ordenes_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `receipt_dc_ordenes_dc_orden_id_oc_foreign` (`dc_orden_id_oc`),
  CONSTRAINT `receipt_dc_ordenes_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `receipt_dc_ordenes_dc_orden_id_oc_foreign` FOREIGN KEY (`dc_orden_id_oc`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `receipt_dc_ordenes_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt_dc_ordenes`
--


--
-- Table structure for table `receipt_taxes`
--

CREATE TABLE `receipt_taxes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `receipt_id` int(10) unsigned NOT NULL,
  `tax_id` int(10) unsigned DEFAULT NULL,
  `amount` decimal(16,2) NOT NULL,
  `tax_amount` decimal(16,2) NOT NULL DEFAULT '0.00',
  `taxable_iibb` int(11) NOT NULL DEFAULT '0',
  `iva_iibb` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `receipt_taxes_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `receipt_taxes_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt_taxes`
--


--
-- Table structure for table `receipt_types`
--

CREATE TABLE `receipt_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `credit` int(11) DEFAULT '0',
  `agroup_iva_module` int(10) unsigned DEFAULT NULL,
  `sell_no_taxabled` int(11) DEFAULT '0',
  `buy_no_taxabled` int(11) DEFAULT '0',
  `iva_condition_id` int(11) DEFAULT NULL,
  `is_fce_pyme` tinyint(1) NOT NULL DEFAULT '0',
  `afip_comprobante_id` int(11) DEFAULT NULL,
  `tipo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `letra` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `facta_electronica` int(10) unsigned NOT NULL DEFAULT '0',
  `is_stock_lpg` tinyint(1) NOT NULL DEFAULT '0',
  `show_from_total` tinyint(1) NOT NULL DEFAULT '0',
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt_types`
--

INSERT INTO `receipt_types` VALUES (1,NULL,NULL,'2019-07-29 22:19:32','Factura A','1',0,1,0,0,2,0,1,'Factura','A',1,0,0,NULL),(2,NULL,NULL,'2019-07-29 22:19:32','Nota de débito A','2',0,1,0,0,2,0,2,'Nota de Débito','A',1,0,0,NULL),(3,NULL,NULL,'2019-07-29 22:19:32','Nota de crédito A','3',1,NULL,0,0,2,0,3,'Nota de Crédito','A',1,0,0,NULL),(4,NULL,NULL,'2025-05-08 09:36:38','Factura B','6',0,2,0,1,2,0,6,'Factura','B',1,0,1,NULL),(5,NULL,NULL,'2025-05-08 09:36:38','Nota de débito B','7',0,2,0,1,2,0,7,'Nota de Débito','B',1,0,1,NULL),(6,NULL,NULL,'2025-05-08 09:36:38','Nota de crédito B','8',1,NULL,0,1,2,0,8,'Nota de Crédito','B',1,0,1,NULL),(7,NULL,NULL,'2019-07-29 22:19:32','Factura C','11',0,0,1,1,1,0,11,'Factura','C',1,0,0,NULL),(8,NULL,NULL,'2019-07-29 22:19:32','Nota de débito C','12',0,0,1,1,1,0,12,'Nota de Débito','C',1,0,0,NULL),(9,NULL,NULL,'2019-07-29 22:19:32','Nota de crédito C','13',1,NULL,1,1,1,0,13,'Nota de Crédito','C',1,0,0,NULL),(10,NULL,NULL,NULL,'RECIBO A','4',0,1,0,0,2,0,4,'RECIBO','A',0,0,0,NULL),(11,NULL,NULL,'2025-05-08 09:36:38','RECIBO B','9',0,2,0,1,2,0,9,'RECIBO','B',0,0,1,NULL),(12,NULL,NULL,NULL,'RECIBO C','15',0,0,1,1,1,0,15,'RECIBO','C',0,0,0,NULL),(13,NULL,NULL,'2020-02-27 02:46:40','Factura E','19',0,0,1,0,2,0,19,'Factura','E',0,0,0,NULL),(14,NULL,NULL,'2020-02-27 02:46:40','Nota de débito E','20',0,0,1,0,2,0,20,'Nota de Débito','E',0,0,0,NULL),(15,NULL,NULL,'2020-02-27 02:46:40','Nota de Crédito E','21',1,NULL,1,0,2,0,21,'Nota de Crédito','E',0,0,0,NULL),(16,NULL,NULL,'2021-09-16 15:45:53','Factura M','51',0,1,0,0,2,0,51,'Factura','M',1,0,0,NULL),(17,NULL,NULL,'2020-02-27 02:46:40','Despacho de Importacion','66',0,NULL,0,0,0,0,66,NULL,NULL,0,0,0,NULL),(18,NULL,NULL,'2021-09-16 15:45:53','Nota de Credito M','53',1,NULL,0,0,2,0,53,'Nota de Crédito','M',1,0,0,NULL),(19,NULL,NULL,'2021-09-16 15:45:53','Nota de Debito M','52',1,1,0,0,2,0,52,'Nota de Débito','M',1,0,0,NULL),(20,NULL,NULL,NULL,'Recibo M','54',0,1,0,0,2,0,54,'RECIBO','M',0,0,0,NULL),(21,NULL,NULL,NULL,'Recibo E',NULL,1,0,1,0,2,0,NULL,'RECIBO','E',0,0,0,NULL),(22,NULL,'2019-05-14 21:22:16','2020-09-25 09:24:50','Liquidacion Primaria de Granos','33',0,1,0,0,2,0,33,'Liquidacion Primaria de Granos','A',0,1,0,NULL),(23,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) A','201',0,1,0,0,2,1,201,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','A',1,0,0,NULL),(24,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) A','202',0,1,0,0,2,1,202,'NOTA DEBITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','A',1,0,0,NULL),(25,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','NOTA DE CREDITO ELECTRÓNICA MiPyMEs (FCE) A','203',1,NULL,0,0,2,1,203,'NOTA CREDITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','A',1,0,0,NULL),(26,NULL,'2019-11-05 19:00:05','2025-05-08 09:36:38','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) B','206',0,2,0,1,2,1,206,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','B',1,0,1,NULL),(27,NULL,'2019-11-05 19:00:05','2025-05-08 09:36:38','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) B','207',0,2,0,1,2,1,207,'NOTA DEBITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','B',1,0,1,NULL),(28,NULL,'2019-11-05 19:00:05','2025-05-08 09:36:38','NOTA DE CREDITO ELECTRÓNICA MiPyMEs (FCE) B','208',1,NULL,0,1,2,1,208,'NOTA CREDITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','B',1,0,1,NULL),(29,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) C','211',0,0,1,1,1,1,211,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','C',1,0,0,NULL),(30,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) C','212',0,0,1,1,1,1,212,'NOTA DEBITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','C',1,0,0,NULL),(31,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','NOTA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) C','213',1,NULL,1,1,1,1,213,'NOTA CREDITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','C',1,0,0,NULL);
INSERT INTO `receipt_types` VALUES (32,NULL,'2020-01-28 01:59:55','2020-09-25 09:24:50','Tique (Informe Diario Z)','83',0,2,0,0,2,0,83,'Cierre Diario Informe Z','Z',0,0,1,NULL),(33,NULL,'2020-02-19 04:48:11','2020-02-19 04:48:11','Comprobantes de Compra de Bienes No Registrables a Consumidores Finales','49',0,1,0,0,2,0,49,'Comprobantes de Compra de Bienes No Registrables','a Consumidores Finales',0,0,0,NULL),(34,NULL,'2020-09-25 09:24:49','2022-08-17 11:21:51','Cuenta de Venta y Líquido Producto A','60',0,1,0,0,2,1,60,'Cuentas de Venta y Liquido Producto A','A',1,0,0,NULL),(35,NULL,'2020-09-25 09:24:49','2025-05-08 09:36:38','Cuenta de Venta y Líquido Producto B','61',0,2,0,1,2,1,61,'Cuentas de Venta y Liquido Producto B','B',1,0,1,NULL),(36,NULL,'2020-09-25 09:24:49','2020-09-25 09:24:50','Liquidaciones A','63',0,1,0,0,2,1,63,'Liquidaciones A','A',1,0,0,NULL),(37,NULL,'2020-09-25 09:24:49','2025-05-08 09:36:38','Liquidaciones B','64',0,2,0,1,2,1,64,'Liquidaciones B','B',1,0,1,NULL),(38,NULL,'2020-09-25 09:24:50','2020-11-19 18:54:03','Tique Factura A','81',0,1,0,0,2,1,81,'Tique Factura','A',0,0,0,NULL),(39,NULL,'2020-09-25 09:24:50','2025-05-08 09:36:38','Tique Factura B','82',0,2,0,1,2,1,82,'Tique Factura','B',0,0,1,NULL),(40,NULL,'2020-09-25 09:24:50','2021-03-23 16:02:24','OTROS COMPROBANTES QUE NO CUMPLEN O ESTÁN EXCEPTUADOS DE LA R.G. 1415 Y SUS MODIF','99',0,1,1,1,1,1,99,'OTROS COMPROBANTES QUE NO CUMPLEN O ESTÁN EXCEPTUADOS DE LA R.G. 1415 Y SUS MODIF ','OTROS',0,0,0,NULL),(41,NULL,'2020-09-25 09:24:50','2020-09-25 09:24:50','Liquidacion de Compra A - Sector Pecuario','183',0,1,0,0,2,0,183,'Liquidacion de Compra','A',0,0,0,NULL),(42,NULL,'2020-09-25 09:24:50','2025-05-08 09:36:38','Liquidacion de Compra B - Sector Pecuario','185',0,2,0,1,2,0,185,'Liquidacion de Compra','B',0,0,1,NULL),(43,NULL,'2020-10-14 12:36:34','2020-11-19 18:54:03','Liquidacion de Venta Directa A - Sector Pecuario','190',0,1,0,0,2,1,190,'Liquidacion de Venta Directa','A',0,0,0,NULL),(44,NULL,'2020-10-14 12:36:34','2025-05-08 09:36:38','Liquidacion de Venta Directa B - Sector Pecuario','191',0,2,0,1,2,1,191,'Liquidacion de Venta Directa','B',0,0,0,NULL),(45,NULL,'2020-11-05 13:06:30','2020-11-19 18:54:03','Liquidacion Secundaria de Granos','331',0,1,0,0,2,1,331,'Liquidacion Secundaria de Granos','LSG',0,0,0,NULL),(46,NULL,'2020-11-05 13:06:30','2020-11-19 18:54:03','Certificado de Deposito','332',0,1,0,0,2,1,332,'Certificado de Deposito','CD',0,0,0,NULL),(47,NULL,'2020-11-05 13:06:30','2020-11-19 18:54:03','Liquidacion de Servicios Publicos Clase A','17',0,1,0,0,2,1,17,'Liquidacion de Servicios Publicos Clase A','LSPCA',0,0,0,NULL),(48,NULL,'2021-03-04 14:30:04','2021-03-04 14:30:04','Liquidacion de Servicios Publicos Clase B','18',0,2,0,1,2,1,18,'Liquidacion de Servicios Publicos Clase B','LSPCA',1,0,0,NULL),(49,NULL,NULL,NULL,'Factura Clase T','195',0,1,0,0,2,0,195,'Factura Clase T','T',0,0,0,NULL),(50,NULL,NULL,NULL,'Nota de Debito Clase T','196',0,1,0,0,2,0,196,'Factura Clase T','T',0,0,0,NULL),(51,NULL,NULL,NULL,'Nota de Credito Clase T','197',1,NULL,0,0,2,0,197,'Factura Clase T','T',0,0,0,NULL),(52,NULL,NULL,'2022-08-17 11:21:51','Cuenta de Venta y Líquido Producto A - Sector Pecuario','180',0,1,0,0,2,0,180,'Cuenta de Venta y Líquido Producto A','A',0,0,0,NULL),(53,NULL,NULL,'2025-05-08 09:36:38','Cuenta de Venta y Líquido Producto B - Sector Pecuario','182',0,2,0,1,2,0,182,'Cuenta de Venta y Líquido Producto B','B',0,0,0,NULL),(54,NULL,NULL,NULL,'Liquidación de Compra A','183',0,1,0,0,2,0,183,'Liquidación de Compra A ','A',0,0,0,NULL),(55,NULL,NULL,'2025-05-08 09:36:38','Liquidación de Compra B','185',0,2,0,1,2,0,185,'Liquidación de Compra B ','B',0,0,0,NULL),(56,NULL,NULL,NULL,'Liquidación de Compra Directa A','186',0,1,0,0,2,0,186,'Liquidación de Compra Directa A','A',0,0,0,NULL),(57,NULL,NULL,'2025-05-08 09:36:38','Liquidación de Compra Directa B','188',0,2,0,1,2,0,188,'Liquidación de Compra Directa B ','B',0,0,0,NULL);
INSERT INTO `receipt_types` VALUES (58,NULL,NULL,NULL,'Liquidación de Compra Directa C','189',0,0,1,1,1,0,189,'Liquidación de Compra Directa C ','C',0,0,0,NULL),(59,NULL,NULL,NULL,'Liquidación de Venta Directa A','190',0,1,0,0,2,0,190,'Liquidación de Venta Directa A','A',0,0,0,NULL),(60,NULL,NULL,'2025-05-08 09:36:38','Liquidación de Venta Directa B','191',0,2,0,1,2,0,191,'Liquidación de Venta Directa B ','B',0,0,0,NULL),(61,NULL,NULL,NULL,'Tique Factura C','109',0,0,0,1,1,0,109,NULL,'C',1,0,0,NULL),(62,NULL,NULL,NULL,'Tique Nota de Débito A','115',0,1,0,0,2,0,115,'Tique Nota de Débito A','A',1,0,0,NULL),(63,NULL,NULL,NULL,'Tique Nota de Crédito C','114',1,0,1,1,1,0,114,'Tique Nota de Crédito C','C',1,0,0,NULL),(64,NULL,NULL,NULL,'Otro Comprobante A que cumple con la RG 1415','39',0,1,0,0,2,0,39,'Otro Comprobante A que cumple con la RG 1415','A',0,0,0,NULL),(65,NULL,NULL,NULL,'Tique Nota de Crédito A','112',1,0,0,0,2,0,112,'Tique Nota de Crédito A','A',0,0,0,NULL),(66,NULL,NULL,'2025-05-08 09:36:38','Tique Nota de Crédito B','113',1,NULL,0,1,2,0,113,'Tique Nota de Crédito B','B',0,0,0,NULL),(67,NULL,NULL,'2025-05-08 09:36:38','Tique Nota de Debito B','116',0,2,0,1,2,0,116,'Tique Nota de Debito B','B',0,0,0,NULL),(68,NULL,NULL,NULL,'Tique Nota de Debito C','117',0,0,1,1,1,0,117,'Tique Nota de Debito C','C',0,0,0,NULL),(69,NULL,NULL,NULL,'Tique Factura M','118',0,1,0,0,2,0,118,'Tique Factura M','M',0,0,0,NULL),(70,NULL,NULL,NULL,'Tique Nota de Credito M','119',1,NULL,0,0,2,0,119,'Tique Nota de Credito M','M',0,0,0,NULL),(71,NULL,NULL,NULL,'Tique Nota de Debito M','120',0,1,0,0,2,0,120,'Tique Nota de Debito M','M',0,0,0,NULL),(72,NULL,NULL,NULL,'Nota Credito Despacho Importacion','6',1,NULL,0,0,2,0,66,NULL,NULL,0,0,0,NULL),(73,NULL,NULL,NULL,'NOTAS DE VENTA AL CONTADO A','5',0,1,0,0,2,0,5,'NOTAS DE VENTA AL CONTADO A','A',0,0,0,NULL),(74,NULL,NULL,NULL,'NOTAS DE VENTA AL CONTADO B','10',0,2,0,0,2,0,10,'NOTAS DE VENTA AL CONTADO B','B',0,0,0,NULL),(75,NULL,NULL,NULL,'NOTAS DE VENTA AL CONTADO C','16',0,0,1,1,1,0,16,'NOTAS DE VENTA AL CONTADO C','C',0,0,0,NULL),(76,NULL,NULL,NULL,'NOTAS DE VENTA AL CONTADO M','55',0,1,0,0,2,0,55,'NOTAS DE VENTA AL CONTADO M','M',0,0,0,NULL),(77,NULL,NULL,NULL,'CUENTAS DE VENTA Y LIQUIDO PRODUCTO M','58',0,1,0,0,2,0,58,'CUENTAS DE VENTA Y LIQUIDO PRODUCTO M','M',0,0,0,NULL);

--
-- Table structure for table `receipts`
--

CREATE TABLE `receipts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `is_no_fiscal` tinyint(1) DEFAULT '0',
  `type_id` int(10) unsigned NOT NULL,
  `type_receipt_id` int(10) unsigned DEFAULT NULL,
  `comprobanteAfip` int(11) DEFAULT NULL,
  `ppc_receipt_id` bigint(20) unsigned DEFAULT NULL,
  `fact_elec_receipt_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_id` int(10) unsigned DEFAULT NULL,
  `period_id` int(10) unsigned NOT NULL,
  `zone_id` int(10) unsigned DEFAULT NULL,
  `plan_cuenta_id` int(10) unsigned DEFAULT NULL,
  `conta_centro_costo_id` bigint(20) unsigned DEFAULT NULL,
  `activity_id` int(10) unsigned DEFAULT NULL,
  `iva_creditos_tipo_id` int(10) unsigned NOT NULL DEFAULT '1',
  `retention_type_id` int(10) unsigned DEFAULT NULL,
  `person_id_owner` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `number` int(8) unsigned zerofill DEFAULT NULL,
  `hasta` int(8) unsigned zerofill DEFAULT NULL,
  `reference` int(11) DEFAULT NULL,
  `receipt_date` date DEFAULT NULL,
  `expiration_date` date DEFAULT NULL,
  `code_ticket` int(4) unsigned zerofill DEFAULT NULL,
  `status_id` int(10) unsigned DEFAULT NULL,
  `tax_account_id` int(10) unsigned DEFAULT NULL,
  `amount` decimal(16,2) NOT NULL,
  `pendiente` decimal(16,2) NOT NULL DEFAULT '0.00',
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cotizacion` decimal(9,2) NOT NULL DEFAULT '1.00',
  `dc_firma_id` bigint(20) unsigned NOT NULL DEFAULT '3',
  `condicion_venta_id` int(10) unsigned DEFAULT NULL,
  `is_pago_adelantado` tinyint(1) DEFAULT NULL,
  `is_garantia` tinyint(1) NOT NULL DEFAULT '0',
  `plazo_de_pago_id` int(10) unsigned DEFAULT NULL,
  `file` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `receipts_type_id_foreign` (`type_id`),
  KEY `receipts_type_receipt_id_foreign` (`type_receipt_id`),
  KEY `receipts_tax_account_id_foreign` (`tax_account_id`),
  KEY `receipts_zone_id_foreign` (`zone_id`),
  KEY `receipts_activity_id_foreign` (`activity_id`),
  KEY `receipts_retention_type_id_foreign` (`retention_type_id`),
  KEY `receipts_status_id_foreign` (`status_id`),
  KEY `receipts_person_id_owner_foreign` (`person_id_owner`),
  KEY `receipts_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `receipts_period_id_foreign` (`period_id`),
  KEY `receipts_plan_cuenta_id_foreign` (`plan_cuenta_id`),
  KEY `receipts_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  KEY `receipts_iva_creditos_tipo_id_foreign` (`iva_creditos_tipo_id`),
  KEY `receipts_conta_centro_costo_id_foreign` (`conta_centro_costo_id`),
  KEY `receipts_moneda_id_foreign` (`moneda_id`),
  KEY `receipts_dc_firma_id_foreign` (`dc_firma_id`),
  KEY `receipts_ppc_receipt_id_foreign` (`ppc_receipt_id`),
  KEY `receipts_cta_cte_tesoreria_id_foreign` (`cta_cte_tesoreria_id`),
  CONSTRAINT `receipts_activity_id_foreign` FOREIGN KEY (`activity_id`) REFERENCES `activities` (`id`),
  CONSTRAINT `receipts_conta_centro_costo_id_foreign` FOREIGN KEY (`conta_centro_costo_id`) REFERENCES `conta_centro_costos` (`id`),
  CONSTRAINT `receipts_cta_cte_tesoreria_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_id`) REFERENCES `cta_cte_tesoreria` (`id`),
  CONSTRAINT `receipts_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `receipts_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`),
  CONSTRAINT `receipts_iva_creditos_tipo_id_foreign` FOREIGN KEY (`iva_creditos_tipo_id`) REFERENCES `iva_creditos_tipos` (`id`),
  CONSTRAINT `receipts_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `receipts_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `receipts_person_id_owner_foreign` FOREIGN KEY (`person_id_owner`) REFERENCES `persons` (`id`),
  CONSTRAINT `receipts_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `receipts_plan_cuenta_id_foreign` FOREIGN KEY (`plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `receipts_ppc_receipt_id_foreign` FOREIGN KEY (`ppc_receipt_id`) REFERENCES `ppc_receipts` (`id`),
  CONSTRAINT `receipts_retention_type_id_foreign` FOREIGN KEY (`retention_type_id`) REFERENCES `retention_types` (`id`),
  CONSTRAINT `receipts_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `status` (`id`),
  CONSTRAINT `receipts_tax_account_id_foreign` FOREIGN KEY (`tax_account_id`) REFERENCES `tax_accounts` (`id`),
  CONSTRAINT `receipts_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `types` (`id`),
  CONSTRAINT `receipts_type_receipt_id_foreign` FOREIGN KEY (`type_receipt_id`) REFERENCES `receipt_types` (`id`),
  CONSTRAINT `receipts_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipts`
--


--
-- Table structure for table `recibo_config`
--

CREATE TABLE `recibo_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `num_inicial` int(10) unsigned NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `recibo_config_person_id_foreign` (`person_id`),
  CONSTRAINT `recibo_config_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `recibo_config`
--


--
-- Table structure for table `recibos`
--

CREATE TABLE `recibos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL DEFAULT '2019-12-13',
  `punto_venta_id` int(10) unsigned NOT NULL,
  `numero` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_receptor` int(10) unsigned NOT NULL DEFAULT '3',
  `condicion_venta_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cond_frente_iva_id` int(10) unsigned NOT NULL DEFAULT '1',
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `en_concepto_de` longtext COLLATE utf8mb4_unicode_ci,
  `ret_ganancias` decimal(16,2) NOT NULL DEFAULT '0.00',
  `ret_iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `ret_iibb` decimal(16,2) NOT NULL DEFAULT '0.00',
  `imp_internos` decimal(16,2) NOT NULL DEFAULT '0.00',
  `imp_municipales` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total_otros_tributos` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `recibos_punto_venta_id_foreign` (`punto_venta_id`),
  KEY `recibos_person_id_foreign` (`person_id`),
  KEY `recibos_person_id_receptor_foreign` (`person_id_receptor`),
  KEY `recibos_condicion_venta_id_foreign` (`condicion_venta_id`),
  KEY `recibos_cond_frente_iva_id_foreign` (`cond_frente_iva_id`),
  CONSTRAINT `recibos_cond_frente_iva_id_foreign` FOREIGN KEY (`cond_frente_iva_id`) REFERENCES `fac_elec_cond_frente_iva` (`id`),
  CONSTRAINT `recibos_condicion_venta_id_foreign` FOREIGN KEY (`condicion_venta_id`) REFERENCES `condiciones_venta` (`id`),
  CONSTRAINT `recibos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `recibos_person_id_receptor_foreign` FOREIGN KEY (`person_id_receptor`) REFERENCES `persons` (`id`),
  CONSTRAINT `recibos_punto_venta_id_foreign` FOREIGN KEY (`punto_venta_id`) REFERENCES `fact_elec_puntos_venta` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `recibos`
--


--
-- Table structure for table `remito_config`
--

CREATE TABLE `remito_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `num_inicial` int(10) unsigned NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `remito_config_person_id_foreign` (`person_id`),
  CONSTRAINT `remito_config_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `remito_config`
--


--
-- Table structure for table `remitos`
--

CREATE TABLE `remitos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL DEFAULT '2020-05-25',
  `punto_venta_id` int(10) unsigned NOT NULL,
  `numero` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_receptor` int(10) unsigned NOT NULL DEFAULT '3',
  `condicion_venta_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cond_frente_iva_id` int(10) unsigned NOT NULL DEFAULT '1',
  `en_concepto_de` longtext COLLATE utf8mb4_unicode_ci,
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `remitos_punto_venta_id_foreign` (`punto_venta_id`),
  KEY `remitos_person_id_foreign` (`person_id`),
  KEY `remitos_person_id_receptor_foreign` (`person_id_receptor`),
  KEY `remitos_condicion_venta_id_foreign` (`condicion_venta_id`),
  KEY `remitos_cond_frente_iva_id_foreign` (`cond_frente_iva_id`),
  CONSTRAINT `remitos_cond_frente_iva_id_foreign` FOREIGN KEY (`cond_frente_iva_id`) REFERENCES `fac_elec_cond_frente_iva` (`id`),
  CONSTRAINT `remitos_condicion_venta_id_foreign` FOREIGN KEY (`condicion_venta_id`) REFERENCES `condiciones_venta` (`id`),
  CONSTRAINT `remitos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `remitos_person_id_receptor_foreign` FOREIGN KEY (`person_id_receptor`) REFERENCES `persons` (`id`),
  CONSTRAINT `remitos_punto_venta_id_foreign` FOREIGN KEY (`punto_venta_id`) REFERENCES `fact_elec_puntos_venta` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `remitos`
--


--
-- Table structure for table `reportes`
--

CREATE TABLE `reportes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `class` int(10) unsigned NOT NULL,
  `class_description` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `data_type` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `reportes_description_unique` (`description`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `reportes`
--

INSERT INTO `reportes` VALUES (1,'Comprobantes',1,'informes','','reportes/informes/comprobantes/comprobantes',NULL,NULL),(3,'Liquidaciones IIBB',1,'informes','','reportes/informes/iibb/iibb',NULL,NULL),(4,'Tablero de Control',3,'tablero','','reportes/tableroControl/index',NULL,NULL),(5,'Liquidaciones IVA',1,'informes','','reportes/informes/iva/iva',NULL,NULL),(6,'Obligaciones Anuales',1,'informes','','reportes/informes/obligaciones_anuales/index','2019-11-29 18:37:49','2019-11-29 18:37:49'),(7,'Estado CUITs',1,'informes','','reportes/informes/control_cuits/index','2019-12-09 00:50:43','2019-12-09 00:50:43');

--
-- Table structure for table `retention_types`
--

CREATE TABLE `retention_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `apply_to` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'iibb',
  `code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `zone_id` int(11) DEFAULT NULL,
  `plan_cuenta_id` int(10) unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `retention_types_plan_cuenta_id_foreign` (`plan_cuenta_id`),
  CONSTRAINT `retention_types_plan_cuenta_id_foreign` FOREIGN KEY (`plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `retention_types`
--

INSERT INTO `retention_types` VALUES (1,NULL,NULL,'Retenciones de Ganancias','ganancias','GAN',NULL,23),(2,NULL,NULL,'Retenciones de SUSS','sus','SUSS',NULL,162),(3,NULL,NULL,'Retenciones de IVA','iva','Ret IVA',NULL,25),(4,NULL,'2020-09-25 09:24:50','Retencion IIBB de Buenos Aires','iibb',NULL,23,251),(5,NULL,'2020-09-25 09:24:50','Retencion IIBB de Capital Federal','iibb',NULL,22,252),(6,NULL,'2020-09-25 09:24:50','Retencion IIBB de Catamarca','iibb',NULL,24,253),(7,NULL,'2020-09-25 09:24:50','Retencion IIBB de Chaco','iibb',NULL,3,254),(8,NULL,'2020-09-25 09:24:50','Retencion IIBB de Chubut','iibb',NULL,4,255),(9,NULL,'2020-09-25 09:24:50','Retencion IIBB de Córdoba','iibb',NULL,1,256),(10,NULL,'2020-09-25 09:24:50','Retencion IIBB de Corrientes','iibb',NULL,2,257),(11,NULL,'2020-09-25 09:24:50','Retencion IIBB de Entre Ríos','iibb',NULL,5,258),(12,NULL,'2020-09-25 09:24:50','Retencion IIBB de Formosa','iibb',NULL,6,259),(13,NULL,'2020-09-25 09:24:50','Retencion IIBB de Jujuy','iibb',NULL,7,260),(14,NULL,'2020-09-25 09:24:50','Retencion IIBB de La Pampa','iibb',NULL,8,261),(15,NULL,'2020-09-25 09:24:50','Retencion IIBB de La Rioja','iibb',NULL,9,262),(16,NULL,'2020-09-25 09:24:50','Retencion IIBB de Mendoza','iibb',NULL,10,263),(17,NULL,'2020-09-25 09:24:50','Retencion IIBB de Misiones','iibb',NULL,11,264),(18,NULL,'2020-09-25 09:24:50','Retencion IIBB de Neuquén','iibb',NULL,12,265),(19,NULL,'2020-09-25 09:24:50','Retencion IIBB de Pascua Lama','iibb',NULL,25,266),(20,NULL,'2020-09-25 09:24:50','Retencion IIBB de Río Negro','iibb',NULL,13,267),(21,NULL,'2020-09-25 09:24:50','Retencion IIBB de Salta','iibb',NULL,14,268),(22,NULL,'2020-09-25 09:24:50','Retencion IIBB de San Juan','iibb',NULL,15,269),(23,NULL,'2020-09-25 09:24:50','Retencion IIBB de San Luis','iibb',NULL,16,270),(24,NULL,'2020-09-25 09:24:50','Retencion IIBB de Santa Cruz','iibb',NULL,17,271),(25,NULL,'2020-09-25 09:24:50','Retencion IIBB de Santa Fe','iibb',NULL,18,272),(26,NULL,'2020-09-25 09:24:50','Retencion IIBB de Santiago del Estero','iibb',NULL,19,273),(27,NULL,'2020-09-25 09:24:50','Retencion IIBB de Tierra del Fuego','iibb',NULL,20,274),(28,NULL,'2020-09-25 09:24:50','Retencion IIBB de Tucuman','iibb',NULL,21,275);

--
-- Table structure for table `retentions`
--

CREATE TABLE `retentions` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `period_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `cta_cte_cliente_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_cliente_detail_id` int(10) unsigned DEFAULT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `retention_type_id` int(10) unsigned NOT NULL,
  `sicore_regimen_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` date NOT NULL DEFAULT '2023-05-30',
  `anio` int(10) unsigned NOT NULL,
  `numero` int(10) unsigned NOT NULL,
  `is_inscripto` tinyint(1) NOT NULL DEFAULT '1',
  `neto_gravado_total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `ret_acum_mes` decimal(16,2) NOT NULL DEFAULT '0.00',
  `monto_no_sujeto_ret` decimal(16,2) NOT NULL DEFAULT '0.00',
  `tasa_aplicable` decimal(16,2) NOT NULL DEFAULT '0.00',
  `neto_sujeto_a_ret` decimal(16,2) NOT NULL DEFAULT '0.00',
  `retencion` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `retentions_person_id_foreign` (`person_id`),
  KEY `retentions_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `retentions_period_id_foreign` (`period_id`),
  KEY `retentions_cta_cte_cliente_id_foreign` (`cta_cte_cliente_id`),
  KEY `retentions_retention_type_id_foreign` (`retention_type_id`),
  KEY `retentions_sicore_regimen_id_foreign` (`sicore_regimen_id`),
  KEY `retentions_cta_cte_cliente_detail_id_foreign` (`cta_cte_cliente_detail_id`),
  CONSTRAINT `retentions_cta_cte_cliente_detail_id_foreign` FOREIGN KEY (`cta_cte_cliente_detail_id`) REFERENCES `cta_cte_cliente_details` (`id`),
  CONSTRAINT `retentions_cta_cte_cliente_id_foreign` FOREIGN KEY (`cta_cte_cliente_id`) REFERENCES `cta_cte_cliente` (`id`),
  CONSTRAINT `retentions_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `retentions_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `retentions_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `retentions_retention_type_id_foreign` FOREIGN KEY (`retention_type_id`) REFERENCES `retention_types` (`id`),
  CONSTRAINT `retentions_sicore_regimen_id_foreign` FOREIGN KEY (`sicore_regimen_id`) REFERENCES `sicore_regimenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `retentions`
--


--
-- Table structure for table `retentions_details`
--

CREATE TABLE `retentions_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `retention_id` bigint(20) unsigned NOT NULL,
  `receipt_id` int(10) unsigned NOT NULL,
  `neto_sujeto_a_ret` decimal(16,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `retentions_details_retention_id_foreign` (`retention_id`),
  KEY `retentions_details_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `retentions_details_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`),
  CONSTRAINT `retentions_details_retention_id_foreign` FOREIGN KEY (`retention_id`) REFERENCES `retentions` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `retentions_details`
--


--
-- Table structure for table `rodados`
--

CREATE TABLE `rodados` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `rodados_marcas_modelo_id` bigint(20) unsigned NOT NULL,
  `rodados_equipo_id` bigint(20) unsigned NOT NULL,
  `rodados_estado_id` bigint(20) unsigned NOT NULL,
  `interno` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `patente` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `chasis` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `motor` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_limitado` tinyint(1) NOT NULL DEFAULT '0',
  `fecha_limitado` date DEFAULT NULL,
  `fecha_vto_vtv` date DEFAULT NULL,
  `fecha_vto_ruta` date DEFAULT NULL,
  `fecha_vto_seguro` date DEFAULT NULL,
  `rodados_seguros_compania_id` bigint(20) unsigned DEFAULT NULL,
  `num_poliza` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `rodados_seguros_cobertura_id` bigint(20) unsigned DEFAULT NULL,
  `num_tag` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_lojack` tinyint(1) NOT NULL DEFAULT '0',
  `rodados_lojack_tecnologia_id` bigint(20) unsigned DEFAULT NULL,
  `is_ypf_gps_instalado` tinyint(1) NOT NULL DEFAULT '0',
  `rodados_ypf_gps_estado_id` bigint(20) unsigned DEFAULT NULL,
  `ypf_ruta_num_tarjeta` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `shell_tag` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_opds_habilitado` tinyint(1) NOT NULL DEFAULT '0',
  `is_ceamse_habilitado` tinyint(1) NOT NULL DEFAULT '0',
  `is_estado_unidad` tinyint(1) NOT NULL DEFAULT '0',
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `is_parametrizado` tinyint(1) NOT NULL DEFAULT '0',
  `fecha_parametrizado` date DEFAULT NULL,
  `anio` int(11) DEFAULT NULL,
  `fecha_alta` date DEFAULT NULL,
  `fecha_baja` date DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_person_id_foreign` (`person_id`),
  KEY `rodados_rodados_marcas_modelo_id_foreign` (`rodados_marcas_modelo_id`),
  KEY `rodados_rodados_equipo_id_foreign` (`rodados_equipo_id`),
  KEY `rodados_rodados_estado_id_foreign` (`rodados_estado_id`),
  KEY `rodados_rodados_seguros_compania_id_foreign` (`rodados_seguros_compania_id`),
  KEY `rodados_rodados_seguros_cobertura_id_foreign` (`rodados_seguros_cobertura_id`),
  KEY `rodados_rodados_lojack_tecnologia_id_foreign` (`rodados_lojack_tecnologia_id`),
  KEY `rodados_rodados_ypf_gps_estado_id_foreign` (`rodados_ypf_gps_estado_id`),
  CONSTRAINT `rodados_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `rodados_rodados_equipo_id_foreign` FOREIGN KEY (`rodados_equipo_id`) REFERENCES `rodados_equipos` (`id`),
  CONSTRAINT `rodados_rodados_estado_id_foreign` FOREIGN KEY (`rodados_estado_id`) REFERENCES `rodados_estados` (`id`),
  CONSTRAINT `rodados_rodados_lojack_tecnologia_id_foreign` FOREIGN KEY (`rodados_lojack_tecnologia_id`) REFERENCES `rodados_lojack_tecnologias` (`id`),
  CONSTRAINT `rodados_rodados_marcas_modelo_id_foreign` FOREIGN KEY (`rodados_marcas_modelo_id`) REFERENCES `rodados_marcas_modelos` (`id`),
  CONSTRAINT `rodados_rodados_seguros_cobertura_id_foreign` FOREIGN KEY (`rodados_seguros_cobertura_id`) REFERENCES `rodados_seguros_coberturas` (`id`),
  CONSTRAINT `rodados_rodados_seguros_compania_id_foreign` FOREIGN KEY (`rodados_seguros_compania_id`) REFERENCES `rodados_seguros_companias` (`id`),
  CONSTRAINT `rodados_rodados_ypf_gps_estado_id_foreign` FOREIGN KEY (`rodados_ypf_gps_estado_id`) REFERENCES `rodados_ypf_gps_estados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados`
--


--
-- Table structure for table `rodados_cargas`
--

CREATE TABLE `rodados_cargas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `rodados_cargas_marca_id` bigint(20) unsigned NOT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `fecha` datetime NOT NULL,
  `tarjeta` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ubicacion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `combustible` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `litros` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `precio_x_litro` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `neto` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_cargas_person_id_foreign` (`person_id`),
  KEY `rodados_cargas_rodado_id_foreign` (`rodado_id`),
  KEY `rodados_cargas_rodados_cargas_marca_id_foreign` (`rodados_cargas_marca_id`),
  CONSTRAINT `rodados_cargas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `rodados_cargas_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`),
  CONSTRAINT `rodados_cargas_rodados_cargas_marca_id_foreign` FOREIGN KEY (`rodados_cargas_marca_id`) REFERENCES `rodados_cargas_marcas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_cargas`
--


--
-- Table structure for table `rodados_cargas_control`
--

CREATE TABLE `rodados_cargas_control` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `carga_control_tope_id` bigint(20) unsigned NOT NULL,
  `acumulado` int(11) NOT NULL DEFAULT '0',
  `ultima_carga` int(11) NOT NULL DEFAULT '0',
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_cargas_control_rodado_id_foreign` (`rodado_id`),
  KEY `rodados_cargas_control_carga_control_tope_id_foreign` (`carga_control_tope_id`),
  CONSTRAINT `rodados_cargas_control_carga_control_tope_id_foreign` FOREIGN KEY (`carga_control_tope_id`) REFERENCES `rodados_cargas_control_topes` (`id`),
  CONSTRAINT `rodados_cargas_control_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_cargas_control`
--


--
-- Table structure for table `rodados_cargas_control_history`
--

CREATE TABLE `rodados_cargas_control_history` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `fecha` date NOT NULL,
  `control` int(11) NOT NULL,
  `acumulado` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_cargas_control_history_rodado_id_foreign` (`rodado_id`),
  CONSTRAINT `rodados_cargas_control_history_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_cargas_control_history`
--


--
-- Table structure for table `rodados_cargas_control_topes`
--

CREATE TABLE `rodados_cargas_control_topes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `control` int(11) NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_cargas_control_topes_person_id_foreign` (`person_id`),
  CONSTRAINT `rodados_cargas_control_topes_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_cargas_control_topes`
--


--
-- Table structure for table `rodados_cargas_marcas`
--

CREATE TABLE `rodados_cargas_marcas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_cargas_marcas_person_id_foreign` (`person_id`),
  CONSTRAINT `rodados_cargas_marcas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_cargas_marcas`
--


--
-- Table structure for table `rodados_equipos`
--

CREATE TABLE `rodados_equipos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `rodados_equipos_descripcion_unique` (`descripcion`),
  KEY `rodados_equipos_person_id_foreign` (`person_id`),
  CONSTRAINT `rodados_equipos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_equipos`
--


--
-- Table structure for table `rodados_estados`
--

CREATE TABLE `rodados_estados` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `rodados_estados_descripcion_unique` (`descripcion`),
  KEY `rodados_estados_person_id_foreign` (`person_id`),
  CONSTRAINT `rodados_estados_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_estados`
--


--
-- Table structure for table `rodados_files`
--

CREATE TABLE `rodados_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_original` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_files_person_id_foreign` (`person_id`),
  KEY `rodados_files_rodado_id_foreign` (`rodado_id`),
  CONSTRAINT `rodados_files_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `rodados_files_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_files`
--


--
-- Table structure for table `rodados_kms`
--

CREATE TABLE `rodados_kms` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `fecha_desde` date NOT NULL,
  `fecha_hasta` date NOT NULL,
  `imei` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `dispositivo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `patente` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tiempo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `numero_viaje` int(11) DEFAULT NULL,
  `kms` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_kms_person_id_foreign` (`person_id`),
  KEY `rodados_kms_rodado_id_foreign` (`rodado_id`),
  CONSTRAINT `rodados_kms_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `rodados_kms_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_kms`
--


--
-- Table structure for table `rodados_lojack_tecnologias`
--

