sql
stringlengths
6
1.05M
<reponame>GabrielGust/dear.io<filename>MySQLScript/BancoDear-io.sql create database deario; use deario; create table Users ( id_user int not null AUTO_INCREMENT primary key, email varchar(33) not null, user_password varchar(25) not null )engine=innodb; create table Notes ( id_note int not null AUTO_INCREMENT primary key, title varchar(50), content varchar(2400) not null, id_user int not null, note_date datetime not null )engine=innodb; alter table Notes add constraint fk_users_notes foreign key (id_user) references Users (id_user) on delete cascade;
ALTER TABLE log MODIFY COLUMN level ENUM( 'critical', 'debug', 'error', 'warning') DEFAULT 'debug';
<gh_stars>10-100 INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_per_cents_value','1'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_per_cents_operation','*'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_shared_order_value','1'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_shared_order_operation','*'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_get_referred_value','2000'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_get_referred_discount_amt','2'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_refer_new_user_value','2500'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_refer_new_user_amt','2'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_admin_refer_user_amt','3'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_make_acount_value','3'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_make_acount_operation','*'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_order_value_over_amount','25'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_order_value_over_value','2'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_order_value_over_operation','*'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_win_cluckbutton_value','3500'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_order_twice_week_value','2'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_order_twice_week_operation','*'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_order_2_days_row_value','4'); INSERT INTO `config` (`id_site`, `key`, `value`) VALUES (NULL,'reward_points_order_2_days_row_operation','*');
alter table user_links alter column created_at set not null; create type topic_action as enum ('topic_added', 'topic_removed'); create table user_link_topics ( id uuid primary key default gen_random_uuid(), user_link_id uuid not null references user_links(id) on delete cascade, action topic_action not null, topic_id uuid not null references topics(id) on delete cascade ); delete from user_links using user_links ul left join links l on ul.link_id = l.id where user_links.id = ul.id and l.id is null; alter table user_links add constraint user_links_link_id_fkey foreign key (link_id) references links(id) on delete cascade;
<reponame>hitachisolutionsamerica/Azure-Solution-Accelerator-to-automate-COVID-19-Vaccination-Proof-and-Test-Verification-Forms<gh_stars>1-10 --SQL Statement to create Users Table CREATE TABLE dbo.Users ( UserID int, FirstName varchar(255), LastName varchar(255), Title varchar(255), Worklocation varchar(255), FormSentFrom varchar(255) ); --SQL Statement to create COVID Test Table CREATE TABLE dbo.Tests ( id varchar(255), UserID int, UserEmail varchar(255), FirstName varchar(255), LastName varchar(255), Worklocation varchar(255), Title varchar(255), TestDate date, TestLocationName varchar(255), TestAddress varchar(255), TestType varchar(255), Certify bit, Signature bit, SignedDate date, UserNotes varchar(255), CreatedDate date, FormSentFrom varchar(255) ); --SQL Statement to create COVID Vaccination Table CREATE TABLE dbo.Vaccination ( id varchar(255), UserEmail varchar(255), UserID int, LastName varchar(255), FirstName varchar(255), MiddleInitial varchar(255), DateOfBirth varchar(255), PatientNumber varchar(255), CDCLogoPresent bit, FirstDoseManufacturer varchar(255), FirstDoseLotNumber varchar(255), FirstDoseDate date, FirstDoseSite varchar(255), SecondDoseManufacturer varchar(255), SecondDoseLotNumber varchar(255), SecondDoseDate date, SecondDoseSite varchar(255), OtherDose1Manufacturer varchar(255), OtherDose1LotNumber varchar(255), OtherDose1Date date, OtherDose1Site varchar(255), OtherDose2Manufacturer varchar(255), OtherDose2LotNumber varchar(255), OtherDose2Date date, OtherDose2Site varchar(255), UserNotes varchar(255), CreatedDate date, FormSentFrom varchar(255) ); --SQL Statement to create calendar Table CREATE TABLE dbo.Calendar ( id int, dt date, y int, m int, d int, ym int, dt_int int, m_name varchar(255), q int );
<reponame>mfooo/wow -- Pit of saron DELETE FROM `script_texts` WHERE `entry` BETWEEN -1658100 AND -1658000; INSERT INTO `script_texts` (`entry`,`content_default`,`content_loc1`,`content_loc2`,`content_loc3`,`content_loc4`,`content_loc5`,`content_loc6`,`content_loc7`,`content_loc8`,`sound`,`type`,`language`,`emote`,`comment`) VALUES -- Garfrost (-1658001,'Tiny creatures under feet, you bring Garfrost something good to eat!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16912,1,0,0,'garfrost SAY_AGGRO'), (-1658002,'Will save for snack. For later.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16913,1,0,0,'garfrost SAY_SLAY_1'), (-1658003,'That one maybe not so good to eat now. Stupid Garfrost! BAD! BAD!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16914,1,0,0,'garfrost SAY_SLAY_2'), (-1658004,'Garfrost hope giant underpants clean. Save boss great shame. For later.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16915,1,0,0,'garfrost SAY_DEATH'), (-1658005,'Axe too weak. Garfrost make better and CRUSH YOU!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16916,1,0,0,'garfrost SAY_PHASE2'), (-1658006,'Garfrost tired of puny mortals. Now your bones will freeze!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16917,1,0,0,'garfrost SAY_PHASE3'), (-1658007,'Another shall take his place. You waste your time.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16752,1,0,0,'Tyrannus SAY_TYRANNUS_DEATH'), -- Krick (-1658010,'Our work must not be interrupted! Ick! Take care of them!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16926,1,0,0,'Krick SAY_AGGRO'), (-1658011,'Ooh...We could probably use these parts!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16927,1,0,0,'Krick SAY_SLAY_1'), (-1658012,'Arms and legs are in short supply...Thanks for your contribution!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16928,1,0,0,'Krick SAY_SLAY_2'), (-1658013,'Enough moving around! Hold still while I blow them all up!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16929,1,0,0,'Krick SAY_BARRAGE_1'), (-1658014,'Krick begins rapidly conjuring explosive mines!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,3,0,0,'Krick SAY_BARRAGE_2'), (-1658015,'Quickly! Poison them all while they''re still close!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16930,1,0,0,'Krick SAY_POISON_NOVA'), (-1658016,'No! That one! That one! Get that one!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16931,1,0,0,'Krick SAY_CHASE_1'), (-1658017,'I''ve changed my mind...go get that one instead!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16932,1,0,0,'Krick SAY_CHASE_2'), (-1658018,'What are you attacking him for? The dangerous one is over there,fool!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16933,1,0,0,'Krick SAY_CHASE_3'), -- Ick (-1658020,'Ick begins to unleash a toxic poison cloud!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,3,0,0,'Ick SAY_ICK_POISON_NOVA'), (-1658021,'Ick is chasing you!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,3,0,0,'Ick SAY_ICK_CHASE_1'), -- Krick OUTRO (-1658030,'Wait! Stop! Don''t kill me, please! I''ll tell you everything!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16934,1,0,0,'Krick SAY_KRICK_OUTRO_1'), (-1658031,'I''m not so naive as to believe your appeal for clemency, but I will listen.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16611,1,0,0,'Jaina SAY_JAINA_OUTRO_2'), (-1658032,'Why should the Banshee Queen spare your miserable life?',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,17033,1,0,0,'Sylvanas SAY_SYLVANAS_OUTRO_2'), (-1658033,'What you seek is in the master''s lair, but you must destroy Tyrannus to gain entry. Within the Halls of Reflection you will find Frostmourne. It... it holds the truth.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16935,1,0,0,'Krick SAY_KRICK_OUTRO_3'), (-1658034,'Frostmourne lies unguarded? Impossible!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16612,1,0,0,'Jaina SAY_JAINA_OUTRO_4'), (-1658035,'Frostmourne? The Lich King is never without his blade! If you are lying to me...',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,17034,1,0,0,'Sylvanas SAY_SYLVANAS_OUTRO_4'), (-1658036,'I swear it is true! Please, don''t kill me!!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16936,1,0,0,'Krick SAY_KRICK_OUTRO_5'), (-1658037,'Worthless gnat! Death is all that awaits you!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16753,1,0,0,'Tyrannus SAY_TYRANNUS_OUTRO_7'), (-1658038,'Urg... no!!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16937,1,0,0,'Krick SAY_KRICK_OUTRO_8'), (-1658039,'Do not think that I shall permit you entry into my master''s sanctum so easily. Pursue me if you dare.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16754,1,0,0,'Tyrannus SAY_TYRANNUS_OUTRO_9'), (-1658040,'What a cruel end. Come, heroes. We must see if the gnome''s story is true. If we can separate Arthas from Frostmourne, we might have a chance at stopping him.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16613,1,0,0,'Jaina SAY_JAINA_OUTRO_10'), (-1658041,'A fitting end for a traitor. Come, we must free the slaves and see what is within the Lich King''s chamber for ourselves.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,17035,1,0,0,'Sylvanas SAY_SYLVANAS_OUTRO_10'), -- Tyrannus (-1658050,'Your pursuit shall be in vain, adventurers, for the Lich King has placed an army of undead at my command! Behold!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16755,1,0,0,'Tyrannus SAY_AMBUSH_1'), (-1658051,'Persistent whelps! You will not reach the entrance of my lord''s lair! Soldiers, destroy them!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16756,1,0,0,'Tyrannus SAY_AMBUSH_2'), (-1658052,'Rimefang! Trap them within the tunnel! Bury them alive!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16757,1,0,0,'Tyrannus SAY_GAUNTLET_START'), (-1658053,'Alas, brave, brave adventurers, your meddling has reached its end. Do you hear the clatter of bone and steel coming up the tunnel behind you? That is the sound of your impending demise.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16758,1,0,0,'Tyrannus SAY_INTRO_1'), (-1658054,'Ha, such an amusing gesture from the rabble. When I have finished with you, my master''s blade will feast upon your souls. Die!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16759,1,0,0,'Tyrannus SAY_INTRO_2'), (-1658055,'I shall not fail The Lich King! Come and meet your end!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16760,1,0,0,'Tyrannus SAY_AGGRO'), (-1658056,'Such a shameful display... You are better off dead!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16761,1,0,0,'Tyrannus SAY_SLAY_1'), (-1658057,'Perhaps you should have stayed in the mountains!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16762,1,0,0,'Tyrannus SAY_SLAY_2'), (-1658058,'Impossible! Rimefang... Warn...',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16763,1,0,0,'Tyrannus SAY_DEATH'), (-1658059,'Rimefang, destroy this fool!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16764,1,0,0,'Tyrannus SAY_MARK_RIMEFANG_1'), (-1658060,'The frostwyrm Rimefang gazes at $N and readies an icy attack!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,3,0,0,'Tyrannus SAY_MARK_RIMEFANG_2'), (-1658061,'Power... overwhelming!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16765,1,0,0,'Tyrannus SAY_DARK_MIGHT_1'), (-1658062,'Scourgelord Tyrannus roars and swells with dark might!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,3,0,0,'Tyrannus SAY_DARK_MIGHT_2'), (-1658063,'Brave champions, we owe you our lives, our freedom... Though it be a tiny gesture in the face of this enormous debt, I pledge that from this day forth, all will know of your deeds, and the blazing path of light you cut through the shadow of this dark citadel.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,0,0,'Gorkun SAY_GORKUN_OUTRO_1'), (-1658064,'This day will stand as a testament not only to your valor, but to the fact that no foe, not even the Lich King himself, can stand when Alliance and Horde set aside their differences and ---',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,0,0,'Gorkun SAY_GORKUN_OUTRO_2'), (-1658065,'Heroes, to me!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16614,1,0,0,'Jaina SAY_JAYNA_OUTRO_3'), (-1658066,'Take cover behind me! Quickly!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,17037,1,0,0,'Sylvanas SAY_SYLVANAS_OUTRO_3'), (-1658067,'The Frost Queen is gone. We must keep moving - our objective is near.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16615,0,0,0,'Jaina SAY_JAYNA_OUTRO_4'), (-1658068,'I thought he''d never shut up. At last, Sindragosa silenced that long-winded fool. To the Halls of Reflection, champions! Our objective is near... I can sense it.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,17036,0,0,0,'Sylvanas SAY_SYLVANAS_OUTRO_4'), (-1658069,'I... I could not save them... Damn you, Arthas! DAMN YOU!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16616,0,0,0,'Jaina SAY_JAYNA_OUTRO_5'); -- Forge of souls DELETE FROM `script_texts` WHERE `entry` BETWEEN -1632099 AND -1632000; INSERT INTO `script_texts` (`entry`,`content_default`,`content_loc1`,`content_loc2`,`content_loc3`,`content_loc4`,`content_loc5`,`content_loc6`,`content_loc7`,`content_loc8`,`sound`,`type`,`language`,`emote`,`comment`) VALUES -- Bronjham (-1632001,'Finally...a captive audience!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Наконец то! Гости пожаловали!',16595,6,0,0,'Bronjham SAY_AGGRO'), (-1632002,'Fodder for the engine!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Скормлю тебя машине!',16596,6,0,0,'Bronjham SAY_SLAY_1'), (-1632003,'Another soul to strengthen the host!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Еще одна душа обогатит вместилище!',16597,6,0,0,'Bronjham SAY_SLAY_2'), (-1632004,'Oooooo...',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Аааааааааааа...',16598,6,0,0,'Bronjham SAY_DEATH'), (-1632005,'The vortex of the harvested calls to you!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Вихрь погубленных душ, взываю к вам!',16599,3,0,0,'Bronjham SAY_SOUL_STORM'), (-1632006,'I will sever the soul from your body!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Я вырву душу из твоего тела!',16600,6,0,0,'Bronjham SAY_CORRUPT_SOUL'), -- Devourer of Souls (-1632010,'You dare look upon the host of souls? I SHALL DEVOUR YOU WHOLE!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Вы осмелились взглянуть на вместилище душ! Я сожру вас заживо!',16884,1,0,0,'Devoureur SAY_FACE_ANGER_AGGRO'), (-1632011,'You dare look upon the host of souls? I SHALL DEVOUR YOU WHOLE!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16890,1,0,0,'Devoureur SAY_FACE_DESIRE_AGGRO'), (-1632012,'Damnation!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Проклинаю тебя!',16885,1,0,0,'Devoureur SAY_FACE_ANGER_SLAY_1'), (-1632013,'Damnation!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16896,1,0,0,'Devoureur SAY_FACE_SORROW_SLAY_1'), (-1632014,'Damnation!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16891,1,0,0,'Devoureur SAY_FACE_DESIRE_SLAY_1'), (-1632015,'Doomed for eternity!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Обрекаю тебя на вечные муки!',16886,1,0,0,'Devoureur SAY_FACE_ANGER_SLAY_2'), (-1632016,'Doomed for eternity!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16897,1,0,0,'Devoureur SAY_FACE_SORROW_SLAY_2'), (-1632017,'Doomed for eternity!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16892,1,0,0,'Devoureur SAY_FACE_DESIRE_SLAY_2'), (-1632018,'The swell of souls will not be abated! You only delay the inevitable!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Вместилише душ не ослабнет! Вы лишь пытаетесь отсрочить неизбежное.',16887,1,0,0,'Devoureur SAY_FACE_ANGER_DEATH'), (-1632019,'The swell of souls will not be abated! You only delay the inevitable!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16898,1,0,0,'Devoureur SAY_FACE_SORROW_DEATH'), (-1632020,'The swell of souls will not be abated! You only delay the inevitable!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16893,1,0,0,'Devoureur SAY_FACE_DESIRE_DEATH'), (-1632021,'Devourer of Souls begins to cast Mirrored Soul!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,3,0,0,'Devoureur EMOTE_MIRRORED_SOUL'), (-1632022,'Devourer of Souls begins to Unleash Souls!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,3,0,0,'Devoureur EMOTE_UNLEASH_SOUL'), (-1632023,'SUFFERING! ANGUISH! CHAOS! RISE AND FEED!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Страдание, мучение, хаос! Восстаньте и пируйте!',16888,1,0,0,'Devoureur SAY_FACE_ANGER_UNLEASH_SOUL'), (-1632024,'SUFFERING! ANGUISH! CHAOS! RISE AND FEED!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16899,1,0,0,'Devoureur SAY_FACE_SORROW_UNLEASH_SOUL'), (-1632025,'SUFFERING! ANGUISH! CHAOS! RISE AND FEED!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16894,1,0,0,'Devoureur SAY_FACE_DESIRE_UNLEASH_SOUL'), (-1632026,'Devourer of Souls begins to cast Wailing Souls!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,3,0,0,'Devoureur EMOTE_WAILING_SOUL'), (-1632027,'Stare into the abyss, and see your end!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Вглядитесь в бездну, и узрите свою смерть!',16889,1,0,0,'Devoureur SAY_FACE_ANGER_WAILING_SOUL'), (-1632028,'Stare into the abyss, and see your end!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16895,1,0,0,'Devoureur SAY_FACE_DESIRE_WAILING_SOUL'), (-1632029,'Excellent work, champions! We shall set up our base camp in these chambers. My mages will get the Scourge transport device working shortly. Step inside it when you''re ready for your next mission. I will meet you on the other side.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Вы справились. Мы разобьем лагерь в этих покоях. Вскоре мои маги заставят портал плети работать! Войдите в него, когда будете готовы к следующему заданию. Я присоеденусь к вам чуть позже.',16625,1,0,0,'Jaina SAY_JAINA_OUTRO'), (-1632030,'Excellent work, champions! We shall set up our base camp in these chambers. My mages will get the Scourge transport device working shortly. Step inside when you are ready for your next mission. I will meet you on the other side.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Превосходно! Мы разобьем лагерь в этих покоях! Вскоре мои маги заставят портал плети работать, войдите в него когда будете готовы к следующему заданию! Я присоединюсь к вам позже.',17044,1,0,0,'Sylvanas SAY_SYLVANAS_OUTRO'), -- Jaina (-1632040,'Thank the light for seeing you here safely. We have much work to do if we are to defeat the Lich King and put an end to the Scourge.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Слава свету! Вы целы и невредимы нам предстоит многое сделать, если мы хотим покончить с королем личем и плетью.',16617,0,0,0,'Jaina SAY_INTRO_1'), (-1632041,'Our allies within the Argent Crusade and the Knights of the Ebon Blade have broken through the front gate of Icecrown and are attempting to establish a foothold within the Citadel.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Серебряный Авангард и рыцари черного клинка прорвались через главные ворота и пытаются укрепить свои позиции в цитадели!',16618,0,0,0,'Jaina SAY_INTRO_2'), (-1632042,'Their success hinges upon what we discover in these cursed halls. Although our mission is a wrought with peril, we must persevere!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Их успех зависит от того что мы найдем этих ужасных залах. Пусть наша миссия опасна, но мы должны выстоять.',16619,0,0,0,'Jaina SAY_INTRO_3'), (-1632043,'With the attention of the Lich King drawn toward the front gate, we will be working our way through the side in search of information that will enable us to defeat the Scourge - once and for all.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Пока король лич отвлекся на главные ворота, мы проникнем внутрь другим путем и постараемся узнать как можно покончить с плетью раз и навсегда.',16620,0,0,0,'Jaina SAY_INTRO_4'), (-1632044,'King Varian''s SI7 agents have gathered information about a private sanctum of the Lich King''s deep within a place called the Halls of Reflection.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Разведчики SI7 отправленные Варианом сообщают что покои короля находятся в глубине дворца! Это место называется Залами отражений.',16621,0,0,0,'Jaina SAY_INTRO_5'), (-1632045,'We will carve a path through this wretched place and find a way to enter the Halls of Reflection. I sense powerful magic hidden away within those walls... Magic that could be the key to destroy the Scourge.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Мы проложим себе путь сквозь это проклятое место и найдем вход в залы отражений. Я чувствую что в них сокрыта могушественная магия, которая поможет нам сокрушить плеть!',16622,0,0,0,'Jaina SAY_INTRO_6'), (-1632046,'Your first mission is to destroy the machines of death within this malevolent engine of souls, and clear a path for our soldiers.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Ваша первая задача разрушить машины смерти в этом механизме душ, это откроет путь нашим солдатам.',16623,0,0,0,'Jaina SAY_INTRO_7'), (-1632047,'Make haste, champions! I will prepare the troops to fall in behind you.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Спешите герои, я прикажу солдатам следовать за вами!',16624,0,0,0,'Jaina SAY_INTRO_8'), -- Sylvanas (-1632050,'The Argent Crusade and the Knights of the Ebon Blade have assaulted the gates of Icecrown Citadel and are preparing for a massive attack upon the Scourge. Our missition is a bit more subtle, but equally as important.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Серебряный Авангард и рыцари черного клинка штурмуют ворота цитадели ледяной короны! И готовятся нанести решаюший удар! Мы будем действовать незаметно, но не менее эффективно.',17038,0,0,0,'Sylvanas SAY_INTRO_1'), (-1632051,'With the attention of the Lich King turned towards the front gate, we''ll be working our way through the side in search of information that will enable us to defeat the Lich King - once and for all.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Пока Король-Лич отвлекся мы проникнем внутрь другим путем и постараемся понять как можно покончить с ним раз и навсегда.',17039,0,0,0,'Sylvanas SAY_INTRO_2'), (-1632052,'Our scouts have reported that the Lich King has a private chamber, outside of the Frozen Throne, deep within a place called the Halls of Reflection. That is our target, champions.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Наши разведчики сообщили что покои короля лича находятся в глубине дворца, недалеко от ледяного трона. Это место называется залами отражений, туда и лежит наш путь.',17040,0,0,0,'Sylvanas SAY_INTRO_3'), (-1632053,'We will cut a swath of destruction through this cursed place and find a way to enter the Halls of Reflection. If there is anything of value to be found here, it will be found in the Halls.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Мы проложим себе путь сквозь это проклетое место и найдем и найдем вход в залы отражений! Если в цитадели и есть что то достойное внимания оно ждет нас именно там.',17041,0,0,0,'Sylvanas SAY_INTRO_4'), (-1632054,'Your first mission is to destroy the machines of death within this wretched engine of souls, and clear a path for our soldiers.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Вашей первой задачей будет разрушение машин смерти в этом гнусном механизме душ, это откроет путь к нашим солдатам',17042,0,0,0,'Sylvanas SAY_INTRO_5'), (-1632055,'The Dark Lady watches over you. Make haste!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Темная госпожа будет наблюдать за вами, спешите!',17043,0,0,0,'Sylvanas SAY_INTRO_6'); -- Halls of reflection (from MaxXx2021 aka Mioka) DELETE FROM `script_texts` WHERE `entry` BETWEEN -1594540 AND -1594430; INSERT INTO `script_texts` (`entry`,`content_default`,`content_loc8`,`sound`,`type`,`language`,`emote`,`comment`) VALUES # SCENE - Hall Of Reflection (Intro) - PreUther (-1594433, 'The chill of this place freezes the marrow of my bones!', 'Как же тут холодно... Кровь стынет в жилах.', 16631,0,0,1, '67234'), (-1594434, 'I... I don\'t believe it! Frostmourne stands before us, unguarded! Just as the Gnome claimed. Come, heroes!', 'Я... Я не верю своим глазам. Ледяная скорбь перед нами без всякой охраны! Как и говорил гном. Вперед герои!', 17049,0,0,1, '67234'), (-1594435, 'What is that? Up ahead! Could it be ... ? Heroes at my side!', 'Что это там впереди? Неужели? Скорее герои!', 16632,1,0,1, '67234'), (-1594436, 'Frostmourne ... The blade that destroyed our kingdom ...', 'Ледяная Скорбь, клинок, разрушивший наше королевство...', 16633,1,0,1, '67234'), (-1594437, 'Standing this close to the blade that ended my life... The pain... It is renewed.', 'Боль снова захлестывает меня, когда я так близко вижу меч, отнявший у меня жизнь.', 17050,0,0,1, '67234'), (-1594438, 'Stand back! Touch that blade and your soul will be scarred for all eternity! I must attempt to commune with the spirits locked away within Frostmourne. Give me space, back up please!', 'Отойдите. Тот кто коснется этого клинка обречет себя на вечные муки. Я попытаюсь заговорить с душами заключенными в Ледяной скорби. Расступитесь... Чуть назад! Прошу.', 16634,1,0,1, '67234'), (-1594439, 'I dare not touch it. Stand back! Stand back! As I attempt to commune with the blade. Perhaps our salvation lies within.', 'Я не смею его коснуться. Назад! Отступите! Я попробую установить связь с мечом. Возможно, спасение находится внутри!', 17051,1,0,1, '67234'), # SCENE - Hall Of Reflection (Intro) - UtherDialog (-1594440, 'Jaina! Could it truly be you?', 'Джайна? Неужели это ты?', 16666,0,0,1, '67234'), (-1594441, 'Careful, girl. I\'ve heard talk of that cursed blade saving us before. Look around you and see what has been born of Frostmourne.', 'Осторожней девочка! Однажды мне уже говорили, что этот проклятый меч может нас спасти. Посмотри вокруг, и ты увидишь, что из этого вышло.', 16659,0,0,1, '67234'), (-1594442, 'Uther! Dear Uther! I... I\'m so sorry.', 'Утер? Милый Утер! Мне... Мне так жаль.', 16635,0,0,1, '67234'), (-1594443, 'Uther...Uther the Lightbringer. How...', 'Утер? Утер Светоносный? Как...', 17052,0,0,1, '67234'), (-1594444, 'Jaina, you haven\'t much time. The Lich King sees what the sword sees. He will be here shortly.', 'Джайна, у вас мало времени. Король - Лич видит все что видит Ледяная Скорбь. Вскоре он будет здесь.', 16667,0,0,1, '67234'), (-1594445, 'You haven\'t much time. The Lich King sees what the sword sees. He will be here shortly.', 'У вас мало времени. Король - Лич видит все что видит Ледяная Скорбь. Вскоре он будет здесь.', 16660,0,0,1, '67234'), (-1594446, 'Arthas is here? Maybe I...', 'Артас здесь? Может я...', 16636,0,0,1, '67234'), (-1594447, 'The Lich King is here? Then my destiny shall be fulfilled today!', 'Король - Лич здесь? Значит моя судьба решится сегодня!', 17053,1,0,1, '67234'), (-1594448, 'No, girl. Arthas is not here. Arthas is merely a presence within the Lich King\'s mind. A dwindling presence...', 'Нет девочка. Артаса здесь нет. Артас лишь тень, мелькающая в сознании Короля - Лича. Смутная тень.', 16668,0,0,1, '67234'), (-1594449, 'You cannot defeat the Lich King. Not here. You would be a fool to try. He will kill those who follow you and raise them as powerful servants of the Scourge. But for you, Sylvanas, his reward for you would be worse than the last.', 'Вам не победить Короля - Лича. Покрайней мере не здесь. Глупо и пытаться. Он убьет твоих соратников и воскресит их как воинов плети. Но что до тебя Сильвана, он готовит тебе участь еще страшнее, чем в прошлый раз.', 16661,0,0,1, '67234'), (-1594450, 'But Uther, if there\'s any hope of reaching Arthas. I... I must try.', 'Но если есть малейшая надежда вернуть Артаса... Я должна попытаться!', 16637,0,0,1, '67234'), (-1594451, 'There must be a way...', 'Должен быть способ!', 17054,0,0,1, '67234'), (-1594452, 'Jaina, listen to me. You must destroy the Lich King. You cannot reason with him. He will kill you and your allies and raise you all as powerful soldiers of the Scourge.', 'Джайна послушай меня. Вам нужно уничтожить Короля - Лича. С ним нельзя договориться. Он убьет вас всех и превратит в могущественных воинов Плети.', 16669,0,0,1, '67234'), (-1594453, 'Perhaps, but know this: there must always be a Lich King. Even if you were to strike down Arthas, another would have to take his place, for without the control of the Lich King, the Scourge would wash over this world like locusts, destroying all that they touched.', 'Возможно... Но знай! Король - Лич должен быть всегда. Даже если вы убьете Артаса кто то обязан будет занять его место. Лишившись правителя Плеть налетит на мир как стая саранчи и уничтожит все на своем пути.', 16662,0,0,1, '67234'), (-1594454, 'Tell me how, Uther? How do I destroy my prince? My...', 'Но как Утер? Как мне убить моего принца, моего...', 16638,0,0,1, '67234'), (-1594455, 'Who could bear such a burden?', 'Кому по силам такое бремя?', 17055,0,0,1, '67234'), (-1594456, 'Snap out of it, girl. You must destroy the Lich King at the place where he merged with Ner\'zhul - atop the spire, at the Frozen Throne. It is the only way.', 'Забудь об этом девочка. Короля - Лича нужно уничтожить на том месте, где он слился с Нерзулом. На самой вершине, у Ледяного Трона!', 16670,0,0,1, '67234'), (-1594457, 'I do not know, Banshee Queen. I suspect that the piece of Arthas that might be left inside the Lich King is all that holds the Scourge from annihilating Azeroth.', 'Не знаю, <NAME>... Если бы не Артас, который все еще является частью Короля - Лича, Плеть давно бы уже уничтожила Азерот.', 16663,0,0,1, '67234'), (-1594458, 'You\'re right, Uther. Forgive me. I... I don\'t know what got a hold of me. We will deliver this information to the King and the knights that battle the Scourge within Icecrown Citadel.', 'Ты прав Утер, прости меня... Я не знаю что на меня нашло. Мы передадим твои слова Королю и рыцарям, которые сражаются с Плетью в Цитадели Ледяной Короны.', 16639,0,0,1, '67234'), (-1594459, 'There is... something else that you should know about the Lich King. Control over the Scourge must never be lost. Even if you were to strike down the Lich King, another would have to take his place. For without the control of its master, the Scourge would run rampant across the world - destroying all living things.', 'Тебе нужно знать еще кое что о Короле - Личе. Плеть не должна выйти из под контроля. Даже если вы убьете Короля - Лича, кто-то должен будет занять его место. Без Короля Плеть налетит на мир как стая саранчи и уничтожит все живое.', 16671,0,0,1, '67234'), (-1594460, 'Alas, the only way to defeat the Lich King is to destroy him at the place he was created.', 'Увы единственый способ одолеть Короля - Лича - это убить его там где он был порожден.', 16664,0,0,1, '67234'), (-1594461, 'Who could bear such a burden?', 'Кому по силам такое бремя?', 16640,0,0,1, '67234'), (-1594462, 'The Frozen Throne...', 'Ледяной Трон!', 17056,0,0,1, '67234'), (-1594463, 'A grand sacrifice by a noble soul...', 'Великая жертва, благородной души.', 16672,0,0,1, '67234'), (-1594464, 'I do not know, Jaina. I suspect that the piece of Arthas that might be left inside the Lich King is all that holds the Scourge from annihilating Azeroth.', 'Не знаю Джайна... мне кажется если бы не Артас, который все еще является частью Короля - Лича, Плеть давно бы уже уничтожила Азерот.', 16673,0,0,1, '67234'), (-1594465, 'Then maybe there is still hope...', 'Но может еще есть надежда?', 16641,0,0,1, '67234'), (-1594466, 'No, Jaina! ARRRRRRGHHHH... He... He is coming. You... You must...', 'Нет Джайна... Эээээ... Он... Он приближается... Вы... Вы должны...', 16674,1,0,1, '67234'), (-1594467, 'Aye. ARRRRRRGHHHH... He... He is coming. You... You must...', 'Да... Эээээ... Он... Он приближается... Вы... Вы должны...', 16665,1,0,1, '67234'), (-1594468, 'SILENCE, PALADIN!', 'Замолчи, паладин.', 17225,1,0,0, '67234'), (-1594469, 'So you wish to commune with the dead? You shall have your wish.', 'Так ты хочешь поговорить с мертвыми? Нет ничего проще!', 17226,1,0,0, '67234'), (-1594470, '<NAME>. Bring their corpses to my chamber when you are through.', '<NAME>, когда закончите, принесите их тела в мои покои.', 17227,0,0,0, '67234'), (-1594471, 'You won\'t deny me this, Arthas! I must know... I must find out...', 'Ты от меня не отмахнешься Артас. Я должна понять, я должна знать.', 16642,1,0,1, '67234'), (-1594472, 'You will not escape me that easily, Arthas! I will have my vengeance!', 'Ты так просто от меня не уйдешь Артас. Я отомщу тебе!', 17057,1,0,1, '67234'), (-1594473, '<need translate>', 'Глупая девчонка! Тот кого ты ищещь давно убит! Теперь он лишь призрак, слабый отзвук в моем сознании!', 17229,1,0,0, '67234'), (-1594474, '<need translate>', 'Я не повторю прежней ошибки, Сильвана. На этот раз тебе не спастись. Ты не оправдала моего доверия и теперь тебя ждет только забвение!', 17228,1,0,0, '67234'), (-1594475, 'As you wish, my lord.', 'Как пожелаете, мой господин!', 16717,1,0,0, '67234'), (-1594476, 'As you wish, my lord.', 'Как пожелаете, мой господин!', 16741,1,0,0, '67234'), # SCENE - Hall Of Reflection (Extro) - PreEscape (-1594477, 'Your allies have arrived, Jaina, just as you promised. You will all become powerful agents of the Scourge.', 'Твои союзники прибыли, Джайна! Как ты и обещала... Ха-ха-ха-ха... Все вы станете могучими солдатами Плети...', 17212,1,0,0, '67234'), (-1594478, 'I will not make the same mistake again, Sylvanas. This time there will be no escape. You will all serve me in death!', 'Я не повторю прежней ошибки, Сильвана! На этот раз тебе не спастись. Вы все будите служить мне после смерти...', 17213,1,0,0, '67234'), (-1594479, 'He is too powerful, we must leave this place at once! My magic will hold him in place for only a short time! Come quickly, heroes!', 'Он слишком силен. Мы должны выбраться от сюда как можно скорее. Моя магия задержит его ненадолго, быстрее герои...', 16644,0,0,1, '67234'), (-1594480, 'He\'s too powerful! Heroes, quickly, come to me! We must leave this place immediately! I will do what I can do hold him in place while we flee.', 'Он слишком силен. Герои скорее, за мной. Мы должны выбраться отсюда немедленно. Я постараюсь его задержать, пока мы будем убегать.', 17058,0,0,1, '67234'), # SCENE - Hall Of Reflection (Extro) - Escape (-1594481, 'Death\'s cold embrace awaits.', 'Смерть распростерла ледяные обьятия!', 17221,1,0,0, '67234'), (-1594482, 'Rise minions, do not left them us!', 'Восстаньте прислужники, не дайте им сбежать!', 17216,1,0,0, '67234'), (-1594483, 'Minions sees them. Bring their corpses back to me!', 'Схватите их! Принесите мне их тела!', 17222,1,0,0, '67234'), (-1594484, 'No...', 'Надежды нет!', 17214,1,0,0, '67234'), (-1594485, 'All is lost!', 'Смирись с судьбой.', 17215,1,0,0, '67234'), (-1594486, 'There is no escape!', 'Бежать некуда!', 17217,1,0,0, '67234'), (-1594487, 'I will destroy this barrier. You must hold the undead back!', 'Я разрушу эту преграду, а вы удерживайте нежить на расстоянии!', 16607,1,0,0, '67234'), (-1594488, 'No wall can hold the Banshee Queen! Keep the undead at bay, heroes! I will tear this barrier down!', 'Никакие стены не удержат Королеву Баньши. Держите нежить на расстоянии, я сокрушу эту преграду.', 17029,1,0,0, '67234'), (-1594489, 'Another ice wall! Keep the undead from interrupting my incantation so that I may bring this wall down!', 'Опять ледяная стена... Я разобью ее, только не дайте нежити прервать мои заклинания...', 16608,1,0,0, '67234'), (-1594490, 'Another barrier? Stand strong, champions! I will bring the wall down!', 'Еще одна преграда. Держитесь герои! Я разрушу эту стену!', 17030,1,0,0, '67234'), (-1594491, 'Succumb to the chill of the grave.', 'Покоритесь Леденящей смерти!', 17218,1,0,0, '67234'), (-1594492, 'Another dead end.', 'Вы в ловушке!', 17219,1,0,0, '67234'), (-1594493, 'How long can you fight it?', 'Как долго вы сможете сопротивляться?', 17220,1,0,0, '67234'), (-1594494, '<need translate>', 'Он с нами играет. Я покажу ему что бывает когда лед встречается со огнем!', 16609,0,0,0, '67234'), (-1594495, 'Your barriers can\'t hold us back much longer, monster. I will shatter them all!', 'Твои преграды больше не задержат нас, чудовище. Я смету их с пути!', 16610,1,0,0, '67234'), (-1594496, 'I grow tired of these games, Arthas! Your walls can\'t stop me!', 'Я устала от этих игр Артас. Твои стены не остановят меня!', 17031,1,0,0, '67234'), (-1594497, 'You won\'t impede our escape, fiend. Keep the undead off me while I bring this barrier down!', 'Ты не помешаешь нам уйти, монстр. Сдерживайте нежить, а я уничтожу эту преграду.', 17032,1,0,0, '67234'), (-1594498, 'There\'s an opening up ahead. GO NOW!', 'Я вижу выход, скорее!', 16645,1,0,0, '67234'), (-1594499, 'We\'re almost there... Don\'t give up!', 'Мы почти выбрались, не сдавайтесь!', 16646,1,0,0, '67234'), (-1594500, 'There\'s an opening up ahead. GO NOW!', 'Я вижу выход, скорее!', 17059,1,0,0, '67234'), (-1594501, 'We\'re almost there! Don\'t give up!', 'Мы почти выбрались, не сдавайтесь!', 17060,1,0,0, '67234'), (-1594502, 'It... It\'s a dead end. We have no choice but to fight. Steel yourself heroes, for this is our last stand!', 'Больше некуда бежать. Теперь нам придется сражаться. Это наша последняя битва!', 16647,1,0,0, '67234'), (-1594503, 'BLASTED DEAD END! So this is how it ends. Prepare yourselves, heroes, for today we make our final stand!', 'Проклятый тупик, значит все закончится здесь. Готовьтесь герои, это наша последняя битва.', 17061,1,0,0, '67234'), (-1594504, 'Nowhere to run! You\'re mine now...', 'Ха-ха-ха... Бежать некуда. Теперь вы мои!', 17223,1,0,0, '67234'), (-1594505, 'Soldiers of Lordaeron, rise to meet your master\'s call!', '<NAME>, восстаньте по зову Господина!', 16714,1,0,0, '67234'), (-1594506, 'The master surveyed his kingdom and found it... lacking. His judgement was swift and without mercy. Death to all!', 'Господин осмотрел свое королевство и признал его негодным! Его суд был быстрым и суровым - предать всех смерти!', 16738,1,0,0, '67234'), #Falric (-1594507, 'Men, women and children... None were spared the master\'s wrath. Your death will be no different.', 'Мужчины, Женщины и дети... Никто не избежал гнева господина. Вы разделите их участь!', 16710,1,0,0, '67234'), (-1594508, 'Marwyn, finish them...', 'Марвин... Добей их...', 16713,1,0,0, '67234'), (-1594509, 'Sniveling maggot!', 'Сопливый червяк!', 16711,1,0,0, '67234'), (-1594510, 'The children of Stratholme fought with more ferocity!', 'Стратхольмские детишки - и те сражались отчаяннее!', 16712,1,0,0, '67234'), (-1594511, 'Despair... so delicious...', 'Как сладостно отчаянье!', 16715,1,0,0, '67234'), (-1594512, 'Fear... so exhilarating...', 'Как приятен страх!', 16716,1,0,0, '67234'), #Marwyn (-1594513, 'Death is all that you will find here!', 'Вы найдете здесь лишь смерть!', 16734,1,0,0, '67234'), (-1594514, 'Yes... Run... Run to meet your destiny... Its bitter, cold embrace, awaits you.', 'Эээээ... Да... Бегите навстречу судьбе. Ее жестокие и холодные обьятия ждут вас...', 16737,1,0,0, '67234'), (-1594515, 'I saw the same look in his eyes when he died. Terenas could hardly believe it. Hahahaha!', 'У Теренаса был такой же взгляд в миг смерти, он никак не мог поверить... Ха-ха-ха-ха-ха...', 16735,1,0,0, '67234'), (-1594516, 'Choke on your suffering!', 'Захлебнись страданием!', 16736,1,0,0, '67234'), (-1594517, 'Your flesh shall decay before your very eyes!', 'Вы увидите как разлагается ваша плоть!', 16739,1,0,0, '67234'), (-1594518, 'Waste away into nothingness!', 'Сгиньте без следа!', 16740,1,0,0, '67234'), #FrostWorn General (-1594519, 'You are not worthy to face the Lich King!', 'Вы недостойны предстать перед Королем - Личом!', 16921,1,0,0, '67234'), (-1594520, 'Master, I have failed...', 'Господин... Я подвел вас...', 16922,1,0,0, '67234'), #add (-1594531, '<need translate>', 'Ну теперь-то точно пора сваливать.', 0,0,0,0, '67234'), (-1594532, '<need translate>', 'Вот вам сундук за работу.', 0,0,0,0, '67234'), (-1594533, '<need translate>', 'И, поскольку корабля с оффа не будет, вот вам портал в Даларан.', 0,0,0,0, '67234'); # Gossips DELETE FROM `gossip_texts` WHERE `entry` BETWEEN -3594540 AND -3594530; INSERT INTO `gossip_texts` (`entry`, `content_default`, `content_loc8`, `comment`) VALUES (-3594536, '<NAME>, we are ready for next mission!', 'Джайна, мы готовы!',''), (-3594537, '<NAME>, Let\'s go!', 'Давай быстрее!', ''), (-3594538, '<NAME>, we are ready for next mission!', 'Сильвана, мы готовы!', ''), (-3594539, '<NAME>, Let\'s go!', 'Поехали!', ''), (-3594540, 'Let\'s go!', 'Побежали!', ''); -- Waipoints to escort event on Halls of reflection DELETE FROM script_waypoint WHERE entry=36955; DELETE FROM script_waypoint WHERE entry=37226; DELETE FROM script_waypoint WHERE entry=37554; INSERT INTO script_waypoint VALUES -- Jaina (36955, 0, 5587.682,2228.586,733.011, 0, 'WP1'), (36955, 1, 5600.715,2209.058,731.618, 0, 'WP2'), (36955, 2, 5606.417,2193.029,731.129, 0, 'WP3'), (36955, 3, 5598.562,2167.806,730.918, 0, 'WP4 - Summon IceWall 01'), (36955, 4, 5556.436,2099.827,731.827, 0, 'WP5 - Spell Channel'), (36955, 5, 5543.498,2071.234,731.702, 0, 'WP6'), (36955, 6, 5528.969,2036.121,731.407, 0, 'WP7'), (36955, 7, 5512.045,1996.702,735.122, 0, 'WP8'), (36955, 8, 5504.490,1988.789,735.886, 0, 'WP9 - Spell Channel'), (36955, 9, 5489.645,1966.389,737.653, 0, 'WP10'), (36955, 10, 5475.517,1943.176,741.146, 0, 'WP11'), (36955, 11, 5466.930,1926.049,743.536, 0, 'WP12'), (36955, 12, 5445.157,1894.955,748.757, 0, 'WP13 - Spell Channel'), (36955, 13, 5425.907,1869.708,753.237, 0, 'WP14'), (36955, 14, 5405.118,1833.937,757.486, 0, 'WP15'), (36955, 15, 5370.324,1799.375,761.007, 0, 'WP16'), (36955, 16, 5335.422,1766.951,767.635, 0, 'WP17 - Spell Channel'), (36955, 17, 5311.438,1739.390,774.165, 0, 'WP18'), (36955, 18, 5283.589,1703.755,784.176, 0, 'WP19'), (36955, 19, 5260.400,1677.775,784.301, 3000, 'WP20'), (36955, 20, 5262.439,1680.410,784.294, 0, 'WP21'), (36955, 21, 5260.400,1677.775,784.301, 0, 'WP22'), -- Sylvana (37554, 0, 5587.682,2228.586,733.011, 0, 'WP1'), (37554, 1, 5600.715,2209.058,731.618, 0, 'WP2'), (37554, 2, 5606.417,2193.029,731.129, 0, 'WP3'), (37554, 3, 5598.562,2167.806,730.918, 0, 'WP4 - Summon IceWall 01'), (37554, 4, 5556.436,2099.827,731.827, 0, 'WP5 - Spell Channel'), (37554, 5, 5543.498,2071.234,731.702, 0, 'WP6'), (37554, 6, 5528.969,2036.121,731.407, 0, 'WP7'), (37554, 7, 5512.045,1996.702,735.122, 0, 'WP8'), (37554, 8, 5504.490,1988.789,735.886, 0, 'WP9 - Spell Channel'), (37554, 9, 5489.645,1966.389,737.653, 0, 'WP10'), (37554, 10, 5475.517,1943.176,741.146, 0, 'WP11'), (37554, 11, 5466.930,1926.049,743.536, 0, 'WP12'), (37554, 12, 5445.157,1894.955,748.757, 0, 'WP13 - Spell Channel'), (37554, 13, 5425.907,1869.708,753.237, 0, 'WP14'), (37554, 14, 5405.118,1833.937,757.486, 0, 'WP15'), (37554, 15, 5370.324,1799.375,761.007, 0, 'WP16'), (37554, 16, 5335.422,1766.951,767.635, 0, 'WP17 - Spell Channel'), (37554, 17, 5311.438,1739.390,774.165, 0, 'WP18'), (37554, 18, 5283.589,1703.755,784.176, 0, 'WP19'), (37554, 19, 5260.400,1677.775,784.301, 3000, 'WP20'), (37554, 20, 5262.439,1680.410,784.294, 0, 'WP21'), (37554, 21, 5260.400,1677.775,784.301, 0, 'WP22'), -- <NAME> (37226, 0, 5577.187,2236.003,733.012, 0, 'WP1'), (37226, 1, 5587.682,2228.586,733.011, 0, 'WP2'), (37226, 2, 5600.715,2209.058,731.618, 0, 'WP3'), (37226, 3, 5606.417,2193.029,731.129, 0, 'WP4'), (37226, 4, 5598.562,2167.806,730.918, 0, 'WP5'), (37226, 5, 5559.218,2106.802,731.229, 0, 'WP6'), (37226, 6, 5543.498,2071.234,731.702, 0, 'WP7'), (37226, 7, 5528.969,2036.121,731.407, 0, 'WP8'), (37226, 8, 5512.045,1996.702,735.122, 0, 'WP9'), (37226, 9, 5504.490,1988.789,735.886, 0, 'WP10'), (37226, 10, 5489.645,1966.389,737.653, 0, 'WP10'), (37226, 11, 5475.517,1943.176,741.146, 0, 'WP11'), (37226, 12, 5466.930,1926.049,743.536, 0, 'WP12'), (37226, 13, 5445.157,1894.955,748.757, 0, 'WP13'), (37226, 14, 5425.907,1869.708,753.237, 0, 'WP14'), (37226, 15, 5405.118,1833.937,757.486, 0, 'WP15'), (37226, 16, 5370.324,1799.375,761.007, 0, 'WP16'), (37226, 17, 5335.422,1766.951,767.635, 0, 'WP17'), (37226, 18, 5311.438,1739.390,774.165, 0, 'WP18'), (37226, 19, 5283.589,1703.755,784.176, 0, 'WP19'), (37226, 20, 5278.694,1697.912,785.692, 0, 'WP20'), (37226, 21, 5283.589,1703.755,784.176, 0, 'WP19');
DROP PROCEDURE sp_perfil_ver; DELIMITER // CREATE PROCEDURE sp_perfil_ver( v_criterio TINYINT, v_id_perfil INT ) BEGIN IF v_criterio = 1 THEN SELECT t1.*, t2.nome, t3.categoria FROM tb_perfil AS t1 JOIN tb_funcionario AS t2 ON t1.id_perfil = t2.id_func JOIN tb_categoria AS t3 ON t1.id_categoria = t3.id_categoria; END IF; END // DELIMITER ; CALL sp_perfil_ver(1,1);
<gh_stars>0 ' Creates Channel xyz table For patients, we create a table, where for each patient id, we fill with relevant channel xyz data for this patient. ' DROP TABLE IF EXISTS "chanxyz"; CREATE TABLE "chanxyz"( pat_id TEXT, chan_label TEXT, x NUMERIC, y NUMERIC, z NUMERIC, );
<filename>databases/migrations/models/1_20211206210351_update.sql -- upgrade -- CREATE TABLE IF NOT EXISTS `chairs` ( `id` BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT, `created_at` DATETIME(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `updated_at` DATETIME(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `deleted_at` DATETIME(6) ) CHARACTER SET utf8mb4; -- downgrade -- DROP TABLE IF EXISTS `chairs`;
<reponame>chrisroederucdenver/Kao-Harmonization-Release --alter table study_to_ohdsi_mapping -- drop constraint study_to_ohdsi_mapping_to_table_fkey; --CREATE unique INDEX idx_table_columns -- ON ema.columns (table_name, column_name) ; --alter table study_to_ohdsi_mapping -- add constraint fpk_study_to_ohdsi_mapping_to_columns -- foreign key (from_table, from_column) references information_schema.columns (table_name, column_name) -- select attname, relname from pg_attribute a join pg_class c on a.attrelid = c.oid; --these constraints make sure you're using concepts that exist in the concept table -- EXCEPT, you can't create an index suitable for FKs on concept(vocabulary_id, concept_code) -- because concept_code is not unique for some vocabularies. -- --CREATE unique INDEX idx_concept_vocabulary_id_concept_code -- ON concept (vocabulary_id, concept_code) -- WHERE (concept_code != 'OMOP generated'); -- --alter table categorization_function_table -- drop constraint categorization_function_table_from_vocabulary_id_fkey; -- --alter table categorization_function_table -- add constraint fpk_categorization_function_table_to_concept_fk --FOREIGN KEY (from_vocabulary_id, from_concept_code) REFERENCES --concept (vocabulary_id, concept_code); -- -- --alter table ohdsi_calculation_argument -- drop constraint ohdsi_calculation_argument_vocabulary_id_fkey; --alter table ohdsi_calculation_argument -- add constraint fpk_ohdsi_calculation_argument_to_concept --FOREIGN KEY (to_vocabulary_id, to_concept_code) REFERENCES --concept (vocabulary_id, concept_code); -- --alter table ohdsi_calculation_function -- drop constraint ohdsi_calculation_function_to_vocabulary_id_fkey; --alter table ohdsi_calculation_function -- add constraint fpk_ohdsi_calculation_function_to_concept --FOREIGN KEY (to_vocabulary_id, to_concept_code) REFERENCES --concept (vocabulary_id, concept_code); -- --alter table study_to_ohdsi_mapping -- drop constraint study_to_ohdsi_mapping_vocabuarly_id_fkey; --alter table study_to_ohdsi_mapping -- add constraint fpk_study_to_ohdsi_mapping_to_concept --FOREIGN KEY (vocabulary_id, concept_code) REFERENCES --concept (vocabulary_id, concept_code); -- --alter table study_mapping_arguments -- add constraint fpk_study_mapping_arguments_to_concept --FOREIGN KEY (to_vocabulary_id, to_concept_code) REFERENCES --concept (vocabulary_id, concept_code); -- --alter table study_mapping_arguments -- add constraint fpk_study_mapping_arguments_to_concept --FOREIGN KEY (mapped_concept_vocabulary_id, mapped_concept_code) REFERENCES --concept (vocabulary_id, concept_code); -- --alter table categorization_function_metadata -- add constraint fpk_study_mapping_arguments_to_concept --FOREIGN KEY (from_vocabulary_id, from_concept_code) REFERENCES --concept (vocabulary_id, concept_code); -- --alter table categorization_function_parameters -- add constraint fpk_study_mapping_arguments_to_concept --FOREIGN KEY (from_concept_id) REFERENCES --concept (concept_id); -- -- --
CREATE TABLE `ProjectKeyValuePairs` ( [Key] nvarchar(255) NOT NULL, [Value] nvarchar(255) NOT NULL, [ProjectId] int NOT NULL, [Id] integer NOT NULL PRIMARY KEY AUTOINCREMENT ); CREATE TABLE `Projects` ( [ProjectKey] nvarchar(255) NOT NULL, [ProjectTitle] nvarchar(255) NOT NULL, [LastChange] datetime NOT NULL, [DisableForMe] tinyint NOT NULL, [Id] integer NOT NULL PRIMARY KEY AUTOINCREMENT );
-- -- Relations between BA and BV. -- CREATE TABLE mod_bam_reporting_relations_ba_bv ( ba_bv_id int NOT NULL, bv_id int NOT NULL, ba_id int NOT NULL, PRIMARY KEY (ba_bv_id), FOREIGN KEY (bv_id) REFERENCES mod_bam_reporting_bv (bv_id) ON DELETE CASCADE, FOREIGN KEY (ba_id) REFERENCES mod_bam_reporting_ba (ba_id) ON DELETE CASCADE ); CREATE SEQUENCE mod_bam_reporting_relations_ba_bv_seq START WITH 1 INCREMENT BY 1; CREATE TRIGGER mod_bam_reporting_relations_ba_bv_trigger BEFORE INSERT ON mod_bam_reporting_relations_ba_bv FOR EACH ROW BEGIN SELECT mod_bam_reporting_relations_ba_bv_seq.nextval INTO :NEW.ba_bv_id FROM dual; END; /
<reponame>gowthamrao/Covid19VaccineAesiIncidenceCharacterization DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id between 10 and 100; with ages as ( SELECT 2 as age_id, 0 as age_low, 5 as age_high UNION SELECT 3 as age_id, 6 as age_low, 17 as age_high UNION SELECT 4 as age_id, 18 as age_low, 34 as age_high UNION SELECT 5 as age_id, 35 as age_low, 54 as age_high UNION SELECT 6 as age_id, 55 as age_low, 64 as age_high UNION SELECT 7 as age_id, 65 as age_low, 74 as age_high UNION SELECT 8 as age_id, 75 as age_low, 84 as age_high UNION SELECT 9 as age_id, 85 as age_low, 114 as age_high ), genders as ( SELECT 1 as gender_id, 8532 as gender_concept_id, 'Female' as gender_name UNION SELECT 2 as gender_id, 8507 as gender_concept_id, 'Male' as gender_name ) SELECT ages.age_id*10+genders.gender_id as subgroup_id, age_low, age_high, gender_concept_id, gender_name INTO #subgroups FROM ages, genders ; INSERT INTO @target_database_schema.@target_ref_table (subgroup_cohort_definition_id, subgroup_name) SELECT subgroup_id, 'Persons aged ' + cast(age_low as varchar) + ' to ' + cast(age_high as varchar) + ' with gender = ' + gender_name FROM #subgroups; INSERT INTO @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) SELECT s1.subgroup_id AS cohort_definition_id, op1.person_id AS subject_id, CASE WHEN YEAR(op1.observation_period_start_date) - p1.year_of_birth >= s1.age_low THEN op1.observation_period_start_date ELSE DATEFROMPARTS(p1.year_of_birth + s1.age_low,1,1) END AS cohort_start_date, CASE WHEN YEAR(op1.observation_period_end_date) - p1.year_of_birth <= s1.age_high THEN op1.observation_period_end_date ELSE DATEFROMPARTS(p1.year_of_birth + s1.age_high,12,31) END AS cohort_end_date FROM @cdm_database_schema.observation_period op1 INNER JOIN @cdm_database_schema.person p1 ON op1.person_id = p1.person_id INNER JOIN #subgroups s1 ON DATEFROMPARTS(p1.year_of_birth + s1.age_low,1,1) <= op1.observation_period_end_date AND DATEFROMPARTS(p1.year_of_birth + s1.age_high,12,31) >= op1.observation_period_start_date AND p1.gender_concept_id = s1.gender_concept_id ; drop table #subgroups;
<reponame>rganardi/sqlfmt select percentile_disc(0.25) within group (order by n) from generate_series(1,10) n
-- @product_version gpdb: [4.3.0.0-] -- -- RESYNC UAO TABLE 1 -- CREATE TABLE resync_uao_alter_part_truncate_part1 ( unique1 int4, unique2 int4 ) with ( appendonly='true') partition by range (unique1) ( partition aa start (0) end (500) every (100), default partition default_part ); CREATE TABLE resync_uao_alter_part_truncate_part1_A ( unique1 int4, unique2 int4)with ( appendonly='true') ; -- -- Insert few records into the table -- insert into resync_uao_alter_part_truncate_part1 values ( generate_series(5,50),generate_series(15,60)); insert into resync_uao_alter_part_truncate_part1_A values ( generate_series(1,10),generate_series(21,30)); select count(*) FROM pg_appendonly WHERE visimaprelid is not NULL AND visimapidxid is not NULL AND relid in (SELECT oid FROM pg_class WHERE relname ='resync_uao_alter_part_truncate_part1'); select count(*) AS only_visi_tups_ins from resync_uao_alter_part_truncate_part1; set gp_select_invisible = true; select count(*) AS invisi_and_visi_tups_ins from resync_uao_alter_part_truncate_part1; set gp_select_invisible = false; update resync_uao_alter_part_truncate_part1 set unique2 = unique2 + 100 where unique1=6; select count(*) AS only_visi_tups_upd from resync_uao_alter_part_truncate_part1; set gp_select_invisible = true; select count(*) AS invisi_and_visi_tups from resync_uao_alter_part_truncate_part1; set gp_select_invisible = false; delete from resync_uao_alter_part_truncate_part1 where unique1>=7; select count(*) AS only_visi_tups from resync_uao_alter_part_truncate_part1; set gp_select_invisible = true; select count(*) AS invisi_and_visi_tups from resync_uao_alter_part_truncate_part1; set gp_select_invisible = false; -- -- select from the Table -- select count(*) from resync_uao_alter_part_truncate_part1; -- -- RESYNC UAO TABLE 2 -- CREATE TABLE resync_uao_alter_part_truncate_part2 ( unique1 int4, unique2 int4 ) with ( appendonly='true') partition by range (unique1) ( partition aa start (0) end (500) every (100), default partition default_part ); CREATE TABLE resync_uao_alter_part_truncate_part2_A ( unique1 int4, unique2 int4) with ( appendonly='true'); -- -- Insert few records into the table -- insert into resync_uao_alter_part_truncate_part2 values ( generate_series(5,50),generate_series(15,60)); insert into resync_uao_alter_part_truncate_part2_A values ( generate_series(1,10),generate_series(21,30)); -- -- select from the Table -- select count(*) from resync_uao_alter_part_truncate_part2; -- -- RESYNC UAO TABLE 3 -- CREATE TABLE resync_uao_alter_part_truncate_part3 ( unique1 int4, unique2 int4 ) with ( appendonly='true') partition by range (unique1) ( partition aa start (0) end (500) every (100), default partition default_part ); CREATE TABLE resync_uao_alter_part_truncate_part3_A ( unique1 int4, unique2 int4) with ( appendonly='true'); -- -- Insert few records into the table -- insert into resync_uao_alter_part_truncate_part3 values ( generate_series(5,50),generate_series(15,60)); insert into resync_uao_alter_part_truncate_part3_A values ( generate_series(1,10),generate_series(21,30)); -- -- select from the Table -- select count(*) from resync_uao_alter_part_truncate_part3; -- -- ALTER SYNC1 AO -- -- -- Truncate Partition -- alter table sync1_uao_alter_part_truncate_part6 truncate partition for (rank(1)); -- -- Insert few records into the table -- insert into sync1_uao_alter_part_truncate_part6 values ( generate_series(5,50),generate_series(15,60)); insert into sync1_uao_alter_part_truncate_part6_A values ( generate_series(1,10),generate_series(21,30)); -- -- Alter the table set distributed by -- Alter table sync1_uao_alter_part_truncate_part6 set with ( reorganize='true') distributed by (unique2); -- -- select from the Table -- select count(*) from sync1_uao_alter_part_truncate_part6; -- -- Truncate default partition -- alter table sync1_uao_alter_part_truncate_part6 truncate default partition; -- -- Insert few records into the table -- insert into sync1_uao_alter_part_truncate_part6 values ( generate_series(5,50),generate_series(15,60)); insert into sync1_uao_alter_part_truncate_part6_A values ( generate_series(1,10),generate_series(21,30)); select count(*) FROM pg_appendonly WHERE visimaprelid is not NULL AND visimapidxid is not NULL AND relid in (SELECT oid FROM pg_class WHERE relname ='sync1_uao_alter_part_truncate_part6'); select count(*) AS only_visi_tups_ins from sync1_uao_alter_part_truncate_part6; set gp_select_invisible = true; select count(*) AS invisi_and_visi_tups_ins from sync1_uao_alter_part_truncate_part6; set gp_select_invisible = false; delete from sync1_uao_alter_part_truncate_part6 where unique1>=7; select count(*) AS only_visi_tups from sync1_uao_alter_part_truncate_part6; set gp_select_invisible = true; select count(*) AS invisi_and_visi_tups from sync1_uao_alter_part_truncate_part6; set gp_select_invisible = false; -- -- select from the Table -- select count(*) from sync1_uao_alter_part_truncate_part6; -- -- ALTER CK_SYNC1 AO -- -- -- Truncate Partition -- alter table ck_sync1_uao_alter_part_truncate_part5 truncate partition for (rank(1)); -- -- Insert few records into the table -- insert into ck_sync1_uao_alter_part_truncate_part5 values ( generate_series(5,50),generate_series(15,60)); insert into ck_sync1_uao_alter_part_truncate_part5_A values ( generate_series(1,10),generate_series(21,30)); -- -- Alter the table set distributed by -- Alter table ck_sync1_uao_alter_part_truncate_part5 set with ( reorganize='true') distributed by (unique2); -- -- select from the Table -- select count(*) from ck_sync1_uao_alter_part_truncate_part5; -- -- Truncate default partition -- alter table ck_sync1_uao_alter_part_truncate_part5 truncate default partition; -- -- Insert few records into the table -- insert into ck_sync1_uao_alter_part_truncate_part5 values ( generate_series(5,50),generate_series(15,60)); insert into ck_sync1_uao_alter_part_truncate_part5_A values ( generate_series(1,10),generate_series(21,30)); -- -- select from the Table -- select count(*) from ck_sync1_uao_alter_part_truncate_part5; -- -- ALTER CT AO -- -- -- Truncate Partition -- alter table ct_uao_alter_part_truncate_part3 truncate partition for (rank(1)); -- -- Insert few records into the table -- insert into ct_uao_alter_part_truncate_part3 values ( generate_series(5,50),generate_series(15,60)); insert into ct_uao_alter_part_truncate_part3_A values ( generate_series(1,10),generate_series(21,30)); -- -- Alter the table set distributed by -- Alter table ct_uao_alter_part_truncate_part3 set with ( reorganize='true') distributed by (unique2); -- -- select from the Table -- select count(*) from ct_uao_alter_part_truncate_part3; -- -- Truncate default partition -- alter table ct_uao_alter_part_truncate_part3 truncate default partition; -- -- Insert few records into the table -- insert into ct_uao_alter_part_truncate_part3 values ( generate_series(5,50),generate_series(15,60)); insert into ct_uao_alter_part_truncate_part3_A values ( generate_series(1,10),generate_series(21,30)); -- -- select from the Table -- select count(*) from ct_uao_alter_part_truncate_part3; -- -- ALTER RESYNC AO -- -- -- Truncate Partition -- alter table resync_uao_alter_part_truncate_part1 truncate partition for (rank(1)); -- -- Insert few records into the table -- insert into resync_uao_alter_part_truncate_part1 values ( generate_series(5,50),generate_series(15,60)); insert into resync_uao_alter_part_truncate_part1_A values ( generate_series(1,10),generate_series(21,30)); -- -- Alter the table set distributed by -- Alter table resync_uao_alter_part_truncate_part1 set with ( reorganize='true') distributed by (unique2); -- -- select from the Table -- select count(*) from resync_uao_alter_part_truncate_part1; -- -- Truncate default partition -- alter table resync_uao_alter_part_truncate_part1 truncate default partition; -- -- Insert few records into the table -- insert into resync_uao_alter_part_truncate_part1 values ( generate_series(5,50),generate_series(15,60)); insert into resync_uao_alter_part_truncate_part1_A values ( generate_series(1,10),generate_series(21,30)); -- -- select from the Table -- select count(*) from resync_uao_alter_part_truncate_part1;
<filename>Database/UCSF/BugFix/2.10.1/ORNGAppDataPrimaryKey.sql -- look for bad data. Fix it however you can select nodeid, appid, keyname, count(*) from [ORNG.].[AppData] group by nodeid, appid, keyname having count(*) > 1 -- save data fist! select * into #tmpOrngAppData FROM [ORNG.].[AppData] /****** Object: Table [ORNG.].[AppData] Script Date: 6/3/2018 10:56:35 AM ******/ DROP TABLE [ORNG.].[AppData] GO -- build new one SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [ORNG.].[AppData]( [NodeID] [bigint] NOT NULL, [AppID] [int] NOT NULL, [Keyname] [nvarchar](255) NOT NULL, [Value] [nvarchar](4000) NULL, [CreatedDT] [datetime] NULL, [UpdatedDT] [datetime] NULL, CONSTRAINT [PK__AppData] PRIMARY KEY CLUSTERED ( [NodeID] ASC, [AppID] ASC, [Keyname] ) ) ON [PRIMARY] GO ALTER TABLE [ORNG.].[AppData] ADD CONSTRAINT [DF_orng_appdata_createdDT] DEFAULT (getdate()) FOR [CreatedDT] GO ALTER TABLE [ORNG.].[AppData] ADD CONSTRAINT [DF_orng_appdata_updatedDT] DEFAULT (getdate()) FOR [UpdatedDT] GO /****** Object: Index [IDX_PersonApp] Script Date: 05/17/2013 13:27:31 ******/ /** Check if this index is needed! ***/ --CREATE NONCLUSTERED INDEX [IDX_PersonApp] ON [ORNG.].[AppData] --( -- [NodeID] ASC, -- [AppID] ASC --) --INCLUDE ( [Keyname], --[Value]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] --GO --DROP INDEX [IDX_PersonApp] ON [ORNG.].[AppData] -- new stuff ALTER TABLE [ORNG.].[AppData] WITH CHECK ADD CONSTRAINT [FK_orng_app_data_apps] FOREIGN KEY([AppID]) REFERENCES [ORNG.].[Apps] ([AppID]) GO ALTER TABLE [ORNG.].[AppData] CHECK CONSTRAINT [FK_orng_app_data_apps] GO ALTER TABLE [ORNG.].[AppData] WITH CHECK ADD CONSTRAINT [FK_orng_app_data_node] FOREIGN KEY([NodeID]) REFERENCES [RDF.].[Node] ([NodeID]) GO ALTER TABLE [ORNG.].[AppData] CHECK CONSTRAINT [FK_orng_app_data_node] GO ----- insert [ORNG.].[AppData] select * from #tmpOrngAppData where AppID in (select appid from [ORNG.].[Apps]) meekse --drop table #tmpOrngAppData
# --- !Ups ALTER TABLE PROVIDER ADD SEND_EMAIL NUMBER(1, 0) DEFAULT 0 NOT NULL; ALTER TABLE ACTIVITY ADD SEND_EMAIL NUMBER(1, 0) NULL; # --- !Downs ALTER TABLE PROVIDER DROP COLUMN SEND_EMAIL; ALTER TABLE ACTIVITY DROP COLUMN SEND_EMAIL;
<reponame>Tuppince24/burger_fest INSERT INTO burgers (burger_name) VALUES ('bacon'); INSERT INTO burgers (burger_name) VALUES ('burgers with cheese'); INSERT INTO burgers (burger_name, devoured) VALUES ('Wooper', true); INSERT INTO burgers (burger_name, devoured) VALUES ('bigmak', true); INSERT INTO burgers (burger_name, devoured) VALUES ('Smudge', true); INSERT INTO burgers (burger_name) VALUES ('Daisy');
<gh_stars>0 UPDATE fine, payment SET fine.date_payment=payment.date_payment WHERE fine.name=payment.name AND fine.number_plate = payment.number_plate AND fine.violation=payment.violation AND fine.date_violation = payment.date_violation; UPDATE fine, payment SET fine.sum_fine = fine.sum_fine/2 WHERE DATEDIFF(fine.date_payment, fine.date_violation)+1<=20 AND fine.name=payment.name AND fine.number_plate = payment.number_plate AND fine.violation=payment.violation AND fine.date_violation = payment.date_violation; SELECT name, number_plate, violation, sum_fine, date_violation, date_payment FROM fine
/* to copy the structure of an existing table SELECT sql FROM sqlite_master WHERE type='table' AND name='mytable' */ /* Following lines return the service_id that run on the chosen day */ DROP TABLE IF EXISTS running_services; CREATE TABLE running_services( trip_id ) ; INSERT INTO running_services SELECT trip_id FROM trips WHERE service_id IN (SELECT service_id FROM calendar WHERE start_date <= (SELECT day from parameters) AND end_date >= (SELECT day from parameters) AND (CASE WHEN strftime('%w',(SELECT day from parameters)) = '0' THEN sunday WHEN strftime('%w',(SELECT day from parameters)) = '1' THEN monday WHEN strftime('%w',(SELECT day from parameters)) = '2' THEN tuesday WHEN strftime('%w',(SELECT day from parameters)) = '3' THEN wednesday WHEN strftime('%w',(SELECT day from parameters)) = '4' THEN thursday WHEN strftime('%w',(SELECT day from parameters)) = '5' THEN friday WHEN strftime('%w',(SELECT day from parameters)) = '6' THEN saturday END) = 1 UNION SELECT service_id FROM calendar_dates WHERE date = (SELECT day from parameters) AND exception_type = 1 EXCEPT SELECT service_id FROM calendar_dates WHERE date = (SELECT day from parameters) AND exception_type = 2 ) ; /* Work on table direct, containing the direct od between ori and dest */ DROP TABLE IF EXISTS DIRECT; CREATE TABLE DIRECT( trip_id, stop_id1, stop_id2, departure_time, arrival_time, trip_duration ) ; INSERT INTO DIRECT SELECT st1.trip_id, st1.stop_id, st2.stop_id, st1.departure_time, st2.arrival_time, (strftime('%s',st2.arrival_time)-strftime('%s',st1.departure_time))/60 FROM stop_times AS st1 INNER JOIN stop_times AS st2 ON st1.trip_id = st2.trip_id AND st1.stop_sequence < st2.stop_sequence WHERE st1.trip_id IN (SELECT trip_id FROM running_services) ; /* Work on table ONE_TRANSFER, containing the od with one transfer between ori and dest */ DROP TABLE IF EXISTS ONE_TRANSFER; CREATE TABLE ONE_TRANSFER( trip1, trip2, origin, transfer, destination, departure, transfer_arrival, transfer_departure, arrival, transfer_duration, one_transfer_duration ); INSERT INTO ONE_TRANSFER SELECT st1.trip_id AS trip1, st2.trip_id AS trip2, st1.stop_id1 AS origin, st1.stop_id2 AS transfer, st2.stop_id2 AS destination, st1.departure_time AS departure, st1.arrival_time AS transfer_arrival, st2.departure_time AS transfer_departure, st2.arrival_time AS arrival, (strftime('%s',st2.departure_time)-strftime('%s',st1.arrival_time))/60 AS transfer_duration, (strftime('%s',st2.arrival_time)-strftime('%s',st1.departure_time))/60 AS one_transfer_duration FROM direct AS st1 INNER JOIN ( SELECT * FROM direct WHERE stop_id2 = (SELECT destination from parameters) ) AS st2 ON st1.stop_id2 = st2.stop_id1 AND transfer_arrival < transfer_departure WHERE origin = (SELECT origin from parameters) AND one_transfer_duration < (SELECT trip_duration from parameters) AND transfer_duration < (SELECT transfer_duration from parameters) AND st1.trip_id IN (SELECT trip_id FROM running_services) AND st2.trip_id IN (SELECT trip_id FROM running_services) limit 10 ; /* Print all direct possibilities */ SELECT * FROM DIRECT WHERE stop_id2 = (SELECT destination from parameters) AND stop_id1 = (SELECT origin from parameters) AND (strftime('%s',arrival_time)-strftime('%s',departure_time))/60 < (SELECT trip_duration from parameters) ORDER BY trip_duration limit 10 ; /* Print all possibilities with one transfer */ SELECT ot1.trip1, ot1.trip2, ot1.origin, ot1.transfer, ot1.destination, ot1.departure, ot1.transfer_arrival, ot1.transfer_departure, ot1.arrival, ot1.transfer_duration, ot1.one_transfer_duration FROM ONE_TRANSFER AS ot1 INNER JOIN ( SELECT trip1, trip2, MIN(one_transfer_duration) AS one_transfer_duration FROM ONE_TRANSFER GROUP BY trip1, trip2 ) as ot2 ON ot1.trip1 = ot2.trip1 AND ot1.trip2 = ot2.trip2 AND ot1.one_transfer_duration = ot2.one_transfer_duration ORDER BY ot1.one_transfer_duration limit 10 ;
<filename>core/src/main/resources/db/migration/mysql/V1_1__create_tables.sql CREATE TABLE META_TABLE_DEFINITION ( ID INT NOT NULL AUTO_INCREMENT, PHYSICAL_NAME VARCHAR(128) NOT NULL, LOGICAL_NAME VARCHAR(256) NOT NULL, PRIMARY KEY (ID), UNIQUE INDEX PHYSICAL_NAME_UK1 (PHYSICAL_NAME ASC) );
<gh_stars>0 CREATE SEQUENCE cognipro_vr8600e_alarm_log_seq; CREATE TABLE cognipro_vr8600e_alarm_log ( id_pk numeric(10) NOT NULL DEFAULT nextval('cognipro_vr8600e_alarm_log_seq'::regclass), machine_id varchar(50) NOT NULL, plc_timestamp timestamp NOT NULL, shift varchar(10) NULL, alarm_01 numeric(10) NULL DEFAULT 0, alarm_02 numeric(10) NULL DEFAULT 0, alarm_03 numeric(10) NULL DEFAULT 0, alarm_04 numeric(10) NULL DEFAULT 0, alarm_05 numeric(10) NULL DEFAULT 0, alarm_06 numeric(10) NULL DEFAULT 0, alarm_07 numeric(10) NULL DEFAULT 0, alarm_08 numeric(10) NULL DEFAULT 0, alarm_09 numeric(10) NULL DEFAULT 0, alarm_10 numeric(10) NULL DEFAULT 0, alarm_11 numeric(10) NULL DEFAULT 0, alarm_12 numeric(10) NULL DEFAULT 0, alarm_13 numeric(10) NULL DEFAULT 0, alarm_14 numeric(10) NULL DEFAULT 0, alarm_15 numeric(10) NULL DEFAULT 0, alarm_16 numeric(10) NULL DEFAULT 0, alarm_17 numeric(10) NULL DEFAULT 0, alarm_18 numeric(10) NULL DEFAULT 0, alarm_19 numeric(10) NULL DEFAULT 0, alarm_20 numeric(10) NULL DEFAULT 0, alarm_21 numeric(10) NULL DEFAULT 0, alarm_22 numeric(10) NULL DEFAULT 0, alarm_23 numeric(10) NULL DEFAULT 0, alarm_24 numeric(10) NULL DEFAULT 0, alarm_25 numeric(10) NULL DEFAULT 0, alarm_26 numeric(10) NULL DEFAULT 0, alarm_27 numeric(10) NULL DEFAULT 0, alarm_28 numeric(10) NULL DEFAULT 0, alarm_29 numeric(10) NULL DEFAULT 0, alarm_30 numeric(10) NULL DEFAULT 0, alarm_31 numeric(10) NULL DEFAULT 0, alarm_32 numeric(10) NULL DEFAULT 0, alarm_33 numeric(10) NULL DEFAULT 0, alarm_34 numeric(10) NULL DEFAULT 0, alarm_35 numeric(10) NULL DEFAULT 0, alarm_36 numeric(10) NULL DEFAULT 0, alarm_37 numeric(10) NULL DEFAULT 0, opmsg_01 float8 NULL, opmsg_02 float8 NULL, opmsg_03 float8 NULL, opmsg_04 float8 NULL, opmsg_05 float8 NULL, opmsg_06 float8 NULL, opmsg_07 float8 NULL, opmsg_08 float8 NULL, opmsg_09 float8 NULL, alarm_1 numeric NULL, alarm_2 numeric NULL, alarm_3 numeric(10) NULL, alarm_4 numeric(10) NULL, created_timestamp timestamp NULL, CONSTRAINT cognipro_vr8600e_alarm_log_pk PRIMARY KEY (id_pk) ) WITH ( OIDS=FALSE ) ;
<filename>database/create_tables.sql<gh_stars>0 CREATE TABLE IF NOT EXISTS `atividade` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL, `description` varchar(600) NOT NULL, `start_date` datetime NOT NULL, `end_date` datetime NULL, `status_id` int(11) NOT NULL, `situation` tinyint(1) NOT NULL DEFAULT 1, PRIMARY KEY (id) ); CREATE TABLE IF NOT EXISTS `status` ( `status_id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL, PRIMARY KEY (status_id) ); INSERT INTO status (title) VALUES ('Pendente'), ('Em Desenvolvimento'), ('Em Teste'), ('Concluído');
<filename>dbv-1/data/schema/tblAccountNextBilling.sql CREATE TABLE `tblAccountNextBilling` ( `AccountNextBillingID` int(11) NOT NULL AUTO_INCREMENT, `AccountID` int(11) NOT NULL DEFAULT '0', `BillingCycleType` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `BillingCycleValue` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `LastInvoiceDate` date DEFAULT NULL, `NextInvoiceDate` date DEFAULT NULL, `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`AccountNextBillingID`), UNIQUE KEY `AccountID` (`AccountID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
<filename>bin/postgres/functions/skills_read.sql --function for retrieving one or all skills CREATE OR REPLACE FUNCTION skills_read(INTEGER) RETURNS SETOF skills AS $Body$ BEGIN RETURN QUERY WITH RECURSIVE sorted_skills AS ( SELECT * FROM skills WHERE previous_id = 0 AND user_id = $1 UNION ALL SELECT s.* FROM skills AS s JOIN sorted_skills AS ss ON (s.previous_id = ss.id) WHERE s.user_id = $1 ) SELECT * FROM sorted_skills; END; $Body$ language plpgsql;
<filename>Dump.sql CREATE TABLE `Dialogs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `from` int(11) DEFAULT NULL, `to` int(11) DEFAULT NULL, `new` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8; CREATE TABLE `Messages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dialog_id` int(11) DEFAULT NULL, `time` datetime DEFAULT NULL, `message` text, `user_id` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; CREATE TABLE `Users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nickname` varchar(64) DEFAULT NULL, `password` varchar(64) DEFAULT NULL, `token` varchar(64) DEFAULT NULL, `online` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8;
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; CREATE TABLE IF NOT EXISTS `curso` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `nome` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `abreviatura` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `data_inicio` date NOT NULL, `data_fim` date NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40000 ALTER TABLE `curso` DISABLE KEYS */; INSERT INTO `curso` (`id`, `nome`, `abreviatura`, `data_inicio`, `data_fim`, `created_at`, `updated_at`) VALUES (1, 'Técnico em Informática', 'TECINFO', '2021-01-01', '2021-06-01', NULL, NULL), (2, 'Técnico em Mecanica', 'TECMEC', '2021-01-01', '2021-06-01', NULL, NULL), (3, 'Engenharia de Software', 'ENGSOFT', '2020-01-01', '2024-01-01', NULL, NULL); /*!40000 ALTER TABLE `curso` ENABLE KEYS */; CREATE TABLE IF NOT EXISTS `disciplina` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `nome` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `carga_horaria` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40000 ALTER TABLE `disciplina` DISABLE KEYS */; INSERT INTO `disciplina` (`id`, `nome`, `carga_horaria`, `created_at`, `updated_at`) VALUES (1, 'Banco de Dados', 60, NULL, NULL), (2, 'Programação Mobile', 80, NULL, NULL), (3, 'Programação Web', 80, NULL, NULL); /*!40000 ALTER TABLE `disciplina` ENABLE KEYS */; CREATE TABLE IF NOT EXISTS `disciplina_turma` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `disciplina_id` bigint(20) unsigned DEFAULT NULL, `turma_id` bigint(20) unsigned DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `disciplina_turma_disciplina_id_foreign` (`disciplina_id`), KEY `disciplina_turma_turma_id_foreign` (`turma_id`), CONSTRAINT `disciplina_turma_disciplina_id_foreign` FOREIGN KEY (`disciplina_id`) REFERENCES `disciplina` (`id`), CONSTRAINT `disciplina_turma_turma_id_foreign` FOREIGN KEY (`turma_id`) REFERENCES `turma` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40000 ALTER TABLE `disciplina_turma` DISABLE KEYS */; INSERT INTO `disciplina_turma` (`id`, `disciplina_id`, `turma_id`, `created_at`, `updated_at`) VALUES (2, 1, 2, NULL, NULL), (3, 2, 2, NULL, NULL), (4, 3, 2, NULL, NULL), (5, 1, 7, NULL, NULL), (6, 2, 7, NULL, NULL); /*!40000 ALTER TABLE `disciplina_turma` ENABLE KEYS */; CREATE TABLE IF NOT EXISTS `failed_jobs` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */; /*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */; CREATE TABLE IF NOT EXISTS `migrations` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40000 ALTER TABLE `migrations` DISABLE KEYS */; INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2021_06_16_120036_create_turma_table', 1), (5, '2021_06_15_190356_create_alunos_table', 2), (6, '2021_07_28_120719_create_turma_categorias_table', 3), (7, '2021_07_28_121024_alter_turma', 3), (8, '2021_09_08_113324_alter_turma2', 4), (9, '2021_09_29_111747_create_cursos_table', 5), (10, '2021_09_29_111922_create_disciplinas_table', 5), (11, '2021_09_29_112222_alter_turma_curso_id', 5), (12, '2021_09_29_112333_create_disciplina_turma', 5); /*!40000 ALTER TABLE `migrations` ENABLE KEYS */; CREATE TABLE IF NOT EXISTS `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, KEY `password_resets_email_index` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40000 ALTER TABLE `password_resets` DISABLE KEYS */; /*!40000 ALTER TABLE `password_resets` ENABLE KEYS */; CREATE TABLE IF NOT EXISTS `turma` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `nome` varchar(80) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `codigo` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `descricao` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `nome_arquivo` varchar(150) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `turma_categoria_id` bigint(20) unsigned DEFAULT NULL, `curso_id` bigint(20) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `turma_turma_categoria_id_foreign` (`turma_categoria_id`), KEY `turma_curso_id_foreign` (`curso_id`), CONSTRAINT `turma_curso_id_foreign` FOREIGN KEY (`curso_id`) REFERENCES `curso` (`id`), CONSTRAINT `turma_turma_categoria_id_foreign` FOREIGN KEY (`turma_categoria_id`) REFERENCES `turma_categoria` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40000 ALTER TABLE `turma` DISABLE KEYS */; INSERT INTO `turma` (`id`, `nome`, `codigo`, `descricao`, `created_at`, `nome_arquivo`, `updated_at`, `turma_categoria_id`, `curso_id`) VALUES (2, 'Informática 03', '03/', 'INF03', NULL, '20210908123217.jpg', '2021-09-08 12:32:17', 77, 1), (5, 'EngSoftware 03', '22/80-40*80', 'Optio sed iure illo debitis quo sed quisquam. Eum blanditiis natus quia iste.', NULL, '20210922122247.jpg', '2021-09-29 12:38:36', 77, 3), (7, 'Mecanica 01', '443663882', 'Dicta voluptatem qui ea praesentium. Nihil voluptatibus et veritatis quia blanditiis sunt eaque.', NULL, '', NULL, NULL, 2), (8, '<NAME> Jr.', '148259495', 'In vero atque labore officiis. Placeat dolorem cumque quo nulla rem.', NULL, '', NULL, NULL, 0), (9, '<NAME>', '51539460', 'Eius facere qui qui sit maxime.', NULL, '', NULL, NULL, 0), (10, '<NAME>', '685489783', 'Perspiciatis autem sapiente quis ipsa magnam.', NULL, '', NULL, NULL, 0), (11, 'Dr. <NAME>', '166952312', 'Ut quo neque suscipit autem doloremque.', NULL, '', NULL, NULL, 0), (12, '<NAME> Jr.', '691524386', 'Dolor explicabo omnis rem voluptatibus iste aut. Voluptas amet enim error eos et.', NULL, '', NULL, NULL, 0), (13, '<NAME>', '234191209', 'Cumque atque eaque excepturi. Provident quisquam eos quisquam occaecati dolores quo.', NULL, '', NULL, NULL, 0), (14, 'Sr. <NAME>', '776140776', 'Fuga quisquam dicta error neque eius eaque quidem. Quis sit velit excepturi est.', NULL, '', NULL, NULL, 0), (15, 'Dr. <NAME>', '775880785', 'Repellendus quaerat eius voluptatum tempora. Iste officia eos ut facere.', NULL, '20211028223041.png', '2021-10-28 22:30:41', 71, 0), (16, '<NAME>', '903154539', 'Quia aliquid eum quibusdam dolorem atque dicta sunt velit. Praesentium ducimus amet magnam ea.', NULL, '', NULL, NULL, 0), (17, 'Sr. <NAME>', '794403598', 'Corrupti esse possimus incidunt ut libero minima adipisci dolorem.', NULL, '', NULL, NULL, 0), (18, 'Dr. <NAME>', '99808900', 'Et asperiores incidunt nostrum. Cupiditate mollitia reiciendis est cumque autem et impedit velit.', NULL, '', NULL, NULL, 0), (19, 'Srta. <NAME> Jr.', '888958274', 'Corrupti cumque qui repellendus optio aut nesciunt. Molestiae fuga alias nesciunt qui.', NULL, '', NULL, NULL, 0), (20, 'Dr. <NAME>', '128433329', 'Dolorem et quod necessitatibus nulla dolores eum. Quod laborum ut et autem.', NULL, '', NULL, NULL, 0), (21, '<NAME>', '330764301', 'Quo sunt quam non eum.', NULL, '', NULL, NULL, 0), (22, '<NAME>', '934362230', 'Qui beatae omnis dicta voluptate possimus soluta enim.', NULL, '', NULL, NULL, 0), (26, 'teste32', 'te3', 'test', '2021-07-28 12:26:55', '', '2021-07-28 12:26:55', NULL, 0), (27, 'Informática 09', 'INF09', 'teste9', '2021-07-28 12:27:41', '', '2021-07-28 13:35:54', 77, 0), (28, 'Informática 05', '05', 'teste', '2021-09-08 12:01:33', NULL, '2021-09-08 12:01:33', 71, 0), (31, 'Informática 05', '05', 'teste', '2021-09-08 12:09:40', '20210908120940.jpg', '2021-09-08 12:09:40', 71, 0), (32, 'Informática 05', '05/', 'INF05', '2021-09-08 12:26:01', '20210908122601.jpg', '2021-09-08 12:26:01', 77, 0), (33, 'Informática 05', '05/', 'INF05', '2021-09-08 12:29:17', '20210908122917.jpg', '2021-09-08 12:29:17', 77, 0), (34, 'Informática 03', '03/', 'INF03', '2021-09-08 12:32:17', '20210908123217.jpg', '2021-09-08 12:32:17', 77, 0), (35, '<NAME>', '60/66-38*19', 'Veniam sunt suscipit quod possimus.', '2021-09-08 12:32:23', '20210908123223.jpg', '2021-09-08 12:32:23', 77, 0), (36, '<NAME>', '22/80-40*80', 'Optio sed iure illo debitis quo sed quisquam. Eum blanditiis natus quia iste.', '2021-09-22 11:43:00', NULL, '2021-09-22 11:43:00', 71, 0), (37, '<NAME>', '22/80-40*80', 'Optio sed iure illo debitis quo sed quisquam. Eum blanditiis natus quia iste.', '2021-09-22 11:43:16', NULL, '2021-09-22 11:43:16', 77, 0), (38, 'Informática 11', '2222222222222222', 'teste', '2021-09-22 12:16:33', '20210922121633.jpg', '2021-09-22 12:16:33', 72, 0), (39, 'Informática 22', '2222222222222222', 'teste', '2021-09-22 12:16:47', '20210922121647.jpg', '2021-09-22 12:16:47', 72, 0), (40, 'Informática 33', '2222222222222222', 'teste', '2021-09-22 12:17:58', '20210922121758.jpg', '2021-09-22 12:17:58', 72, 0), (41, 'Informática 44', '2222222222222222', 'teste', '2021-09-22 12:19:49', '20210922121949.jpg', '2021-09-22 12:19:49', 72, 0), (42, 'Informática 66', '2222222222222222', 'rwarw', '2021-09-22 12:22:03', '20210922122203.jpg', '2021-09-22 12:22:03', 72, 0), (43, '<NAME> 1', '22/80-40*80', 'Optio sed iure illo debitis quo sed quisquam. Eum blanditiis natus quia iste.', '2021-09-22 12:22:19', '20210922122219.jpg', '2021-09-22 12:22:19', 77, 0), (44, '<NAME> 2', '22/80-40*80', 'Optio sed iure illo debitis quo sed quisquam. Eum blanditiis natus quia iste.', '2021-09-22 12:22:47', '20210922122247.jpg', '2021-09-22 12:22:47', 77, 0), (45, '<NAME> 2', '22/80-40*80', 'Optio sed iure illo debitis quo sed quisquam. Eum blanditiis natus quia iste.', '2021-09-22 12:24:13', NULL, '2021-09-22 12:24:13', 77, 0), (46, 'EngSoftware 03', '22/80-40*80', 'Optio sed iure illo debitis quo sed quisquam. Eum blanditiis natus quia iste.', '2021-09-29 12:38:36', NULL, '2021-09-29 12:38:36', 77, NULL), (47, 'Dr. <NAME>', '775880785', 'Repellendus quaerat eius voluptatum tempora. Iste officia eos ut facere.', '2021-10-28 22:30:41', '20211028223041.png', '2021-10-28 22:30:41', 71, NULL); /*!40000 ALTER TABLE `turma` ENABLE KEYS */; CREATE TABLE IF NOT EXISTS `turma_categoria` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `nome` varchar(80) COLLATE utf8mb4_unicode_ci NOT NULL, `sigla` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40000 ALTER TABLE `turma_categoria` DISABLE KEYS */; INSERT INTO `turma_categoria` (`id`, `nome`, `sigla`, `created_at`, `updated_at`) VALUES (71, 'Técnico', 'TEC', NULL, NULL), (72, 'Graduação', 'GRA', NULL, NULL), (73, 'Especialização', 'ESP', NULL, NULL), (74, 'Mestrado', 'MES', NULL, NULL), (75, 'Douturado', 'DR', NULL, NULL), (76, 'Pós-Douturado', 'PHD', NULL, NULL), (77, 'Profissionalizante', 'FIC', NULL, NULL); /*!40000 ALTER TABLE `turma_categoria` ENABLE KEYS */; CREATE TABLE IF NOT EXISTS `users` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `users_email_unique` (`email`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'Administrador', '<EMAIL>', NULL, '$2y$10$anhnFsIAjaMKtEu9bhoCDuY1fTEYqt8Eg8cPAyqSyTHERvDrfKtjm', NULL, '2021-08-04 11:32:00', '2021-08-04 11:32:00'); /*!40000 ALTER TABLE `users` ENABLE KEYS */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/* Navicat MySQL Data Transfer Source Server : Imseam Source Server Version : 50712 Source Host : localhost:3306 Source Database : imseam Target Server Type : MYSQL Target Server Version : 50712 File Encoding : 65001 Date: 2016-07-18 17:46:04 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `linux_process_monitor_info` -- ---------------------------- DROP TABLE IF EXISTS `linux_process_monitor_info`; CREATE TABLE `linux_process_monitor_info` ( `oid` bigint(20) NOT NULL AUTO_INCREMENT, `access_time` datetime DEFAULT NULL, `process_status` varchar(100) DEFAULT NULL COMMENT '程序变化类型:启动(detected start of process),推出(detected exit of process)', `file_path` varchar(200) DEFAULT NULL COMMENT '文件路径', `pid` int(11) DEFAULT NULL, `process_name` varchar(80) DEFAULT NULL COMMENT '进程名', `ppid` int(11) DEFAULT NULL, `parent_process_name` varchar(80) DEFAULT NULL COMMENT '父进程名称', `exec_user` varchar(80) DEFAULT NULL COMMENT '执行账户', `original_user` varchar(80) DEFAULT NULL COMMENT '原始账户', `local_ip` varchar(20) DEFAULT NULL COMMENT '本机IP地址', `file_md5` varchar(100) DEFAULT NULL, `container_oid` varchar(100) DEFAULT NULL COMMENT '业务系统Oid', `aciton` smallint(6) NOT NULL COMMENT '数据是否已经同步到 windows_process_info表中,true是,false没有', `status` int(11) DEFAULT NULL, PRIMARY KEY (`oid`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='Linux_主机层面进程层面监视'; -- ---------------------------- -- Records of linux_process_monitor_info -- ---------------------------- INSERT INTO `linux_process_monitor_info` VALUES ('1', '2016-04-29 06:16:46', 'process start', '/usr/bin/id', '3172', '/bin/bash', '2445', '/bin/bash', 'root', 'root', '192.168.10.231', 'dd47ff16176412ec2e170cda441b4a220ff52f46', 'cbb36801-c563-4a8f-a310-8f7fdce5542d', '1', null);
CREATE TABLE Manufacturers ( ManufacturerId INT PRIMARY KEY IDENTITY, [Name] NVARCHAR(20) NOT NULL, EstablishedOn DATE NOT NULL ) CREATE TABLE Models ( ModelId INT PRIMARY KEY, [Name] NVARCHAR(20) NOT NULL, ManufacturerId INT NOT NULL, CONSTRAINT ManufacturerId FOREIGN KEY (ManufacturerId) REFERENCES Manufacturers (ManufacturerId) ) INSERT INTO Manufacturers VALUES ('BMW','07/03/1916') INSERT INTO Manufacturers VALUES ('Tesla','01/01/2003') INSERT INTO Manufacturers VALUES ('Lada','01/05/1966') INSERT INTO Models VALUES (101,'X1',1) INSERT INTO Models VALUES (102,'i6',1) INSERT INTO Models VALUES (103,'Model S',2) INSERT INTO Models VALUES (104, 'Model X',2) INSERT INTO Models VALUES (105, 'Model 3',2) INSERT INTO Models VALUES (106,'Nova',3) SELECT * FROM Manufacturers SELECT * FROM Models
ALTER TABLE `Experiment` ADD COLUMN `Cost_idCost` INT(11) NULL DEFAULT NULL AFTER `verifierOutputPreserveLast` , ADD CONSTRAINT `fk_Experiment_Cost1` FOREIGN KEY (`Cost_idCost` ) REFERENCES `Cost` (`idCost` ) ON DELETE SET NULL ON UPDATE CASCADE , ADD INDEX `fk_Experiment_Cost1` (`Cost_idCost` ASC) ;
<filename>Miscellaneous/StoredProcedures/Backup_2015 March 25/h3giNbsSetNbsEligible.sql create procedure h3giNbsSetNbsEligible @orderref int, @nbsEligible bit as begin insert into h3giNbsTracking values (@orderref, @nbsEligible) end GRANT EXECUTE ON h3giNbsSetNbsEligible TO b4nuser GO
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100 -- file:portals.sql ln:25 expect:true DECLARE foo10 SCROLL CURSOR FOR SELECT * FROM tenk2
<gh_stars>1-10 CREATE PROCEDURE InsertPersonalDetails -- Add the parameters for the stored procedure here @title varchar(255), @description varchar(255), @startDate date, @startTime time, @endDate date, @endTime time AS BEGIN INSERT INTO EmployeeSchema.events(title, description, startDate, startTime, endDate, endTime) VALUES (@title,@description,@startDate,@startTime,@endDate,@endTime) END go
<gh_stars>0 CREATE DATABASE IF NOT EXISTS `dcorder-00` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `dcorder-00`; -- Table structure for table `t_order_0000` -- DROP TABLE IF EXISTS `t_order_0000`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0000` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_order_0001` -- DROP TABLE IF EXISTS `t_order_0001`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0001` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_order_0002` -- DROP TABLE IF EXISTS `t_order_0002`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0002` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_order_0003` -- DROP TABLE IF EXISTS `t_order_0003`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0003` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2021-05-07 15:57:14 CREATE DATABASE IF NOT EXISTS `dcorder-01` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `dcorder-01`; -- MySQL dump 10.13 Distrib 8.0.20, for macos10.15 (x86_64) -- -- Host: 127.0.0.1 Database: dcorder-01 -- ------------------------------------------------------ -- Server version 5.7.11 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!50503 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `t_order_0004` -- DROP TABLE IF EXISTS `t_order_0004`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0004` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_order_0005` -- DROP TABLE IF EXISTS `t_order_0005`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0005` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_order_0006` -- DROP TABLE IF EXISTS `t_order_0006`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0006` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_order_0007` -- DROP TABLE IF EXISTS `t_order_0007`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0007` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2021-05-07 15:57:14 CREATE DATABASE IF NOT EXISTS `dcorder-02` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `dcorder-02`; -- MySQL dump 10.13 Distrib 8.0.20, for macos10.15 (x86_64) -- -- Host: 127.0.0.1 Database: dcorder-02 -- ------------------------------------------------------ -- Server version 5.7.11 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!50503 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `t_order_0008` -- DROP TABLE IF EXISTS `t_order_0008`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0008` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_order_0009` -- DROP TABLE IF EXISTS `t_order_0009`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0009` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_order_0010` -- DROP TABLE IF EXISTS `t_order_0010`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0010` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_order_0011` -- DROP TABLE IF EXISTS `t_order_0011`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0011` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2021-05-07 15:57:14 CREATE DATABASE IF NOT EXISTS `dcorder-03` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `dcorder-03`; -- MySQL dump 10.13 Distrib 8.0.20, for macos10.15 (x86_64) -- -- Host: 127.0.0.1 Database: dcorder-03 -- ------------------------------------------------------ -- Server version 5.7.11 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!50503 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `t_order_0012` -- DROP TABLE IF EXISTS `t_order_0012`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0012` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_order_0013` -- DROP TABLE IF EXISTS `t_order_0013`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0013` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_order_0014` -- DROP TABLE IF EXISTS `t_order_0014`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0014` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_order_0015` -- DROP TABLE IF EXISTS `t_order_0015`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `t_order_0015` ( `id` bigint(20) NOT NULL COMMENT '主键', `user_id` bigint(20) NOT NULL, `order_no` varchar(256) NOT NULL COMMENT '名称', `service_name` varchar(190) DEFAULT NULL COMMENT '外部服务名', `creator` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '创建者', `modifier` varchar(64) NOT NULL DEFAULT 'SYSTEM' COMMENT '修改者', `gmt_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `is_deleted` char(1) NOT NULL DEFAULT 'N' COMMENT '是否删除 Y:是 N:否', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2021-05-07 15:57:14
<reponame>bogdandmt/dbmigration create table task ( id bigint(20), description varchar(255), name varchar(255), creator varchar(255), primary key (id) );
<reponame>kostin88/impala-tpcds-kit -- start query 99 in stream 0 using template query99.tpl select substr(w_warehouse_name,1,20) ,sm_type ,cc_name ,sum(case when (cs_ship_date_sk - cs_sold_date_sk <= 30 ) then 1 else 0 end) as D30_days ,sum(case when (cs_ship_date_sk - cs_sold_date_sk > 30) and (cs_ship_date_sk - cs_sold_date_sk <= 60) then 1 else 0 end ) as D31_60_days ,sum(case when (cs_ship_date_sk - cs_sold_date_sk > 60) and (cs_ship_date_sk - cs_sold_date_sk <= 90) then 1 else 0 end) as D61_90_days ,sum(case when (cs_ship_date_sk - cs_sold_date_sk > 90) and (cs_ship_date_sk - cs_sold_date_sk <= 120) then 1 else 0 end) as D91_120_days ,sum(case when (cs_ship_date_sk - cs_sold_date_sk > 120) then 1 else 0 end) as D120_days from catalog_sales ,warehouse ,ship_mode ,call_center ,date_dim where d_month_seq between 1202 and 1202 + 11 -- equivalent to 2451605 2451969 and cs_ship_date_sk = d_date_sk and cs_warehouse_sk = w_warehouse_sk and cs_ship_mode_sk = sm_ship_mode_sk and cs_call_center_sk = cc_call_center_sk group by substr(w_warehouse_name,1,20) ,sm_type ,cc_name order by substr(w_warehouse_name,1,20) ,sm_type ,cc_name limit 100 ; -- end query 99 in stream 0 using template query99.tpl;
<gh_stars>10-100 //// CHANGE name=change0 CREATE MEMORY TABLE TABLE448(ID INTEGER NOT NULL PRIMARY KEY,FIELD1 VARCHAR(30),USERTYPE3FIELD USERTYPE3,USERTYPE5FIELD USERTYPE5,USERTYPE6FIELD USERTYPE6) GO
<filename>liquibase-core/src/test/java/liquibase/verify/saved_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/addPrimaryKey/db2.sql -- Database: db2 -- Change Parameter: columnNames=id, name -- Change Parameter: tableName=person ALTER TABLE person ADD PRIMARY KEY (id, name); CALL SYSPROC.ADMIN_CMD ('REORG TABLE person');
<reponame>check-spelling/artifacthub-hub -- Start transaction and plan tests begin; select plan(15); -- Declare some variables \set user1ID '00000000-0000-0000-0000-000000000001' \set repo1ID '00000000-0000-0000-0000-000000000001' -- Seed some data insert into "user" (user_id, alias, email) values (:'user1ID', 'user1', '<EMAIL>'); insert into repository (repository_id, name, display_name, url, repository_kind_id, user_id) values (:'repo1ID', 'repo1', 'Repo 1', 'https://repo1.com', 0, :'user1ID'); -- Run some tests before setting the last scanning results for the first time select is(last_scanning_ts, null, 'Last scanning ts should have not been set yet') from repository where name = 'repo1'; select is(last_scanning_errors, null, 'Last scanning errors should have not been set yet') from repository where name = 'repo1'; select is(count(*), 0::bigint, 'No scanning errors events should have been registered') from event where repository_id=:'repo1ID' and event_kind_id = 4; -- Set last scanning results and run some more tests select set_last_scanning_results(:'repo1ID', '', true); select isnt(last_scanning_ts, null, 'Last scanning ts should have been set') from repository where name = 'repo1'; select is(last_scanning_errors, null, 'Last scanning errors should have been set to null') from repository where name = 'repo1'; select is(count(*), 0::bigint, 'No scanning errors events should have been registered') from event where repository_id=:'repo1ID' and event_kind_id = 4; -- Set last scanning results again and run some more tests select set_last_scanning_results(:'repo1ID', 'some errors', true); select is(last_scanning_errors, 'some errors', 'Last scanning errors should have been set to some errors') from repository where name = 'repo1'; select is(count(*), 1::bigint, 'One scanning error event should have been registered') from event where repository_id=:'repo1ID' and event_kind_id = 4; -- Set last scanning results again with the same error and run some more tests select set_last_scanning_results(:'repo1ID', 'some errors', true); select is(count(*), 1::bigint, 'No more scanning error events should have been registered') from event where repository_id=:'repo1ID' and event_kind_id = 4; -- Set last scanning results again with another error and run some more tests select set_last_scanning_results(:'repo1ID', 'some new errors', true); select is(last_scanning_errors, 'some new errors', 'Last scanning errors should have been set to some new errors') from repository where name = 'repo1'; select is(count(*), 2::bigint, 'One more scanning error event should have been registered (total 2 now)') from event where repository_id=:'repo1ID' and event_kind_id = 4; -- Set last scanning results again with no errors and run some more tests select set_last_scanning_results(:'repo1ID', '', true); select is(last_scanning_errors, null, 'Last scanning errors should have been set to null') from repository where name = 'repo1'; select is(count(*), 2::bigint, 'No more scanning error events should have been registered') from event where repository_id=:'repo1ID' and event_kind_id = 4; -- Set last scanning results again with another error and run some more tests select set_last_scanning_results(:'repo1ID', 'some new errors', false); select is(last_scanning_errors, 'some new errors', 'Last scanning errors should have been set to some new errors') from repository where name = 'repo1'; select is(count(*), 2::bigint, 'No more scanning error events should have been registered') from event where repository_id=:'repo1ID' and event_kind_id = 4; -- Finish tests and rollback transaction select * from finish(); rollback;
<gh_stars>0 BEGIN TRANSACTION; PRAGMA application_id = 215794801; PRAGMA user_version = 1; CREATE TABLE `User` ( `ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `UserName` TEXT NOT NULL, `Name` TEXT NOT NULL, `PasswordHash` TEXT NOT NULL ); CREATE TABLE `Audit` ( `ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `UserID` INTEGER NOT NULL, `Action` TEXT NOT NULL, `Time` TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, `ExtraData` TEXT, FOREIGN KEY (`UserID`) REFERENCES `User`(`ID`) ); COMMIT;
<filename>OJ/LeetCode/leetcode/problems/182.sql /* Leetcode-cn */ /* Type: sql */ /* 题目信息 */ /* *182. 查找重复的电子邮箱 编写一个 SQL 查询,查找 Person 表中所有重复的电子邮箱。 示例: +----+---------+ | Id | Email | +----+---------+ | 1 | <EMAIL> | | 2 | <EMAIL> | | 3 | <EMAIL> | +----+---------+ 根据以上输入,你的查询应返回以下结果: +---------+ | Email | +---------+ | <EMAIL> | +---------+ 说明:所有电子邮箱都是小写字母。 */ /* my solution */ -- solution-x, ms, defeat % select Email from Person group by Email -- 这一句如果没有就是错的,必须要有group by吗 having count(Email) >= 2; /* better solution */ -- solution-x, ms, defeat % /* 一些总结 */ -- 1. 题意: -- -- 需要注意的点: -- 1. 如果不使用 GROUP BY 子句,则 HAVING 的行为与 WHERE 子句一样。 -- 2. -- 3.
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jan 05, 2019 at 06:03 PM -- Server version: 5.7.19 -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `api` -- -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- DROP TABLE IF EXISTS `migrations`; CREATE TABLE IF NOT EXISTS `migrations` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_01_05_091258_create_products_table', 1), (4, '2019_01_05_091526_create_reviews_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- DROP TABLE IF EXISTS `password_resets`; CREATE TABLE IF NOT EXISTS `password_resets` ( `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, KEY `password_resets_email_index` (`email`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `products` -- DROP TABLE IF EXISTS `products`; CREATE TABLE IF NOT EXISTS `products` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `detail` text COLLATE utf8mb4_unicode_ci NOT NULL, `price` int(11) NOT NULL, `stock` int(11) NOT NULL, `discount` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=251 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `products` -- INSERT INTO `products` (`id`, `name`, `detail`, `price`, `stock`, `discount`, `created_at`, `updated_at`) VALUES (1, 'molestiae', 'At nemo distinctio ullam. Aspernatur inventore distinctio at minus sapiente nihil molestias. Omnis voluptates quo ducimus rerum.', 309, 0, 12, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (2, 'dolorum', 'Omnis doloribus nostrum accusamus atque aliquam saepe. Beatae et id recusandae possimus eum. Molestias quos quod ipsam qui assumenda provident. Doloremque tempore voluptatem deserunt error iusto est.', 596, 0, 9, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (3, 'illum', 'Perspiciatis rerum aut sunt autem rerum tenetur. Cumque iusto consequuntur consectetur ipsum quae. Facilis quaerat saepe dolores soluta sapiente optio ea.', 215, 7, 20, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (4, 'rem', 'Tempora quidem rerum quae aliquam quo iusto similique. Sint officia soluta modi similique est. Aut accusantium nihil aut magni.', 345, 3, 11, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (5, 'voluptates', 'Rerum aliquid labore optio ut. Animi nam distinctio iure repellat libero. Sapiente doloribus veritatis ex officiis. Omnis unde in deleniti dolor.', 222, 8, 11, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (6, 'assumenda', 'Optio voluptas temporibus id molestiae deleniti iusto. Quibusdam unde vel recusandae et ut. Modi quas vero atque error et. Rerum sunt perspiciatis itaque repellendus dolorum ex neque. Aut in modi voluptatem iste autem debitis omnis.', 566, 2, 29, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (7, 'repellat', 'Tenetur cumque quas impedit. Et consequatur animi rerum impedit ut reiciendis corrupti aperiam. Id est impedit accusantium quod.', 388, 3, 16, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (8, 'est', 'Corrupti voluptatem quos reiciendis voluptatum aut aliquam. Maxime quis rerum omnis est delectus sed quam. Perspiciatis autem consectetur necessitatibus aliquam voluptas et. Asperiores sint qui modi officiis sit.', 615, 6, 24, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (9, 'pariatur', 'Asperiores necessitatibus est maxime omnis alias blanditiis eum. Error cupiditate alias sint distinctio ea nisi.', 252, 2, 20, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (10, 'saepe', 'Rerum aut exercitationem hic repudiandae a dolor atque quam. Dicta deleniti nesciunt et reprehenderit. Soluta officia quaerat odit aut vel. Omnis ut velit eaque eaque. Voluptatum autem illum rem omnis dolor vitae maxime.', 434, 7, 10, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (11, 'quo', 'Placeat et non nihil quia tempore ullam. Iusto nihil fuga tempora dolore. Necessitatibus hic at voluptas in. Ratione veritatis ipsa beatae molestiae laudantium at dolor. Assumenda at rerum cum debitis aliquid.', 494, 0, 17, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (12, 'est', 'Qui sed quia eum officiis nostrum officia neque. Natus in aut facilis doloremque laudantium. Perferendis fuga aut qui nostrum aut consequuntur. Tenetur dolorum ut debitis aut. Vero quidem corrupti voluptas deserunt quidem enim.', 769, 4, 23, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (13, 'accusantium', 'Et quia eos consectetur iure quia minus asperiores. Delectus dolor amet eligendi officiis accusamus assumenda deleniti. Quae et nesciunt voluptatem alias. Aut quia amet et dolores explicabo.', 418, 4, 25, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (14, 'soluta', 'Eum fugit vero sint sit quis. Autem necessitatibus voluptatem doloremque. Consequatur est sed sequi hic.', 882, 4, 17, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (15, 'aliquam', 'Ut est aspernatur aut at. Aperiam deleniti sit tempore voluptatem tempore rerum odit. Et cupiditate facere non animi. Delectus autem reiciendis perferendis recusandae ut sed. Occaecati laboriosam sit placeat unde.', 327, 2, 23, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (16, 'iste', 'Cumque quia quas ut et enim. Facilis a veniam hic ex voluptatum. Veritatis et quis numquam dolorum iusto. Non aut numquam assumenda amet et.', 808, 3, 2, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (17, 'consequuntur', 'Officia itaque voluptas non libero odio. Et repellendus qui delectus et nihil. Voluptas minus eos et doloribus.', 755, 3, 8, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (18, 'a', 'Excepturi officia nihil ut praesentium mollitia. In quibusdam dolorem amet asperiores.', 859, 0, 20, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (19, 'numquam', 'Distinctio tempora numquam voluptas debitis. Facere sequi inventore magnam repudiandae animi. Et officiis laborum consequatur et doloribus ut non illo.', 768, 0, 4, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (20, 'natus', 'Officia quia voluptatem non est at. Est mollitia omnis aperiam nemo tenetur soluta blanditiis. Ad voluptatibus dolores officiis sunt sed quisquam enim corporis. Modi voluptas minima iste eius similique ducimus vel.', 482, 4, 17, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (21, 'aut', 'Cupiditate eaque sint cupiditate laudantium aut harum. Qui eos maiores est aut esse.', 566, 4, 19, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (22, 'eum', 'Dolores placeat earum veritatis nesciunt. Officia accusantium suscipit esse ratione quibusdam culpa. Aut molestiae velit assumenda ullam voluptates.', 331, 2, 17, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (23, 'enim', 'Facere quaerat praesentium maiores quo ut. Sint vel est eos quaerat. Aliquam voluptas et et harum.', 759, 3, 25, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (24, 'alias', 'Possimus voluptas quia officiis necessitatibus. Est quo sunt vero vero voluptatum doloribus nobis. Non eaque ea officia rem quis ex.', 553, 7, 12, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (25, 'dolorem', 'Deserunt dolorem quae ut doloribus autem eos. Qui soluta sapiente et earum. Provident dolore consequuntur sint maiores atque rerum.', 119, 6, 4, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (26, 'repellendus', 'Perspiciatis ut delectus et provident voluptas. Officia perferendis non nostrum eligendi perferendis qui. Quo ipsa est quia sint molestiae. Et eos commodi ducimus fuga repellat.', 671, 7, 21, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (27, 'ab', 'Molestias est voluptatem est modi dolores. Consequatur vel rerum cum et neque. Qui velit nihil molestiae et nulla ipsum dicta minus. Ut maxime totam quasi excepturi possimus velit.', 160, 4, 18, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (28, 'iste', 'Aut debitis itaque fugit dolorem. Facere exercitationem enim facere quia optio illum. Eveniet vero impedit enim voluptatem neque et.', 499, 7, 27, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (29, 'totam', 'Sint consequuntur est iste odit. Quas reprehenderit rerum nisi sed iusto impedit accusamus porro. Enim quis beatae aut. Aut molestiae laborum sequi cum delectus a.', 968, 3, 11, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (30, 'dolores', 'Labore dolorem sapiente ipsam voluptatem. Deserunt velit facilis animi ut ducimus. Omnis qui est ut quia. Deleniti in in molestiae omnis rerum.', 549, 5, 4, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (31, 'sit', 'Enim ut temporibus iste et id corporis voluptatem et. Accusantium maiores maiores architecto aut error recusandae architecto. Velit ipsum ad quia dolor iure ducimus est. Odio ut id autem earum culpa.', 243, 6, 28, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (32, 'ut', 'Quia voluptates qui ullam enim corporis. Mollitia error ad dicta sint. Optio a dignissimos labore sint mollitia.', 437, 3, 26, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (33, 'dolor', 'Qui quas ut libero iure eveniet dolores. Ut corrupti optio autem illum. Recusandae ut quisquam tempore et magni harum. Expedita repellat debitis ut placeat placeat.', 743, 3, 17, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (34, 'enim', 'Autem itaque vitae illo. Laudantium eius eaque omnis ipsa. Impedit non sint voluptatibus dolores eaque.', 967, 3, 6, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (35, 'nemo', 'Quidem dignissimos vel et accusamus voluptas aliquid quia dolorem. Illum voluptas aut consequatur est accusantium quibusdam. Est error quod explicabo ea.', 893, 8, 2, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (36, 'et', 'Non laborum fuga sit. Accusamus qui dolorum quos fugiat. Asperiores nam fugit nisi maiores molestiae in ut velit. Quo qui optio et optio sint quisquam sapiente.', 481, 8, 29, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (37, 'voluptatem', 'Pariatur soluta velit fugit illo. Qui sed aut natus possimus. Consequatur doloribus enim neque deserunt exercitationem aliquid.', 766, 7, 8, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (38, 'sit', 'Sit praesentium modi aut nemo sunt earum dignissimos. Eos iure et quod rerum ut.', 115, 4, 21, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (39, 'est', 'Sunt voluptatem qui eligendi pariatur ex. Incidunt reprehenderit nihil at eveniet aut a et voluptatum. Deleniti vitae consequatur qui similique.', 477, 9, 6, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (40, 'in', 'Vitae repellendus porro accusantium et ea dignissimos qui. Amet autem quas ut velit saepe accusantium nobis.', 495, 4, 7, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (41, 'tempora', 'Tempore praesentium neque beatae repudiandae qui vel voluptatum. Quod amet provident hic perspiciatis occaecati.', 593, 7, 7, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (42, 'deserunt', 'Doloremque voluptas eum modi iste eos id dolores. Amet quibusdam inventore natus expedita est. Repellendus voluptatibus voluptas sit quo enim.', 993, 7, 6, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (43, 'non', 'Voluptatem possimus sit aut maxime incidunt sint eos. Libero non eum saepe ad. Nam ducimus facilis itaque. Exercitationem optio labore nulla.', 410, 8, 4, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (44, 'est', 'Repellat vel aut sunt id sint voluptatem. Odio quasi reprehenderit nobis ad debitis. Rem dolorem necessitatibus aperiam porro natus.', 184, 0, 13, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (45, 'sint', 'Tempora aliquid omnis accusamus et aut. Dolores doloribus qui sint atque quo repellendus autem. Sed blanditiis sed velit soluta.', 795, 7, 8, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (46, 'saepe', 'Recusandae quo in et provident. Est sed libero aut laudantium quo nam eveniet.', 235, 4, 7, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (47, 'velit', 'Iure consequatur velit veritatis est. Et libero deserunt saepe reprehenderit. Voluptas praesentium eius rerum.', 254, 8, 19, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (48, 'adipisci', 'Quasi non maxime voluptatem ab et autem dolorem ut. Sequi et et qui repellat accusantium qui. Voluptatibus dolores aut est repellat dolorem eligendi et. Quisquam eum enim reprehenderit aliquid veniam.', 828, 5, 3, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (49, 'repellendus', 'Id id ut maiores sequi voluptates. Voluptas delectus cumque omnis adipisci sed. Sed dolorem et dolores pariatur eligendi enim occaecati iusto.', 343, 1, 9, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (50, 'quasi', 'Voluptas autem corporis officiis officia. Nisi aliquid non non laboriosam non ducimus corrupti. Suscipit eos ducimus maxime nobis sit voluptatem placeat.', 965, 4, 29, '2019-01-05 09:50:39', '2019-01-05 09:50:39'), (51, 'ipsum', 'Omnis necessitatibus nisi vero tempora voluptas. Voluptates asperiores qui sapiente consectetur placeat. Qui placeat sit quis dolore. Repudiandae quia laborum ipsa consequatur.', 813, 6, 22, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (52, 'recusandae', 'Aliquam facere facere sint repellat qui qui iste minima. Sint est magnam eos laboriosam. Autem iure quia neque recusandae cum beatae veritatis. Optio ut ut eum eveniet.', 323, 5, 13, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (53, 'reprehenderit', 'Et ut cupiditate asperiores exercitationem dolor et. Eveniet exercitationem rerum enim unde nisi officia. Debitis dolorem assumenda eaque expedita. Iure veritatis odio nemo et et. Eligendi est cupiditate et.', 339, 5, 4, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (54, 'eius', 'Voluptatum natus non earum. Autem sapiente sint enim esse aut. Laborum voluptatem molestiae dolores fuga aut ipsa nihil. Molestias fuga atque voluptate.', 627, 4, 28, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (55, 'eius', 'Iure consequatur ut consequatur ipsa modi. Est velit et non aliquam. Sed consectetur recusandae corrupti eligendi. Nihil et officia voluptatem sit sed eaque et.', 422, 8, 9, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (56, 'unde', 'Voluptas reiciendis dolores vel illum eum soluta sequi sunt. Culpa quibusdam sequi et nemo excepturi modi. Enim quia optio repudiandae.', 913, 1, 12, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (57, 'impedit', 'Error optio quibusdam iste accusamus minima possimus ipsam. Eum nisi nostrum perferendis enim dolor. Error atque rerum est ipsa. Aspernatur sunt nihil temporibus perferendis.', 123, 5, 10, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (58, 'numquam', 'Molestiae eius unde culpa eaque et laudantium molestiae aut. Assumenda ut ea pariatur nulla. Dolorem veritatis sint illo et velit consectetur qui.', 771, 4, 28, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (59, 'tenetur', 'Aut voluptatem unde consectetur quam asperiores adipisci. Voluptatem ipsam voluptatem sed sint. Deserunt aliquid sit sapiente eligendi quisquam. Veniam autem inventore iusto et.', 778, 2, 11, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (60, 'sunt', 'Nesciunt velit omnis esse est. A quis ad voluptatem. Earum sequi et ipsam sunt. Saepe et perferendis ratione. Eum nihil aut vel quisquam.', 709, 8, 2, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (61, 'vitae', 'Est amet fugit est dolor mollitia reprehenderit. Distinctio eligendi quo praesentium laudantium qui. Autem est laudantium dolores dolores. Iusto eius assumenda facere dolorum.', 935, 0, 6, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (62, 'asperiores', 'Optio molestias quisquam tempora deleniti neque. Architecto blanditiis consequatur repellat omnis maxime quae. Eum sed perspiciatis odio. Magni illo veritatis molestiae praesentium.', 284, 5, 22, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (63, 'aut', 'Laborum qui voluptas asperiores fugit nostrum magnam et. Doloribus maxime molestiae voluptate pariatur laboriosam id ut. Qui excepturi perferendis sed accusamus ut perferendis quidem possimus. Eum harum optio est eos. Voluptatum dolorem sapiente fuga dolor est ratione.', 443, 2, 7, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (64, 'reiciendis', 'Qui odit consectetur non quas. Voluptas illum omnis tempore. Sed vero rerum non vitae eaque qui repellat ut. Cumque et cum et quae deleniti.', 814, 6, 4, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (65, 'ipsum', 'Vel corporis beatae ipsum est earum omnis. Dignissimos maxime rerum ab nostrum cumque. Magnam et itaque nesciunt et hic qui praesentium eum.', 429, 5, 11, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (66, 'molestiae', 'Excepturi rerum sit ut sint cumque dolore non. Enim architecto quo distinctio quis voluptatem. Quas non illo maxime et.', 453, 8, 13, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (67, 'magnam', 'Commodi cumque veniam in recusandae. Cupiditate est quis quae mollitia aliquam sed qui rerum. Veniam maiores voluptatum sed quos incidunt nam quia iste. Nihil quisquam distinctio et atque doloremque.', 567, 5, 10, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (68, 'error', 'Asperiores est magni expedita minus odio. Illum eos voluptatem dolores et quia nostrum laboriosam.', 596, 9, 14, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (69, 'voluptatem', 'Omnis et laborum soluta natus. Omnis molestiae consequatur repellendus placeat odit vel.', 692, 6, 30, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (70, 'et', 'Dignissimos dolorem minus et unde doloremque consequatur recusandae. Quidem sunt architecto consequatur perspiciatis earum provident neque. Molestiae officia provident sed iure reprehenderit maiores exercitationem dolores.', 619, 4, 26, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (71, 'delectus', 'Dolorem dolor quo in excepturi. Corporis ipsam et laboriosam possimus. Dolorem doloribus expedita aut cumque laudantium at ut. Eos consequuntur harum sed enim accusamus iusto.', 628, 6, 18, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (72, 'dolorem', 'Voluptas nostrum et non nostrum enim quia. Quae delectus voluptate consequatur quo molestiae consequatur. Maxime ea iste aliquam in temporibus.', 195, 2, 20, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (73, 'omnis', 'Corrupti rerum perspiciatis exercitationem explicabo rerum natus eos id. Harum numquam qui ea voluptatem commodi sed qui. Sit quasi tempore quo aliquid. Totam hic exercitationem nihil.', 119, 9, 20, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (74, 'esse', 'Sequi qui assumenda praesentium sint sequi unde praesentium. Est enim dolorem repellendus autem. Occaecati id sed aut nulla laudantium qui rerum voluptatem. Maxime et explicabo iusto eos quas minima id ab.', 367, 7, 28, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (75, 'explicabo', 'Et non consequatur corporis expedita quod accusamus qui qui. Sint libero ab ab aut quo. Accusamus minus dignissimos quaerat sit possimus vel.', 937, 5, 5, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (76, 'ut', 'Hic laborum ut veniam eveniet eos modi hic nemo. Amet officia unde non est et. Quod quia mollitia voluptas harum.', 130, 6, 11, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (77, 'labore', 'Nisi amet ad eaque optio fuga natus. Ratione deleniti nostrum eos. Perspiciatis est dolores tempore vel sed nihil perferendis. Rem rerum architecto ab rem.', 260, 0, 11, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (78, 'sed', 'Eaque nobis nihil tempora minus libero delectus veritatis. Consequuntur molestiae animi ipsa itaque sit dignissimos optio. Quibusdam pariatur veniam et eos sunt. Qui vero aut iure suscipit.', 819, 7, 2, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (79, 'id', 'Cumque voluptatem eveniet quae voluptatem. Minus laboriosam et eos laboriosam. Suscipit ut non rerum temporibus. Eos ut excepturi nihil.', 540, 8, 25, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (80, 'quia', 'Tempora et minima ut temporibus rerum quo. Voluptatem quisquam animi possimus qui consectetur. Nihil incidunt atque sint pariatur unde consequatur mollitia.', 546, 2, 7, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (81, 'amet', 'Distinctio eligendi id vel fuga at. Ducimus ipsam in qui commodi aut ut. Temporibus fuga alias ad quibusdam sequi provident commodi. Ipsam perferendis sit sequi.', 379, 2, 23, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (82, 'consequatur', 'Quaerat aut sit id et. Hic maxime aut voluptates in molestiae consequatur minima sit. Libero vel totam dignissimos et.', 725, 0, 10, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (83, 'quia', 'Aliquam quia hic nobis perferendis ut ducimus. Rerum quisquam ea voluptates impedit veritatis. Cupiditate ut in officiis eius molestias magni occaecati. Et nostrum vel qui neque veniam et nostrum.', 735, 3, 14, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (84, 'et', 'Nostrum veritatis expedita et distinctio qui vitae voluptas quia. Labore quam nihil ab omnis. Voluptatibus cum eius nesciunt consectetur et.', 403, 4, 5, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (85, 'et', 'Velit dolorem ad facilis quia nostrum. Vero reiciendis vel nihil quod aut occaecati pariatur quae. Quis sint soluta laborum aut tenetur ut.', 338, 0, 29, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (86, 'quia', 'Fugiat rem eaque exercitationem repudiandae recusandae laudantium qui. Vero eveniet dignissimos a et sit adipisci distinctio.', 559, 9, 18, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (87, 'voluptatibus', 'Quibusdam et facilis voluptatibus aut consequatur culpa qui voluptate. Ipsum voluptates necessitatibus debitis illo dolorem. Voluptates commodi ipsa eius. Quasi suscipit qui aliquam vel aut itaque ab odit.', 670, 2, 12, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (88, 'quos', 'Asperiores voluptas sed aut cum est alias culpa officiis. Modi tempore cum enim magnam voluptas libero reprehenderit. Natus provident maiores perferendis architecto ab deserunt eligendi laborum. Esse aspernatur totam sunt ullam.', 735, 5, 11, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (89, 'velit', 'Dicta quasi aperiam ex tempora nesciunt ullam rerum. Fugit delectus mollitia corrupti molestiae deserunt impedit voluptatum. Sequi rerum mollitia nostrum sunt facilis dolorum quod molestias.', 287, 8, 5, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (90, 'et', 'Ex veniam excepturi quia voluptatem. Non facere est dolorum sint.', 607, 0, 18, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (91, 'aliquid', 'Quia sapiente ipsum voluptatum inventore. Nihil non cupiditate et id nemo soluta. Sed corporis quis qui iure esse nisi fugiat.', 508, 5, 18, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (92, 'autem', 'Voluptatem vitae eius consequatur consequuntur et. Perspiciatis sapiente et impedit est veniam tempore.', 103, 2, 27, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (93, 'porro', 'Perspiciatis ut neque facilis ea adipisci. Dolor quisquam a ipsam. Qui ut ut iure earum quis doloribus aut.', 793, 1, 9, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (94, 'ut', 'Ea omnis repudiandae et cum voluptatem officia qui. Est debitis consectetur ipsum est magni. Fugiat dicta numquam et repellat autem aut. Eum qui ut exercitationem minus.', 904, 2, 14, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (95, 'exercitationem', 'Temporibus et et sapiente esse sint aperiam consequuntur voluptatum. Voluptas et dolor aut vel quibusdam. Quisquam eveniet quam sed saepe accusantium molestias. Occaecati qui suscipit et.', 457, 9, 4, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (96, 'suscipit', 'Ipsum quis quibusdam sed dolorum dolores autem cupiditate. Distinctio repellendus enim perferendis vel eum repudiandae. Suscipit facere cum qui et.', 402, 2, 9, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (97, 'temporibus', 'Nihil est eum quis. Et ut consectetur dolores est molestiae rerum. Doloribus repellat odit vel ab.', 491, 3, 20, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (98, 'est', 'Enim et ratione itaque minima. Ut debitis qui doloremque a incidunt alias dolorum. Natus ut assumenda pariatur molestiae quibusdam.', 176, 3, 18, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (99, 'totam', 'Nostrum voluptas ut et repudiandae laboriosam vel. Consectetur quia iste aut et eum. Aperiam beatae similique sed perferendis praesentium facilis aliquam. Ut atque nisi eum enim aut praesentium a.', 347, 4, 28, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (100, 'possimus', 'Culpa doloribus voluptatibus nihil quidem vero. Nemo omnis ut et molestiae natus perferendis placeat debitis. Iste delectus labore aspernatur dolores totam et. Qui excepturi illo et et et vero. Voluptatibus consequatur accusamus ea nihil rerum.', 576, 5, 22, '2019-01-05 09:55:51', '2019-01-05 09:55:51'), (101, 'reiciendis', 'Labore maiores doloremque vitae. Sunt repudiandae ut consequuntur non aspernatur sit quibusdam possimus. Sapiente qui est nisi possimus sint.', 662, 2, 25, '2019-01-05 09:57:39', '2019-01-05 09:57:39'), (102, 'dolorem', 'Ut debitis et aut nostrum sit. Earum beatae vitae cumque enim ea doloribus.', 927, 8, 24, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (103, 'praesentium', 'Saepe officiis voluptatem ut sed. In tempore reiciendis cumque repellendus esse et earum. Vero nesciunt et ut est. Cum et non optio eveniet et voluptatibus.', 540, 5, 20, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (104, 'est', 'Alias dolores quod cumque tenetur dolorem. Voluptas accusamus itaque et ut dolor non facere.', 951, 3, 11, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (105, 'animi', 'Exercitationem et itaque molestias esse. Voluptate dolore dolorum inventore perferendis aliquam quos ut. Laborum saepe ut sed hic et.', 946, 6, 18, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (106, 'tempora', 'Ex officiis dicta sit illum vel eos quis. Vel iusto doloremque quae nihil vel. Et ipsa non ut et a placeat. Est qui culpa error alias fugiat velit.', 886, 4, 8, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (107, 'eum', 'Voluptatem optio est quia aut similique. Molestias dolore est possimus harum ad. Soluta autem iste enim delectus consequatur vel sequi qui. Dolores deserunt ut animi a assumenda delectus.', 364, 1, 4, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (108, 'sed', 'Sit sint amet et maiores. Numquam doloremque hic adipisci quaerat occaecati. Natus aliquam ut autem. Repellat omnis sit sunt occaecati delectus nam nihil porro.', 949, 1, 13, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (109, 'libero', 'Laudantium velit optio non nihil explicabo commodi sunt. Cupiditate libero aut laborum. Architecto voluptatem corrupti dolor similique. Quia dolorum dolores ad repellat aliquid.', 175, 9, 30, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (110, 'sunt', 'Ullam quis debitis laborum. Autem voluptatibus asperiores eius fugiat. Eos laborum aut in dolore fugiat.', 928, 6, 3, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (111, 'labore', 'Ipsum molestiae sapiente adipisci facere qui. Dolor dignissimos et at neque consectetur omnis tenetur. Itaque ipsa quasi reprehenderit aut. Earum impedit rem est quis ut voluptatem rerum. Dicta quia tenetur dolorem dignissimos odio voluptate.', 504, 2, 4, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (112, 'vel', 'Soluta quia perferendis sed eum blanditiis possimus. Voluptates consequuntur delectus quis. Et dolorum consectetur quod natus veniam.', 854, 2, 16, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (113, 'dolorum', 'Quo suscipit atque fugit et adipisci dolorem. Magnam placeat et qui porro quibusdam vero beatae. Asperiores ut rerum aperiam dolor voluptate explicabo in officiis.', 397, 1, 2, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (114, 'ea', 'Sunt eos odit earum a. Eaque quo ea natus minus aut. Illo qui veritatis minus et non ea ex.', 940, 7, 14, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (115, 'autem', 'Architecto voluptatem voluptatibus doloremque consequatur. Nostrum velit debitis optio ut alias aut modi. Autem voluptatem dolorum voluptatem.', 708, 6, 20, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (116, 'quia', 'Sed sint maiores quod est est. Quisquam quam doloremque nostrum. Voluptas quasi et amet corporis. Facilis quis minima non id est. Qui et expedita optio nihil a.', 326, 5, 15, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (117, 'non', 'Modi perspiciatis illum consectetur ex. Dolorum voluptatem maiores et corrupti. Dicta corrupti nemo deleniti dolore doloribus sit consequatur.', 437, 6, 6, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (118, 'quis', 'Quis aperiam soluta vel molestiae mollitia. Aut et vitae est enim officia officiis et. Doloremque et quo qui.', 499, 9, 19, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (119, 'culpa', 'Ut eligendi impedit esse corporis. Natus minus deserunt qui est quaerat similique ad. Aut illo officiis in est ut fuga.', 600, 1, 2, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (120, 'incidunt', 'Dolor reiciendis et ea mollitia quia et. Quod ut ut facilis inventore modi explicabo perspiciatis. Architecto aperiam alias adipisci modi non voluptas facere. Hic aut numquam asperiores qui sed dicta.', 926, 7, 10, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (121, 'cupiditate', 'Fugit accusamus quia sunt adipisci qui. Quaerat eum quia expedita minima non quidem. At dolor est similique eos error et provident. Veniam cumque nesciunt consequatur sed.', 299, 7, 28, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (122, 'ratione', 'Impedit enim aspernatur impedit totam qui illum consequuntur amet. Voluptatem voluptates molestias fugiat iusto unde. Sint nesciunt aut deserunt impedit similique. Libero dolorem doloribus modi.', 661, 6, 21, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (123, 'non', 'Vel aut et doloribus atque perspiciatis veniam recusandae. Architecto nam quia animi ea. Velit harum asperiores illo modi pariatur.', 244, 7, 2, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (124, 'hic', 'Atque sapiente quia est quia et officiis dolor. Tempora aut est qui quisquam. Sed quia dolor dolore sed est dolorem. Aperiam eos tenetur ratione pariatur. Quaerat sit incidunt iure aliquam rerum et.', 733, 7, 8, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (125, 'tempora', 'Quis quae et voluptas officia. Voluptates aperiam officia at id quod praesentium.', 222, 3, 6, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (126, 'velit', 'Earum quibusdam expedita provident illo qui et placeat qui. Voluptatem tenetur soluta doloremque quidem eum reiciendis provident. Dolor quia harum asperiores.', 477, 0, 3, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (127, 'voluptatem', 'Accusantium optio ut qui est officia quae. Qui molestiae facere excepturi vero officiis et.', 384, 5, 4, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (128, 'non', 'Officia nemo placeat sit dolores doloribus velit eum. Et eum illo ut ex quia eveniet nemo. Quisquam autem ex qui ut ut. Nostrum dolores porro suscipit vitae dolorum corrupti labore.', 621, 4, 18, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (129, 'vel', 'Fugiat deleniti sunt omnis veniam quod. Repellendus harum omnis et quis iure et rerum.', 582, 1, 25, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (130, 'rerum', 'Quis eaque aut adipisci illo culpa. Quas temporibus sapiente unde id.', 767, 9, 27, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (131, 'dolore', 'Ducimus autem facilis enim repudiandae quia hic. Expedita eos dolores quas eum. Perspiciatis id consequuntur molestiae perferendis. Aliquam officia ratione possimus.', 123, 5, 19, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (132, 'consequuntur', 'Ut aliquid voluptates ipsum voluptas quibusdam. Beatae enim amet assumenda sunt. Possimus atque itaque velit explicabo voluptatibus.', 591, 5, 9, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (133, 'incidunt', 'Sed cumque veritatis corrupti velit nobis qui. Omnis consequatur illum dolores voluptate consequuntur tenetur. Doloremque et voluptates qui atque consequuntur.', 315, 8, 7, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (134, 'voluptatem', 'Molestiae quaerat facilis ipsa. Sed dolor asperiores ratione maxime. Reiciendis similique voluptate quidem soluta iusto sunt incidunt atque. Pariatur occaecati est ut id.', 766, 5, 7, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (135, 'est', 'Labore possimus est eum repellendus. Numquam temporibus soluta soluta cumque provident aut corporis nihil. Officia reprehenderit eum aliquid dicta sint voluptatem.', 557, 7, 26, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (136, 'autem', 'Et iste labore omnis error. Qui et et sequi iste et minus nostrum et. Ipsa tempore sit aut velit rerum qui. Sit dolorem repudiandae voluptatibus illum ut exercitationem quae voluptatem.', 217, 2, 25, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (137, 'non', 'Et dolorum et deleniti optio amet. Est corporis quia dolorem in dolores doloribus sapiente voluptatum. Ut saepe et quas aliquid eius. Aut aut beatae nihil doloremque vitae. Eum ipsa officia quibusdam enim natus ipsa.', 545, 0, 12, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (138, 'qui', 'Sit est sit voluptas autem recusandae autem error. Nisi ipsam velit necessitatibus at aut magni et. Et illo aut esse aut. Perspiciatis quaerat rerum nam est blanditiis fugit.', 825, 6, 20, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (139, 'sunt', 'Aut voluptas aut enim facilis nihil. Iste iste odit voluptates voluptate eaque. Architecto tempore sequi quod sit possimus iure at. Eius eos ut in asperiores sunt.', 507, 1, 11, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (140, 'consequatur', 'Voluptas molestiae quod repudiandae autem. Amet ad non id. Fugit quasi adipisci et odit occaecati. Voluptatem fuga ut dignissimos reprehenderit.', 461, 3, 24, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (141, 'temporibus', 'Explicabo temporibus nam et doloremque. Eaque et perferendis ut soluta voluptate cum accusantium. Et maiores rerum sed vero dolores vitae.', 677, 6, 8, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (142, 'voluptas', 'Quia earum quis sit autem. Animi veniam animi labore. Praesentium dignissimos rerum perspiciatis qui corrupti facilis labore.', 419, 0, 6, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (143, 'ipsam', 'Laudantium ea eius quod cumque velit in. Alias iure voluptatum numquam et tempora assumenda.', 968, 9, 22, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (144, 'harum', 'Vitae dolorem porro autem dicta perferendis eligendi. Velit dolore blanditiis error enim non atque iure et. Ullam explicabo sunt non sit.', 677, 5, 23, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (145, 'nobis', 'Recusandae et adipisci eum dolores ducimus vel aut. Aut illum sed similique id quibusdam reprehenderit eos temporibus.', 198, 3, 16, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (146, 'sunt', 'Et doloribus laborum sit tempora ex aspernatur dicta aut. Rerum vel ut praesentium. Nemo eaque odit nesciunt et et aliquid quos reiciendis. Vel saepe accusamus quis et ut labore.', 388, 6, 18, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (147, 'at', 'Nisi repellat eum tempore mollitia. Dolore praesentium assumenda suscipit fuga sunt nobis ea. Quia enim et assumenda aut corporis ex quia magni.', 195, 7, 7, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (148, 'eum', 'Ea sunt non et rem fugit quos eos. Laboriosam et nam et minus consectetur. Harum accusamus deleniti ut et tempore consequatur sit.', 608, 0, 12, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (149, 'sequi', 'Et nam adipisci consequatur sint magni alias eligendi. Esse et cupiditate eveniet inventore excepturi magnam. Cum veritatis blanditiis molestias reprehenderit.', 525, 1, 3, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (150, 'dolor', 'Enim fuga eos commodi consectetur debitis. Fugiat ad recusandae voluptatem delectus in ratione ducimus ipsa. Pariatur velit officia laborum eligendi eos quia nulla. Animi aperiam modi qui quia sapiente.', 803, 1, 28, '2019-01-05 09:57:40', '2019-01-05 09:57:40'), (151, 'ullam', 'Reprehenderit repudiandae aut quod quia possimus. Libero labore veritatis doloremque excepturi deserunt. Alias sed aperiam sed. Aut accusamus sapiente harum molestiae rem sed illo.', 557, 8, 20, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (152, 'maiores', 'Minima nesciunt eos veniam eligendi labore. Voluptatem voluptatem voluptates rerum repellat. Iusto harum aut ut consequuntur blanditiis necessitatibus et.', 583, 3, 19, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (153, 'voluptatem', 'Adipisci voluptatem tempora in veniam nostrum. Ab vero dolor impedit quod alias quasi.', 714, 2, 5, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (154, 'voluptatum', 'Voluptates quia et ipsum sint explicabo. Placeat natus in porro minima officiis. Et totam incidunt molestias dolor tenetur officia.', 779, 9, 6, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (155, 'aut', 'Laborum fugiat deserunt velit molestias et nisi eaque. Nostrum sit quasi tempora error est. Molestiae nam reprehenderit fugiat quis. Non sit dolore et voluptatibus.', 281, 8, 2, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (156, 'facere', 'Optio amet et molestiae ut non. Sed sit aut temporibus itaque ut. Neque sit eum minima ratione aut illo est. Qui facere ipsa qui corrupti.', 645, 3, 19, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (157, 'unde', 'Tempore sed quia delectus. Accusantium dolorum labore neque laborum et mollitia. Occaecati soluta inventore nobis est maiores itaque laborum saepe. Quia eos tempora alias culpa odio.', 684, 7, 19, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (158, 'vitae', 'Aliquid laborum qui dolores autem distinctio. Magnam dolor similique voluptatibus laboriosam molestiae adipisci reiciendis deserunt. Occaecati laboriosam est corporis dolor et eos sed. Eum soluta ducimus placeat molestiae blanditiis non nulla.', 901, 8, 19, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (159, 'omnis', 'Deserunt esse sit et veniam odit. Sint est doloribus consequuntur. Sint debitis esse id similique sed. Fugiat recusandae vitae eum dolor aut ut.', 927, 1, 13, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (160, 'nobis', 'Consequatur perspiciatis et laborum alias. Velit dolor totam et voluptas. Ratione quae enim laborum vel. Aperiam dignissimos tenetur excepturi ratione animi facere odit.', 948, 6, 6, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (161, 'quia', 'Quia qui aperiam commodi quia. Sapiente porro aut repellendus animi. Natus qui nesciunt omnis omnis ipsa omnis rerum qui. Praesentium esse est magnam sit blanditiis. Quasi reiciendis et qui.', 335, 7, 7, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (162, 'dolor', 'Nobis temporibus modi aut quaerat aut aliquid autem. Est nemo suscipit hic rerum repudiandae dolorem recusandae. Non porro rerum natus rerum et nesciunt quia.', 985, 5, 4, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (163, 'maiores', 'Aut necessitatibus inventore saepe est. Odio voluptatum eligendi exercitationem distinctio ea. Velit esse et molestias. Reiciendis ut recusandae eaque amet est adipisci consequatur necessitatibus.', 357, 4, 9, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (164, 'cumque', 'Autem ut veritatis earum voluptatem at qui. Et optio ea sed tempore a et sequi. Est qui rerum ab odit ut.', 131, 0, 27, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (165, 'asperiores', 'Quo sed ducimus optio aliquam molestiae fugiat quibusdam dolores. Et temporibus cumque fugit aut. Facilis magnam et mollitia sunt id. Non et et sit odio ad libero est.', 918, 9, 11, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (166, 'est', 'Sunt aperiam eum sed in dolorum debitis voluptatum. Voluptas ut et sit enim at sunt suscipit voluptatem.', 860, 5, 19, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (167, 'cumque', 'Quod ea officia excepturi eius. Similique delectus labore consequatur veritatis voluptatum et non aut. Dolorem et ea hic enim atque omnis. In qui quibusdam aperiam alias quo.', 423, 4, 14, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (168, 'accusantium', 'Qui laboriosam exercitationem eos suscipit consectetur omnis provident. Qui facilis eligendi sint iure tempora sed sequi. Eaque at dolorem odit. Non cumque ad repudiandae nesciunt. Vel sed voluptatum voluptas et fugit illum magni.', 354, 0, 15, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (169, 'dolore', 'Libero dolores sequi occaecati in eaque. Et in odio dolores occaecati molestiae ipsa beatae. Sunt maiores voluptatum dolores cumque sunt eius. Quasi eius accusantium sed aut corporis voluptas fuga.', 176, 7, 6, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (170, 'et', 'Dolores debitis qui quae esse. Quam veritatis qui earum vel quibusdam aut.', 224, 6, 21, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (171, 'et', 'Error rerum atque rerum sit. Molestiae temporibus quia voluptatibus voluptas accusantium earum.', 318, 0, 18, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (172, 'eos', 'Atque dolorem voluptatem sunt quibusdam. Sit ab soluta repellat necessitatibus. Sed deserunt quia odit ut pariatur. Tempora facere in qui quibusdam. Voluptatem veniam ab et quaerat voluptatum aut eius.', 450, 7, 13, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (173, 'est', 'Labore molestiae quisquam molestiae. Illum quam molestiae itaque nesciunt numquam aut dolores. Et quo repellendus sed cupiditate. Quia odio earum praesentium ea aliquam sint dolor.', 483, 5, 7, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (174, 'et', 'Iure aut praesentium nemo distinctio omnis iusto. Dolor ad placeat eius consequuntur et unde quaerat. Dicta et eius sint. Ut quo eveniet beatae aliquid est.', 295, 0, 22, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (175, 'quisquam', 'Maiores nulla voluptates maxime id dolorem laborum. Atque consequatur quia at. In deleniti id in suscipit.', 854, 3, 26, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (176, 'et', 'Corporis id rerum commodi possimus. Fuga pariatur in expedita rerum cumque. Velit fugiat temporibus est aperiam.', 933, 0, 20, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (177, 'optio', 'Tenetur iure aut sequi. Aut nihil doloremque aliquam consequatur ipsa qui expedita aperiam. Pariatur autem similique quibusdam omnis ut.', 232, 4, 20, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (178, 'dolor', 'Temporibus quas quidem unde animi dolor qui. Tenetur qui ut numquam accusantium. A id quas dolore eius velit dolor.', 405, 1, 14, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (179, 'et', 'Sit temporibus temporibus voluptate voluptatum voluptas in consequatur. Hic officiis quo vitae. Natus ut ea sint cupiditate voluptas sit ut hic.', 796, 1, 11, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (180, 'ut', 'Dolorem repellendus et sed voluptas laborum quia ut enim. Iure at ea reprehenderit in. Et sed omnis itaque nesciunt accusamus non inventore quae.', 500, 9, 19, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (181, 'ducimus', 'Voluptatem voluptas quod amet rem qui est voluptatibus. Facere ducimus optio quis delectus voluptas est et. Et accusantium hic eveniet non. Qui enim nihil corporis est ea.', 785, 1, 9, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (182, 'cupiditate', 'Quod labore numquam est ut dolorem adipisci voluptatem. Velit aliquid doloremque dicta voluptatem quia amet perferendis. Totam accusantium quod qui omnis et nesciunt excepturi. Sed aut consequatur non fugiat et reiciendis qui. Ex quia fuga at atque dolore minus.', 114, 5, 29, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (183, 'officiis', 'Fugiat cumque libero vel officia ut accusantium. Voluptates eius minima dolores praesentium architecto placeat. Quod rem modi harum et. Sunt aspernatur eveniet et a distinctio debitis aliquam. Rem dolor minus qui veritatis incidunt optio dolorem.', 265, 8, 5, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (184, 'beatae', 'Ex eaque magnam quaerat a. Dolorem commodi consequatur id distinctio minima qui sit hic. Quia quibusdam blanditiis ut assumenda et perspiciatis libero.', 354, 9, 12, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (185, 'omnis', 'Deserunt ab fuga ullam neque. Sed reprehenderit alias voluptates iste vero pariatur provident. Nobis et necessitatibus nulla quaerat nisi suscipit dignissimos illo. Quidem ea velit itaque nesciunt.', 528, 6, 15, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (186, 'voluptatem', 'Id quia quia eos neque doloribus et. Quidem maxime sunt eligendi enim aliquid aut suscipit.', 808, 7, 28, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (187, 'quia', 'Quia quis et veritatis autem rem. Sed deleniti omnis voluptatem laborum nostrum.', 242, 4, 23, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (188, 'vel', 'Voluptas quae quos nam cupiditate. Nisi odio vel magni inventore. Nam labore ad architecto voluptatem cumque unde.', 507, 5, 9, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (189, 'repellendus', 'Accusamus autem quae placeat quos. Adipisci qui blanditiis sit earum. Qui molestias doloremque sunt omnis.', 406, 8, 8, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (190, 'numquam', 'Adipisci excepturi culpa nulla eum. Est et natus in quia. Voluptas amet quo laboriosam magni illum.', 519, 5, 17, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (191, 'ut', 'Neque voluptatem excepturi consequuntur natus quia tempore animi. Quidem et et voluptas perspiciatis inventore illum praesentium. Voluptate ut porro beatae ut repellat voluptatem et.', 886, 7, 12, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (192, 'voluptate', 'Voluptates perferendis consequatur quidem cupiditate excepturi. Qui assumenda possimus ea ratione. Dolor ut velit vitae qui et enim eum. At sint cum saepe.', 349, 2, 8, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (193, 'cupiditate', 'Quia sed debitis rerum voluptatem id nihil dolor. Dolorem eaque ea aspernatur placeat odit autem pariatur. Error tempore ducimus voluptatem nihil molestiae.', 852, 9, 21, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (194, 'praesentium', 'Sed qui ratione cupiditate dolore vitae. Error atque quis dolorum dolores expedita soluta sed. Nihil tempore accusantium velit asperiores. Perferendis accusamus error fugit eaque sequi aliquid.', 355, 8, 9, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (195, 'qui', 'Iste velit ea sint. Laboriosam eos nisi dolorem sint in. Exercitationem totam quae et ipsam voluptatem.', 637, 0, 11, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (196, 'maiores', 'Quae provident est unde cupiditate quisquam. Totam fuga cumque exercitationem amet quia corporis nemo nihil. Quos numquam quo at earum et.', 935, 6, 15, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (197, 'nam', 'In rerum inventore aperiam excepturi. At quas adipisci delectus quo accusamus ex expedita et.', 139, 8, 25, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (198, 'dolorum', 'Ea eos sint voluptatem ut eaque. Dolor laborum voluptatem ducimus atque. Quia aut omnis eum et. Aut fugiat magni qui ut ea repellat voluptates. Minima dolores veritatis veniam provident magni fugit.', 485, 6, 13, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (199, 'quod', 'Iure nobis sed laboriosam distinctio est. Laborum occaecati animi voluptas itaque. Aut et ut nemo quisquam neque maxime ut similique. Ad eum laudantium qui eligendi et ea soluta vitae.', 882, 8, 9, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (200, 'voluptatem', 'Ea odio dignissimos laborum. Veritatis sapiente id soluta eveniet aut excepturi. Fugit sit et voluptatum possimus est velit dicta.', 523, 0, 3, '2019-01-05 10:04:53', '2019-01-05 10:04:53'), (201, 'voluptate', 'In aut numquam sed labore. Omnis voluptatem ea quas est quia repellendus odio. Vel ea pariatur deleniti totam impedit ex unde. Non adipisci non eos ipsa voluptatibus aliquam a.', 984, 8, 5, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (202, 'omnis', 'Modi aut impedit facilis temporibus. Qui ipsum veniam aut repellendus numquam tempora. Eaque ipsa odio aut eligendi. Laborum eaque maiores amet tempore cupiditate.', 728, 5, 9, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (203, 'facere', 'Voluptas quo numquam iste ut aspernatur dignissimos. Quaerat quae maxime sunt laboriosam corrupti sed sint. Earum commodi porro quisquam vitae vel ipsum.', 602, 5, 6, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (204, 'amet', 'Quis sed facere quibusdam laborum ut consequatur. Qui eius illo et atque quasi molestiae similique. Omnis rem rerum in. Officiis harum optio ab unde dolores non.', 815, 2, 20, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (205, 'soluta', 'Similique modi cumque commodi amet dolores aperiam. Aut autem deleniti et id perspiciatis in. Repudiandae ut et delectus. Asperiores eos accusamus id dolorem omnis voluptatem.', 837, 7, 19, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (206, 'voluptate', 'Delectus officiis ab sed sunt ut culpa repellat. Eaque ullam sunt est voluptatem necessitatibus est. Numquam pariatur et quisquam molestias voluptatem at.', 784, 2, 13, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (207, 'in', 'Distinctio ea voluptatem modi asperiores eos minima. Aut dolores inventore fuga ut maxime illo. Saepe eos laborum sunt molestiae possimus soluta.', 328, 0, 20, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (208, 'mollitia', 'Nostrum rem quis ut dignissimos porro ab odit. Deserunt quam non provident quasi voluptatem sint. Tempore qui culpa vero assumenda officiis velit placeat.', 431, 0, 6, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (209, 'autem', 'Maiores id aliquid deserunt quia itaque. Vel alias odio id autem minima mollitia. Rerum adipisci earum vel unde enim ut beatae et. Sed dolor sequi omnis eligendi quam dolores.', 617, 3, 20, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (210, 'quod', 'Quisquam quibusdam enim a nesciunt eligendi. Quia maxime dolor libero ab ullam. Nisi quas nihil laudantium deleniti a nesciunt.', 792, 6, 27, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (211, 'deleniti', 'Veritatis et necessitatibus cum earum. Nihil impedit hic vero ea. Unde ut sed aliquid quos delectus reprehenderit rerum.', 944, 4, 21, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (212, 'non', 'Numquam blanditiis totam deleniti aliquam sit iure quam suscipit. Molestiae quia aut beatae dolor. Ut non reprehenderit at laudantium.', 399, 1, 10, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (213, 'voluptatibus', 'Vel eligendi possimus tempora. Ut cum suscipit repudiandae sunt inventore cupiditate iusto. Consequatur recusandae ut tenetur perspiciatis. Nemo similique quia quae et dolores repellendus.', 487, 5, 17, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (214, 'doloribus', 'Deserunt modi cum consectetur dolor illo laudantium. Delectus corporis accusantium repudiandae nam.', 413, 1, 15, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (215, 'harum', 'Harum sequi illo natus a. Iure quaerat praesentium doloremque expedita doloribus et. Dignissimos sapiente eaque qui deleniti rerum aut et.', 594, 3, 25, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (216, 'et', 'Aut temporibus sunt aut iste. Minus delectus voluptatum cupiditate non ducimus non. Natus reiciendis est ipsa rerum sed.', 674, 4, 23, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (217, 'aut', 'Ipsum eveniet quia aut sint a ea. Aperiam voluptatem nihil qui aut et vero qui. Qui accusamus nostrum quos natus.', 958, 0, 2, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (218, 'doloremque', 'Ad quis in maxime adipisci sit incidunt. Aut modi voluptate soluta esse quae quam veritatis officiis. Excepturi rerum aut consequatur in hic consectetur reprehenderit. Corrupti aut unde veritatis aut.', 748, 3, 8, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (219, 'molestiae', 'Soluta tenetur omnis magnam eius aspernatur. Dignissimos et sit laudantium temporibus nulla aut recusandae. Rem libero nam voluptatem culpa quis eum fuga.', 337, 8, 5, '2019-01-05 10:05:37', '2019-01-05 10:05:37'); INSERT INTO `products` (`id`, `name`, `detail`, `price`, `stock`, `discount`, `created_at`, `updated_at`) VALUES (220, 'eius', 'Labore commodi necessitatibus quibusdam quaerat sunt. Nam dignissimos mollitia eius est. Sit aut officiis impedit. Veniam in voluptatibus iste aut.', 725, 1, 6, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (221, 'vel', 'At unde velit minus dolore. In accusantium occaecati eaque ad atque asperiores. Aut dolore tenetur voluptatem magni.', 194, 6, 22, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (222, 'dolores', 'Laborum rem magni voluptatem debitis occaecati voluptate. Distinctio rerum maiores eius quia ut. Corrupti officiis ut cupiditate similique officia.', 153, 7, 19, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (223, 'ut', 'Et ipsa quidem quidem fuga. Soluta culpa aut quisquam nesciunt. Voluptatem autem ut et ut. Similique non ab non aut placeat.', 215, 5, 15, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (224, 'at', 'Recusandae recusandae hic minima magnam voluptatem voluptatem. Iure est laborum qui placeat accusamus molestiae optio. Ut iste blanditiis voluptate qui autem. Commodi doloribus asperiores non omnis veniam voluptatem.', 641, 4, 6, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (225, 'facilis', 'Consectetur eligendi rerum sit quidem earum fuga. Velit maxime quibusdam omnis in. Sed sed eos dicta molestiae non vero.', 692, 9, 21, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (226, 'non', 'Sit dolore temporibus dolore in. Quia commodi assumenda ea sed repellendus laborum. Et provident tempora sequi omnis natus dignissimos. Rem dolores voluptatibus amet.', 689, 5, 11, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (227, 'non', 'Atque aut voluptatibus et magnam autem voluptatem consequatur in. Labore minus aut quia ut ipsa quibusdam. Fugit reprehenderit impedit perferendis.', 296, 4, 7, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (228, 'necessitatibus', 'Qui commodi voluptatem reprehenderit est et consectetur odio. Vero inventore ullam voluptatem distinctio vel deserunt sequi. Voluptatem laboriosam non quae ad iusto voluptas. Sunt quidem rerum qui aperiam corrupti provident animi iste.', 688, 7, 25, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (229, 'qui', 'Provident deserunt quasi mollitia quia corrupti voluptas ullam. Itaque facilis eum eos autem nulla temporibus eum. Nam accusamus numquam illo quam ut modi.', 108, 6, 20, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (230, 'maiores', 'Sint officia praesentium tenetur praesentium quaerat consequuntur. Numquam magnam amet asperiores sunt minima cum. Veniam consequuntur facilis voluptatem non et omnis accusamus vero.', 606, 8, 17, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (231, 'reprehenderit', 'Nihil deleniti aliquam inventore porro qui tempore eligendi. Non id et fugiat voluptates cumque officia. Commodi exercitationem quidem quos. Nulla voluptatibus ex eius. Vel ut laborum necessitatibus perferendis voluptatem provident id.', 139, 0, 7, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (232, 'et', 'Qui sequi provident quia perspiciatis sit earum rem. Velit exercitationem et aut qui doloremque vel explicabo. Velit dolorem pariatur veniam cupiditate voluptatum et in.', 124, 5, 24, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (233, 'nisi', 'Id sed in nobis earum similique vel odit. Omnis officiis in tempore tempore amet dolore voluptas fuga. Aut et aut autem eligendi. Non non nihil neque at eum.', 115, 9, 4, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (234, 'omnis', 'Alias ea omnis sequi ut non. Nesciunt fugiat ullam debitis aut harum et sed. Inventore veritatis nemo reprehenderit pariatur iste nostrum quasi.', 695, 2, 7, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (235, 'et', 'Culpa accusantium pariatur illo quisquam. Sapiente sit quis sed maiores voluptate. Fugiat itaque quis sint ab.', 745, 5, 30, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (236, 'sunt', 'Vel omnis quia labore delectus esse. Non similique id quia repudiandae rem autem sint.', 426, 8, 8, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (237, 'ut', 'Non nemo veniam voluptatem libero. Doloribus praesentium hic quis inventore. Omnis et et quos deleniti eligendi iure.', 406, 9, 2, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (238, 'nihil', 'Omnis repellendus aut in atque quos. Consequatur consequatur aut aut similique a praesentium aut. Suscipit ut asperiores ea quod quibusdam iusto aspernatur. Praesentium vel perspiciatis quis rerum repellat.', 708, 6, 29, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (239, 'eveniet', 'Et dolor eveniet optio harum. Et praesentium laborum maiores saepe distinctio. In doloremque corrupti cupiditate iste pariatur ea veniam.', 471, 1, 25, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (240, 'architecto', 'Soluta et perferendis quaerat qui omnis quae. Iusto dolore fuga ut et explicabo voluptas. Consequatur ut voluptas non ipsum. Mollitia deserunt rerum molestiae culpa doloribus.', 546, 9, 13, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (241, 'et', 'Tempore omnis sit vel. Alias pariatur accusantium fugiat nobis et aut ipsa animi. Unde dolor expedita laboriosam vel quis ut natus. Odit est explicabo nisi tempora.', 101, 4, 19, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (242, 'incidunt', 'Architecto voluptatem voluptate et reiciendis. Et aut exercitationem eum. Et aut eum quo et laboriosam repudiandae non.', 466, 7, 10, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (243, 'doloremque', 'Repudiandae officiis provident earum dignissimos commodi exercitationem. Perspiciatis eum nesciunt autem quo hic. Explicabo dolorem dolor maiores laudantium unde quia vel.', 467, 1, 27, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (244, 'et', 'Dolorum officiis quo voluptates et. Placeat aut accusamus iure iusto. In vel at eos perferendis ex aut dolorem quas. Nihil possimus beatae totam in ea voluptatem quae.', 895, 8, 24, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (245, 'atque', 'Dicta nihil laborum perferendis quia. Debitis nihil recusandae consequatur et. Dignissimos at velit reiciendis repellat nisi.', 705, 3, 15, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (246, 'facere', 'Nemo vel at rerum illum. Nihil ut nostrum consequatur debitis accusamus provident sequi. Iste eum et eum amet accusamus.', 726, 0, 24, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (247, 'quis', 'Rerum dolorem commodi sed dolorem et. Explicabo illum iusto animi velit.', 799, 3, 19, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (248, 'rerum', 'Enim animi ducimus amet dolores illum ut quia. Ut et rem dolor quae maxime. Corporis sapiente amet nihil veniam. Molestiae in assumenda itaque recusandae ratione.', 113, 1, 24, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (249, 'eum', 'Maiores ut veritatis voluptatibus. Eligendi vitae esse maxime hic corporis. Deleniti quo ipsum et in excepturi quia libero quia.', 725, 9, 16, '2019-01-05 10:05:37', '2019-01-05 10:05:37'), (250, 'eos', 'Voluptatibus sunt natus enim magnam asperiores. Animi rerum voluptatum est odio aliquam. Quibusdam tenetur dolorum soluta consequuntur ad aperiam consequatur.', 183, 3, 29, '2019-01-05 10:05:37', '2019-01-05 10:05:37'); -- -------------------------------------------------------- -- -- Table structure for table `reviews` -- DROP TABLE IF EXISTS `reviews`; CREATE TABLE IF NOT EXISTS `reviews` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `product_id` int(10) UNSIGNED NOT NULL, `customer` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `review` text COLLATE utf8mb4_unicode_ci NOT NULL, `star` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `reviews_product_id_index` (`product_id`) ) ENGINE=MyISAM AUTO_INCREMENT=301 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `reviews` -- INSERT INTO `reviews` (`id`, `product_id`, `customer`, `review`, `star`, `created_at`, `updated_at`) VALUES (1, 16, '<NAME>', 'Ex ducimus corporis vel tempore occaecati velit assumenda. Molestias facilis est vel alias. Non nobis ullam libero assumenda enim voluptatibus doloribus.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (2, 83, '<NAME>', 'Iste sequi iusto quasi voluptatem tenetur perspiciatis culpa. Fugiat quidem et aliquam nostrum. Ab explicabo qui iure aperiam. Beatae pariatur eum tempore ad sed.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (3, 66, '<NAME>', 'Distinctio voluptas et rerum sed. Vitae magni hic nobis non iure. Dignissimos voluptatem molestias in aut vel nulla ea. Delectus debitis repellendus et impedit aut ut non.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (4, 58, '<NAME>', 'Perspiciatis maxime error ut ab possimus harum. Earum ipsum totam quod autem at laudantium. Voluptatem sit et aut enim illo qui non. Doloribus est rem ea quia molestiae libero.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (5, 214, '<NAME> Sr.', 'Iure voluptatibus natus perspiciatis nihil voluptas odio. Tempora quis fugit error dolorum accusantium ea reprehenderit iusto. Ratione fugiat velit autem adipisci. Autem non sequi fugiat ab sit quia.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (6, 172, 'Mrs. <NAME> Jr.', 'Laborum et magnam maxime nisi sunt consequuntur saepe libero. Nesciunt perspiciatis placeat nisi quos ipsum ullam sint. Consequatur quia praesentium voluptatibus ad nesciunt qui omnis.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (7, 88, 'Mr. <NAME>', 'Nam ut ipsum alias placeat et accusamus. Magnam omnis fugit voluptas. Non est quo reprehenderit ut voluptas.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (8, 140, '<NAME>', 'Ut et quos nam aperiam. Sit autem reprehenderit enim laboriosam eum molestiae. Perferendis quae quas fugiat ea.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (9, 190, 'Dr. <NAME>', 'Adipisci impedit ut distinctio et minima rerum. Inventore tempore quia inventore odit aliquam nemo. Est labore sit non dolor magnam voluptatem aliquam.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (10, 55, '<NAME> Jr.', 'Vel consequatur ab quam omnis nesciunt necessitatibus porro quia. Illo reiciendis itaque et omnis est in.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (11, 97, '<NAME>', 'Ea officiis distinctio perspiciatis quibusdam. Iusto quasi autem perferendis sed eligendi. Soluta illum quisquam rerum et.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (12, 174, '<NAME>', 'Reiciendis suscipit officia cupiditate corrupti. Quia occaecati sed nihil iusto eum fugit voluptatem eum. Corrupti commodi accusamus et dolores minima corrupti delectus. Praesentium similique sed omnis placeat quibusdam fugit temporibus.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (13, 223, 'Ms. <NAME> PhD', 'Officiis sunt sed ipsum. Mollitia est et sunt tempore officiis ipsam aspernatur. Nobis qui illo aut optio quisquam numquam.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (14, 47, 'Mr. <NAME>', 'Quis et explicabo asperiores atque odio sit ad. Ex sunt nulla autem dignissimos eos. Nihil sint sequi quibusdam temporibus sunt aut quae. Commodi dignissimos ipsum beatae.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (15, 141, 'Prof. <NAME>', 'Et est vitae autem ut at. Vel eum sit rem eveniet. Nemo voluptatem sit natus quis rerum repellendus voluptatem.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (16, 158, '<NAME>', 'Rerum sequi dolorem magnam molestiae. Tempore ad aperiam quo accusamus maiores ut eos. Excepturi animi qui autem aut. Perferendis quia quam eaque voluptatibus.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (17, 20, '<NAME>', 'Quia et esse sint eius aut. Quisquam recusandae odit deleniti quos iste tenetur quam. Et corrupti aliquid nam saepe expedita qui. Iste dolorem quaerat quia.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (18, 149, '<NAME>', 'Et qui aliquid sed iusto. Quis modi quo dolorem quam architecto doloribus. Enim distinctio quibusdam consequatur magnam velit. Atque explicabo nulla autem molestiae ut recusandae quo.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (19, 111, '<NAME>', 'Repudiandae aliquam consequatur explicabo similique sint illo. Itaque odio vitae ipsum aut hic porro et.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (20, 98, 'Dr. <NAME>', 'Illum vel et aperiam voluptatum sunt sunt magni. Maiores velit voluptas ipsum debitis atque. Ut nihil adipisci quam officia laborum.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (21, 51, 'Ms. <NAME>', 'Quis consequatur voluptas esse aliquam. Incidunt consequuntur quos veniam dolor. Dolorum velit possimus maiores quos eveniet. Delectus facere quidem iste.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (22, 176, 'Dr. <NAME> III', 'Voluptatem et non commodi nulla. Voluptate ut eligendi quia sint dolorem quaerat voluptatem.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (23, 130, 'Ms. <NAME> II', 'Ratione officiis architecto voluptate repellendus similique ducimus impedit. Consectetur ut consequatur quis. Eos quod ab nulla dolorum.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (24, 59, 'Prof. <NAME> Jr.', 'Ipsam eos illo pariatur optio. Corporis aspernatur perspiciatis fuga pariatur et adipisci. Est ut nobis nobis quidem velit. Vel voluptatem enim rerum et consectetur id.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (25, 167, 'Dr. <NAME>', 'Qui quam quasi deleniti ducimus. Ut et et temporibus possimus quia optio odit. Rerum voluptas eum sit sit.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (26, 77, 'Dr. <NAME>', 'Tenetur laboriosam animi quis delectus labore facilis labore necessitatibus. Repudiandae ipsum voluptas saepe et exercitationem. Sed quo necessitatibus consequatur nostrum quasi. Nobis et rerum qui et velit soluta.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (27, 40, '<NAME>', 'Dolores aut iste hic et tempora qui et repellat. Aliquid dicta ut inventore aut ea. Mollitia et dolores non est expedita ut. Accusantium reiciendis tempore dolorum.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (28, 91, '<NAME>', 'Modi voluptates totam ea asperiores doloremque aut velit quia. Nemo amet architecto occaecati rerum. Qui aut quia aperiam amet. Sint quos et est et et vel autem.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (29, 102, '<NAME>', 'Voluptate sapiente consequatur tempore tempore voluptatem ipsam ut ipsam. Dolor incidunt qui qui omnis tempora dolor quod. Quaerat eum voluptatem id assumenda. Saepe labore porro consequuntur et.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (30, 33, 'Prof. <NAME> DDS', 'Sunt quia officiis nam consequatur necessitatibus nam earum. Fugiat et voluptas et maxime labore expedita. Aut quod dignissimos non. Perferendis odio dignissimos tempore aliquid qui neque.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (31, 176, '<NAME>', 'Unde natus exercitationem quibusdam totam quae animi possimus. Error sequi quaerat ipsum repellendus sed fugiat totam. Expedita voluptatem quasi voluptates dignissimos.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (32, 230, '<NAME>', 'Ad necessitatibus neque aut et sunt cumque. Aut molestiae eaque voluptatibus debitis. Adipisci totam repellat rerum voluptatum libero sunt. Soluta asperiores eos architecto sint rerum eaque.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (33, 182, '<NAME>', 'Fuga repellat quam non soluta et. Explicabo officia omnis enim. Laborum assumenda tempora aperiam harum fugit asperiores cupiditate qui.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (34, 145, '<NAME>', 'Et dolore excepturi maiores maiores est incidunt aperiam. Quibusdam earum nam laborum similique vero nulla. Qui ipsum ullam modi nemo suscipit possimus facilis.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (35, 84, '<NAME>', 'Laudantium laboriosam accusamus sed voluptas voluptatem. Ut deleniti consectetur vero dolor quia consequatur neque. Natus neque quo ex reiciendis facere dolorem.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (36, 146, '<NAME>', 'Ex est in est eos amet voluptatem architecto. Eveniet unde adipisci fugit qui. Ut quia tenetur eaque esse temporibus voluptates. Iste aut eos sequi adipisci aut sed aspernatur quos.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (37, 47, 'Prof. <NAME> PhD', 'Sunt quis aut voluptatibus similique. Ut repellat aliquam occaecati eos ea et. Eos est nisi dolor in eaque.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (38, 127, '<NAME>', 'Fugit voluptas et deleniti omnis explicabo exercitationem omnis mollitia. Deserunt et nulla aut et omnis ab totam. Sed veritatis fuga consequatur illo.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (39, 55, '<NAME>', 'Ea ipsum veritatis et fugit reiciendis. Pariatur sit ut aliquid magnam enim laboriosam. Consequatur et est rerum possimus expedita ut impedit aspernatur.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (40, 76, '<NAME> Sr.', 'Non sunt nulla quidem architecto harum neque. Quia sint rerum error. Enim sapiente nobis repellat accusamus. Non est dolores eos iure minus.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (41, 228, 'Prof. <NAME> Jr.', 'Quos maxime dolores et tenetur sed non dolor sapiente. Et incidunt sint enim omnis deserunt quas ad. Id officiis maiores sed pariatur quidem molestiae quia soluta. Aspernatur expedita laudantium neque et eius maiores.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (42, 125, '<NAME>', 'Repellendus odio culpa maiores harum omnis. Ea quia ut quam at et repellat magnam. Nam voluptatem deleniti enim atque illo similique sequi. Voluptas ut ad quos voluptas ut occaecati.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (43, 78, 'Miss <NAME>', 'Dolor enim distinctio autem. Eos omnis expedita dolores quae qui a id. Sed rem nemo natus nemo ea nemo quis aut.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (44, 203, 'Ms. <NAME>', 'Repellat est minima est tempora et asperiores. Commodi quia numquam est magni rerum enim. Facilis vero ullam accusamus et.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (45, 155, 'Dr. <NAME>', 'Repudiandae nulla iure blanditiis deleniti magni et. Ad aut quis earum voluptatibus. Quia et at iure odit consectetur a ut. Dicta assumenda vero unde ut non.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (46, 29, '<NAME>', 'Omnis voluptas soluta autem et sed praesentium corrupti nesciunt. Tempora voluptate fugiat aliquid delectus omnis necessitatibus quaerat. At optio et dolorem tempora vel a.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (47, 238, '<NAME> MD', 'Nulla inventore ratione aliquid quidem fugiat error sint. Natus est rerum quos aut.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (48, 245, 'Dr. <NAME>', 'Enim aut ut aperiam consequatur quidem sit nobis. Nostrum numquam sed iusto maxime qui illum. Exercitationem minima qui vero.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (49, 147, '<NAME>', 'Aliquam voluptas suscipit reprehenderit aut id minus. Eum ut deleniti sint ut ea. Earum eum autem explicabo magni. Natus ut quibusdam iste ex.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (50, 197, '<NAME>', 'Perspiciatis tempore omnis ad sit quia. Non labore accusantium sit ipsa perspiciatis voluptates. Mollitia doloremque quasi explicabo harum et ducimus assumenda.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (51, 92, 'Prof. <NAME>', 'Ea accusantium qui voluptas aliquam. Vel et ipsam et aut. Minima repellat necessitatibus molestias fuga aliquid. Inventore id veritatis assumenda velit natus. Cupiditate at qui aperiam est qui earum.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (52, 240, '<NAME>', 'Ut vero sit omnis. Molestiae atque et laboriosam neque ea et sit. Quam fugit optio tempore commodi.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (53, 3, 'Miss <NAME> Sr.', 'Quia inventore eius ipsam nihil. Eligendi consequuntur iste enim sit quia ut. Quaerat praesentium et mollitia. Id nulla architecto occaecati qui explicabo provident enim laudantium.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (54, 64, '<NAME>', 'Qui facere totam eligendi eaque. Quia et dolores dolor cupiditate fugit. Molestias eligendi minus nam commodi rerum. Ipsam quo dolor mollitia.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (55, 151, '<NAME>', 'Quisquam veritatis autem perferendis reprehenderit. Aut vitae quia totam enim sit quis distinctio. Eum ipsa et quae sint.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (56, 223, '<NAME>', 'Hic est ut sit est vel. Distinctio et ea alias quisquam. Et necessitatibus pariatur ipsum ullam eum. Quos dolor maiores sit repudiandae magnam sit. Quis eaque consectetur laudantium qui ducimus id.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (57, 120, '<NAME>', 'Est quod exercitationem rerum et assumenda aut placeat. Temporibus minus enim illum est cupiditate. Ut optio et est consequatur sed nesciunt non.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (58, 199, '<NAME>', 'Non iusto ducimus inventore velit. Unde provident reiciendis harum similique quod. Recusandae perferendis ea dolorem voluptatem similique natus temporibus et. Molestiae sed neque molestiae similique consequatur officiis.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (59, 72, '<NAME>', 'Aperiam reprehenderit itaque velit nihil sit nesciunt quisquam porro. Eum totam rem sit eos et. Sint et eius sed nulla.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (60, 210, '<NAME>', 'Quis est velit voluptatibus aliquam dolor. Numquam magni consequatur quas excepturi sint id. Impedit ad non aliquid eos tempora.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (61, 14, '<NAME>', 'Hic minima voluptatum sit omnis fugiat. Est eligendi optio ea sed voluptatem occaecati. Et voluptas impedit quia quae ipsam. Non dolor animi qui earum fugit nesciunt ab repellat.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (62, 84, '<NAME>', 'Odit autem sunt maxime. Harum est explicabo nihil id sit. Fugit est amet dolores amet est accusamus sed.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (63, 27, '<NAME>', 'Ipsa occaecati aperiam voluptatem consequatur magnam rem minus. Ut exercitationem consectetur consequuntur consequatur fugit. Totam perspiciatis a voluptatum fugit id. Quia sequi praesentium non molestiae ullam perferendis.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (64, 211, 'London Tremblay Jr.', 'Perspiciatis autem non facilis ratione voluptas. Optio non aut asperiores odio culpa quaerat voluptatem. Eligendi exercitationem adipisci eaque vel voluptatum consectetur reiciendis. Cum eum explicabo fugiat quae possimus omnis cumque dicta.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (65, 235, 'Mr. <NAME>', 'Quos sunt quia ea architecto quia magni autem. Repellendus et aut quia eum inventore rerum in. Quisquam possimus iusto soluta minus dignissimos quia.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (66, 12, '<NAME>', 'Iure exercitationem itaque nesciunt id. Ut consequatur aperiam consectetur aut doloremque. Nam beatae nulla qui ab iusto. Saepe eveniet sit ipsum dolorum omnis necessitatibus.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (67, 101, '<NAME> II', 'Ea dignissimos laboriosam non quo. Id ipsam itaque molestiae consectetur autem. Beatae qui non labore et adipisci ut doloremque. Repellendus aut qui quaerat ut.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (68, 79, 'Dr. <NAME> DVM', 'Velit fugit quibusdam veniam numquam in vel autem. Dicta explicabo vel quam. Ullam et quidem id recusandae vel libero id. Voluptatem explicabo repellendus reprehenderit temporibus dolor ut sequi.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (69, 52, '<NAME>', 'Adipisci nesciunt ut praesentium repellendus sit exercitationem sint nobis. Nulla culpa qui sunt accusamus aut quis inventore. Iste excepturi nihil repellendus.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (70, 152, 'Prof. <NAME> II', 'Consequatur explicabo assumenda laborum repudiandae quia non. Accusamus deleniti rerum veritatis beatae eos dolorum voluptas minima. Hic sunt placeat ipsa maxime eos quasi. Animi minima provident omnis consequatur rem.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (71, 71, '<NAME>', 'Rerum facere officiis perspiciatis a corporis. Aut voluptas ex quas qui. Ullam aspernatur magni iusto libero non. Id similique ducimus et quos inventore qui totam est.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (72, 9, 'Prof. <NAME>', 'Aliquid enim quisquam vel nam dolorem. Beatae vel eum voluptate molestiae vitae inventore possimus eum. Unde at eos voluptate repellat non. Maxime libero reiciendis consequatur ea.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (73, 190, '<NAME>', 'Iste sapiente quia atque rerum soluta sint in. Culpa omnis voluptate rerum excepturi autem. Exercitationem inventore nulla repellendus cumque facere nulla vitae veritatis. In quia iste delectus.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (74, 241, '<NAME>', 'Culpa quae optio molestiae molestiae est molestias explicabo. Excepturi expedita ratione laboriosam officiis ea aut omnis. Sunt atque eligendi qui sit. Et magnam non rerum repudiandae quod.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (75, 161, 'Miss <NAME> Sr.', 'Voluptas qui voluptas molestiae nulla iste. Doloremque dolores velit omnis voluptatem id vel ullam. Ad dolorem possimus voluptatum et dolorem libero vitae. Iure sunt ipsam assumenda excepturi illo ipsum.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (76, 30, '<NAME>', 'Qui consequatur sed quae. Omnis quisquam deserunt omnis nihil at aut dignissimos ut. Eligendi beatae exercitationem facere impedit. Modi beatae architecto illum nihil est soluta et.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (77, 250, '<NAME> III', 'Nobis sequi id aspernatur consequuntur nulla. Ea commodi in eveniet. Quia doloribus suscipit quaerat ut dolor. Soluta nulla tenetur sapiente itaque dignissimos voluptatem.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (78, 183, '<NAME>', 'Numquam fuga doloremque minus enim. Voluptatibus dolorem et repellendus consequatur recusandae. Ducimus veritatis quod dolor quis quam ex. Sit sit nihil eum ut.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (79, 196, '<NAME>', 'Modi tempora voluptatem at sit pariatur vitae vel. Est sint ex velit id non eligendi explicabo. Quo qui incidunt et praesentium aut aperiam.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (80, 197, '<NAME>', 'Sed nihil ut ratione nulla dolorem vel temporibus. Et consequatur id illum eos. Labore et illum quidem quisquam voluptatem enim quis perferendis. Dolorem tenetur quo omnis sint perferendis minus itaque qui.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (81, 166, '<NAME>', 'Dolor incidunt odio quam facere sed eius accusamus. Soluta ratione tenetur aut facere sint veritatis. Expedita commodi voluptatem voluptatem occaecati. Vero ex totam incidunt quia officiis et.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (82, 69, 'Dr. <NAME> IV', 'Tempora quia minima sint laborum. Est non voluptate quae nostrum nihil quia quasi explicabo. Voluptatem porro et commodi et odio fugiat hic nam.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (83, 230, '<NAME>', 'Et corporis ut rem ducimus autem. Facere ad voluptatem amet at aperiam aliquam quasi.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (84, 62, '<NAME>', 'Autem ut cum et quidem et aspernatur. Asperiores laudantium nemo autem est. Dolorem aliquid error ullam earum quis.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (85, 202, '<NAME> V', 'Ipsam ea placeat repellendus eveniet. Assumenda exercitationem et et quia eos omnis. Incidunt placeat dolorum eum quas omnis reiciendis. Tenetur id ea amet cum quia.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (86, 130, '<NAME>', 'Est est vitae vero labore temporibus exercitationem error. Quod molestiae id numquam reiciendis. Qui consequatur deleniti vel voluptatem animi at distinctio. Dolor aliquam et doloremque laboriosam dolorum.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (87, 8, '<NAME>', 'Eum et sit et architecto optio. Autem sint nesciunt assumenda aut tempora numquam. Sint veniam quo omnis nobis aperiam pariatur.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (88, 129, '<NAME>', 'Non explicabo labore et nesciunt neque et praesentium. Aliquid non nam ab aut. Omnis et omnis ipsa ipsam porro est tenetur. Numquam eaque rerum beatae reprehenderit optio consequuntur quia.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (89, 241, '<NAME> III', 'Corrupti non nihil tenetur placeat. Porro officiis hic qui. Iure quisquam labore dolores porro vel maiores quae repellat.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (90, 198, '<NAME>', 'Ratione quod omnis molestias. Consequatur labore repellat qui tempora voluptatem. Unde inventore nisi atque. Repudiandae omnis non delectus consequuntur qui.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (91, 139, '<NAME> V', 'Eos eum dolor quaerat adipisci dolor vitae error. Voluptatem necessitatibus repudiandae et reprehenderit. Rerum officiis eaque amet consequatur mollitia cupiditate. Atque ipsa deleniti et et sapiente autem.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (92, 13, '<NAME>', 'Esse incidunt amet ut. Ad est ad dolores praesentium. Ab voluptas est dolores minus quaerat ut repellat. Sed in necessitatibus nostrum minus. Excepturi ex sunt fugiat illo tempora quidem.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (93, 46, 'Dr. <NAME>', 'Voluptates quo porro corporis eius. Quas nihil quam maxime ullam ad est quibusdam. Maiores voluptates earum et libero. Non voluptatibus aliquid rerum ullam voluptate.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (94, 245, 'Prof. <NAME> Sr.', 'Qui esse perspiciatis necessitatibus optio repellendus. Pariatur et nobis id cumque ex qui. Sint modi dolor quasi aliquid provident error. Tempora molestiae et ut consectetur officiis quia reiciendis.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (95, 124, 'Mrs. <NAME>', 'Nam ratione eaque repudiandae. Omnis nihil nihil soluta nihil recusandae facere. Asperiores impedit non inventore. Eius ut sint minima quia tempore alias sit.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (96, 167, '<NAME>', 'Aut odio repellat dolor molestias. Corrupti explicabo et voluptatibus. Modi assumenda quos sed dolorum nihil ut natus.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (97, 239, '<NAME>', 'Dolores aut excepturi consequuntur. Sit provident necessitatibus exercitationem natus qui nobis maiores temporibus. Accusantium pariatur quis consequatur repellendus qui. Laudantium debitis tenetur sapiente.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (98, 237, '<NAME>', 'Nesciunt et dignissimos aut doloremque occaecati. Optio consequuntur quod quia tempore. Nihil eligendi et reiciendis ut. Similique sint laborum animi quia ad.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (99, 234, '<NAME> IV', 'Assumenda voluptas minima voluptatem ut et assumenda laborum enim. Aperiam beatae ipsam repudiandae perferendis laboriosam. Voluptas minus accusamus animi tempore id. Ut ipsam qui nobis omnis ex alias.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (100, 218, '<NAME>', 'Magni saepe id quia neque molestiae. Maiores inventore quis numquam odit commodi. Maiores repellat deleniti id minima qui sit. Aliquam vel aut ipsam pariatur qui.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (101, 165, '<NAME>', 'Non eos numquam ratione atque est deleniti. Et qui earum labore voluptas aliquam ab ut. Maxime nulla sint harum voluptate. Nemo eveniet minus in dolor. Consectetur tempora non qui sint expedita aliquam doloremque illo.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (102, 40, 'Mr. <NAME> PhD', 'Est velit quidem iusto alias. Voluptas voluptas est ut aut vel. Repellat quia maxime in quod. Non a ducimus odit doloremque.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (103, 9, '<NAME> III', 'Alias ad nesciunt pariatur est sit pariatur sint. Laudantium beatae optio ut alias quia. Aut tempora temporibus labore atque est dolorem. Voluptatem quidem aut repudiandae aut eligendi minus.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (104, 158, '<NAME>', 'Fugit quos ut dolores quae deleniti corporis. Provident et aut nemo repellendus adipisci modi. Incidunt sunt laboriosam iure.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (105, 186, '<NAME>', 'Ipsam est nulla qui ut a architecto iusto. Asperiores vero officiis fugit corrupti quo qui. Dolor a voluptates quos et. Corporis ex eum reprehenderit ad.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (106, 220, '<NAME> PhD', 'Molestias odit sed placeat maiores totam cupiditate eum. Perferendis est earum accusamus occaecati fugiat nihil consequatur. Repellat sequi rerum quae ullam harum occaecati dolorem molestiae.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (107, 187, '<NAME> IV', 'Libero quibusdam molestiae sit illo perferendis accusamus. Eveniet magnam sit ipsam quia reiciendis.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (108, 19, '<NAME> II', 'Consequuntur et voluptates eligendi et sapiente. Cupiditate assumenda ut sit. Tempora ullam similique accusamus suscipit. Quae reiciendis officia officiis dignissimos ut exercitationem.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (109, 178, '<NAME> Sr.', 'Doloribus consequatur velit modi non. Eveniet minima error quisquam ea eius voluptatem distinctio corrupti. Ea aspernatur delectus repellat. Necessitatibus explicabo atque quaerat et voluptatem. Nostrum hic impedit nemo omnis ea qui cumque.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (110, 82, '<NAME>', 'Consequuntur dicta omnis est pariatur. Pariatur quis sit et consequatur vel provident vel. Consequatur accusantium rerum natus ad eum sint ut delectus. Voluptas sit ipsam praesentium molestias illo rem ipsam.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (111, 132, '<NAME> V', 'Voluptas enim eius et qui. Ea odit consequatur consequuntur similique. Non laboriosam accusamus quia et autem ut reprehenderit est. Nihil et ad sunt quo error libero.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (112, 118, '<NAME>', 'Eius voluptate doloribus veritatis debitis minima et qui. Quia quisquam vero et dolores dolore nam ut in. Pariatur odio culpa quo et. Minima hic alias autem ut in eos sed dolores.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (113, 157, '<NAME>', 'Dolor libero qui est ipsum similique necessitatibus facere et. Omnis tenetur necessitatibus incidunt magni quo quam. Sint aut aut ad aliquid ullam quidem adipisci. Sequi consequatur atque maiores ut dolore.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (114, 79, '<NAME>', 'Sunt dignissimos reprehenderit possimus necessitatibus porro. Sunt voluptas quaerat tempora. Ipsa nihil reiciendis autem recusandae sit at voluptatem rerum. Esse omnis sunt ipsum vero ducimus.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (115, 42, '<NAME>', 'Cupiditate ex deleniti nihil quia voluptatem eligendi. Velit amet iure rerum vel hic mollitia. Voluptatibus et quae pariatur aliquid eveniet libero illum ea.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (116, 99, '<NAME>', 'Eos unde tempora at eum quia repellendus rerum dolorum. Sed id doloremque tempore voluptates quaerat optio. Voluptatem enim voluptatum quae rerum error dolorum libero enim. Veritatis aut qui maiores ducimus voluptatem temporibus. Est earum ut et.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (117, 229, 'Mr. <NAME> DVM', 'Ab eligendi impedit optio minus voluptatem. Exercitationem sed quis qui nisi ea ut. Nisi quo atque saepe enim qui alias exercitationem excepturi.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (118, 1, '<NAME> III', 'Ut aut quod autem. Quisquam sunt nisi enim explicabo cum et. Provident vel consequatur architecto velit dolorum ipsa.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (119, 169, 'Dr. <NAME>', 'Facere magnam aperiam autem distinctio. At aut quae unde dignissimos ullam voluptatem ut. Ea maiores accusantium aliquam numquam numquam laborum. Eos non blanditiis voluptas excepturi. Dicta architecto ullam voluptatem voluptatem modi omnis.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (120, 165, 'Dr. <NAME>', 'Minima alias aliquid totam eaque molestias. Commodi voluptas rem molestiae dolorum ut. Debitis illo quasi dignissimos qui.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (121, 98, '<NAME>', 'Atque unde totam ut. Dolorem asperiores qui quo sit molestias atque aspernatur. Aut accusantium corrupti velit iure.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (122, 74, '<NAME>', 'Aliquam ullam et est esse. Et fugiat molestiae in. Et minima ipsum incidunt et officiis id consequatur accusantium.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (123, 116, 'Mr. <NAME> II', 'Et rem autem cupiditate non nam est. Magnam est explicabo quia quia eos praesentium corrupti.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (124, 232, '<NAME>', 'Possimus vero culpa doloribus voluptate. Sequi repellat neque velit quis rerum. Aliquid aliquam corrupti aut natus est similique.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (125, 101, '<NAME>', 'Autem sit voluptatibus quia. Error aut pariatur nihil iusto quis distinctio tenetur. Distinctio eum voluptate voluptas rem. Suscipit similique porro vel quos.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (126, 185, '<NAME> II', 'Maiores quos quaerat molestiae cupiditate nulla sint. Adipisci distinctio rem dolorem mollitia aut. Id accusamus iusto consequatur laudantium magni et.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (127, 133, '<NAME>', 'Praesentium voluptatum non quas aut. Quo id alias quo incidunt. Optio facere omnis quisquam temporibus culpa.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (128, 228, '<NAME>', 'Facilis ipsum consectetur magnam necessitatibus quae minus. Exercitationem alias totam fugit ut sint et. Possimus deleniti aspernatur et in aspernatur. Quae corrupti omnis et veritatis quia. Labore in occaecati fuga odio exercitationem.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (129, 110, '<NAME> V', 'Et non hic corporis accusamus delectus atque veniam. Non animi qui fuga modi excepturi minima consequatur nemo. Explicabo praesentium culpa aut unde dignissimos odit. Dolorem quis cum corporis aut minus est corrupti.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (130, 146, 'Prof. <NAME> Jr.', 'Unde magnam facilis qui fugit ut. Ea est corrupti et ipsa aut. Maxime atque nihil et.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (131, 158, '<NAME>', 'Corporis sunt ut delectus sequi et debitis. Possimus qui rerum vel officia. Rerum nobis qui illo voluptatem tempore.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (132, 74, 'Prof. <NAME>', 'Dolores quam nostrum accusantium porro a voluptatem voluptas. Voluptatem voluptate libero architecto et. Nihil quod porro aut ducimus laudantium.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (133, 112, '<NAME>', 'Ut nisi velit distinctio corrupti quod quia dolores. Doloribus dolores beatae in necessitatibus porro porro. Adipisci autem inventore blanditiis sequi natus. Nam ut dolorem quam quisquam sed. Fugit eligendi voluptatem velit quis quis id.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (134, 25, '<NAME>', 'Saepe autem reprehenderit dolorem voluptatem voluptas accusamus. Dolores voluptas fuga at reiciendis atque possimus. Accusantium et dignissimos numquam tempora. Iure aut veritatis maiores magnam debitis ut.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (135, 193, '<NAME>', 'Doloremque vel eum laborum delectus quibusdam similique voluptatibus. Rerum eius laboriosam voluptatum omnis. Labore blanditiis fugiat ut praesentium optio sit.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (136, 241, 'Dr. <NAME> IV', 'Possimus aliquam minus nam et et omnis. Rerum architecto aut eveniet quos quia et. Non necessitatibus facere rerum odio sit qui laboriosam nam.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (137, 228, '<NAME>', 'Vero expedita accusantium id ipsam est ut temporibus. Velit eius sint quis et. Inventore optio autem nobis minima quos aliquid eos. Eius magnam aspernatur blanditiis tempore ut fugit reiciendis.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (138, 41, 'Dr. <NAME> II', 'Nihil ea accusamus consequatur ut. Rerum laudantium doloremque nemo qui aut molestiae.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (139, 41, 'Dr. <NAME> PhD', 'Dolore maxime perferendis quo cumque ut ex. At earum molestias explicabo accusamus aliquam illo. Voluptas molestias illo quasi quas incidunt laboriosam esse. Quia iusto corrupti nulla expedita. Iure vero fugit et aut.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (140, 146, '<NAME>', 'Accusamus laboriosam repellendus voluptatem libero. Eius ipsum ratione dolorem. Iure accusantium necessitatibus ut minima consequatur. Sed non error enim molestiae nihil ut autem.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (141, 130, 'Dr. <NAME> III', 'Distinctio sequi consequatur id voluptas explicabo. Et quia incidunt nobis corrupti. Et voluptas magnam laboriosam hic eos aut.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (142, 64, '<NAME>', 'Perspiciatis vel accusantium et vitae. Amet illo saepe dolorem ea inventore. Accusamus tempore placeat incidunt deserunt voluptas dolores dolorem. Eos dignissimos magnam aut earum.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (143, 11, '<NAME>', 'Et sint et et id occaecati. Quae voluptas laboriosam voluptates atque quae. Dolores aut magnam in alias sapiente eos. Quis voluptas quis deleniti deserunt ut facere corporis aut.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (144, 207, '<NAME>', 'Quam nobis alias commodi quia et quia laboriosam nihil. Sit quisquam dolores dignissimos. Nam provident id sed blanditiis nihil illum porro nesciunt.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (145, 231, '<NAME>', 'Sit ratione nemo animi beatae autem et. Beatae et atque ea velit. Dolor ipsum omnis eos illo exercitationem.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (146, 29, '<NAME>', 'Et sit cumque sed. Itaque excepturi dolores quis ratione. Fuga cum qui officiis.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (147, 177, '<NAME>', 'Nam velit quam aut animi quaerat vel minus. Explicabo unde nobis laudantium in. Placeat consequatur culpa incidunt ad. Ut qui commodi pariatur labore voluptatem.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (148, 92, '<NAME> Sr.', 'Itaque repudiandae autem temporibus perferendis. Expedita totam debitis voluptas. Illum id alias numquam suscipit qui illo. Ad error voluptatem omnis ut.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (149, 205, '<NAME> DDS', 'Iste occaecati exercitationem a qui. Omnis illo aut sed magnam ut corrupti ratione aut. Consequatur quis dolor quae et occaecati ut consectetur.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (150, 154, 'Prof. <NAME>', 'Aspernatur porro debitis quod sit fuga. Ipsam velit quam molestiae pariatur. Porro deserunt nostrum reprehenderit vel.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (151, 15, 'Geo O\'Hara', 'Explicabo qui et ullam est. Ut rerum nihil ut enim.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (152, 122, '<NAME>', 'Vitae est consequatur veritatis earum sed. At voluptatibus id in quas molestiae laudantium nemo et. Quas voluptatem explicabo magni dolor est.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (153, 51, '<NAME>', 'Vel ipsum fugit est reiciendis fugiat. Voluptate assumenda cum sed rerum impedit eius. Modi voluptatem facilis a aspernatur totam ut deserunt.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (154, 117, '<NAME>', 'Fugiat sint expedita quis impedit eveniet est saepe sunt. Molestiae voluptatem fugit at illo non. Dicta dolorem in sit consequatur quaerat qui. Voluptatum harum voluptates omnis.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (155, 215, '<NAME>', 'Fugiat ipsa aliquid accusamus. Rerum qui inventore enim. Aut dolorem qui et eos rerum commodi qui. Quo et facilis laboriosam veritatis velit placeat debitis ipsam. Praesentium harum deleniti est facere doloremque.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (156, 95, '<NAME>', 'Quibusdam quos qui voluptatem pariatur aliquam itaque. Quis temporibus sed doloribus nesciunt minus praesentium. Ut vitae vero rerum quia libero numquam.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (157, 108, 'Prof. <NAME> Sr.', 'Est qui suscipit quis et corrupti. Maiores sequi quae quaerat non omnis. Blanditiis est facilis eum ut adipisci dolore qui. Nostrum odit ratione esse quaerat molestiae reiciendis.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (158, 147, '<NAME>', 'Nihil est totam asperiores quibusdam a minima neque unde. Dolores repudiandae est repudiandae reprehenderit totam consequatur quos. Iste necessitatibus repellendus magni. Dolore alias illum quisquam quos.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (159, 56, 'Dr. <NAME>', 'Est omnis eveniet eum eius repellat provident. Aperiam consequatur impedit assumenda quibusdam deserunt neque sint quis. Qui eum dolorem aut odit officiis.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (160, 153, 'Ms. <NAME> DDS', 'Libero aspernatur nostrum alias. Dolorum quo quaerat explicabo dolorem.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (161, 163, '<NAME>', 'Nisi cum amet ut explicabo quia doloribus. Ipsam facilis fugiat sunt repellat molestiae corrupti temporibus et. Ab voluptas et similique quis sint. Voluptatem temporibus voluptatibus molestiae maxime tempora. Facere fugit nemo sed odit repellat.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (162, 55, 'Dr. <NAME>', 'Illo placeat est dolorem labore excepturi maxime et. At tempora fugiat quia sint. Voluptatem voluptas ad quasi non aliquam voluptate ex.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (163, 90, '<NAME>', 'Eveniet accusantium enim maiores illo dolore est. Aut perferendis minus modi voluptatem odio. Rem distinctio minima et modi et velit ut.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (164, 88, '<NAME>', 'Odit et sit nam illo. Nam consectetur et in sint. Sapiente velit est deleniti. Nostrum repudiandae aliquid unde voluptates quis.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (165, 243, 'Prof. <NAME> MD', 'Quas aut harum odio. Porro nobis vel eius et.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (166, 54, 'Ms. <NAME>', 'Aut quam consequatur labore repudiandae est molestiae illo. Voluptate natus distinctio id non dolore pariatur. Fuga consequuntur aut aliquam dolor.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (167, 11, '<NAME>', 'Tempore adipisci natus veniam nemo iure. Aspernatur eos ut et facilis voluptate ut. Nihil quia minus nesciunt. Iure eligendi aut facere aut veniam.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (168, 109, 'Mrs. <NAME>', 'Aperiam repudiandae est sequi repellat quia. Assumenda consequatur illum veniam aut expedita sint iste nisi. Unde ex dolorem vel sunt. Cum quisquam fugiat non qui magnam repellendus animi.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (169, 9, '<NAME>', 'Ipsum dolorum molestias provident sed. Sapiente maiores sequi corrupti qui esse consequuntur. Repellendus quasi sunt non impedit.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (170, 9, '<NAME>', 'Ea veniam rerum est et pariatur aut mollitia. Occaecati consequuntur autem et inventore. Non quam voluptatum voluptates esse perferendis. Sit asperiores neque explicabo assumenda illum. Et distinctio tempora voluptatem repellat occaecati inventore non.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (171, 39, 'Miss <NAME> PhD', 'Amet temporibus commodi ut porro. Possimus eum necessitatibus officiis omnis. Placeat voluptatem et voluptatem id vel. Minima adipisci iure voluptatibus ea sequi.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (172, 224, '<NAME>', 'Corporis molestias aut eum vel quaerat qui. Vel magnam tenetur laudantium facilis. Nemo impedit delectus suscipit incidunt. Dolor perspiciatis tempore eius unde facilis incidunt.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (173, 226, '<NAME>', 'Beatae impedit voluptas nesciunt possimus fugiat enim. Vitae sit voluptas odio qui voluptatibus fuga consectetur.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (174, 129, '<NAME>', 'Error et maxime iste aspernatur. Assumenda autem totam qui qui voluptatem. Dolorem earum aut nulla expedita. Quibusdam in perferendis laudantium omnis magni.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (175, 35, '<NAME> DVM', 'Consectetur fugiat debitis nam veniam. Et debitis et voluptates sit est praesentium. Aliquid aliquid ut blanditiis voluptatem animi sed neque vel. Corporis qui quae iusto.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (176, 195, 'Dr. <NAME> MD', 'Delectus eum eum doloremque incidunt. Aut modi amet non hic. Similique vitae id quae quisquam temporibus fuga non.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (177, 28, '<NAME>', 'Quisquam aut sit aut nesciunt quos quaerat. Distinctio aut voluptates id distinctio repudiandae autem optio. Omnis autem enim reiciendis molestiae quis ut.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (178, 152, 'Prof. <NAME>', 'Ea sit adipisci molestias aut deleniti laudantium. Quas aut quas commodi ea et incidunt quam.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (179, 33, '<NAME> V', 'Similique dolores laboriosam aut atque voluptas atque. Ad repudiandae ullam qui ut quo atque accusantium. Deleniti nisi voluptatem voluptatibus enim ut quis. Ipsum sit dolorem deserunt voluptates voluptatum. Modi rerum aut aut incidunt officia qui est.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (180, 147, '<NAME>', 'Deserunt enim qui eveniet repellat cum dolorem quae impedit. Facilis assumenda nobis iure in. Nemo et sed ut minima hic doloribus deserunt quam. Recusandae deleniti laborum repellat.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (181, 185, '<NAME> Sr.', 'Quisquam facere aut sunt vel. Molestiae et exercitationem nam et tempore a. Inventore enim fugit commodi debitis eius minima assumenda reiciendis.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (182, 179, 'Mrs. <NAME> III', 'Delectus voluptatem et non cum atque. Et ut non a et asperiores.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (183, 95, '<NAME>', 'Amet non minus eius similique ut. Pariatur nostrum ea consectetur eum atque. Maiores voluptatibus nihil odit sint. Consequatur maxime assumenda qui vitae voluptas.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (184, 183, '<NAME>', 'Inventore velit voluptatem nesciunt odit sunt. Provident laudantium nisi ut maiores consequuntur. Quaerat corporis esse tenetur quis dolorum porro. Amet veniam impedit similique aperiam aliquid beatae.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (185, 227, 'Prof. <NAME>', 'A ut nulla non perspiciatis. Aut nisi ipsum numquam excepturi doloribus explicabo illo.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (186, 140, '<NAME>', 'Sed vel dolorum non ipsa sint maxime quia. Voluptatem aut aut aliquam blanditiis voluptatem animi nobis. Ea quisquam est qui non ipsum unde molestiae. Repellendus reiciendis distinctio consequatur dolore maxime et nesciunt.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (187, 27, '<NAME>', 'Similique ratione quibusdam cumque fugit distinctio minus. Libero ut aut omnis natus a soluta omnis. Voluptatem recusandae ratione accusantium consequuntur dolores enim sint.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (188, 19, '<NAME> V', 'Voluptas pariatur dolores consequatur et. Aut voluptas quis nihil officia nisi dolores.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (189, 15, '<NAME>', 'Provident sint distinctio libero ad dolor inventore iste. Exercitationem laudantium illo veritatis corporis dolorem voluptatem sit excepturi. Velit eos reiciendis et nisi qui dolore.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (190, 189, '<NAME>', 'Dolores illum a aliquam dolorem amet delectus quod. Non quaerat repudiandae nam ut tenetur exercitationem. Sed sit hic at repellendus recusandae voluptates accusantium fugit.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (191, 147, '<NAME>', 'Aut maiores iure quas quisquam rerum. Quia veritatis laudantium qui tenetur. Eum sed totam veritatis exercitationem. Harum aliquid quia sed itaque unde. Maiores praesentium est vero magni expedita incidunt autem.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (192, 240, '<NAME> III', 'Repudiandae itaque unde quis sunt. Quia neque et ducimus ipsum qui nostrum voluptates voluptatum. Dolor fugiat placeat omnis et iusto asperiores.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (193, 137, '<NAME>', 'In accusantium expedita reiciendis fugit error modi quibusdam deserunt. Aut dolores nihil molestiae quo. Ea adipisci voluptatem quo atque quasi. Quia quia eaque necessitatibus dolores.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (194, 208, '<NAME>', 'Voluptatum est consequatur vitae sed ut enim. Et impedit omnis numquam nostrum. Reprehenderit est ea rerum praesentium reprehenderit inventore. Mollitia provident pariatur porro inventore deserunt nesciunt. Quod sed fugit saepe molestiae saepe perferendis.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (195, 163, 'Dr. <NAME>', 'Odio molestias incidunt cum ipsum. Harum aut illum atque porro. Quae dignissimos est nisi esse vero sed. Debitis sit sequi ex.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (196, 71, '<NAME> Jr.', 'Vero quasi voluptatem et repellendus. Magnam laboriosam tempora odit id. Saepe nobis qui aliquid quia nemo dolor et.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (197, 186, '<NAME>', 'Nulla aut architecto error doloribus. Vel odit error consequuntur iste nulla laboriosam voluptas. Maxime architecto maiores ut enim. Blanditiis voluptatem tenetur tenetur illo atque officia repellendus.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (198, 204, 'Mr. <NAME>', 'Aut eos optio quod magnam architecto. Eveniet fugit odio similique quo est modi aliquam. Dolores magnam quia eligendi explicabo. Iste molestias expedita exercitationem nisi quidem. Tempore itaque neque vel in voluptatem id ut.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (199, 197, '<NAME> I', 'Ut error iure et eos velit voluptas. Velit quaerat et id tempora. Reiciendis quas consequatur dolor non nam neque et atque. Ipsa nihil occaecati rem voluptatem rem optio aspernatur ea.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (200, 58, 'Ms. <NAME>', 'Amet quos quidem dolorem non enim ipsum. Et non excepturi sit aut. Aliquid sed perspiciatis odio dolorem.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (201, 84, 'Dr. <NAME>', 'Quis ad incidunt amet saepe. Enim veniam voluptatibus excepturi. Sunt dolorem aut nihil itaque nemo.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (202, 65, 'Prof. <NAME>', 'Voluptate rerum reiciendis expedita eveniet non tempora eligendi. Nesciunt autem blanditiis voluptas quia. Ratione ipsum velit nam quasi dolor dolorem.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (203, 147, 'Prof. <NAME> PhD', 'Non beatae commodi saepe. Eos velit labore nam quam. Officia minus eos quo.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (204, 176, '<NAME>', 'Nam fuga eum voluptatem doloremque eum neque. Labore accusamus impedit dolores minima dolores quod aut. Repellat architecto voluptatem eaque.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (205, 35, 'Dr. <NAME>', 'Quia sunt laborum dicta facilis amet aut. Ut quia et dolor ratione. Nemo aut eos quis id enim quia. Ut amet optio quod excepturi saepe est.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (206, 80, 'Dr. <NAME> IV', 'Modi dolor qui velit modi. Ex officia dolorem eos hic quia. Non quis voluptates ad aut.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (207, 201, '<NAME>', 'Et ab molestiae eveniet suscipit est doloremque. Sapiente rerum et unde magni fuga quidem magni. Reiciendis corporis nobis perspiciatis omnis culpa tempora suscipit. Ipsa et itaque ut et.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'); INSERT INTO `reviews` (`id`, `product_id`, `customer`, `review`, `star`, `created_at`, `updated_at`) VALUES (208, 13, '<NAME> II', 'Tempore voluptatem quaerat eius dolorem culpa et. Non qui omnis minima nostrum culpa. Distinctio eum debitis consequuntur adipisci. Quo eaque quod ut voluptatem. Voluptas quia possimus quaerat.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (209, 124, 'Dr. <NAME> Sr.', 'Vel quos quis repellendus molestiae. Voluptas eum ex facilis fuga aut. Sapiente deserunt sit qui. Qui et facere animi magni id illo qui.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (210, 54, '<NAME> DVM', 'Tempore accusantium rerum optio magnam similique vel unde. Aperiam ut quam at incidunt vel. Labore necessitatibus voluptatibus cumque odit. Dolor voluptate incidunt et consequatur facilis optio cum enim.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (211, 11, '<NAME>', 'Consequatur omnis est nam. Sed aliquam aut voluptas iste et deleniti ad reprehenderit. Aliquam qui modi tempore quod et aut aut aut.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (212, 110, '<NAME>', 'Iste accusamus earum qui veritatis porro nobis exercitationem. Ut voluptatem perferendis voluptate.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (213, 14, '<NAME> V', 'Dignissimos vitae beatae ducimus. Enim et odit quam voluptatibus dolorum. Nesciunt qui voluptatem vel quia quaerat assumenda.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (214, 168, '<NAME>', 'Nesciunt quis itaque reiciendis. Nam consectetur consequatur neque. Placeat praesentium rerum quaerat sed qui. Corporis reprehenderit enim et facere voluptates molestiae.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (215, 158, '<NAME>', 'Ut illo explicabo ut dolorem dolores in voluptates. Dolor provident aut delectus modi molestiae voluptatem. Autem commodi velit voluptatem dolor perspiciatis. Voluptatem et occaecati eveniet nihil praesentium nostrum quia. Assumenda minima recusandae eaque.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (216, 150, '<NAME>', 'Voluptatum in delectus ipsam enim officia eos. Deserunt esse porro voluptate natus esse aspernatur neque quam. Sed id vel asperiores ab quae ut ut.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (217, 219, '<NAME>', 'Ex odio mollitia voluptatibus dignissimos. Mollitia non a amet consequatur mollitia adipisci dolorem magnam.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (218, 99, '<NAME> Jr.', 'Et voluptatum consequatur quo ipsum id et laborum. Fugit pariatur in magni voluptas saepe. Cum quaerat sed sequi explicabo commodi ducimus cupiditate. Nobis quia dolore voluptas non ex.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (219, 107, '<NAME>', 'Aut consequatur aut ut ea et possimus nemo. Possimus sequi quia asperiores blanditiis fugiat sunt facilis.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (220, 65, '<NAME> DDS', 'Architecto temporibus accusantium repellat eius aut culpa facilis aut. Et in molestiae facere dolore. Rem ratione et autem doloremque ipsa voluptatibus odio.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (221, 134, '<NAME>', 'Quod autem nam eaque pariatur. Illo perspiciatis debitis qui laborum. Autem numquam facere aperiam est aut. Omnis consequatur rerum ipsum amet voluptatum aut.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (222, 72, '<NAME>', 'Cupiditate quae beatae dolorum possimus qui. Tenetur ducimus maiores doloribus. Dicta placeat minima facere et animi suscipit ut.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (223, 123, '<NAME>', 'Dicta nobis voluptate temporibus eum. Provident qui quis aut sunt saepe. In occaecati laboriosam consequatur enim amet. Iure eveniet molestias et et quis sed.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (224, 132, '<NAME>', 'Reiciendis et tenetur reiciendis quia nemo voluptate alias. Voluptatem dolorum molestiae molestias magnam. Et consectetur impedit iste ut rerum nemo accusamus. Adipisci impedit reprehenderit voluptatem nobis voluptatem sed aut.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (225, 98, '<NAME>', 'Quia enim rerum nihil perspiciatis in in adipisci. Eum sunt voluptatibus et qui omnis quaerat. Qui sint quod ab enim fuga aliquam accusantium. Aut sunt et dolorem ut et hic sequi.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (226, 109, '<NAME>', 'Odio debitis ullam eaque dolore ea minus ut. Id error est ipsum fugit rem et consequatur maxime.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (227, 89, '<NAME>', 'Tenetur non dolorem reiciendis quia ea nobis soluta. Tempore velit voluptas autem est. Impedit eum voluptate quisquam repudiandae eum dolor quam distinctio. Sunt officiis animi animi dolores veniam. Voluptatem quia temporibus tempore maxime qui temporibus.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (228, 22, '<NAME>', 'Quia amet voluptate autem ratione culpa odio optio. Quia ab sed est praesentium illo mollitia. Non numquam delectus enim molestias corrupti voluptas ea.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (229, 4, '<NAME>', 'Qui aut culpa qui consequatur explicabo est mollitia. Quia nesciunt reprehenderit natus veritatis dicta. Quia minima repellendus quidem explicabo. Cumque laborum ipsam alias impedit dolore nobis.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (230, 163, '<NAME>', 'Quibusdam hic molestiae aliquid architecto voluptatem adipisci. Repudiandae ipsa voluptatem cum corrupti. Praesentium totam sapiente et illum. Aperiam omnis amet quos esse quae. Unde ut corporis in eum libero expedita.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (231, 212, '<NAME>', 'In et nulla rerum. Vel pariatur alias ut rerum consectetur unde.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (232, 25, '<NAME> II', 'Unde rerum et ipsum earum corrupti quia rem. Laboriosam quia ut est corrupti vel facilis. Beatae repellat ut in minus quasi facere. Minima voluptates quaerat suscipit aspernatur sit. Illum iste deleniti corrupti ratione aliquam nihil.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (233, 162, 'Prof. <NAME> DDS', 'Sit alias alias nobis doloribus et. Accusantium incidunt omnis incidunt quis nobis cupiditate. Unde illum quo dolorem dolores nihil laboriosam non. Numquam aut eius quas sed rem quod et sapiente. Fugit deserunt officiis dolor nihil.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (234, 68, '<NAME>', 'Occaecati qui quae harum ea nobis. Numquam ullam provident accusantium expedita dolorem maxime. Eum perferendis illum reiciendis rem molestias veniam. Rem sint enim minus iusto.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (235, 209, '<NAME>', 'Dicta nostrum non culpa nemo. Nam ut reiciendis occaecati repellat non. Saepe quis sequi quo aut laudantium dolor. Soluta non aut ut quia voluptatem porro.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (236, 2, '<NAME>', 'Repudiandae eos et ipsam cum sint. Natus perferendis quis eos maxime optio. Provident consectetur ut excepturi libero laborum accusamus quis. Fugit amet facilis praesentium quia assumenda praesentium. Placeat quos delectus molestiae quia.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (237, 167, 'Mr. <NAME>', 'Esse quo eos quia officiis minima. Voluptas maiores amet ad non occaecati quo sint itaque. Excepturi magnam quam ducimus molestiae totam quae. Minus adipisci molestiae est quia doloribus.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (238, 102, '<NAME> III', 'Et consequatur qui neque error est. Pariatur quasi sit ipsum deleniti odio. Odit consequatur corrupti quae ut. Neque vel blanditiis nam eligendi molestiae qui.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (239, 142, 'Mr. <NAME>', 'Ratione quo sed qui inventore cum eos optio. Voluptatibus omnis sapiente neque similique sapiente eligendi. Voluptate sunt est molestiae. Est enim delectus pariatur enim reiciendis eveniet non.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (240, 6, '<NAME> V', 'Enim voluptas voluptas ipsam rerum non harum. Consectetur sunt officiis veniam ab non perspiciatis. Assumenda ut nisi soluta. Illum omnis molestias repudiandae odio.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (241, 119, 'Prof. <NAME>', 'Enim magni quia cum libero et. Doloremque deserunt nam rerum natus praesentium quo blanditiis. Officia odit ex vitae quo.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (242, 133, 'Prof. <NAME>', 'Necessitatibus sed quae dolore ipsam. Cumque voluptas dolor voluptas recusandae et numquam. Incidunt explicabo corrupti aperiam. Autem voluptas non ab.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (243, 95, 'Dr. <NAME> DVM', 'Rerum debitis totam molestiae unde voluptas. Saepe optio qui eius.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (244, 163, '<NAME>', 'Quaerat vero et rem nihil quasi ipsum explicabo. In sed similique soluta tempora placeat quo. Magni sint voluptatem est praesentium aut amet. Dolores possimus nostrum aut cum.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (245, 9, '<NAME>', 'In fugit et fugit quos voluptatem. Sed a eos ut et veniam omnis.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (246, 167, '<NAME>', 'Tempora sapiente voluptatem asperiores atque culpa eos velit. Error voluptatibus et quidem omnis deleniti aut recusandae autem. Est libero et est.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (247, 52, 'Ms. <NAME> II', 'Dicta ipsa eaque dolor error fuga. Nam voluptatum aut asperiores. Accusantium fugiat sed quo dicta nesciunt est. Nulla totam repellendus est repellendus nulla repudiandae facere.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (248, 55, '<NAME> Jr.', 'Ad rerum cumque consectetur ut exercitationem illum ut. A consequuntur molestias aspernatur facere et sed. Ad numquam maxime natus quos.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (249, 184, '<NAME> Sr.', 'Sit qui et omnis dignissimos dolores doloribus corrupti rerum. Natus et ea natus ut aliquam illo. Occaecati voluptas corporis impedit totam eum at repudiandae.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (250, 69, 'Dr. <NAME>', 'Perferendis ipsum incidunt deleniti eum aperiam consectetur quos. Nostrum atque ipsa itaque saepe. Aut natus et distinctio officiis rerum minus qui.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (251, 195, 'Prof. <NAME> V', 'Qui atque quis et perspiciatis. Sunt tempora sed nulla dolore possimus ducimus suscipit. Placeat nesciunt distinctio et qui in odio molestias. Delectus modi laborum sit dolor nulla.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (252, 155, 'Dr. <NAME> PhD', 'Natus quidem occaecati rem magni. Quae maxime perspiciatis molestiae mollitia. Facilis est expedita quibusdam dolor deleniti. Explicabo quis voluptates a dolores voluptas ea expedita delectus.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (253, 25, '<NAME> IV', 'Dignissimos eos tempora laboriosam et. Iusto dolore aut sunt quis ut qui. Nisi illum temporibus ea quidem qui similique et. Aut nihil saepe soluta voluptatem aut doloremque delectus.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (254, 12, '<NAME>', 'Rerum deleniti alias officiis autem ut velit. Natus rerum perspiciatis odit necessitatibus. Error totam est molestiae praesentium.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (255, 15, 'Prof. <NAME> III', 'Quia ducimus qui suscipit molestiae. Voluptatibus animi voluptatum id ullam ab. Ducimus alias illum fugit voluptas nobis sit dicta. Nobis doloribus nemo at consequatur aliquam ex.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (256, 21, '<NAME>', 'Aut ea similique delectus ut. Unde enim asperiores facilis omnis maiores id. Similique facilis itaque ea et praesentium. Harum error adipisci et pariatur ullam. Sed officiis dolorem numquam molestiae repellat voluptatem omnis.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (257, 211, 'Ms. <NAME>', 'Animi rerum sed voluptates ullam aliquid reiciendis occaecati ullam. Non culpa ut in nemo. Voluptatem architecto harum quo quasi quia non pariatur.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (258, 67, 'Mrs. <NAME> PhD', 'Omnis quis dolor sequi quia. Dolorem assumenda ad soluta ut aut minus est. Quasi aut non repellendus quasi distinctio aut asperiores. At enim omnis quam aut dolorem ea.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (259, 27, '<NAME>', 'Blanditiis quia voluptate quod unde fugit aliquid vel et. Natus eos vitae quibusdam quam. Velit vero mollitia error dolorem explicabo. Explicabo voluptatum ea at cum necessitatibus.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (260, 49, '<NAME>', 'Quis exercitationem vel quis est sint quod. Impedit qui maxime nobis qui beatae eum. Officia eius in velit quas sunt quaerat reprehenderit. Quo in vel aliquam sapiente est provident et.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (261, 134, '<NAME>', 'Architecto omnis ea pariatur recusandae perferendis mollitia voluptatum. Officiis quas cumque quisquam fugiat aut. Rem numquam velit iste. Repellendus itaque occaecati necessitatibus voluptatem vel. Aspernatur dolorem ut aut.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (262, 125, '<NAME> Jr.', 'Veniam repudiandae libero at. Debitis quia molestiae voluptate aut commodi dolorem consequatur ea. Et totam et atque aut ratione sunt et. Ea iste occaecati modi quasi magni atque. Aut ratione id ipsum non.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (263, 102, '<NAME>', 'Sunt voluptates sunt architecto. Explicabo omnis vel perferendis cumque dolores facere. Ut minus voluptates in laudantium ad illo. Aspernatur iste consequatur ea autem hic ut.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (264, 65, '<NAME>', 'Aliquam veritatis explicabo et. Sint nisi neque dignissimos molestias. Suscipit dolore ut est odio totam. Enim ut laboriosam laudantium possimus.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (265, 90, 'Ms. <NAME> MD', 'Voluptas iure tempore et dolor quia accusantium. Mollitia consequatur voluptatibus odio dignissimos eos ut. Quis rerum dolorem est qui saepe reiciendis.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (266, 88, 'Dr. <NAME> II', 'Doloribus laborum ipsam numquam expedita. Excepturi ratione ad voluptas et harum voluptate a. Voluptatem tempore quas totam facilis in quia. Magni molestias fuga laboriosam ut dolores.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (267, 124, '<NAME>', 'Id repellendus odit magni voluptate et et voluptatem. Dicta voluptas minima iste quis. Rerum ut harum fugiat et.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (268, 104, '<NAME>', 'Magni cum quod odit. A sit commodi non repellendus id. Ut sint et rem esse qui ducimus. Eius qui delectus aliquid nostrum.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (269, 225, '<NAME>', 'Fuga repellendus dolor corporis totam aspernatur ipsum occaecati. Itaque unde facere aut perspiciatis. Cupiditate ut accusantium et laborum recusandae similique optio.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (270, 174, '<NAME>', 'In doloremque et qui aut minima blanditiis et. Nihil voluptatem sed sapiente praesentium. Hic et repellat qui. Nesciunt sed ipsum maxime nihil.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (271, 152, '<NAME>', 'Praesentium et est repellat. Ea officia ipsa numquam aut qui possimus dolore. Iure voluptas iusto voluptas voluptas qui. Impedit ea beatae commodi.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (272, 5, '<NAME>', 'Beatae quo aperiam quas eum libero in. Ipsam suscipit harum tempore quia. Molestiae adipisci esse non.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (273, 26, 'Prof. <NAME>', 'Cumque qui rerum error occaecati nihil et tempore aperiam. Quidem rerum rerum alias aperiam. Iure nesciunt inventore dolorum soluta consequatur.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (274, 46, '<NAME>', 'Unde et veritatis cupiditate laboriosam eius a. In voluptatum perferendis odio fuga eos voluptates. Quo culpa blanditiis modi ullam illum at eum.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (275, 44, '<NAME>', 'Officiis non possimus veritatis et. Quas cupiditate voluptatem aliquam unde facilis et. Quia sequi odio quibusdam natus. Doloribus officia ut impedit cumque nisi deleniti quo.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (276, 32, '<NAME>', 'Magni omnis et itaque illo temporibus. Dolores dignissimos debitis rem consectetur dolorem et. Eveniet minima sed quisquam illo reiciendis.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (277, 23, 'Ms. <NAME> I', 'Ut natus blanditiis eligendi aperiam. Natus blanditiis voluptatibus eos quo minima aliquid. Molestiae at voluptas cumque illum suscipit et.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (278, 129, '<NAME>', 'At vero veniam qui. Molestias culpa eveniet est sit consequatur. Sit suscipit accusamus enim fugit est.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (279, 247, '<NAME> Sr.', 'Ea sed ullam quia molestias. Inventore fuga similique reprehenderit et libero minus eos. Quae et aut aperiam ex vel quisquam et vitae. Dolor corrupti fugiat incidunt quos iusto vitae quia.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (280, 235, '<NAME>', 'Autem dolorum minima ipsam est omnis eos amet. Et qui cum ex veritatis illo minima. Voluptatem qui aliquid animi beatae corrupti. Illo sunt nihil aut magni quibusdam.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (281, 226, '<NAME>', 'Modi minima laudantium molestiae libero eum consequatur. Modi minima odit sit quia recusandae. Repellendus quis deleniti molestiae velit. Ipsum molestias aliquid est quia commodi vitae.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (282, 137, '<NAME> PhD', 'Qui hic tempora nihil sed voluptas. Eum reprehenderit fugit voluptas porro. Et et ex amet iure consequatur quisquam possimus. Cumque aut vero minus nemo et esse.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (283, 217, '<NAME>', 'Quibusdam reiciendis quo blanditiis facilis veritatis numquam dolor. Officiis ut unde exercitationem sequi. Laboriosam id ea ut et culpa repellendus quam quod.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (284, 169, '<NAME>', 'Enim natus qui voluptatem nulla. Qui cum exercitationem vel iste et minus ipsam. Libero quidem et iusto. Nobis officia hic numquam magni ipsa suscipit quos.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (285, 93, '<NAME>', 'Hic ipsam qui cupiditate ea repellat id. Temporibus autem quis molestias enim tenetur quia esse. Non doloremque repellat tempora optio sint quisquam. Et sed et blanditiis placeat eos magni dolor.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (286, 154, 'Ms. <NAME> PhD', 'Culpa inventore sed accusantium sapiente facere accusamus quis. Quia quis magni asperiores officia. Dolor neque animi ipsam pariatur itaque quia sapiente. Est nihil exercitationem et rerum.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (287, 226, 'Mrs. <NAME>', 'Nihil tempora quae ut qui recusandae magni. Sit consequuntur voluptate commodi rerum alias beatae rerum. Quis iste adipisci rem deserunt qui et. Recusandae amet consectetur consequatur assumenda tempore qui voluptatum non.', 3, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (288, 207, '<NAME>', 'Maiores accusantium assumenda perspiciatis tempore. Hic animi maxime placeat reiciendis voluptatibus. Non ad omnis non quisquam omnis ut. Ipsum cumque necessitatibus accusamus assumenda voluptatem.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (289, 202, '<NAME>', 'Inventore totam placeat soluta dolore saepe assumenda quo recusandae. Repudiandae aut assumenda impedit ut esse. Aut rerum dolores perferendis consequatur eligendi et amet saepe. Est qui autem fugiat odit. Ut nam sed necessitatibus dignissimos.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (290, 164, '<NAME>', 'Quo molestiae aut porro totam. Sed repudiandae ut eveniet et fugit. Similique sed amet facere libero aut.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (291, 138, '<NAME>', 'Maiores voluptas quae eveniet ut quis. Quis vel corrupti sed et. Possimus ut nemo explicabo et harum. Quia saepe ad corporis neque.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (292, 111, '<NAME> I', 'Nihil excepturi aut nemo voluptatem accusantium praesentium. Et rerum tenetur libero dolor. Eligendi eum consequatur sed dolores a corporis qui. Architecto non totam dicta unde expedita nulla.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (293, 154, 'Miss <NAME> DVM', 'Sequi quae aut ratione dolore vero labore. Corporis eos voluptatibus sapiente magnam saepe accusamus enim.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (294, 32, '<NAME>', 'Et minima itaque in ipsam nisi nobis suscipit. Vitae qui odit voluptatibus et sit minima veniam numquam. Velit accusantium eius commodi inventore. Et repudiandae quibusdam dolores occaecati. Autem sunt vel excepturi earum et odio illum.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (295, 192, 'Dr. <NAME> MD', 'Aliquid sit et voluptatem aut ea ex asperiores. Ut delectus laudantium est fugit. Voluptas eaque repudiandae iure impedit sequi nihil iusto et. Eius nulla eligendi et voluptas delectus sunt ut.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (296, 145, '<NAME>', 'Alias in adipisci vel facilis autem impedit. Libero tempora et quae aut dolorem animi. Iure nesciunt eius et.', 1, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (297, 217, '<NAME>', 'Quae rem nisi maxime natus quia non molestiae. Repudiandae nesciunt a consequatur impedit eos dicta. Sed repellat in aspernatur nam enim. Ab consequatur sunt quis delectus.', 2, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (298, 40, '<NAME> PhD', 'Quam quis ut et. Fugiat beatae ut necessitatibus optio nihil doloribus voluptas. Pariatur quia accusantium deleniti. Rerum et debitis sit debitis earum cupiditate placeat.', 4, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (299, 235, '<NAME>', 'Laudantium itaque corporis excepturi reiciendis. Voluptas doloribus et eius ipsa facere assumenda voluptatibus. Rerum earum voluptas ea et nesciunt impedit delectus quos.', 0, '2019-01-05 10:05:38', '2019-01-05 10:05:38'), (300, 47, 'Urban Witting II', 'Et commodi tenetur labore quia aut ut. Ducimus odio eveniet sequi sunt officia ratione voluptatem. Et ratione est qui vel.', 5, '2019-01-05 10:05:38', '2019-01-05 10:05:38'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; CREATE TABLE IF NOT EXISTS `users` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `users_email_unique` (`email`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>project/project.sql /* Drop all tables and procedures */ DROP TABLE IF EXISTS ticket; DROP TABLE IF EXISTS booking; DROP TABLE IF EXISTS passengers; DROP TABLE IF EXISTS credit_card; DROP TABLE IF EXISTS reservation; DROP TABLE IF EXISTS contact; DROP TABLE IF EXISTS passenger; DROP TABLE IF EXISTS flight; DROP TABLE IF EXISTS weekly_departure; DROP TABLE IF EXISTS route; DROP TABLE IF EXISTS destination; DROP TABLE IF EXISTS weekday; DROP TABLE IF EXISTS year; DROP PROCEDURE IF EXISTS addYear; DROP PROCEDURE IF EXISTS addDay; DROP PROCEDURE IF EXISTS addDestination; DROP PROCEDURE IF EXISTS addRoute; DROP PROCEDURE IF EXISTS addFlight; DROP PROCEDURE IF EXISTS addReservation; DROP PROCEDURE IF EXISTS addPassenger; DROP PROCEDURE IF EXISTS addContact; DROP PROCEDURE IF EXISTS addPayment; DROP FUNCTION IF EXISTS calculateFreeSeats; DROP FUNCTION IF EXISTS calculatePrice; DROP TRIGGER IF EXISTS onBooking; DROP VIEW IF EXISTS allFlights; /* Create all neccessary tables */ CREATE TABLE IF NOT EXISTS year ( year INTEGER UNSIGNED NOT NULL, profit_factor DOUBLE NOT NULL, CONSTRAINT pk_year PRIMARY KEY (year) ); CREATE TABLE IF NOT EXISTS destination ( airport_code VARCHAR(3) NOT NULL, airport_name VARCHAR(30) NOT NULL, country VARCHAR(30) NOT NULL, CONSTRAINT pk_airport_code PRIMARY KEY (airport_code) ); CREATE TABLE IF NOT EXISTS route ( id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, valid INTEGER UNSIGNED NOT NULL, departs_to VARCHAR(3) NOT NULL, departs_from VARCHAR(3) NOT NULL, price DOUBLE UNSIGNED NOT NULL, CONSTRAINT pk_id PRIMARY KEY (id), CONSTRAINT fk_valid FOREIGN KEY (valid) REFERENCES year(year), CONSTRAINT fk_departs_to FOREIGN KEY (departs_to) REFERENCES destination(airport_code), CONSTRAINT fk_departs_from FOREIGN KEY (departs_from) REFERENCES destination(airport_code) ); /* Table not in BCNF, enforce candidate key uniqueness */ ALTER TABLE route ADD UNIQUE unique_route(valid, departs_to, departs_from); CREATE TABLE IF NOT EXISTS weekday ( day VARCHAR(10) NOT NULL, year INTEGER UNSIGNED NOT NULL, weekday_factor DOUBLE UNSIGNED NOT NULL, CONSTRAINT pk_weekday PRIMARY KEY (day, year), CONSTRAINT fk_year FOREIGN KEY (year) REFERENCES year(year) ); CREATE TABLE IF NOT EXISTS weekly_departure ( id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, departure_time TIME NOT NULL, day VARCHAR(10) NOT NULL, year INTEGER UNSIGNED NOT NULL, route INTEGER UNSIGNED NOT NULL, CONSTRAINT pk_id PRIMARY KEY (id), CONSTRAINT fk_weekday FOREIGN KEY (day, year) REFERENCES weekday(day, year), CONSTRAINT fk_route FOREIGN KEY (route) REFERENCES route(id) ); CREATE TABLE IF NOT EXISTS flight ( flight_number INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, week INTEGER UNSIGNED NOT NULL, available_seats INTEGER UNSIGNED NOT NULL DEFAULT 40, departure INTEGER UNSIGNED NOT NULL, CONSTRAINT pk_flight_number PRIMARY KEY (flight_number), CONSTRAINT fk_weekly_departure FOREIGN KEY (departure) REFERENCES weekly_departure(id) ); CREATE TABLE IF NOT EXISTS passenger ( passport_number INTEGER UNSIGNED NOT NULL, name VARCHAR(30) NOT NULL, CONSTRAINT pk_passport_number PRIMARY KEY (passport_number) ); CREATE TABLE IF NOT EXISTS ticket ( id INTEGER UNSIGNED NOT NULL, passport_number INTEGER UNSIGNED NOT NULL, flight_number INTEGER UNSIGNED NOT NULL, CONSTRAINT pk_id PRIMARY KEY (id), CONSTRAINT fk_passport_number FOREIGN KEY (passport_number) REFERENCES passenger(passport_number), CONSTRAINT fk_ticket_flight_number FOREIGN KEY (flight_number) REFERENCES flight(flight_number) ); CREATE TABLE IF NOT EXISTS contact ( passport_number INTEGER UNSIGNED NOT NULL, email VARCHAR(30) NOT NULL, phone_number BIGINT NOT NULL, CONSTRAINT pk_passport_number PRIMARY KEY (passport_number), CONSTRAINT fk_contact_passport_number FOREIGN KEY (passport_number) REFERENCES passenger(passport_number) ); CREATE TABLE IF NOT EXISTS reservation ( reservation_number INTEGER UNSIGNED NOT NULL, number_of_passengers INTEGER UNSIGNED NOT NULL, flight_number INTEGER UNSIGNED NOT NULL, contact INTEGER UNSIGNED, CONSTRAINT pk_reservation_number PRIMARY KEY (reservation_number), CONSTRAINT fk_flight_number FOREIGN KEY (flight_number) REFERENCES flight(flight_number), CONSTRAINT fk_contact FOREIGN KEY (contact) REFERENCES contact(passport_number) ); CREATE TABLE IF NOT EXISTS passengers ( reservation_number INTEGER UNSIGNED NOT NULL, passport_number INTEGER UNSIGNED NOT NULL, CONSTRAINT pk_passengers PRIMARY KEY (reservation_number, passport_number), CONSTRAINT fk_passengers_reservation_number FOREIGN KEY (reservation_number) REFERENCES reservation(reservation_number), CONSTRAINT fk_passengers_passport_number FOREIGN KEY (passport_number) REFERENCES passenger(passport_number) ); CREATE TABLE IF NOT EXISTS credit_card ( credit_card_number BIGINT UNSIGNED NOT NULL, holder VARCHAR(30) NOT NULL, CONSTRAINT pk_credit_card_number PRIMARY KEY (credit_card_number) ); CREATE TABLE IF NOT EXISTS booking ( reservation_number INTEGER UNSIGNED NOT NULL, paid_amount DOUBLE UNSIGNED NOT NULL, credit_card BIGINT UNSIGNED NOT NULL, CONSTRAINT pk_reservation_number PRIMARY KEY (reservation_number), CONSTRAINT fk_booking_number FOREIGN KEY (reservation_number) REFERENCES reservation(reservation_number), CONSTRAINT fk_credit_card FOREIGN KEY (credit_card) REFERENCES credit_card(credit_card_number) ); /* Define all procedures */ delimiter // CREATE PROCEDURE addYear(IN in_year INTEGER UNSIGNED, IN in_factor DOUBLE) BEGIN INSERT INTO year (year,profit_factor) values (in_year, in_factor); END;// CREATE PROCEDURE addDay(IN in_year INTEGER UNSIGNED, IN in_day VARCHAR(10), IN in_factor DOUBLE) BEGIN INSERT INTO weekday (year, day, weekday_factor) values (in_year, in_day, in_factor); END;// CREATE PROCEDURE addDestination(IN in_airport_code VARCHAR(3), IN in_name VARCHAR(30), IN in_country VARCHAR(30)) BEGIN INSERT INTO destination (airport_code, airport_name, country) values (in_airport_code, in_name, in_country); END;// CREATE PROCEDURE addRoute(IN in_departs_from VARCHAR(3), IN in_departs_to VARCHAR(3), IN in_valid INTEGER UNSIGNED, IN in_price DOUBLE UNSIGNED) BEGIN INSERT INTO route (valid, departs_to, departs_from, price) values (in_valid, in_departs_to, in_departs_from, in_price); END;// CREATE PROCEDURE addFlight(IN in_departs_from VARCHAR(3), IN in_departs_to VARCHAR(3), IN in_year INTEGER UNSIGNED, IN in_day VARCHAR(10), IN in_departure_time TIME) BEGIN DECLARE route_id INTEGER UNSIGNED; DECLARE departure_id INTEGER UNSIGNED; DECLARE week_nr INTEGER UNSIGNED; SELECT id INTO route_id FROM route WHERE valid = in_year and departs_to = in_departs_to and departs_from = in_departs_from; INSERT INTO weekly_departure (departure_time, day, year, route) values (in_departure_time, in_day, in_year, route_id); /* Insert a flight for every week of the year */ SELECT LAST_INSERT_ID() INTO departure_id; SET week_nr = 1; REPEAT INSERT INTO flight (week, departure) values (week_nr, departure_id); SET week_nr = week_nr + 1; UNTIL week_nr > 52 END REPEAT; END;// CREATE FUNCTION calculateFreeSeats(in_flight_number INTEGER UNSIGNED) RETURNS INTEGER UNSIGNED BEGIN RETURN (SELECT available_seats FROM flight WHERE flight_number = in_flight_number) - (SELECT COUNT(*) FROM ticket WHERE flight_number = in_flight_number); END;// CREATE FUNCTION calculatePrice(in_flight_number INTEGER UNSIGNED) RETURNS DOUBLE UNSIGNED BEGIN DECLARE booked_seats INTEGER UNSIGNED; DECLARE departure_id INTEGER UNSIGNED; DECLARE route_price DOUBLE; DECLARE profit_fctr DOUBLE; DECLARE weekday_fctr DOUBLE; SELECT COUNT(*) INTO booked_seats FROM ticket WHERE flight_number = in_flight_number; SELECT departure INTO departure_id FROM flight WHERE flight_number = in_flight_number; SELECT price INTO route_price FROM route WHERE id = (SELECT route FROM weekly_departure WHERE id = departure_id); SELECT profit_factor INTO profit_fctr FROM year WHERE year = (SELECT year FROM weekly_departure WHERE id = departure_id); SELECT weekday_factor INTO weekday_fctr FROM weekday WHERE (day, year) = (SELECT day, year from weekly_departure WHERE id = departure_id); RETURN route_price*weekday_fctr*profit_fctr*((booked_seats+1)/40); END;// CREATE TRIGGER onBooking AFTER INSERT ON booking FOR EACH ROW BEGIN DECLARE p_nr INTEGER UNSIGNED; DECLARE f_nr INTEGER UNSIGNED; DECLARE passenger_index INTEGER UNSIGNED; DECLARE num_passengers INTEGER UNSIGNED; DECLARE unguessable_id INTEGER UNSIGNED; DECLARE found_unique BOOLEAN; SELECT flight_number INTO f_nr FROM reservation WHERE reservation_number = NEW.reservation_number; SELECT COUNT(*) INTO num_passengers from passengers; SET passenger_index = 0; REPEAT IF EXISTS (SELECT * from passengers WHERE reservation_number = NEW.reservation_number LIMIT passenger_index, 1) THEN SELECT passport_number INTO p_nr from passengers WHERE reservation_number = NEW.reservation_number LIMIT passenger_index, 1; SET found_unique = false; REPEAT SET unguessable_id = FLOOR(RAND() * 9999999); IF (SELECT COUNT(*) FROM ticket WHERE id = unguessable_id) = 0 THEN SET found_unique = true; END IF; UNTIL found_unique = true END REPEAT; INSERT INTO ticket (id, passport_number, flight_number) VALUES (unguessable_id, p_nr, f_nr); END IF; SET passenger_index = passenger_index + 1; UNTIL passenger_index >= num_passengers END REPEAT; END;// CREATE PROCEDURE addReservation(IN in_departs_from VARCHAR(3), IN in_departs_to VARCHAR(3), IN in_year INTEGER UNSIGNED, IN in_week INTEGER UNSIGNED, IN in_day VARCHAR(10), IN in_departure_time TIME, IN in_number_of_passengers INTEGER UNSIGNED, OUT output_reservation_nr INTEGER UNSIGNED) BEGIN DECLARE flight_nr INTEGER UNSIGNED; DECLARE unguessable_id INTEGER UNSIGNED; DECLARE found_unique BOOLEAN; SELECT flight_number INTO flight_nr FROM flight WHERE in_week = week AND departure = (SELECT id FROM weekly_departure WHERE departure_time = in_departure_time AND day = in_day AND year = in_year AND route = (SELECT id FROM route WHERE in_departs_from = departs_from AND in_departs_to = departs_to AND valid = in_year) ) ; IF NOT (flight_nr IS NULL) THEN IF (calculateFreeSeats(flight_nr)>= in_number_of_passengers) THEN SET found_unique = false; REPEAT SET unguessable_id = FLOOR(RAND() * 9999999); IF (SELECT COUNT(*) FROM reservation WHERE reservation_number = unguessable_id) = 0 THEN SET found_unique = true; END IF; UNTIL found_unique = true END REPEAT; INSERT INTO reservation (reservation_number, number_of_passengers, flight_number) VALUES (unguessable_id, in_number_of_passengers, flight_nr); SET output_reservation_nr = unguessable_id; ELSE SELECT "There are not enough seats available on the chosen flight" AS "Message"; END IF; ELSE SELECT "There exist no flight for the given route, date and time" AS "Message"; END IF; END;// /* We assume that adding more passengers than number_of_passengers is not allowed, therefor we issue a error */ CREATE PROCEDURE addPassenger(IN in_reservation_nr INTEGER UNSIGNED, IN in_passport_nr INTEGER UNSIGNED, IN in_name VARCHAR(30)) BEGIN IF EXISTS (SELECT reservation_number FROM reservation WHERE reservation_number = in_reservation_nr) THEN IF NOT EXISTS (select * FROM booking WHERE reservation_number = in_reservation_nr) THEN IF ((SELECT COUNT(*) FROM passengers WHERE reservation_number = in_reservation_nr) < (SELECT number_of_passengers FROM reservation WHERE reservation_number = in_reservation_nr)) THEN IF NOT EXISTS (SELECT * FROM passenger WHERE passport_number = in_passport_nr) THEN INSERT INTO passenger (passport_number, name) VALUES (in_passport_nr, in_name); END IF; INSERT INTO passengers (reservation_number, passport_number) VALUES (in_reservation_nr, in_passport_nr); ELSE SELECT "The given reservation cannot hold more passengers" AS "Message"; END IF; ELSE SELECT "The booking has already been payed and no futher passengers can be added" AS "Message"; END IF; ELSE SELECT "The given reservation number does not exist" AS "Message"; END IF; END;// CREATE PROCEDURE addContact(IN in_reservation_nr INTEGER UNSIGNED, IN in_passport_number INTEGER UNSIGNED, IN in_email VARCHAR(30), IN in_phone BIGINT) BEGIN IF EXISTS (SELECT reservation_number FROM reservation WHERE reservation_number = in_reservation_nr) THEN IF EXISTS(SELECT * from passengers WHERE passport_number = in_passport_number AND reservation_number = in_reservation_nr) THEN IF NOT EXISTS (SELECT * FROM contact WHERE passport_number = in_passport_number) THEN INSERT INTO contact (passport_number, email, phone_number) VALUES (in_passport_number, in_email, in_phone); END IF; UPDATE reservation SET contact = in_passport_number WHERE reservation_number = in_reservation_nr; ELSE SELECT "The person is not a passenger of the reservation" AS "Message"; END IF; ELSE SELECT "The given reservation number does not exist" AS "Message"; END IF; END;// CREATE PROCEDURE addPayment(IN in_reservation_nr INTEGER UNSIGNED, IN in_cardholder_name VARCHAR(30), IN in_credit_card_number BIGINT) BEGIN DECLARE amount DOUBLE; DECLARE flight_nr INTEGER UNSIGNED; DECLARE number_of_passengers INTEGER UNSIGNED; IF EXISTS (SELECT reservation_number FROM reservation WHERE reservation_number = in_reservation_nr) THEN IF NOT (SELECT contact FROM reservation WHERE reservation_number = in_reservation_nr) IS NULL THEN SELECT flight_number INTO flight_nr FROM reservation WHERE reservation_number = in_reservation_nr; SELECT COUNT(*) INTO number_of_passengers FROM passengers WHERE reservation_number = in_reservation_nr; IF (calculateFreeSeats(flight_nr) >= number_of_passengers) THEN IF NOT EXISTS (SELECT * FROM credit_card WHERE credit_card_number = in_credit_card_number) THEN INSERT INTO credit_card (credit_card_number, holder) VALUES (in_credit_card_number, in_cardholder_name); END IF; SET amount = calculatePrice(flight_nr) * number_of_passengers; INSERT INTO booking (reservation_number, paid_amount, credit_card) VALUES (in_reservation_nr, amount, in_credit_card_number); ELSE SELECT "There are not enough seats available on the flight anymore, deleting reservation" AS "Message"; DELETE FROM passengers WHERE reservation_number = in_reservation_nr; DELETE FROM reservation WHERE reservation_number = in_reservation_nr; END IF; ELSE SELECT "The reservation has no contact yet" AS "Message"; END IF; ELSE SELECT "The given reservation number does not exist" AS "Message"; END IF; END;// delimiter ; CREATE VIEW allFlights( departure_city_name, destination_city_name, departure_time, departure_day, departure_week, departure_year, nr_of_free_seats, current_price_per_seat ) AS SELECT destF.airport_name, destT.airport_name, dep.departure_time, dep.day, fli.week, dep.year, calculateFreeSeats(fli.flight_number), calculatePrice(fli.flight_number) FROM flight AS fli INNER JOIN weekly_departure AS dep ON fli.departure = dep.id INNER JOIN destination AS destT ON destT.airport_code = (SELECT departs_to FROM route WHERE id = dep.route) INNER JOIN destination AS destF ON destF.airport_code = (SELECT departs_from FROM route WHERE id = dep.route) ;
<reponame>Razarac00/challenge-employeedb-Razarac00<gh_stars>0 -- Create a new database called 'EmployeeDB' -- Connect to the 'master' database to run this snippet USE master GO -- Create the new database if it does not exist already IF NOT EXISTS ( SELECT name FROM sys.databases WHERE name = N'EmployeeDB' ) CREATE DATABASE EmployeeDB GO use EmployeeDB; go create table [model].Department ( Did int not null identity(1,1), [Name] nvarchar(50) not null, [Location] nvarchar(100) not null ); go create table [model].Employee ( Eid int not null identity(1,1), Did int not null, Firstname nvarchar(25), Lastname nvarchar(25) ); go create table [model].EmployeeDetails ( Emid int not null identity(1,1), Eid int not null, Salary decimal(10,2) not null, Street nvarchar(50), City nvarchar(25), Province nvarchar(25) ); go alter table [model].Department add constraint PK_Did primary key (Did); alter table [model].Employee add constraint PK_Eid primary key (Eid); alter table [model].Employee add constraint FK_Did foreign key (Did) references [model].Department(Did); alter table [model].EmployeeDetails add constraint PK_Emid primary key (Emid); alter table [model].EmployeeDetails add constraint FK_Eid foreign key (Eid) references [model].Employee(Eid);
CREATE TABLE aluno( nome VARCHAR(50), data_nascimento DATE, idade INT, nota FLOAT ); INSERT INTO aluno(nome, data_nascimento, idade, nota) VALUES ( "Christian", "2001-07-13", 20, 9.0 ); INSERT INTO aluno(nome, data_nascimento, idade, nota) VALUES ( "Deivid", "2002-07-17", 19, 10.0 ); INSERT INTO aluno(nome, data_nascimento, idade, nota) VALUES ( "Thayná", "1999-01-08", 22, 10 ); INSERT INTO aluno(nome, data_nascimento, idade, nota) VALUES ( "Adriana", "1940-07-14", 40, 6.0 ); INSERT INTO aluno(nome, data_nascimento, idade, nota) VALUES ( "Valdir", "1950-08-08", 34, 5.0 ); INSERT INTO aluno(nome, data_nascimento, idade, nota) VALUES ( "<NAME>", "2007-01-12", 20, 2.0 ); INSERT INTO aluno(nome, data_nascimento, idade, nota) VALUES ( "Alicia", "2009-01-12", 8, 7.0 ); SELECT * FROM aluno; SELECT * FROM aluno WHERE nota < 5; SELECT * FROM aluno WHERE nota > 5; SELECT * FROM aluno WHERE nome like "a%"; SELECT * FROM aluno WHERE idade >= 18;
<gh_stars>0 select float_11 from nulls2 where float_11 = '1' 1.0
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versión del servidor: 8.0.28 - MySQL Community Server - GPL -- SO del servidor: Linux -- HeidiSQL Versión: 11.3.0.6295 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- Volcando estructura de base de datos para pizzeriadb CREATE DATABASE IF NOT EXISTS `pizzeriadb` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `pizzeriadb`; -- Volcando estructura para tabla pizzeriadb.comments CREATE TABLE IF NOT EXISTS `comments` ( `idComment` int NOT NULL AUTO_INCREMENT, `idUser` varchar(200) CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL, `idPizza` int NOT NULL, `date` datetime NOT NULL, `rating` int NOT NULL, `text` text CHARACTER SET utf8 COLLATE utf8_spanish_ci, PRIMARY KEY (`idComment`), KEY `FK_Comment_Pizza_idx` (`idPizza`), KEY `FK_Comment_User_idx` (`idUser`), CONSTRAINT `FK_Comment_Pizza` FOREIGN KEY (`idPizza`) REFERENCES `pizzas` (`idPizza`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_spanish_ci; -- Volcando datos para la tabla pizzeriadb.comments: ~0 rows (aproximadamente) /*!40000 ALTER TABLE `comments` DISABLE KEYS */; /*!40000 ALTER TABLE `comments` ENABLE KEYS */; -- Volcando estructura para tabla pizzeriadb.ingredientpizzas CREATE TABLE IF NOT EXISTS `ingredientpizzas` ( `idPizza` int NOT NULL, `idIngredient` int NOT NULL, `quantity` int NOT NULL DEFAULT '1', PRIMARY KEY (`idPizza`,`idIngredient`), KEY `FK_ingredient_ingredientPizza` (`idIngredient`), CONSTRAINT `FK_Ingredient_IngredientPizza` FOREIGN KEY (`idIngredient`) REFERENCES `ingredients` (`id`), CONSTRAINT `FK_IngredientPizza_Pizza` FOREIGN KEY (`idPizza`) REFERENCES `pizzas` (`idPizza`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_spanish_ci; -- Volcando datos para la tabla pizzeriadb.ingredientpizzas: ~0 rows (aproximadamente) /*!40000 ALTER TABLE `ingredientpizzas` DISABLE KEYS */; /*!40000 ALTER TABLE `ingredientpizzas` ENABLE KEYS */; -- Volcando estructura para tabla pizzeriadb.ingredients CREATE TABLE IF NOT EXISTS `ingredients` ( `id` int NOT NULL AUTO_INCREMENT, `name` varchar(45) CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL, `price` decimal(10,2) NOT NULL, `type` enum('base','salsa','otros') CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `Id_UNIQUE` (`id`), UNIQUE KEY `name_UNIQUE` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_spanish_ci; -- Volcando datos para la tabla pizzeriadb.ingredients: ~34 rows (aproximadamente) /*!40000 ALTER TABLE `ingredients` DISABLE KEYS */; REPLACE INTO `ingredients` (`id`, `name`, `price`, `type`) VALUES (1, 'Clasica', 3.50, 'base'), (2, 'Fina', 3.50, 'base'), (3, 'Gruesa', 3.50, 'base'), (4, '<NAME>', 4.50, 'base'), (5, 'Tomate', 1.00, 'salsa'), (6, '<NAME>', 1.10, 'salsa'), (7, 'Barbacoa', 1.20, 'salsa'), (8, 'Carbonara', 1.20, 'salsa'), (9, '<NAME>', 1.50, 'salsa'), (10, 'Chocolate', 2.00, 'salsa'), (11, 'Mozzarella', 0.50, 'otros'), (12, '<NAME>', 0.50, 'otros'), (13, 'Bacon', 0.50, 'otros'), (14, '<NAME>', 0.50, 'otros'), (15, 'Pollo', 0.50, 'otros'), (16, 'Pepperoni', 0.50, 'otros'), (17, 'Salchicha', 0.50, 'otros'), (18, '<NAME>', 0.50, 'otros'), (19, 'Salami', 0.50, 'otros'), (20, 'Cebolla', 0.15, 'otros'), (21, '<NAME>', 0.15, 'otros'), (22, '<NAME>', 0.15, 'otros'), (23, 'Champiñon', 0.15, 'otros'), (24, 'Seta', 0.30, 'otros'), (25, 'Aceituna', 0.20, 'otros'), (26, 'Alcachofa', 0.20, 'otros'), (27, 'Maiz', 0.15, 'otros'), (28, 'Piña', 0.15, 'otros'), (29, 'Tomate Natural', 0.15, 'otros'), (30, 'Jalapeño', 0.20, 'otros'), (31, 'Rucula', 0.30, 'otros'), (32, 'Atun', 0.50, 'otros'), (33, 'Anchoa', 0.50, 'otros'), (34, 'Gamba', 0.50, 'otros'); /*!40000 ALTER TABLE `ingredients` ENABLE KEYS */; -- Volcando estructura para tabla pizzeriadb.orders CREATE TABLE IF NOT EXISTS `orders` ( `idOrder` int NOT NULL AUTO_INCREMENT, `idUser` varchar(120) CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL, `orderDate` datetime NOT NULL, `deliveryDate` datetime DEFAULT NULL, `comment` text CHARACTER SET utf8 COLLATE utf8_spanish_ci, `idChef` varchar(120) CHARACTER SET utf8 COLLATE utf8_spanish_ci DEFAULT NULL, `idCourier` varchar(120) CHARACTER SET utf8 COLLATE utf8_spanish_ci DEFAULT NULL, `amount` decimal(10,2) NOT NULL, `orderStatus` enum('solicitado','elaborandose','preparado','enviado','recibido','cancelado') CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL, `address` varchar(500) CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL, PRIMARY KEY (`idOrder`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_spanish_ci; -- Volcando datos para la tabla pizzeriadb.orders: ~0 rows (aproximadamente) /*!40000 ALTER TABLE `orders` DISABLE KEYS */; /*!40000 ALTER TABLE `orders` ENABLE KEYS */; -- Volcando estructura para tabla pizzeriadb.pizzaorders CREATE TABLE IF NOT EXISTS `pizzaorders` ( `idOrder` int NOT NULL, `idPizza` int NOT NULL, `quantity` int NOT NULL, `amount` decimal(10,2) NOT NULL, PRIMARY KEY (`idOrder`,`idPizza`), KEY `FK_PizzaOrder_Pizza_idx` (`idPizza`), KEY `FK_PizzaOrder_Order_idx` (`idOrder`), CONSTRAINT `FK_PizzaOrder_Order` FOREIGN KEY (`idOrder`) REFERENCES `orders` (`idOrder`) ON DELETE CASCADE, CONSTRAINT `FK_PizzaOrder_Pizza` FOREIGN KEY (`idPizza`) REFERENCES `pizzas` (`idPizza`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_spanish_ci; -- Volcando datos para la tabla pizzeriadb.pizzaorders: ~0 rows (aproximadamente) /*!40000 ALTER TABLE `pizzaorders` DISABLE KEYS */; /*!40000 ALTER TABLE `pizzaorders` ENABLE KEYS */; -- Volcando estructura para tabla pizzeriadb.pizzas CREATE TABLE IF NOT EXISTS `pizzas` ( `idPizza` int NOT NULL AUTO_INCREMENT, `idBase` int NOT NULL, `idSauce` int NOT NULL, `description` text CHARACTER SET utf8 COLLATE utf8_spanish_ci, `netPrice` decimal(10,2) NOT NULL, `amount` decimal(10,2) NOT NULL, `like` int unsigned DEFAULT '0', `active` tinyint NOT NULL DEFAULT '1', `image` blob, PRIMARY KEY (`idPizza`), UNIQUE KEY `idPizza_UNIQUE` (`idPizza`), KEY `FK_Pizza_Ingredient_Base_idx` (`idBase`), KEY `FK_Pizza_Ingredient_Sauce_idx` (`idSauce`), CONSTRAINT `FK_Pizza_Ingredient_Base` FOREIGN KEY (`idBase`) REFERENCES `ingredients` (`id`), CONSTRAINT `FK_Pizza_Ingredient_Sauce` FOREIGN KEY (`idSauce`) REFERENCES `ingredients` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_spanish_ci; -- Volcando datos para la tabla pizzeriadb.pizzas: ~4 rows (aproximadamente) /*!40000 ALTER TABLE `pizzas` DISABLE KEYS */; REPLACE INTO `pizzas` (`idPizza`, `idBase`, `idSauce`, `description`, `netPrice`, `amount`, `like`, `active`, `image`) VALUES (1, 1, 5, '<NAME>', 8.00, 8.80, NULL, 1, NULL), (2, 2, 5, '<NAME>', 8.00, 8.80, NULL, 1, NULL), (3, 3, 5, '<NAME>', 8.00, 8.80, NULL, 1, NULL), (4, 4, 5, '<NAME>', 10.00, 11.00, NULL, 1, NULL); /*!40000 ALTER TABLE `pizzas` ENABLE KEYS */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;
\o erosita_superset_clusters_alter_table_pkey.out alter table catalogdb.erosita_superset_clusters add column pkey bigserial primary key; \o
<gh_stars>0 INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0000', '海关总署/全部关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0100', '北京关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0101', '机场单证'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0102', '京监管处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0103', '京关展览'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0104', '京一处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0105', '京二处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0106', '京关关税'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0107', '机场库区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0108', '京通关处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0109', '机场旅检'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0110', '平谷海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0111', '京五里店'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0112', '京邮办处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0113', '京中关村'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0114', '京国际局'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0115', '京东郊站'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0116', '京信'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0117', '京开发区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0118', '十八里店'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0119', '机场物流'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0121', '京稽查处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0123', '机场调技'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0124', '北京站'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0125', '西客站'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0126', '京加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0127', '京快件'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0128', '京顺义办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0129', '北京海关天竺综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0130', '北京亦庄保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0200', '天津关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0201', '天津海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0202', '新港海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0203', '津开发区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0204', '东港海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0205', '津塘沽办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0206', '津驻邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0207', '津机场办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0208', '津保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0209', '蓟县海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0210', '武清海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0211', '津加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0212', '天津保税物流园区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0213', '天津东疆保税港区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0214', '天津滨海新区综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0215', '天津机场海关快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0216', '天津经济技术开发区保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0217', '天津东疆保税港区海关(港区)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0218', '静海海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0219', '天津海关驻北辰办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0220', '津关税处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0400', '石家庄区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0401', '石家庄关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0402', '秦皇岛关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0403', '唐山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0404', '廊坊海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0405', '保定海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0406', '中华人民共和国邯郸海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0407', '秦加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0408', '中华人民共和国沧州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0409', '廊坊海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0410', '石家庄海关驻机场办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0411', '中华人民共和国张家口海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0412', '石家庄海关驻曹妃甸港区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0413', '邢台海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0414', '曹妃甸综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0415', '衡水海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0416', '石家庄国际快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0417', '中华人民共和国承德海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0418', '石家庄综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0500', '太原海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0501', '并关监管'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0502', '太原机场海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0503', '大同海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0504', '侯马海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0505', '山西方略保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0506', '太原武宿综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0600', '满洲里关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0601', '海拉尔关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0602', '额尔古纳'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0603', '满十八里'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0604', '满赤峰办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0605', '满通辽办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0606', '满哈沙特'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0607', '满室韦'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0608', '满互贸区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0609', '满铁路'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0610', '满市区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0611', '满洲里海关驻西郊机场办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0612', '阿尔山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0613', '赤峰保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0700', '呼特关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0701', '呼和浩特'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0702', '二连海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0703', '包头海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0704', '呼关邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0705', '二连公路'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0706', '包头海关驻国际集装箱中转站办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0707', '额济纳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0708', '乌拉特海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0709', '满都拉口岸'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0710', '东乌海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0711', '呼和浩特海关驻白塔机场办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0712', '呼和浩特海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0713', '鄂尔多斯海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0714', '集宁海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0800', '沈阳关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0801', '沈阳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0802', '锦州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0803', '沈驻邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0804', '沈驻抚顺'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0805', '沈开发区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0806', '沈驻辽阳'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0807', '沈机场办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0808', '沈阳综合保税区海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0809', '沈阳国际快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0810', '葫芦岛关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0811', '沈阳海关驻辽宁沈阳出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0812', '沈阳海关驻张士出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0813', '沈阳保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0900', '大连海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0901', '大连港湾海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0902', '大连机场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0903', '连开发区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0904', '连加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0905', '大窑湾海关驻北良港办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0906', '连保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0907', '大连保税物流园区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0908', '连大窑湾'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0909', '大连邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0910', '大连大窑湾保税港区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0911', '大连长兴岛海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0912', '大连国际快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0915', '庄河海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0917', '大连海关驻旅顺办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0930', '丹东海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0931', '大连海关驻本溪办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0932', '太平湾海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0940', '营口海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0941', '盘锦海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0950', '鲅鱼圈关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0951', '营口港保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0960', '大东港关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('0980', '鞍山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1500', '长春关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1501', '长春海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1502', '长开发区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1503', '长白海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1504', '临江海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1505', '图们海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1506', '通化海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1507', '珲春海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1508', '吉林海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1509', '延吉海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1510', '长春兴隆综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1511', '长春机办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1515', '图们车办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1516', '通海关村'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1517', '珲长岭子'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1518', '吉林海关驻车站办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1519', '延吉三合'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1521', '一汽场站'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1525', '图们桥办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1526', '通集青石'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1527', '珲春圈河'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1529', '延吉南坪'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1531', '长春东站'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1536', '通化海关驻集安车站办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1537', '珲沙坨子'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1539', '延开山屯'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1547', '珲加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1549', '延古城里'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1557', '珲春海关驻车站办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1559', '延吉邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1569', '延吉海关驻机场办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1579', '延吉空港海关快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1591', '长春邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1593', '长白邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1595', '图们邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1596', '通集邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1900', '哈尔滨区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1901', '哈尔滨关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1902', '绥关铁路'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1903', '黑河海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1904', '同江海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1905', '佳木斯关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1906', '牡丹江关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1907', '东宁海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1908', '逊克海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1909', '齐齐哈尔'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1910', '大庆海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1911', '密山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1912', '虎林海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1913', '富锦海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1914', '抚远海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1915', '漠河海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1916', '萝北海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1917', '嘉荫海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1918', '饶河海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1919', '哈内陆港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1920', '哈开发区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1921', '黑龙江绥芬河综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1922', '哈关邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1923', '哈关车办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1924', '哈关机办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('1925', '绥关公路'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2200', '上海海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2201', '浦江海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2202', '吴淞海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2203', '上海虹桥机场海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2204', '闵开发区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2205', '上海车站海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2206', '沪邮局办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2207', '洋山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2208', '宝山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2209', '龙吴海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2210', '浦东海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2211', '卢湾监管'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2212', '奉贤海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2213', '莘庄海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2214', '漕河泾发'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2215', '上海西北物流园区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2216', '上海浦东机场综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2217', '嘉定海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2218', '外高桥关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2219', '杨浦监管'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2220', '金山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2221', '松江海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2222', '青浦海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2223', '南汇海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2224', '崇明海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2225', '外港海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2226', '贸易网点'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2227', '普陀区站'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2228', '长宁区站'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2229', '航交办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2230', '徐汇区站'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2231', '洋山海关驻市内报关点'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2232', '嘉定海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2233', '浦东机场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2234', '沪钻交所'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2235', '松江加工'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2236', '洋山海关驻芦潮港铁路集装箱中心站监管点'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2237', '上海松江出口加工区 B 区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2238', '上海青浦出口加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2239', '上海闵行出口加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2240', '上海漕河泾出口加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2241', '沪业一处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2242', '沪业二处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2243', '沪业三处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2244', '上海快件'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2245', '沪金桥办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2246', '上海保税物流园区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2247', '上海海关驻化学工业区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2248', '洋山海关(港区)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2249', '洋山海关(保税)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2300', '南京海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2301', '连云港关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2302', '南通海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2303', '苏州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2304', '无锡海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2305', '张家港关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2306', '常州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2307', '镇江海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2308', '新生圩关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2309', '盐城海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2310', '扬州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2311', '徐州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2312', '江阴海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2313', '张保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2314', '苏工业区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2315', '淮安海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2316', '泰州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2317', '禄口机办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2318', '南京现场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2319', '如皋海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2320', '无锡海关驻机场办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2321', '常溧阳办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2322', '镇丹阳办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2323', '金陵海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2324', '常熟海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2325', '昆山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2326', '吴江海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2327', '太仓海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2328', '苏吴县办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2329', '启东海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2330', '泰州海关驻泰兴办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2331', '锡宜兴办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2332', '锡锡山办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2333', '南通关办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2335', '昆山加工'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2336', '苏园加工'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2337', '连开发办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2338', '苏关邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2339', '南通海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2340', '无锡海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2341', '连云港海关驻连云港出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2342', '南京海关驻江苏南京出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2343', '南京海关驻江苏南京出口加工区(南区)办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2344', '苏州海关驻苏州高新区出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2345', '镇江海关驻镇江出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2346', '苏州工业园区海关保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2347', '苏州工业园区海关驻苏州工业园区出口加工区B区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2348', '张家港保税物流园区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2349', '南京海关驻邮局办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2350', '苏州高新区保税物流中心(B型)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2351', '南京海关驻江宁经济技术开发区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2352', '南京龙潭保税物流中心(B型)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2353', '常州海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2354', '扬州海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2355', '常熟海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2356', '吴江海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2357', '常州海关驻武进办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2358', '苏州工业园综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2359', '苏州海关驻吴中出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2360', '盐城海关驻大丰港办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2361', '淮安海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2362', '江阴保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2363', '太仓保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2364', '江苏武进出口加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2365', '张家港保税港区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2366', '中华人民共和国宿迁海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2367', '泰州海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2368', '苏州高新技术产业开发区综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2369', '昆山综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2370', '连云港保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2371', '盐城海关驻机场办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2372', '盐城综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2373', '淮安综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2374', '无锡高新区综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2375', '靖江海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2376', '南通综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2377', '南京综合保税区(龙潭片)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2378', '南京综合保税区(江宁片)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2379', '苏州海关驻相城办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2380', '太仓港综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2381', '苏州工业园综合保税区贸易功能区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2382', '盐城海关驻东台办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2383', '如东海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2384', '如皋港保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2385', '泰州综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2386', '镇江综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2387', '常州综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2388', '武进综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2389', '常熟综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2390', '吴江综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2391', '徐州保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2900', '杭州关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2901', '杭州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2903', '温州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2904', '舟山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2905', '台州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2906', '绍兴海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2907', '湖州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2908', '嘉兴海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2909', '杭经开关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2910', '杭州萧山机场海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2911', '杭关邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2912', '杭关萧办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2915', '丽水海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2916', '杭州萧山机场海关快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2917', '衢州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2918', '杭关余办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2919', '杭富阳办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2920', '金华海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2921', '义乌海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2922', '金华海关驻永康办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2923', '义乌保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2928', '杭州跨境电子商务海关监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2931', '温关邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2932', '温经开关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2933', '温关机办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2934', '温关鳌办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2935', '温州海关驻瑞安办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2936', '温州海关驻乐清办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2941', '舟山海关驻嵊泗办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2942', '舟山海关金塘监管科'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2943', '舟山海关驻舟山港综合保税区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2951', '台州海关驻临海办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2952', '台州海关驻温岭办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2953', '台州海关驻玉环办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2961', '绍兴海关驻上虞办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2962', '绍兴海关驻诸暨办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2963', '绍兴海关驻新嵊办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2971', '湖州海关驻安吉办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2972', '湖州海关驻德清办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2981', '嘉关乍办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2982', '嘉兴海关驻嘉善办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2983', '嘉兴海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2984', '嘉兴海关驻海宁办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2985', '嘉兴海关驻桐乡办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2986', '嘉兴海关驻出口加工区(B)区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2991', '杭州经济技术开发区海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('2992', '杭州保税物流中心(B型)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3100', '宁波关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3101', '宁波海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3102', '镇海海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3103', '甬开发区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3104', '北仑海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3105', '甬保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3106', '大榭海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3107', '甬驻余办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3108', '甬驻慈办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3109', '宁波机场海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3110', '象山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3111', '宁波保税区海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3112', '宁波保税物流园区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3113', '浙江慈溪出口加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3114', '宁波海关驻鄞州办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3115', '宁波海关驻鄞州办事处栎社保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3116', '宁波梅山保税港区港口功能区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3117', '宁波梅山保税港区保税加工物流功能区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3118', '宁波栎社国际机场快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3120', '宁波镇海保税物流中心(B型)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3300', '合肥海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3301', '芜湖海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3302', '安庆海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3303', '马鞍山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3304', '黄山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3305', '蚌埠海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3306', '铜陵海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3307', '阜阳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3308', '池州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3309', '滁州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3310', '合肥现场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3311', '合肥海关驻新桥机场办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3312', '芜湖海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3313', '合肥出口加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3315', '宣城海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3316', '蚌埠(皖北)保税物流中心(B型)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3317', '合肥综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3318', '合肥海关驻淮南办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3500', '福州关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3501', '马尾海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3502', '福清海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3503', '宁德海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3504', '三明海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3505', '福保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3506', '莆田海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3507', '福州长乐机场海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3508', '福州新港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3509', '福关邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3510', '南平海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3511', '武夷山关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3512', '黄岐对台小额贸易监管点'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3513', '福现业处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3515', '平潭港区港口功能区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3516', '平潭海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3520', '福州出口加工区海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3521', '福清出口加工区海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3522', '福州保税物流园区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3523', '福州保税港区(江阴)保税功能区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3700', '厦门关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3701', '厦门海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3702', '泉州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3703', '漳州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3704', '东山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3705', '泉州海关驻石狮办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3706', '龙岩海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3707', '泉州海关驻肖厝办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3708', '厦门海沧保税港区港口功能区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3709', '厦门海沧保税港区保税加工物流功能区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3710', '厦高崎办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3711', '厦门东渡海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3712', '厦海沧办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3713', '厦驻邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3714', '象屿保税'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3715', '高崎机场海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3716', '厦同安办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3717', '象屿保税物流园区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3718', '泉州出口加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3719', '厦门加工'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3720', '厦门火炬(翔安)保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3722', '厦门海关驻同安办事处大嶝监管科'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3723', '泉州海关驻晋江办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3724', '厦门海关驻国际邮轮港办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3725', '厦门海关驻翔安办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3777', '厦稽查处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('3788', '厦侦查局'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4000', '南昌关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4001', '南昌海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4002', '九江海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4003', '赣州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4004', '景德镇关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4005', '吉安海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4006', '昌北机办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4007', '南昌海关驻高新技术产业开发区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4008', '南昌海关驻龙南办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4009', '新余海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4010', '九江海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4011', '南昌海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4012', '赣州海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4013', '上饶海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4014', '南昌保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4015', '井冈山出口加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4016', '鹰潭海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4017', '赣州综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4200', '青岛海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4201', '烟台海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4202', '日照海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4203', '烟台海关驻龙口办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4204', '威海海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4205', '济南海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4206', '潍坊海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4207', '淄博海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4208', '烟台海关驻出口加工区B区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4209', '荣成海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4210', '青保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4211', '济宁海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4212', '泰安海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4213', '临沂海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4214', '青前湾港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4215', '青菏泽办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4216', '东营海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4217', '青枣庄办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4218', '青开发区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4219', '烟台海关驻蓬莱办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4220', '青机场关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4221', '烟机场办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4222', '烟台海关驻莱州办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4223', '青邮局办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4224', '烟台海关驻长岛办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4225', '威开发区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4226', '青岛海关驻聊城办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4227', '青岛大港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4228', '烟关快件'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4229', '德州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4230', '青岛保税物流园区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4231', '烟开发区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4232', '日岚山办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4233', '济南海关驻机场办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4234', '济南海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4235', '济南海关驻邮局办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4236', '荣成海关驻龙眼港办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4237', '现场业务处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4238', '威海关驻威海邮局办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4239', '潍诸城办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4240', '青岛海关快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4241', '烟加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4242', '威加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4243', '济宁海关驻曲阜办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4244', '青岛海关驻滨州办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4245', '烟台海关驻邮局办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4246', '青加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4247', '威海海关驻机场办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4248', '青岛海关驻莱芜办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4249', '潍坊海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4250', '青岛西海岸出口加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4251', '淄博保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4253', '日照保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4254', '青岛保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4255', '潍坊海关驻寿光办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4257', '临沂综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4258', '青岛前湾保税港区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4259', '黄岛海关快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4260', '青岛国际陆港快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4300', '济南海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4301', '现场业务处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4302', '济南海关驻机场办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4303', '济南综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4305', '济南海关驻邮局办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4310', '潍坊海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4311', '潍诸城办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4312', '潍坊综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4313', '潍坊海关驻寿光办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4320', '淄博海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4321', '淄博保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4330', '泰安海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4341', '济南海关驻机场办事处快件现场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4350', '东营海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4360', '济南海关驻聊城办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4370', '德州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4380', '济南海关驻滨州办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4381', '滨州保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4390', '济南海关驻莱芜办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4600', '郑州关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4601', '郑州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4602', '洛阳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4603', '南阳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4604', '郑州机办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4605', '郑州邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4606', '郑铁东办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4607', '安阳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4608', '郑州海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4609', '郑州海关驻商丘办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4610', '周口海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4611', '河南保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4612', '郑州新郑综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4613', '郑州海关航空进出境快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4614', '焦作海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4615', '三门峡海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4616', '新乡海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4617', '信阳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4618', '鹤壁海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4619', '河南德众保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4620', '郑州综保区口岸作业区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4621', '中华人民共和国许昌海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4622', '南阳卧龙综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4700', '武汉海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4701', '宜昌海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4702', '荆州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4703', '襄阳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4704', '黄石海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4705', '武汉沌口'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4706', '宜三峡办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4707', '鄂加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4708', '武汉海关现场业务处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4709', '武汉海关驻江汉办事处东西湖保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4710', '武关货管'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4711', '武关江岸'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4712', '武关机场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4713', '武关邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4716', '十堰海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4718', '武汉东湖新技术开发区海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4719', '武汉东湖综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4720', '黄石棋盘洲保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4721', '武汉海关驻仙桃办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4722', '武汉东湖综合保税区口岸作业区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4900', '长沙关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4901', '衡阳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4902', '岳阳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4903', '长沙海关驻郴州办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4904', '常德海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4905', '长沙海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4906', '株洲海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4907', '韶山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4908', '湘关机办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4909', '株洲海关驻醴陵办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4910', '长沙海关驻郴州出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4911', '长沙海关驻永州办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4913', '长沙金霞保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4914', '张家界海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4915', '衡阳综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4916', '长沙星沙海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4917', '湘潭综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4918', '星沙海关驻浏阳办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4919', '岳阳城陵矶综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('4921', '黄花综保区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5000', '广东分署'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5100', '广州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5101', '内港新风'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5103', '清远海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5104', '清远英德'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5105', '广州海关现场业务处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5106', '南沙海关散货码头监管科'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5107', '肇庆高新区大旺进出境货运车辆检查场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5108', '肇庆德庆'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5109', '内港滘心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5110', '南海海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5111', '南海官窑'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5112', '南海九江'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5113', '南海北村'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5114', '南海平洲'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5116', '南海业务'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5117', '桂江货柜车场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5118', '平洲旅检'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5119', '南海三山'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5120', '广州内港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5121', '内港芳村'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5122', '内港洲嘴'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5123', '内港四仓'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5125', '从化海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5126', '内港赤航'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5130', '广州萝岗'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5131', '花都海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5132', '花都码头'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5133', '广州海关中新知识城'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5134', '穗保税处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5135', '广州海关现场业务处驻市政务中心监管点'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5136', '穗统计处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5137', '穗价格处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5138', '高明食出'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5139', '穗监管处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5140', '穗关税处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5141', '广州机场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5142', '民航快件'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5143', '广州车站'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5144', '广州白云机场综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5145', '广州邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5146', '亚运物资通关服务中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5147', '穗邮办监'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5148', '穗大郎站'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5149', '大铲海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5150', '顺德海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5151', '顺德海关加工贸易监管科'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5152', '顺德食出'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5153', '顺德车场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5154', '北窖车场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5155', '顺德旅检'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5157', '顺德陈村港澳货柜车检查场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5158', '顺德勒流'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5160', '番禺海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5161', '沙湾车场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5162', '番禺旅检'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5163', '番禺货柜'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5164', '番禺船舶'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5165', '南沙海关保税港区监管点'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5166', '南沙海关南沙港区监管点'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5167', '南沙货港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5168', '南沙海关汽车码头监管点'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5169', '南沙海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5170', '肇庆海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5171', '肇庆高要'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5172', '肇庆车场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5173', '肇庆新港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5174', '肇庆旅检'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5175', '肇庆码头'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5176', '肇庆四会'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5177', '肇庆三榕'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5178', '云浮海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5179', '罗定海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5180', '佛山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5181', '高明海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5182', '佛山澜石'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5183', '三水码头'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5184', '佛山窖口'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5185', '佛山海关快件监管现场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5186', '佛山保税'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5187', '佛山车场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5188', '佛山火车'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5189', '佛山新港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5190', '韶关海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5191', '韶关乐昌'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5192', '三水海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5193', '三水车场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5194', '三水港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5195', '审单中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5196', '云浮新港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5197', '广州联邦快递亚太转运中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5198', '穗河源关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5199', '穗技术处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5200', '黄埔关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5201', '黄埔老港海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5202', '黄埔新港海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5203', '新塘海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5204', '东莞海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5205', '太平海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5206', '惠州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5207', '黄埔海关驻凤岗办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5208', '黄埔海关驻广州经济技术开发区办事处(广州保税区海关)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5210', '埔红海办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5211', '河源海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5212', '新沙海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5213', '黄埔海关驻长安办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5214', '黄埔海关驻常平办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5216', '黄埔海关驻沙田办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5217', '东莞海关寮步车检场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5218', '新塘海关江龙车检场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5219', '广州保税物流园区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5220', '东莞保税物流中心(B型)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5221', '新塘车检场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5300', '深圳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5301', '皇岗海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5302', '罗湖海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5303', '沙头角关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5304', '蛇口海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5305', '深关现场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5306', '笋岗海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5307', '南头海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5308', '沙湾海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5309', '布吉海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5310', '淡水办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5311', '深关车站'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5312', '深监管处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5313', '深调查局'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5314', '深关邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5315', '惠东海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5316', '大鹏海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5317', '深关机场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5318', '梅林海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5319', '同乐海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5320', '文锦渡关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5321', '福保税关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5322', '沙保税关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5323', '深审单处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5324', '深审价办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5325', '深关税处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5326', '深数统处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5327', '深法规处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5328', '深规范处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5329', '深保税处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5330', '盐保税关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5331', '三门岛办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5332', '深财务处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5333', '深侦查局'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5334', '深稽查处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5335', '深技术处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5336', '深办公室'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5337', '大亚湾核'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5338', '惠州港关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5339', '深加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5340', '深关特办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5341', '深惠州关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5342', '深红海办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5343', '深圳盐田港保税物流园区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5344', '惠州港海关驻大亚湾石化区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5345', '深圳湾海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5346', '深圳机场海关快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5348', '大铲湾海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5349', '深圳前海湾保税港区口岸作业区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5350', '大运物资通关服务中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5351', '深圳前海湾保税港区保税功能区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5352', '深圳盐田综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5700', '拱北关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5701', '拱稽查处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5710', '拱关闸办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5720', '中山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5721', '中山港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5724', '中石岐办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5725', '坦洲货场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5726', '中山保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5727', '中小榄办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5728', '中山海关驻神湾港办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5729', '中山国际快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5730', '拱香洲办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5740', '湾仔海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5741', '湾仔船舶'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5750', '九洲海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5760', '拱白石办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5770', '斗门海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5771', '斗井岸办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5772', '斗平沙办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5780', '高栏海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5790', '拱监管处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5791', '珠澳跨境工业区珠海园区海关办事机构'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5792', '拱保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5793', '万山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5794', '万山海关桂山中途监管站'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5795', '横琴海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5796', '澳门大学新校区临时监管区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5798', '拱行监邮'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('5799', '拱行监处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6000', '汕头海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6001', '汕关货一'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6002', '汕关货二'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6003', '汕关行邮'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6004', '汕关机场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6006', '汕关保税'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6007', '汕关业务'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6008', '汕保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6009', '汕关邮包'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6011', '揭阳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6012', '汕关普宁'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6013', '澄海海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6014', '广澳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6015', '南澳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6018', '汕关惠来'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6019', '汕关联成'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6020', '汕关港口'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6021', '潮州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6022', '饶平海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6023', '潮州海润快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6028', '潮阳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6031', '汕尾海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6032', '汕关海城'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6033', '汕关陆丰'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6038', '汕头海关外砂快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6041', '梅州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6042', '梅州兴宁'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6400', '海口关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6401', '海口港海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6402', '三亚海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6403', '八所海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6404', '洋浦经济开发区海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6405', '海保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6406', '清澜海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6407', '美兰机场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6408', '洋浦保税港区海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6409', '海口综合保税区海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6410', '马村港监管点'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6411', '海口海关现场业务处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6700', '湛江关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6701', '湛江海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6702', '茂名海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6703', '徐闻海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6704', '湛江南油'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6705', '湛江水东'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6706', '湛江吴川'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6707', '湛江廉江'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6708', '湛江高州'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6709', '湛江信宜'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6710', '东海岛组'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6711', '霞山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6712', '湛江霞海'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6713', '湛江机场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6714', '湛江博贺'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6715', '湛江进出境快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6716', '湛江保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6800', '江门关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6810', '江门海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6811', '江门高沙'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6812', '江门外海'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6813', '江门旅检'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6816', '江门市进出境货运车辆检查场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6817', '江门保税'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6820', '新会海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6821', '新会港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6827', '新会稽查'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6830', '台山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6831', '台公益港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6837', '台山稽查'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6840', '开平海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6841', '开平码头'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6847', '开平稽查'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6850', '恩平海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6851', '恩平港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6857', '恩平稽查'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6860', '鹤山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6861', '鹤山码头'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6867', '鹤山稽查'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6870', '阳江海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6871', '阳江港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6872', '阳江车场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('6877', '阳江稽查'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7200', '南宁关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7201', '邕州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7202', '北海海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7203', '梧州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7204', '桂林海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7205', '柳州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7206', '防城海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7207', '东兴海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7208', '凭祥海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7209', '贵港海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7210', '水口海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7211', '龙邦海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7212', '钦州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7213', '桂林机办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7214', '北海海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7215', '广西钦州保税港区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7216', '南宁保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7217', '广西钦州保税港(口岸)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7218', '南宁海关驻玉林办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7219', '广西凭祥综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7220', '友谊关口岸'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7900', '成都关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7901', '成都海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7902', '成都双流机场海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7903', '乐山海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7904', '攀枝花关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7905', '绵阳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7906', '成关邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7907', '成都自贡'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7908', '成都加工'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7909', '成都公路国际物流中心监管场站'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7910', '成都双流机场海关非邮政快件监管点'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7911', '成都海关驻泸州办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7912', '成都海关驻宜宾办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7913', '成都海关驻南充办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7914', '绵阳出口加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7915', '成都保税物流中心(B型)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7916', '成都高新综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7917', '遂宁海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7918', '德阳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7919', '成都空港海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7920', '成都空港保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7921', '泸州港保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7922', '成都高新综合保税区双流园区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('7923', '宜宾港保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8000', '重庆关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8001', '重庆海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8002', '南坪开发'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8003', '重庆江北机场海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8004', '重庆邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8005', '万州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8006', '重庆海关驻车站办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8007', '九龙坡港'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8008', '渝加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8009', '重庆海关驻涪陵办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8010', '重庆两路寸滩保税港区水港功能区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8011', '重庆江北机场国际快件中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8012', '重庆两路寸滩保税港区保税加工物流功能区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8013', '重庆西永综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8014', '重庆西永海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8015', '两路寸滩保税港区贸易功能区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8016', '重庆铁路保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8300', '贵阳海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8301', '贵阳总关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8302', '贵阳海关驻机场办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8303', '中华人民共和国遵义海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8304', '贵阳海关驻高新技术产业开发区办事处贵阳综合保税区功能区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8305', '贵阳海关驻高新技术产业开发区办事处贵阳综合保税区作业区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8306', '贵阳海关驻高新技术产业开发区办事处贵安综合保税区功能区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8307', '贵阳海关驻高新技术产业开发区办事处贵安综合保税区作业区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8600', '昆明关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8601', '昆明海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8602', '畹町海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8603', '瑞丽海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8604', '章凤海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8605', '盈江海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8606', '孟连海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8607', '南伞海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8608', '孟定海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8609', '打洛海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8610', '腾冲海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8611', '沧源海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8612', '勐腊海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8613', '河口海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8614', '金水河关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8615', '天保海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8616', '田蓬海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8617', '大理海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8618', '芒市海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8619', '保山监管'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8620', '昆明机场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8621', '昆明邮办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8622', '西双版纳'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8623', '昆丽江办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8624', '思茅海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8625', '河口海关驻山腰办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8626', '六库监管'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8627', '昆明海关现场业务处开发区监管科'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8628', '云南昆明出口加工区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8629', '昆明海关驻香格里拉办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8631', '勐康海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8632', '昆明国际快件监管中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8633', '红河综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8800', '拉萨海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8801', '聂拉木关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8802', '日喀则关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8803', '狮泉河关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8804', '拉萨机办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8805', '拉萨现场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('8808', '吉隆海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9000', '西安关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9001', '西安综合保税区口岸作业区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9002', '咸阳机场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9003', '宝鸡海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9004', '西安海关邮局办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9005', '陕西西安出口加工区A区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9006', '陕西西安出口加工区B区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9007', '西安综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9008', '西安高新综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9009', '西安高新综合保税区口岸作业区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9010', '延安海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9011', '渭南海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9012', '榆林海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9013', '陕西西咸保税物流中心(B型)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9400', '乌关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9401', '乌鲁木齐海关现场业务处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9402', '霍尔果斯'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9403', '吐尔尕特'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9404', '阿拉山口'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9405', '塔城海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9406', '伊宁海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9407', '吉木乃办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9408', '喀什海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9409', '红其拉甫'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9410', '乌鲁木齐海关隶属阿勒泰海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9411', '塔克什肯'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9412', '乌拉斯太'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9413', '老爷庙'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9414', '红山嘴'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9415', '伊尔克什'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9416', '库尔勒办'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9417', '乌鲁木齐机场海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9418', '乌鲁木齐海关驻出口加工区办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9419', '都拉塔海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9420', '乌鲁木齐海关驻车站办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9421', '霍尔果斯国际边境合作中心海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9422', '石河子海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9423', '阿拉山口综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9424', '喀什综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9425', '卡拉苏海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9426', '奎屯保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9427', '中哈霍尔果斯国际边境合作中心中方配套区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9500', '兰州关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9501', '兰州海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9502', '酒泉海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9503', '甘肃机场集团空港国际物流中心海关监管组'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9504', '武威保税物流中心'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9505', '兰州海关驻天水监管组'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9506', '金昌海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9507', '兰州海关驻兰州新区综合保税区监管组'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9600', '银川海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9601', '银川海关业务现场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9602', '银川海关驻机场办事处'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9603', '银川海关驻惠农监管组'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9604', '银川综合保税区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9700', '西宁关区'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9701', '西宁海关现场'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9702', '青海曹家堡保税物流中心(B型)'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9800', '香港海关'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('9900', '政法司'); INSERT INTO `customs_districts`(`code`, `name`) VALUES ('A100', '澳门海关');
ALTER TABLE search_party ADD COLUMN search_party_collection_field_name VARCHAR(2000);
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 12, 2019 at 09:21 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `photomanager_db` -- -- -------------------------------------------------------- -- -- Table structure for table `albums` -- CREATE TABLE `albums` ( `id` int(11) NOT NULL, `title` varchar(150) NOT NULL, `user_id` int(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `albums` -- INSERT INTO `albums` (`id`, `title`, `user_id`) VALUES (16, 'My First Album', 3), (17, 'Beach', 3), (18, 'Sky', 3); -- -------------------------------------------------------- -- -- Table structure for table `photos` -- CREATE TABLE `photos` ( `id` int(11) NOT NULL, `album_id` int(50) NOT NULL, `image` varchar(150) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `photos` -- INSERT INTO `photos` (`id`, `album_id`, `image`) VALUES (25, 16, '1576181810_0d25709a31249420a42e.jpg'), (26, 16, '1576181810_971181f8157543bdb6a0.jpg'), (27, 16, '1576181811_b704ceb71547dd5b4d48.jpg'), (28, 16, '1576181811_8279a1843be0f0303af7.jpg'), (29, 16, '1576181811_dfab66609b8b2faba1f3.jpg'), (30, 16, '1576181811_b498373fcea6ddd0afbe.jpg'), (31, 16, '1576181811_3c9f91b8ac73e85c3e54.jpg'), (32, 17, '1576181843_8591bbbacedbeeb36e39.jpg'), (33, 17, '1576181843_deb33fcc05345b35c91c.jpg'), (34, 17, '1576181843_9949c9b6528cd7823bfe.jpg'), (35, 18, '1576181996_91c5960e9b69d3f5302f.jpg'), (36, 18, '1576181996_17d126c53567e2cf1b80.jpg'), (37, 18, '1576181996_ddaf4d22fd8491e44e0f.jpg'), (38, 18, '1576181997_45556cd9f6b9f897843e.jpg'), (39, 18, '1576181997_3cb4ddd83d34ae836c2b.jpg'), (40, 18, '1576181997_46b5e6a3e2e61995c961.jpg'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `username` varchar(50) NOT NULL, `password` varchar(150) NOT NULL, `firstname` varchar(50) NOT NULL, `lastname` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `username`, `password`, `firstname`, `lastname`) VALUES (3, 'user', '$2y$10$X7wZn4dsfpGHASX0ALYFhO3Msuq/vyZ6znq3piEQu0ptA5SxFe5ye', 'Juan', 'Dela Cruz'); -- -- Indexes for dumped tables -- -- -- Indexes for table `albums` -- ALTER TABLE `albums` ADD PRIMARY KEY (`id`); -- -- Indexes for table `photos` -- ALTER TABLE `photos` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `albums` -- ALTER TABLE `albums` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; -- -- AUTO_INCREMENT for table `photos` -- ALTER TABLE `photos` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>Seatfrog/UkRailTimetableDatabase DROP TABLE IF EXISTS [dbo].[Associations] GO DROP TABLE IF EXISTS [dbo].[ScheduleLocations] GO DROP TABLE IF EXISTS [dbo].[ScheduleChanges] GO DROP TABLE IF EXISTS [dbo].[Schedules] GO DROP TABLE IF EXISTS [dbo].[Locations] GO DROP TABLE IF EXISTS [dbo].[Stations] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Locations]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [Action] [char](1) NOT NULL, [TipLoc] [varchar](7) NOT NULL, [Description] [varchar](26) NULL, [Nlc] [char](6) NULL, [NlcCheckCharacter] [char](1) NULL, [NlcDescription] [varchar](16) NULL, [Stanox] [char](5) NULL, [ThreeLetterCode] [char](3) NULL CONSTRAINT PK_Locations PRIMARY KEY ([Id]) ) ON [PRIMARY] GO CREATE TABLE [dbo].[Schedules]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [Action] [char](1) NOT NULL, [StpIndicator] [char](1) NOT NULL, [TimetableUid] [char](6) NOT NULL, [RunsFrom] [date] NOT NULL, [RunsTo] [date] NULL, [DayMask] [tinyint] NULL, [BankHolidayRunning] [varchar](1) NULL, [Status] [char](1) NULL, [Category] [char](2) NULL, [TrainIdentity] [char](4) NULL, [NrsHeadCode] [varchar](4) NULL, [ServiceCode] [varchar](8) NULL, [PortionId] [varchar](1) NULL, [PowerType] [char](3) NULL, [TimingLoadType] [varchar](4) NULL, [Speed] [int] NULL, [OperatingCharacteristics] [varchar](6) NULL, [SeatClass] [char](1) NULL, [SleeperClass] [varchar](1) NULL, [ReservationIndicator] [varchar](1) NULL, [Catering] [varchar](4) NULL, [Branding] [varchar](4) NULL, [EuropeanUic] [char](5) NULL, [Toc] [char](2) NULL, [ApplicableTimetable] [bit] NULL, [RetailServiceId] [char](8) NULL CONSTRAINT PK_Schedules PRIMARY KEY ([Id]) ) ON [PRIMARY] GO CREATE TABLE [dbo].[ScheduleLocations]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [ScheduleId] [bigint] NOT NULL, [LocationId] [bigint] NOT NULL, [Sequence] [int] NOT NULL, [WorkingArrival] [time] NULL, [WorkingDeparture] [time] NULL, [WorkingPass] [time] NULL, [PublicArrival] [time] NULL, [PublicDeparture] [time] NULL, [Platform] [varchar](3) NULL, [Line] [varchar](3) NULL, [Path] [varchar](3) NULL, [Activities] [varchar](12) NULL, [EngineeringAllowance] [varchar](2) NULL, [PathingAllowance] [varchar](2) NULL, [PerformanceAllowance] [varchar](2) NULL CONSTRAINT PK_ScheduleLocations PRIMARY KEY ([ScheduleId], [Id]) ) ON [PRIMARY] GO CREATE TABLE [dbo].[ScheduleChanges]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [ScheduleId] [bigint] NOT NULL, [ScheduleLocationId] [bigint] NOT NULL, [Category] [char](2) NULL, [TrainIdentity] [char](4) NULL, [NrsHeadCode] [varchar](4) NULL, [ServiceCode] [varchar](8) NULL, [PortionId] [varchar](1) NULL, [PowerType] [char](3) NULL, [TimingLoadType] [varchar](4) NULL, [Speed] [int] NULL, [OperatingCharacteristics] [varchar](6) NULL, [SeatClass] [char](1) NULL, [SleeperClass] [varchar](1) NULL, [ReservationIndicator] [varchar](1) NULL, [Catering] [varchar](4) NULL, [Branding] [varchar](4) NULL, [EuropeanUic] [char](5) NULL, [RetailServiceId] [char](8) NULL CONSTRAINT PK_ScheduleChanges PRIMARY KEY ([ScheduleId], [Id]) ) ON [PRIMARY] GO CREATE TABLE [dbo].[Associations]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [Action] [char](1) NOT NULL, [StpIndicator] [char](1) NOT NULL, [MainUid] [char](6) NOT NULL, [AssociatedUid] [char](6) NOT NULL, [RunsFrom] [date] NOT NULL, [RunsTo] [date] NULL, [DayMask] [tinyint] NULL, [Category] [char](2) NULL, [DateIndicator] [char](1) NULL, [LocationId] [bigint] NOT NULL, [MainSequence] [int] NOT NULL, [AssociatedSequence] [int] NOT NULL, [AssociationType] [char](1) NULL CONSTRAINT PK_Associations PRIMARY KEY ([Id]) ) ON [PRIMARY] GO CREATE TABLE [dbo].[Stations]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [TipLoc] [varchar](7) NOT NULL, [Description] [varchar](30) NOT NULL, [InterchangeStatus] [tinyint] NOT NULL, [ThreeLetterCode] [char](3) NOT NULL, [SubsidiaryThreeLetterCode] [char](3) NOT NULL, [Eastings] [int] NOT NULL, [Northings] [int] NOT NULL, [LocationIsEstimated] [bit] NOT NULL, [MinimumChangeTime] [tinyint] NOT NULL, CONSTRAINT PK_Stations PRIMARY KEY ([Id]) ) ON [PRIMARY] GO
USE quantumbits_tracker; INSERT INTO department (id, name) VALUES (1, "Software Development"); INSERT INTO department (id, name) VALUES (2, "Corporate"); INSERT INTO department (id, name) VALUES (3, "Human Resources"); INSERT INTO department (id, name) VALUES (4, "Information Technology"); INSERT INTO role (id, title, salary, department_id) VALUES (1, "Assistant", 51000, 1); INSERT INTO role (id, title, salary, department_id) VALUES (2, "Product Manager", 72000, 1); INSERT INTO role (id, title, salary, department_id) VALUES (3, "Department Manager", 95000, 2); INSERT INTO role (id, title, salary, department_id) VALUES (4, "Division Manager", 100000, 2); INSERT INTO role (id, title, salary, department_id) VALUES (5, "Business Partner", 200000, 3); INSERT INTO role (id, title, salary, department_id) VALUES (6, "Human Resource Director", 98000, 3); INSERT INTO role (id, title, salary, department_id) VALUES (7, "IT Support", 79000, 4); INSERT INTO role (id, title, salary, department_id) VALUES (8, "IT Coordinator", 60000, 4); INSERT INTO role (id, title, salary, department_id) VALUES (9, "IT Manager", 104000, 1); INSERT INTO employees (id, first_name, last_name, role_id, manager_id) VALUES (10, "Gil", "Orcilla", 9, null); INSERT INTO employees (id, first_name, last_name, role_id, manager_id) VALUES (9, "Bob", "Villa", 8, 10); INSERT INTO employees (id, first_name, last_name, role_id, manager_id) VALUES (8, "Wil", "Choi", 7, 10); INSERT INTO employees (id, first_name, last_name, role_id, manager_id) VALUES (7, "Dan", "Bios", 6, null); INSERT INTO employees (id, first_name, last_name, role_id, manager_id) VALUES (6, " Jeff ", " Nguyen ", 1, 7); INSERT INTO employees (id, first_name, last_name, role_id, manager_id) VALUES (5, " Vic ", " Morris ", 4, null); INSERT INTO employees (id, first_name, last_name, role_id, manager_id) VALUES (4, " Rachel ", " Brown ", 1, null); INSERT INTO employees (id, first_name, last_name, role_id, manager_id) VALUES (3, " Taylor ", " McDonald ", 2, 4); INSERT INTO employees (id, first_name, last_name, role_id, manager_id) VALUES (2, " Sina ", " Zumsayed ", 1, 3); INSERT INTO employees (id, first_name, last_name, role_id, manager_id) VALUES (1, " Jessica ", " Newsome ", 1, 3);
select c.name, o.id from orders o inner join customers c on o.id_customers = c.id where o.orders_date < '2016/06/30';
-------------------------------------------------------- -- DDL for Table SDPOKSET_TMP -------------------------------------------------------- CREATE TABLE "GROUNDFISH"."SDPOKSET_TMP" ( "CRUNO" VARCHAR2(10 BYTE), "STRATUM" VARCHAR2(10 BYTE), "SETNO" NUMBER(3,0), "SDATE" DATE, "NAFO" VARCHAR2(10 BYTE), "EXTYPE" NUMBER(1,0), "STIME" VARCHAR2(5 BYTE), "DURATION" NUMBER(3,0), "GEAR" NUMBER(1,0), "AUX" NUMBER(1,0), "SLAT" NUMBER(8,2), "SLONG" NUMBER(8,2), "ELAT" NUMBER(8,2), "ELONG" NUMBER(8,2), "HOWDETR" NUMBER(1,0), "DEPTH_S" NUMBER(4,0), "DEPTH_E" NUMBER(4,0), "DEPTH_MAX" NUMBER(4,0), "DEPTH_MIN" NUMBER(4,0), "WIND" NUMBER(1,0), "WIND_FORCE" NUMBER(1,0), "SUR_TEMP" NUMBER(5,2), "BOT_TEMP" NUMBER(5,2), "HYDRO_STN" NUMBER(5,0), "REMARKS" VARCHAR2(200 BYTE) ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 122880 NEXT 65536 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "MFD_GROUNDFISH" ; GRANT SELECT ON "GROUNDFISH"."SDPOKSET_TMP" TO "MFD_STOMACH"; GRANT SELECT ON "GROUNDFISH"."SDPOKSET_TMP" TO "RICARDD"; GRANT SELECT ON "GROUNDFISH"."SDPOKSET_TMP" TO "HUBLEYB"; GRANT SELECT ON "GROUNDFISH"."SDPOKSET_TMP" TO "GREYSONP";
DROP TABLE IF EXISTS #TempDB; SELECT W.pid,PH.lm_name,SUM(B.qty) as sums INTO #TempDB FROM LM_CC CC,Local_Market LM,Buys B, Phones PH, Website W WHERE B.rid = W.rid AND B.cc = CC.cc AND CC.lid = LM.lid AND Lm.phone_number = PH.phone_number GROUP BY W.pid, PH.lm_name -- SELECT T.pid, MAX(T.sums) -- FROM #TempDB T -- GROUP BY T.pid -- SELECT * FROM #TempDB /*SELECT t.pid ,MAX(t.sums) AS maxus FROM #TempDB t GROUP BY t.pid*/ SELECT t2.lm_name,t2.pid, t2.sums FROM #TempDB t2,(SELECT t.pid ,MAX(t.sums) AS maxus FROM #TempDB t GROUP BY t.pid) as t3 WHERE t2.sums = t3.maxus
<filename>common/sql/insert/units_spells_immunity.sql<gh_stars>0 BEGIN; INSERT INTO units_spells_immunity (id, spell_id) VALUES (27, 8), --level 3-- (27, 9), (27, 10), (27, 31), (27, 42), (27, 43), (27, 46), (27, 61), (27, 62), (27, 63), --level 3-- (28, 11), --level 4-- (28, 12), (28, 13), (28, 14), (28, 15), (28, 16), (28, 47), (28, 48), (28, 49), (28, 64), (28, 65), (28, 70), (69, 8), --level 3-- (69, 9), (69, 10), (69, 31), (69, 42), (69, 43), (69, 46), (69, 61), (69, 62), (69, 63), (70, 17), --level 5-- (70, 51), (70, 69), (81, 3), --fire magic-- (81, 4), (81, 5), (81, 6), (81, 7), (81, 8), (81, 9), (81, 10), (81, 11), (81, 12), (81, 13), (81, 14), (81, 15), (81, 16), (81, 17), (82, 3), --fire magic-- (82, 4), (82, 5), (82, 6), (82, 7), (82, 8), (82, 9), (82, 10), (82, 11), (82, 12), (82, 13), (82, 14), (82, 15), (82, 16), (82, 17), (115, 47), (116, 47), (117, 24), (117, 29), (118, 24), (118, 29), (119, 3), --fire magic-- (119, 4), (119, 5), (119, 6), (119, 7), (119, 8), (119, 9), (119, 10), (119, 11), (119, 12), (119, 13), (119, 14), (119, 15), (119, 16), (119, 17), (120, 3), --fire magic-- (120, 4), (120, 5), (120, 6), (120, 7), (120, 8), (120, 9), (120, 10), (120, 11), (120, 12), (120, 13), (120, 14), (120, 15), (120, 16), (120, 17), --fire magic-- (121, 58), (121, 64), (121, 11), (122, 58), (122, 64), (122, 11), (124, 1), (124, 3), (124, 4), (124, 5), (124, 6), (124, 7), (124, 8), (124, 9), (124, 10), (124, 11), (124, 12), (124, 13), (124, 14), (124, 15), (124, 16), (124, 17), (124, 19), (124, 20), (124, 21), (124, 22), (124, 24), (124, 27), (124, 28), (124, 29), (124, 30), (124, 31), (124, 32), (124, 33), (124, 34), (124, 35), (124, 36), (124, 37), (124, 38), (124, 40), (124, 41), (124, 42), (124, 43), (124, 46), (124, 47), (124, 48), (124, 49), (124, 51), (124, 53), (124, 56), (124, 57), (124, 58), (124, 59), (124, 60), (124, 61), (124, 62), (124, 63), (124, 64), (124, 65), (124, 68), (124, 70), (125, 3), --fire magic-- (125, 4), (125, 5), (125, 6), (125, 7), (125, 8), (125, 9), (125, 10), (125, 11), (125, 12), (125, 13), (125, 14), (125, 15), (125, 16), (125, 17), --fire magic-- (126, 3), --fire magic-- (126, 4), (126, 5), (126, 6), (126, 7), (126, 8), (126, 9), (126, 10), (126, 11), (126, 12), (126, 13), (126, 14), (126, 15), (126, 16), (126, 17); --fire magic-- COMMIT;
<gh_stars>0 -- Fact table for sessions. Join on session_key with session_metrics as ( select session_key, client_id, min(event_date_dt) as session_start_date, min(event_timestamp) as session_start_timestamp, countif(event_name = 'page_view') as count_page_views, sum(event_value_in_usd) as sum_event_value_in_usd, ifnull(max(session_engaged), 0) as session_engaged from {{ref('stg_ga4__events')}} group by 1,2 ) select * from session_metrics
<filename>poc/install/pocCore/pocSessionSave.sql<gh_stars>0 /******************************************************************************* PoC Web-Application-Framwork http://poc-online.net/ Copyright (c) 2013, PoC - <NAME> Released under the MIT license http://poc-online.net/license -- pocPackage: pocCore *******************************************************************************/ CREATE PROCEDURE pocSessionSave ( IN sessionData TEXT, IN userData TEXT) BEGIN DECLARE n, idUser BIGINT DEFAULT 0; bodyOfProc: BEGIN SELECT COUNT(ts.id), tu.id FROM pocSession AS ts LEFT JOIN pocUser AS tu ON tu.id = ts.userId WHERE ts.id = @pocSessionId INTO n, idUser; IF n > 0 THEN UPDATE pocSession SET content = sessionData WHERE id = @pocSessionId; IF idUser THEN UPDATE pocUser SET content = userData WHERE id = idUser; END IF; END IF; END bodyOfProc; END;
INSERT INTO WWS_COUNTRIES (ID, NAME, ISO3, ISO2, PHONECODE, CAPITAL, CURRENCY, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (134, 'Mali', 'MLI', 'ML', '223', 'Bamako', 'XOF', TO_TIMESTAMP('2018-07-20 16:41:03','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-08-02 21:38:23','YYYY-MM-DD HH24:MI:SS'), 1, 'Q912'); INSERT ALL INTO WWS_STATES (ID, NAME, COUNTRY_ID, COUNTRY_CODE, FIPS_CODE, ISO2, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (248, 'Tombouctou Region', 134, 'ML', '08', '6', TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'),1, 'Q339462') INTO WWS_STATES (ID, NAME, COUNTRY_ID, COUNTRY_CODE, FIPS_CODE, ISO2, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (249, 'Ségou Region', 134, 'ML', '05', '4', TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2020-03-02 15:43:46','YYYY-MM-DD HH24:MI:SS'),1, 'Q656845') INTO WWS_STATES (ID, NAME, COUNTRY_ID, COUNTRY_CODE, FIPS_CODE, ISO2, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (250, 'Koulikoro Region', 134, 'ML', '07', '2', TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'),1, 'Q287789') INTO WWS_STATES (ID, NAME, COUNTRY_ID, COUNTRY_CODE, FIPS_CODE, ISO2, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (251, 'Ménaka Region', 134, 'ML', '07', '9', TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2020-03-02 15:43:46','YYYY-MM-DD HH24:MI:SS'),1, 'Q3455550') INTO WWS_STATES (ID, NAME, COUNTRY_ID, COUNTRY_CODE, FIPS_CODE, ISO2, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (252, 'Kayes Region', 134, 'ML', '03', '1', TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'),1, 'Q332113') INTO WWS_STATES (ID, NAME, COUNTRY_ID, COUNTRY_CODE, FIPS_CODE, ISO2, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (253, 'Bamako', 134, 'ML', '01', 'BKO', TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'),1, 'Q3703') INTO WWS_STATES (ID, NAME, COUNTRY_ID, COUNTRY_CODE, FIPS_CODE, ISO2, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (254, 'Sikasso Region', 134, 'ML', '06', '3', TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'),1, 'Q461298') INTO WWS_STATES (ID, NAME, COUNTRY_ID, COUNTRY_CODE, FIPS_CODE, ISO2, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (255, 'Mopti Region', 134, 'ML', '04', '5', TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'),1, 'Q214155') INTO WWS_STATES (ID, NAME, COUNTRY_ID, COUNTRY_CODE, FIPS_CODE, ISO2, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (256, 'Taoudénit Region', 134, 'ML', '04', '10', TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2020-03-02 15:43:46','YYYY-MM-DD HH24:MI:SS'),1, 'Q2424657') INTO WWS_STATES (ID, NAME, COUNTRY_ID, COUNTRY_CODE, FIPS_CODE, ISO2, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (257, 'Kidal Region', 134, 'ML', '10', '8', TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'),1, 'Q338988') INTO WWS_STATES (ID, NAME, COUNTRY_ID, COUNTRY_CODE, FIPS_CODE, ISO2, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (258, 'Gao Region', 134, 'ML', '09', '7', TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 14:18:36','YYYY-MM-DD HH24:MI:SS'),1, 'Q332392') SELECT * FROM dual; INSERT ALL INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67583, 'Abeïbara', 257, '8', 134, 'ML', 19.11667000, 1.75000000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2020-03-02 15:42:10','YYYY-MM-DD HH24:MI:SS'), 1, 'Q1813226') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67584, 'Ansongo', 258, '7', 134, 'ML', 15.65970000, 0.50220000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q2620152') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67585, 'Araouane', 248, '6', 134, 'ML', 18.90476000, -3.52649000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q626121') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67586, 'Bafoulabé', 252, '1', 134, 'ML', 13.80650000, -10.83210000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2020-03-02 15:42:10','YYYY-MM-DD HH24:MI:SS'), 1, 'Q799794') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67587, 'Bamako', 253, 'BKO', 134, 'ML', 12.65000000, -8.00000000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q799794') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67588, 'Banamba', 250, '2', 134, 'ML', 13.54773000, -7.44808000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q572737') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67589, 'Bandiagara', 255, '5', 134, 'ML', 14.35005000, -3.61038000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q538753') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67590, 'Baroueli', 249, '4', 134, 'ML', 13.07489000, -6.57171000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q538753') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67591, 'Bougouni', 254, '3', 134, 'ML', 11.41769000, -7.48323000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q848574') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67592, '<NAME>', 258, '7', 134, 'ML', 17.71192000, -0.34284000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q474936') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67593, '<NAME>', 248, '6', 134, 'ML', 18.60035000, -4.99306000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q1499253') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67594, '<NAME>', 249, '4', 134, 'ML', 13.17895000, -5.01617000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q1902391') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67595, '<NAME>', 257, '8', 134, 'ML', 19.48878000, 2.20025000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2020-03-02 15:42:10','YYYY-MM-DD HH24:MI:SS'), 1, 'Q319858') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67596, 'Dire', 248, '6', 134, 'ML', 16.28017000, -3.31302000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q319858') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67597, 'Diré', 248, '6', 134, 'ML', 12.28333000, -10.96667000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2020-03-02 15:42:10','YYYY-MM-DD HH24:MI:SS'), 1, 'Q27690990') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67598, 'Djénné', 255, '5', 134, 'ML', 13.90608000, -4.55332000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2020-03-02 15:42:10','YYYY-MM-DD HH24:MI:SS'), 1, 'Q213507') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67599, 'Douentza', 255, '5', 134, 'ML', 15.00155000, -2.94978000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q2358526') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67600, '<NAME>', 255, '5', 134, 'ML', 15.06947000, -2.40875000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q940936') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67601, 'Gao', 258, '7', 134, 'ML', 16.27167000, -0.04472000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q188904') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67602, '<NAME>', 258, '7', 134, 'ML', 16.72237000, 0.43984000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q1493783') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67603, 'Goundam', 248, '6', 134, 'ML', 16.41453000, -3.67075000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q976923') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67604, '<NAME>', 248, '6', 134, 'ML', 16.07979000, -1.76981000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q1540214') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67605, 'Inékar', 258, '7', 134, 'ML', 15.95944000, 3.14111000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2020-03-02 15:42:10','YYYY-MM-DD HH24:MI:SS'), 1, 'Q1988973') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67606, 'Kangaba', 250, '2', 134, 'ML', 11.93333000, -8.41667000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q1031919') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67607, 'Kati', 250, '2', 134, 'ML', 12.74409000, -8.07257000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q771251') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67608, 'Kayes', 252, '1', 134, 'ML', 14.44693000, -11.44448000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q325164') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67609, 'Kidal', 257, '8', 134, 'ML', 18.44111000, 1.40778000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q650100') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67610, 'Kinmparana', 249, '4', 134, 'ML', 12.84217000, -4.92450000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q27690425') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67611, 'Kita', 252, '1', 134, 'ML', 13.03490000, -9.48950000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q578014') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67612, 'Kokofata', 252, '1', 134, 'ML', 12.88333000, -9.95000000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q1760816') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67613, 'Kolokani', 250, '2', 134, 'ML', 13.57280000, -8.03390000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q642276') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67614, 'Kolondiéba', 254, '3', 134, 'ML', 11.08943000, -6.89290000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2020-03-02 15:42:10','YYYY-MM-DD HH24:MI:SS'), 1, 'Q1040225') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67615, 'Koulikoro', 250, '2', 134, 'ML', 12.86273000, -7.55985000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q740974') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67616, 'Koutiala', 254, '3', 134, 'ML', 12.39173000, -5.46421000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q281000') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67617, '<NAME>', 254, '3', 134, 'ML', 12.35311000, -5.58390000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q1538131') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67618, 'Ké-Macina', 249, '4', 134, 'ML', 13.96410000, -5.35791000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2020-03-02 15:42:10','YYYY-MM-DD HH24:MI:SS'), 1, 'Q1538131') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67619, 'Markala', 249, '4', 134, 'ML', 13.70210000, -6.06590000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q976115') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67620, 'Mopti', 255, '5', 134, 'ML', 14.48430000, -4.18296000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q211227') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67621, 'Niafunké', 248, '6', 134, 'ML', 15.93220000, -3.99060000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2020-03-02 15:42:10','YYYY-MM-DD HH24:MI:SS'), 1, 'Q3100146') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67622, 'Ntossoni', 254, '3', 134, 'ML', 12.53040000, -5.77003000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q3334119') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67623, 'Sagalo', 252, '1', 134, 'ML', 12.20000000, -10.70000000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q1759932') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67624, 'San', 249, '4', 134, 'ML', 13.30335000, -4.89562000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q950460') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67625, 'Sikasso', 254, '3', 134, 'ML', 11.31755000, -5.66654000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q722827') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67626, 'Sokolo', 249, '4', 134, 'ML', 14.73280000, -6.12190000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q2257485') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67627, 'Ségou', 249, '4', 134, 'ML', 13.43170000, -6.21570000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2020-03-02 15:42:10','YYYY-MM-DD HH24:MI:SS'), 1, 'Q2257485') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67628, 'Timbuktu', 248, '6', 134, 'ML', 16.77348000, -3.00742000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q9427') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67629, 'Ténenkou', 255, '5', 134, 'ML', 14.45722000, -4.91690000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2020-03-02 15:42:10','YYYY-MM-DD HH24:MI:SS'), 1, 'Q1031849') INTO WWS_CITIES (ID, NAME, STATE_ID, STATE_CODE, COUNTRY_ID, COUNTRY_CODE, LATITUDE, LONGITUDE, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (67630, 'Yorosso', 254, '3', 134, 'ML', 12.35811000, -4.77688000, TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-10-05 15:38:04','YYYY-MM-DD HH24:MI:SS'), 1, 'Q1031835') SELECT * FROM dual;
<gh_stars>1-10 create table heads ( hcode char(2) primary key, hdesc varchar2(20), budget number(7) ); create table indents ( iid number(4) primary key, hcode char(2) references heads(hcode), di date, idesc varchar2(30), qty number(3), placedby varchar2(20), approved char(1), da date ); create table qutations ( qid number(5) primary key, iid number(4) references indents(iid), dq date, supplier varchar2(15), amount number(6), accepted char(1), ds date );
--per cdo dept te fshire te fshihen dhe punonjesit select * from hr.dbo.EMPLOYEES; use hr go create trigger after_department_delete on dbo.departments for DELETE AS BEGIN DELETE FROM hr.dbo.EMPLOYEES where DEPARTMENT_ID in (select DEPARTMENT_ID from deleted); END; delete from hr.dbo.departments where department_id = 4;
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Aug 15, 2020 at 06:21 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -- -- Database: `install_infinite` -- -- -------------------------------------------------------- -- -- Table structure for table `ad_spaces` -- CREATE TABLE `ad_spaces` ( `id` int(11) NOT NULL, `ad_space` text DEFAULT NULL, `ad_code_728` text DEFAULT NULL, `ad_code_468` text DEFAULT NULL, `ad_code_300` text DEFAULT NULL, `ad_code_234` text DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `ad_spaces` -- INSERT INTO `ad_spaces` (`id`, `ad_space`, `ad_code_728`, `ad_code_468`, `ad_code_300`, `ad_code_234`) VALUES (1, 'index_top', NULL, NULL, NULL, NULL), (2, 'index_bottom', NULL, NULL, NULL, NULL), (3, 'post_top', NULL, NULL, NULL, NULL), (4, 'post_bottom', NULL, NULL, NULL, NULL), (5, 'category_top', NULL, NULL, NULL, NULL), (6, 'category_bottom', NULL, NULL, NULL, NULL), (7, 'tag_top', NULL, NULL, NULL, NULL), (8, 'tag_bottom', NULL, NULL, NULL, NULL), (9, 'search_top', NULL, NULL, NULL, NULL), (10, 'search_bottom', NULL, NULL, NULL, NULL), (11, 'profile_top', NULL, NULL, NULL, NULL), (12, 'profile_bottom', NULL, NULL, NULL, NULL), (13, 'reading_list_top', NULL, NULL, NULL, NULL), (14, 'reading_list_bottom', NULL, NULL, NULL, NULL), (15, 'sidebar_top', NULL, NULL, NULL, NULL), (16, 'sidebar_bottom', NULL, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `id` int(11) NOT NULL, `lang_id` tinyint(4) DEFAULT 1, `name` varchar(255) DEFAULT NULL, `slug` varchar(255) DEFAULT NULL, `description` varchar(500) DEFAULT NULL, `keywords` varchar(500) DEFAULT NULL, `parent_id` int(11) DEFAULT 0, `category_order` smallint(6) DEFAULT NULL, `show_on_menu` tinyint(1) DEFAULT 1, `created_at` timestamp NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `ci_sessions` -- CREATE TABLE `ci_sessions` ( `id` varchar(128) NOT NULL, `ip_address` varchar(45) NOT NULL, `timestamp` int(10) UNSIGNED NOT NULL DEFAULT 0, `data` blob NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `comments` -- CREATE TABLE `comments` ( `id` int(11) NOT NULL, `parent_id` int(11) DEFAULT 0, `post_id` int(11) DEFAULT NULL, `user_id` int(11) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `comment` varchar(5000) DEFAULT NULL, `status` tinyint(1) DEFAULT 1, `created_at` timestamp NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `contacts` -- CREATE TABLE `contacts` ( `id` int(11) NOT NULL, `name` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `message` varchar(5000) DEFAULT NULL, `created_at` timestamp NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `files` -- CREATE TABLE `files` ( `id` int(11) NOT NULL, `file_name` varchar(255) DEFAULT NULL, `user_id` int(11) DEFAULT 1 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `followers` -- CREATE TABLE `followers` ( `id` int(11) NOT NULL, `following_id` int(11) DEFAULT NULL, `follower_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `fonts` -- CREATE TABLE `fonts` ( `id` int(11) NOT NULL, `font_name` varchar(255) DEFAULT NULL, `font_url` varchar(2000) DEFAULT NULL, `font_family` varchar(500) DEFAULT NULL, `is_default` tinyint(1) DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `fonts` -- INSERT INTO `fonts` (`id`, `font_name`, `font_url`, `font_family`, `is_default`) VALUES (1, 'Arial', NULL, 'font-family: Arial, Helvetica, sans-serif', 1), (2, 'Arvo', '<link href=\"https://fonts.googleapis.com/css?family=Arvo:400,700&display=swap\" rel=\"stylesheet\">\r\n', 'font-family: \"Arvo\", Helvetica, sans-serif', 0), (3, 'Averia Libre', '<link href=\"https://fonts.googleapis.com/css?family=Averia+Libre:300,400,700&display=swap\" rel=\"stylesheet\">\r\n', 'font-family: \"Averia Libre\", Helvetica, sans-serif', 0), (4, 'Bitter', '<link href=\"https://fonts.googleapis.com/css?family=Bitter:400,400i,700&display=swap&subset=latin-ext\" rel=\"stylesheet\">\r\n', 'font-family: \"Bitter\", Helvetica, sans-serif', 0), (5, 'Cabin', '<link href=\"https://fonts.googleapis.com/css?family=Cabin:400,500,600,700&display=swap&subset=latin-ext,vietnamese\" rel=\"stylesheet\">\r\n', 'font-family: \"Cabin\", Helvetica, sans-serif', 0), (6, 'Cherry Swash', '<link href=\"https://fonts.googleapis.com/css?family=Cherry+Swash:400,700&display=swap&subset=latin-ext\" rel=\"stylesheet\">\r\n', 'font-family: \"Cherry Swash\", Helvetica, sans-serif', 0), (7, 'Encode Sans', '<link href=\"https://fonts.googleapis.com/css?family=Encode+Sans:300,400,500,600,700&display=swap&subset=latin-ext,vietnamese\" rel=\"stylesheet\">\r\n', 'font-family: \"Encode Sans\", Helvetica, sans-serif', 0), (8, 'Helvetica', NULL, 'font-family: Helvetica, sans-serif', 1), (9, 'Hind', '<link href=\"https://fonts.googleapis.com/css?family=Hind:300,400,500,600,700&display=swap&subset=devanagari,latin-ext\" rel=\"stylesheet\">', 'font-family: \"Hind\", Helvetica, sans-serif', 0), (10, 'Josefin Sans', '<link href=\"https://fonts.googleapis.com/css?family=Josefin+Sans:300,400,600,700&display=swap&subset=latin-ext,vietnamese\" rel=\"stylesheet\">\r\n', 'font-family: \"Josefin Sans\", Helvetica, sans-serif', 0), (11, 'Kalam', '<link href=\"https://fonts.googleapis.com/css?family=Kalam:300,400,700&display=swap&subset=devanagari,latin-ext\" rel=\"stylesheet\">\r\n', 'font-family: \"Kalam\", Helvetica, sans-serif', 0), (12, 'Khula', '<link href=\"https://fonts.googleapis.com/css?family=Khula:300,400,600,700&display=swap&subset=devanagari,latin-ext\" rel=\"stylesheet\">\r\n', 'font-family: \"Khula\", Helvetica, sans-serif', 0), (13, 'Lato', '<link href=\"https://fonts.googleapis.com/css?family=Lato:300,400,700&display=swap&subset=latin-ext\" rel=\"stylesheet\">', 'font-family: \"Lato\", Helvetica, sans-serif', 0), (14, 'Lora', '<link href=\"https://fonts.googleapis.com/css?family=Lora:400,700&display=swap&subset=cyrillic,cyrillic-ext,latin-ext,vietnamese\" rel=\"stylesheet\">\r\n', 'font-family: \"Lora\", Helvetica, sans-serif', 0), (15, 'Merriweather', '<link href=\"https://fonts.googleapis.com/css?family=Merriweather:300,400,700&display=swap&subset=cyrillic,cyrillic-ext,latin-ext,vietnamese\" rel=\"stylesheet\">\r\n', 'font-family: \"Merriweather\", Helvetica, sans-serif', 0), (16, 'Montserrat', '<link href=\"https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700&display=swap&subset=cyrillic,cyrillic-ext,latin-ext,vietnamese\" rel=\"stylesheet\">\r\n', 'font-family: \"Montserrat\", Helvetica, sans-serif', 0), (17, 'Mukta', '<link href=\"https://fonts.googleapis.com/css?family=Mukta:300,400,500,600,700&display=swap&subset=devanagari,latin-ext\" rel=\"stylesheet\">\r\n', 'font-family: \"Mukta\", Helvetica, sans-serif', 0), (18, 'Nunito', '<link href=\"https://fonts.googleapis.com/css?family=Nunito:300,400,600,700&display=swap&subset=cyrillic,cyrillic-ext,latin-ext,vietnamese\" rel=\"stylesheet\">\r\n', 'font-family: \"Nunito\", Helvetica, sans-serif', 0), (19, 'Open Sans', '<link href=\"https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&display=swap&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese\" rel=\"stylesheet\">', 'font-family: \"Open Sans\", Helvetica, sans-serif', 0), (20, 'Oswald', '<link href=\"https://fonts.googleapis.com/css?family=Oswald:300,400,500,600,700&display=swap&subset=cyrillic,cyrillic-ext,latin-ext,vietnamese\" rel=\"stylesheet\">', 'font-family: \"Oswald\", Helvetica, sans-serif', 0), (21, 'Oxygen', '<link href=\"https://fonts.googleapis.com/css?family=Oxygen:300,400,700&display=swap&subset=latin-ext\" rel=\"stylesheet\">\r\n', 'font-family: \"Oxygen\", Helvetica, sans-serif', 0), (22, 'Poppins', '<link href=\"https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700&display=swap&subset=devanagari,latin-ext\" rel=\"stylesheet\">\r\n', 'font-family: \"Poppins\", Helvetica, sans-serif', 0), (23, 'PT Sans', '<link href=\"https://fonts.googleapis.com/css?family=PT+Sans:400,700&display=swap&subset=cyrillic,cyrillic-ext,latin-ext\" rel=\"stylesheet\">\r\n', 'font-family: \"PT Sans\", Helvetica, sans-serif', 0), (24, 'Raleway', '<link href=\"https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700&display=swap&subset=latin-ext\" rel=\"stylesheet\">\r\n', 'font-family: \"Raleway\", Helvetica, sans-serif', 0), (25, 'Roboto', '<link href=\"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese\" rel=\"stylesheet\">', 'font-family: \"Roboto\", Helvetica, sans-serif', 0), (26, 'Roboto Condensed', '<link href=\"https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700&display=swap&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese\" rel=\"stylesheet\">\r\n', 'font-family: \"Roboto Condensed\", Helvetica, sans-serif', 0), (27, 'Roboto Slab', '<link href=\"https://fonts.googleapis.com/css?family=Roboto+Slab:300,400,500,600,700&display=swap&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese\" rel=\"stylesheet\">\r\n', 'font-family: \"Roboto Slab\", Helvetica, sans-serif', 0), (28, 'Rokkitt', '<link href=\"https://fonts.googleapis.com/css?family=Rokkitt:300,400,500,600,700&display=swap&subset=latin-ext,vietnamese\" rel=\"stylesheet\">\r\n', 'font-family: \"Rokkitt\", Helvetica, sans-serif', 0), (29, 'Source Sans Pro', '<link href=\"https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700&display=swap&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese\" rel=\"stylesheet\">', 'font-family: \"Source Sans Pro\", Helvetica, sans-serif', 0), (30, 'Titillium Web', '<link href=\"https://fonts.googleapis.com/css?family=Titillium+Web:300,400,600,700&display=swap&subset=latin-ext\" rel=\"stylesheet\">', 'font-family: \"Titillium Web\", Helvetica, sans-serif', 0), (31, 'Ubuntu', '<link href=\"https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700&display=swap&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext\" rel=\"stylesheet\">', 'font-family: \"Ubuntu\", Helvetica, sans-serif', 0), (32, 'Verdana', NULL, 'font-family: Verdana, Helvetica, sans-serif', 1); -- -------------------------------------------------------- -- -- Table structure for table `gallery_albums` -- CREATE TABLE `gallery_albums` ( `id` int(11) NOT NULL, `lang_id` tinyint(4) DEFAULT 1, `name` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `gallery_categories` -- CREATE TABLE `gallery_categories` ( `id` int(11) NOT NULL, `lang_id` tinyint(4) DEFAULT 1, `name` varchar(255) DEFAULT NULL, `album_id` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `general_settings` -- CREATE TABLE `general_settings` ( `id` int(11) NOT NULL, `site_lang` tinyint(4) NOT NULL DEFAULT 1, `layout` varchar(30) DEFAULT 'layout_1', `dark_mode` tinyint(1) DEFAULT 0, `timezone` varchar(255) DEFAULT 'America/New_York', `slider_active` tinyint(1) DEFAULT 1, `site_color` varchar(30) DEFAULT 'default', `show_pageviews` tinyint(1) DEFAULT 1, `show_rss` tinyint(1) DEFAULT 1, `file_manager_show_all_files` tinyint(1) DEFAULT 0, `logo_path` varchar(255) DEFAULT NULL, `mobile_logo_path` varchar(255) DEFAULT NULL, `favicon_path` varchar(255) DEFAULT NULL, `facebook_app_id` varchar(500) DEFAULT NULL, `facebook_app_secret` varchar(500) DEFAULT NULL, `google_client_id` varchar(500) DEFAULT NULL, `google_client_secret` varchar(500) DEFAULT NULL, `google_analytics` text DEFAULT NULL, `google_adsense_code` text DEFAULT NULL, `mail_library` varchar(100) DEFAULT 'swift', `mail_protocol` varchar(100) DEFAULT 'smtp', `mail_host` varchar(255) DEFAULT NULL, `mail_port` varchar(255) DEFAULT '587', `mail_username` varchar(255) DEFAULT NULL, `mail_password` varchar(255) DEFAULT NULL, `mail_title` varchar(255) DEFAULT NULL, `send_email_contact_messages` tinyint(1) DEFAULT 0, `mail_options_account` varchar(255) DEFAULT NULL, `facebook_comment` text DEFAULT NULL, `pagination_per_page` tinyint(4) DEFAULT 6, `menu_limit` tinyint(4) DEFAULT 5, `multilingual_system` tinyint(1) DEFAULT 1, `registration_system` tinyint(1) DEFAULT 1, `comment_system` tinyint(1) DEFAULT 1, `comment_approval_system` tinyint(1) DEFAULT 1, `approve_posts_before_publishing` tinyint(1) DEFAULT 1, `emoji_reactions` tinyint(1) DEFAULT 1, `inf_key` varchar(500) NOT NULL, `purchase_code` varchar(500) NOT NULL, `recaptcha_site_key` varchar(500) DEFAULT NULL, `recaptcha_secret_key` varchar(500) DEFAULT NULL, `recaptcha_lang` varchar(30) DEFAULT NULL, `cache_system` tinyint(1) DEFAULT 0, `cache_refresh_time` int(11) DEFAULT 1800, `refresh_cache_database_changes` tinyint(1) DEFAULT 0, `maintenance_mode_title` varchar(500) DEFAULT 'Coming Soon! ', `maintenance_mode_description` varchar(5000) DEFAULT NULL, `maintenance_mode_status` tinyint(1) DEFAULT 0, `sitemap_frequency` varchar(30) DEFAULT 'monthly', `sitemap_last_modification` varchar(30) DEFAULT 'server_response', `sitemap_priority` varchar(30) DEFAULT 'automatically', `custom_css_codes` mediumtext DEFAULT NULL, `custom_javascript_codes` mediumtext DEFAULT NULL, `last_cron_update` timestamp NULL DEFAULT current_timestamp(), `version` varchar(30) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `general_settings` -- INSERT INTO `general_settings` (`id`, `site_lang`, `layout`, `dark_mode`, `timezone`, `slider_active`, `site_color`, `show_pageviews`, `show_rss`, `file_manager_show_all_files`, `logo_path`, `mobile_logo_path`, `favicon_path`, `facebook_app_id`, `facebook_app_secret`, `google_client_id`, `google_client_secret`, `google_analytics`, `google_adsense_code`, `mail_library`, `mail_protocol`, `mail_host`, `mail_port`, `mail_username`, `mail_password`, `mail_title`, `send_email_contact_messages`, `mail_options_account`, `facebook_comment`, `pagination_per_page`, `menu_limit`, `multilingual_system`, `registration_system`, `comment_system`, `comment_approval_system`, `approve_posts_before_publishing`, `emoji_reactions`, `inf_key`, `purchase_code`, `recaptcha_site_key`, `recaptcha_secret_key`, `recaptcha_lang`, `cache_system`, `cache_refresh_time`, `refresh_cache_database_changes`, `maintenance_mode_title`, `maintenance_mode_description`, `maintenance_mode_status`, `sitemap_frequency`, `sitemap_last_modification`, `sitemap_priority`, `custom_css_codes`, `custom_javascript_codes`, `last_cron_update`, `version`) VALUES (1, 1, 'layout_2', 0, 'America/New_York', 1, 'default', 1, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'swift', 'smtp', NULL, '587', NULL, NULL, 'Infinite', 0, NULL, NULL, 12, 7, 1, 1, 1, 1, 1, 1, '', '', NULL, NULL, 'en', 0, 1800, 0, 'Coming Soon! ', NULL, 0, 'monthly', 'server_response', 'automatically', NULL, NULL, '2020-08-03 23:58:10', '4.0.2'); -- -------------------------------------------------------- -- -- Table structure for table `images` -- CREATE TABLE `images` ( `id` int(11) NOT NULL, `image_big` varchar(255) DEFAULT NULL, `image_mid` varchar(255) DEFAULT NULL, `image_small` varchar(255) DEFAULT NULL, `image_slider` varchar(255) DEFAULT NULL, `image_mime` varchar(30) DEFAULT 'jpg', `file_name` varchar(255) DEFAULT NULL, `user_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `languages` -- CREATE TABLE `languages` ( `id` tinyint(4) NOT NULL, `name` varchar(100) NOT NULL, `short_form` varchar(30) NOT NULL, `language_code` varchar(30) NOT NULL, `text_direction` varchar(10) NOT NULL, `text_editor_lang` varchar(20) NOT NULL DEFAULT 'en', `status` tinyint(1) NOT NULL DEFAULT 1, `language_order` tinyint(4) NOT NULL DEFAULT 1 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `languages` -- INSERT INTO `languages` (`id`, `name`, `short_form`, `language_code`, `text_direction`, `text_editor_lang`, `status`, `language_order`) VALUES (1, 'English', 'en', 'en-US', 'ltr', 'en', 1, 1); -- -------------------------------------------------------- -- -- Table structure for table `language_translations` -- CREATE TABLE `language_translations` ( `id` int(11) NOT NULL, `lang_id` smallint(6) DEFAULT NULL, `label` varchar(255) DEFAULT NULL, `translation` varchar(500) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `language_translations` -- INSERT INTO `language_translations` (`id`, `lang_id`, `label`, `translation`) VALUES (1, 1, 'home', 'Home'), (2, 1, 'gallery', 'Gallery'), (3, 1, 'login', 'Login'), (4, 1, 'register', 'Register'), (5, 1, 'logout', 'Logout'), (6, 1, 'reset_password', '<PASSWORD>'), (7, 1, 'admin_panel', 'Admin Panel'), (8, 1, 'reading_list', 'Reading List'), (9, 1, 'change_password', '<PASSWORD> Password'), (10, 1, 'update_profile', 'Update Profile'), (11, 1, 'tag', 'Tag'), (12, 1, 'tags', 'Tags'), (13, 1, 'search', 'Search'), (14, 1, 'search_exp', 'Search...'), (15, 1, 'email', 'Email'), (16, 1, 'name', 'Name'), (17, 1, 'message', 'Message'), (18, 1, 'comment', 'Comment'), (19, 1, 'username', 'Username'), (20, 1, 'password', 'Password'), (21, 1, 'confirm_password', '<PASSWORD> Password'), (22, 1, 'old_password', '<PASSWORD>'), (23, 1, 'readmore', 'Read More'), (24, 1, 'reply', 'Reply'), (25, 1, 'submit', 'Submit'), (26, 1, 'subscribe', 'Subscribe'), (27, 1, 'send_reset_link', 'Send Password Reset Link'), (28, 1, 'change_avatar', 'Change Avatar'), (29, 1, 'save_changes', 'Save Changes'), (30, 1, 'delete', 'Delete'), (31, 1, 'add_reading_list', 'Add to Reading List'), (32, 1, 'delete_reading_list', 'Remove from Reading List'), (33, 1, 'popular_posts', 'Popular Posts'), (34, 1, 'our_picks', 'Our Picks'), (35, 1, 'category', 'Category'), (36, 1, 'categories', 'Categories'), (37, 1, 'random_posts', 'Random Posts'), (38, 1, 'related_posts', 'Related Posts'), (39, 1, 'site_comments', 'Comments'), (40, 1, 'facebook_comments', 'Facebook Comments'), (41, 1, 'leave_reply', 'Leave a Reply'), (42, 1, 'search_noresult', 'No results found.'), (43, 1, 'about', 'About'), (44, 1, 'social_media', 'Social Media'), (45, 1, 'newsletter_exp', 'Subscribe here to get interesting stuff and updates!'), (46, 1, 'comments', 'Comments'), (47, 1, 'warning', 'Warning!'), (48, 1, 'reading_list_empty', 'Your reading list is empty.'), (49, 1, 'all', 'All'), (50, 1, 'more', 'More'), (51, 1, 'leave_message', 'Leave a Message'), (52, 1, 'all_posts', 'All Posts'), (53, 1, 'rss_all_posts', 'RSS All Posts'), (54, 1, 'load_more_comments', 'Load More Comments'), (55, 1, 'slug', 'Slug'), (56, 1, 'author', 'Author'), (57, 1, 'my_posts', 'My Posts'), (58, 1, 'January', 'Jan'), (59, 1, 'February', 'Feb'), (60, 1, 'March', 'Mar'), (61, 1, 'April', 'Apr'), (62, 1, 'May', 'May'), (63, 1, 'June', 'Jun'), (64, 1, 'July', 'Jul'), (65, 1, 'August', 'Aug'), (66, 1, 'September', 'Sep'), (67, 1, 'October', 'Oct'), (68, 1, 'November', 'Nov'), (69, 1, 'December', 'Dec'), (70, 1, 'page_not_found', 'Page not found'), (71, 1, 'page_not_found_sub', 'The page you are looking for doesn\'t exist.'), (72, 1, 'go_to_home', 'Go to Homepage'), (73, 1, 'message_newsletter_success', 'Your email address has been successfully added!'), (74, 1, 'message_newsletter_error', 'Your email address is already registered!'), (75, 1, 'message_contact_success', 'Your message has been sent successfully!'), (76, 1, 'message_contact_error', 'There was a problem while sending your message!'), (77, 1, 'message_register_error', 'There was a problem during registration. Please try again!'), (78, 1, 'message_profile', 'Profile updated successfully!'), (79, 1, 'message_change_password', 'Your password has been successfully changed!'), (80, 1, 'message_login_for_comment', 'You need to login to write a comment!'), (81, 1, 'message_invalid_email', 'Invalid email address!'), (82, 1, 'message_page_auth', 'You must be logged in to view this page!'), (83, 1, 'message_post_auth', 'You must be logged in to view this post!'), (84, 1, 'message_slug_error', 'The slug you entered is being used by another user!'), (85, 1, 'login_error', 'Wrong username or password!'), (86, 1, 'message_ban_error', 'Your account has been banned!'), (87, 1, 'reset_password_error', 'We can\'t find a user with that e-mail address!'), (88, 1, 'change_password_error', 'There was a problem changing your password!'), (89, 1, 'wrong_password_error', 'Wrong old password!'), (90, 1, 'email_unique_error', 'The email has already been taken.'), (91, 1, 'gallery_categories', 'Gallery Categories'), (92, 1, 'index', 'Index'), (93, 1, 'navigation', 'Navigation'), (94, 1, 'admin', 'Admin'), (95, 1, 'panel', 'Panel'), (96, 1, 'view_site', 'View Site'), (97, 1, 'online', 'Online'), (98, 1, 'main_nav', 'MAIN NAVIGATION'), (99, 1, 'add_link', 'Add Menu Link'), (100, 1, 'update_link', 'Update Menu Link'), (101, 1, 'update_image', 'Update Image'), (102, 1, 'link', 'Link'), (103, 1, 'parent_link', 'Parent Link'), (104, 1, 'pages', 'Pages'), (105, 1, 'page', 'Page'), (106, 1, 'add_page', 'Add Page'), (107, 1, 'add_post', 'Add Post'), (108, 1, 'pending_posts', 'Pending Posts'), (109, 1, 'subcategories', 'Subcategories'), (110, 1, 'images', 'Images'), (111, 1, 'contact_messages', 'Contact Messages'), (112, 1, 'newsletter', 'Newsletter'), (113, 1, 'ad_spaces', 'Ad Spaces'), (114, 1, 'users', 'Users'), (115, 1, 'seo_tools', 'SEO Tools'), (116, 1, 'seo_options', 'SEO options'), (117, 1, 'settings', 'Settings'), (118, 1, 'send_email_registered', 'Send Email to Registered Emails'), (119, 1, 'subject', 'Subject'), (120, 1, 'send_email', 'Send Email'), (121, 1, 'registered_emails', 'Registered Emails'), (122, 1, 'more_info', 'More info'), (123, 1, 'view_all', 'View All'), (124, 1, 'subcategory', 'Subcategory'), (125, 1, 'select', 'Select'), (126, 1, 'title', 'Title'), (127, 1, 'slug_exp', 'If you leave it blank, it will be generated automatically.'), (128, 1, 'description', 'Description'), (129, 1, 'meta_tag', 'Meta Tag'), (130, 1, 'keywords', 'Keywords'), (131, 1, 'location', 'Location'), (132, 1, 'header', 'Header'), (133, 1, 'footer', 'Footer'), (134, 1, 'visibility', 'Visibility'), (135, 1, 'show', 'Show'), (136, 1, 'hide', 'Hide'), (137, 1, 'show_only_registered', 'Show Only to Registered Users'), (138, 1, 'yes', 'Yes'), (139, 1, 'no', 'No'), (140, 1, 'show_title', 'Show Title'), (141, 1, 'show_breadcrumb', 'Show Breadcrumb'), (142, 1, 'show_right_column', 'Show Right Column'), (143, 1, 'update_page', 'Update Page'), (144, 1, 'id', 'Id'), (145, 1, 'page_type', 'Page Type'), (146, 1, 'date', 'Date'), (147, 1, 'options', 'Options'), (148, 1, 'custom', 'Custom'), (149, 1, 'default', 'Default'), (150, 1, 'select_option', 'Select an option'), (151, 1, 'edit', 'Edit'), (152, 1, 'summary', 'Summary'), (153, 1, 'add_slider', 'Add to Slider'), (154, 1, 'remove_slider', 'Remove From Slider'), (155, 1, 'add_picked', 'Add to Our Picks'), (156, 1, 'remove_picked', 'Remove From Our Picks'), (157, 1, 'type_tag', 'Type tag and hit enter'), (158, 1, 'main_image', 'Main Image'), (159, 1, 'select_image', 'Select image'), (160, 1, 'additional_images', 'Additional Images'), (161, 1, 'select_images', 'Select images'), (162, 1, 'optional_url', 'Optional Url'), (163, 1, 'content', 'Content'), (164, 1, 'update_post', 'Update Post'), (165, 1, 'change_image', 'Change image'), (166, 1, 'add_images', 'Add images'), (167, 1, 'image', 'Image'), (168, 1, 'slider', 'Slider'), (169, 1, 'approve', 'Approve'), (170, 1, 'add_category', 'Add Category'), (171, 1, 'category_name', 'Category Name'), (172, 1, 'update_category', 'Update Category'), (173, 1, 'parent_category', 'Parent Category'), (174, 1, 'add_subcategory', 'Add Subcategory'), (175, 1, 'post', 'Post'), (176, 1, 'primary_font', 'Primary Font (Main)'), (177, 1, 'secondary_font', 'Secondary Font (Titles)'), (178, 1, 'tertiary_font', 'Tertiary Font (Post & Page Text)'), (179, 1, 'add_image', 'Add Image'), (180, 1, 'show_on_menu', 'Show on Menu'), (181, 1, 'site_title', 'Site Title'), (182, 1, 'home_title', 'Home Title'), (183, 1, 'google_analytics', 'Google Analytics'), (184, 1, 'google_analytics_code', 'Google Analytics Code'), (185, 1, 'generate_sitemap', 'Generate Sitemap'), (186, 1, 'sitemap', 'Sitemap'), (187, 1, 'frequency', 'Frequency'), (188, 1, 'frequency_exp', 'This value indicates how frequently the content at a particular URL is likely to change '), (189, 1, 'none', 'None'), (190, 1, 'always', 'Always'), (191, 1, 'hourly', 'Hourly'), (192, 1, 'daily', 'Daily'), (193, 1, 'weekly', 'Weekly'), (194, 1, 'monthly', 'Monthly'), (195, 1, 'yearly', 'Yearly'), (196, 1, 'never', 'Never'), (197, 1, 'last_modification', 'Last Modification'), (198, 1, 'last_modification_exp', 'The time the URL was last modified'), (199, 1, 'server_response', 'Server\'s Response'), (200, 1, 'priority', 'Priority'), (201, 1, 'priority_exp', 'The priority of a particular URL relative to other pages on the same site'), (202, 1, 'priority_none', 'Automatically Calculated Priority'), (203, 1, 'generate', 'Generate'), (204, 1, 'select_ad_spaces', 'Select Ad Space'), (205, 1, 'ad_space', 'Ad Space'), (206, 1, 'index_top_ad_space', 'Index (Top)'), (207, 1, 'index_bottom_ad_space', 'Index (Bottom)'), (208, 1, 'post_top_ad_space', 'Post Details (Top)'), (209, 1, 'post_bottom_ad_space', 'Post Details (Bottom)'), (210, 1, 'category_top_ad_space', 'Category (Top)'), (211, 1, 'category_bottom_ad_space', 'Category (Bottom)'), (212, 1, 'tag_top_ad_space', 'Tag (Top)'), (213, 1, 'tag_bottom_ad_space', 'Tag (Bottom)'), (214, 1, 'search_top_ad_space', 'Search (Top)'), (215, 1, 'search_bottom_ad_space', 'Search (Bottom)'), (216, 1, 'profile_top_ad_space', 'Profile (Top)'), (217, 1, 'profile_bottom_ad_space', 'Profile (Bottom)'), (218, 1, 'reading_list_top_ad_space', 'Reading List (Top)'), (219, 1, 'reading_list_bottom_ad_space', 'Reading List (Bottom)'), (220, 1, 'sidebar_top_ad_space', 'Sidebar (Top)'), (221, 1, 'sidebar_bottom_ad_space', 'Sidebar (Bottom)'), (222, 1, 'banner', 'Banner'), (223, 1, 'paste_ad_code', 'Ad Code'), (224, 1, 'upload_your_banner', 'Create Ad Code'), (225, 1, 'paste_ad_url', 'Ad Url'), (226, 1, 'general_settings', 'General Settings'), (227, 1, 'email_settings', 'Email Settings'), (228, 1, 'contact_settings', 'Contact Settings'), (229, 1, 'social_media_settings', 'Social Media Settings'), (230, 1, 'visual_settings', 'Visual Settings'), (231, 1, 'language', 'Language'), (232, 1, 'app_name', 'Application Name'), (233, 1, 'show_post_view_counts', 'Show Post View Counts'), (234, 1, 'rss', 'RSS'), (235, 1, 'optional_url_name', 'Post Optional Url Button Name'), (236, 1, 'pagination_number_posts', 'Number of Posts Per Page (Pagination)'), (237, 1, 'menu_limit', 'Menu Limit'), (238, 1, 'footer_about_section', 'Footer About Section'), (239, 1, 'protocol', 'Protocol'), (240, 1, 'smtp', 'SMTP'), (241, 1, 'mail', 'Mail'), (242, 1, 'host', 'Host'), (243, 1, 'port', 'Port'), (244, 1, 'gmail_smtp', 'Gmail SMTP'), (245, 1, 'address', 'Address'), (246, 1, 'phone', 'Phone'), (247, 1, 'contact_text', 'Contact Text'), (248, 1, 'url', 'Url'), (249, 1, 'select_color', 'Select Color'), (250, 1, 'logo', 'Logo'), (251, 1, 'change_logo', 'Change logo'), (252, 1, 'favicon', 'Favicon'), (253, 1, 'change_favicon', 'Change favicon'), (254, 1, 'facebook_comments_code', 'Facebook Comments Plugin Code'), (255, 1, 'user', 'User'), (256, 1, 'avatar', 'Avatar'), (257, 1, 'role', 'Role'), (258, 1, 'change_user_role', 'Change User Role'), (259, 1, 'save', 'Save'), (260, 1, 'close', 'Close'), (261, 1, 'layout', 'Layout'), (262, 1, 'banned', 'Banned'), (263, 1, 'active', 'Active'), (264, 1, 'ban_user', 'Ban User'), (265, 1, 'remove_ban', 'Remove Ban'), (266, 1, 'status', 'Status'), (267, 1, 'copyright', 'Copyright'), (268, 1, 'delete_all', 'Delete All'), (269, 1, 'registration_system', 'Registration System'), (270, 1, 'comment_system', 'Comment System'), (271, 1, 'confirm_page', 'Are you sure you want to delete this page?'), (272, 1, 'confirm_poll', 'Are you sure you want to delete this poll?'), (273, 1, 'confirm_post', 'Are you sure you want to delete this post?'), (274, 1, 'confirm_category', 'Are you sure you want to delete this category?'), (275, 1, 'confirm_comment', 'Are you sure you want to delete this comment?'), (276, 1, 'confirm_message', 'Are you sure you want to delete this message?'), (277, 1, 'confirm_user', 'Are you sure you want to delete this user?'), (278, 1, 'confirm_email', 'Are you sure you want to delete this email address?'), (279, 1, 'confirm_image', 'Are you sure you want to delete this image?'), (280, 1, 'confirm_ban', 'Are you sure you want to ban this user?'), (281, 1, 'confirm_remove_ban', 'Are you sure you want to remove ban for this user?'), (282, 1, 'confirm_link', 'Are you sure you want to delete this link?'), (283, 1, 'confirm_language', 'Are you sure you want to delete this language?'), (284, 1, 'confirm_posts', 'Are you sure you want to delete selected posts?'), (285, 1, 'confirm_comments', 'Are you sure you want to delete selected comments?'), (286, 1, 'msg_suc_added', 'successfully added!'), (287, 1, 'msg_suc_updated', 'successfully updated!'), (288, 1, 'msg_suc_deleted', 'successfully deleted!'), (289, 1, 'msg_error', 'An error occurred please try again!'), (290, 1, 'msg_email_sent', 'Email successfully sent!'), (291, 1, 'msg_role_changed', 'User role successfully changed!'), (292, 1, 'msg_delete_subcategories', 'Please delete subcategories belonging to this category first!'), (293, 1, 'msg_delete_posts', 'Please delete posts belonging to this category first!'), (294, 1, 'msg_delete_images', 'Please delete images belonging to this category first!'), (295, 1, 'msg_add_slider', 'Post added to slider!'), (296, 1, 'msg_remove_slider', 'Post removed from slider!'), (297, 1, 'msg_add_picked', 'Post added to our picks!'), (298, 1, 'msg_remove_picked', 'Post removed from our picks!'), (299, 1, 'msg_post_approved', 'Post approved!'), (300, 1, 'msg_img_uploaded', 'Image Successfully Uploaded!'), (301, 1, 'msg_page_delete', 'Default pages can not be deleted!'), (302, 1, 'msg_user_banned', 'User successfully banned!'), (303, 1, 'msg_ban_removed', 'User ban successfully removed!'), (304, 1, 'msg_recaptcha', 'Please confirm that you are not a robot!'), (305, 1, 'google_recaptcha', 'Google reCAPTCHA'), (306, 1, 'site_key', 'Site Key'), (307, 1, 'secret_key', 'Secret Key'), (308, 1, 'language_settings', 'Language Settings'), (309, 1, 'default_language', 'Default Language'), (310, 1, 'add_language', 'Add Language'), (311, 1, 'language_name', 'Language Name'), (312, 1, 'language_code', 'Language Code'), (313, 1, 'short_form', 'Short Form'), (314, 1, 'text_direction', 'Text Direction'), (315, 1, 'left_to_right', 'Left to Right'), (316, 1, 'right_to_left', 'Right to Left'), (317, 1, 'inactive', 'Inactive'), (318, 1, 'languages', 'Languages'), (319, 1, 'folder_name', 'Folder Name'), (320, 1, 'order', 'Order'), (321, 1, 'msg_language_delete', 'Default language cannot be deleted!'), (322, 1, 'phrases', 'Phrases'), (323, 1, 'back', 'Back'), (324, 1, 'update_language', 'Update Language'), (325, 1, 'msg_page_slug_error', 'Invalid page slug!'), (326, 1, 'shared', 'Shared'), (327, 1, 'update_subcategory', 'Update Subcategory'), (328, 1, 'site_description', 'Site Description'), (329, 1, 'download_sitemap', 'Download Sitemap'), (330, 1, 'update_sitemap', 'Update Sitemap'), (331, 1, 'settings_language', 'Settings Language'), (332, 1, 'multilingual_system', 'Multilingual System'), (333, 1, 'enable', 'Enable'), (334, 1, 'disable', 'Disable'), (335, 1, 'view_results', 'View Results'), (336, 1, 'emoji_reactions', 'Emoji Reactions'), (337, 1, 'whats_your_reaction', 'What\'s Your Reaction?'), (338, 1, 'like', 'Like'), (339, 1, 'dislike', 'Dislike'), (340, 1, 'love', 'Love'), (341, 1, 'funny', 'Funny'), (342, 1, 'angry', 'Angry'), (343, 1, 'sad', 'Sad'), (344, 1, 'wow', 'Wow'), (345, 1, 'poll', 'Poll'), (346, 1, 'polls', 'Polls'), (347, 1, 'add_poll', 'Add Poll'), (348, 1, 'option_1', 'Option 1'), (349, 1, 'option_2', 'Option 2'), (350, 1, 'option_3', 'Option 3'), (351, 1, 'option_4', 'Option 4'), (352, 1, 'option_5', 'Option 5'), (353, 1, 'option_6', 'Option 6'), (354, 1, 'option_7', 'Option 7'), (355, 1, 'option_8', 'Option 8'), (356, 1, 'option_9', 'Option 9'), (357, 1, 'option_10', 'Option 10'), (358, 1, 'optional', 'Optional'), (359, 1, 'question', 'Question'), (360, 1, 'all_users_can_vote', 'All Users Can Vote'), (361, 1, 'filter', 'Filter'), (362, 1, 'post_type', 'Post Type'), (363, 1, 'publish', 'Publish'), (364, 1, 'date_publish', 'Date Publish'), (365, 1, 'post_details', 'Post Details'), (366, 1, 'save_draft', 'Save as Draft'), (367, 1, 'slider_posts', 'Slider Posts'), (368, 1, 'drafts', 'Drafts'), (369, 1, 'slider_order', 'Slider Order'), (370, 1, 'update_poll', 'Update Poll'), (371, 1, 'voting_poll', 'Voting Poll'), (372, 1, 'view_options', 'View Options'), (373, 1, 'vote', 'Vote'), (374, 1, 'total_vote', 'Total Vote:'), (375, 1, 'voted_message', 'You already voted this poll before.'), (376, 1, 'profile', 'Profile'), (377, 1, 'about_me', 'About Me'), (378, 1, 'form_validation_required', 'The {field} field is required.'), (379, 1, 'form_validation_min_length', 'The {field} field must be at least {param} characters in length.'), (380, 1, 'form_validation_max_length', 'The {field} field cannot exceed {param} characters in length.'), (381, 1, 'form_validation_matches', 'The {field} field does not match the {param} field.'), (382, 1, 'form_validation_is_unique', 'The {field} field must contain a unique value.'), (383, 1, 'msg_updated', 'Changes successfully saved!'), (384, 1, 'msg_deleted', 'Item successfully deleted!'), (385, 1, 'video', 'Video'), (386, 1, 'add_video', 'Add Video'), (387, 1, 'get_video_from_url', 'Get Video from Url'), (388, 1, 'get_video', 'Get Video'), (389, 1, 'video_url', 'Video Url'), (390, 1, 'video_embed_code', 'Video Embed Code'), (391, 1, 'video_thumbnails', 'Video Thumbnails'), (392, 1, 'video_image', 'Video Image'), (393, 1, 'or', 'or'), (394, 1, 'add_image_url', 'Add Image Url'), (395, 1, 'update_video', 'Update Video'), (396, 1, 'admin_panel_link', 'Admin Panel Link'), (397, 1, 'social_accounts', 'Social Accounts'), (398, 1, 'msg_username_unique_error', 'The username has already been taken.'), (399, 1, 'msg_slug_used', 'The slug you entered is being used by another user!'), (400, 1, 'just_now', 'Just Now'), (401, 1, 'minute_ago', 'minute ago'), (402, 1, 'minutes_ago', 'minutes ago'), (403, 1, 'hour_ago', 'hour ago'), (404, 1, 'hours_ago', 'hours ago'), (405, 1, 'day_ago', 'day ago'), (406, 1, 'days_ago', 'days ago'), (407, 1, 'month_ago', 'month ago'), (408, 1, 'months_ago', 'months ago'), (409, 1, 'year_ago', 'year ago'), (410, 1, 'years_ago', 'years ago'), (411, 1, 'follow', 'Follow'), (412, 1, 'unfollow', 'Unfollow'), (413, 1, 'following', 'Following'), (414, 1, 'followers', 'Followers'), (415, 1, 'member_since', 'Member since'), (416, 1, 'show_email_on_profile', 'Show Email on Profile Page'), (417, 1, 'cache_system', 'Cache System'), (418, 1, 'cache_refresh_time', 'Cache Refresh Time (Minute)'), (419, 1, 'cache_refresh_time_exp', 'After this time, your cache files will be refreshed.'), (420, 1, 'refresh_cache_database_changes', 'Refresh Cache Files When Database Changes'), (421, 1, 'reset_cache', 'Reset Cache'), (422, 1, 'msg_reset_cache', 'All cache files have been deleted!'), (423, 1, 'terms_conditions', 'Terms & Conditions'), (424, 1, 'terms_conditions_exp', 'I have read and agree to the'), (425, 1, 'email_option_contact_messages', 'Send contact messages to email address'), (426, 1, 'admin_emails_will_send', 'Admin emails will be sent to this address'), (427, 1, 'email_options', 'Email Options'), (428, 1, 'gmail_warning', 'To send e-mails with Gmail server, please read Email Settings section in our documentation.'), (429, 1, 'logo_email', 'Logo Email'), (430, 1, 'mail_library', 'Mail Library'), (431, 1, 'contact_message', 'Contact Message'), (432, 1, 'subscribers', 'Subscribers'), (433, 1, 'preview', 'Preview'), (434, 1, 'send_email_subscribers', 'Send Email to Subscribers'), (435, 1, 'msg_subscriber_deleted', 'Subscriber successfully deleted!'), (436, 1, 'confirm_subscriber', 'Are you sure you want to delete this subscriber?'), (437, 1, 'unsubscribe', 'Unsubscribe'), (438, 1, 'unsubscribe_successful', 'Unsubscribe Successful!'), (439, 1, 'msg_unsubscribe', 'You will no longer receive emails from us!'), (440, 1, 'email_reset_password', 'Please click on the button below to reset your password.'), (441, 1, 'msg_reset_password_success', 'We\'ve sent an email for resetting your password to your email address. Please check your email for next steps.'), (442, 1, 'forgot_password', '<PASSWORD> Password'), (443, 1, 'new_password', '<PASSWORD>'), (444, 1, 'album', 'Album'), (445, 1, 'albums', 'Albums'), (446, 1, 'gallery_albums', 'Gallery Albums'), (447, 1, 'add_album', 'Add Album'), (448, 1, 'album_name', 'Album Name'), (449, 1, 'msg_delete_album', 'Please delete categories belonging to this album first!'), (450, 1, 'confirm_album', 'Are you sure you want to delete this album?'), (451, 1, 'update_album', 'Update Album'), (452, 1, 'select_multiple_images', 'You can select multiple images.'), (453, 1, 'album_cover', 'Album Cover'), (454, 1, 'set_as_album_cover', 'Set as Album Cover'), (455, 1, 'rss_feeds', 'RSS Feeds'), (456, 1, 'cookies_warning', 'Cookies Warning'), (457, 1, 'show_cookies_warning', 'Show Cookies Warning'), (458, 1, 'uploading', 'Uploading...'), (459, 1, 'add_user', 'Add User'), (460, 1, 'msg_user_added', 'User successfully added!'), (461, 1, 'leave_your_comment', 'Leave your comment...'), (462, 1, 'post_comment', 'Post Comment'), (463, 1, 'comment_approval_system', 'Comment Approval System'), (464, 1, 'approved_comments', 'Approved Comments'), (465, 1, 'pending_comments', 'Pending Comments'), (466, 1, 'recently_added_comments', 'Recently added comments'), (467, 1, 'recently_added_unapproved_comments', 'Recently added unapproved comments'), (468, 1, 'recently_added_contact_messages', 'Recently added contact messages'), (469, 1, 'recently_registered_users', 'Recently registered users'), (470, 1, 'msg_comment_sent_successfully', 'Your comment has been sent. It will be published after being reviewed by the site management.'), (471, 1, 'msg_comment_approved', 'Comment successfully approved!'), (472, 1, 'please_select_option', 'Please select an option!'), (473, 1, 'post_owner', 'Post Owner'), (474, 1, 'timezone', 'Timezone'), (475, 1, 'themes', 'Themes'), (476, 1, 'activated', 'Activated'), (477, 1, 'activate', 'Activate'), (478, 1, 'light_mode', 'Light Mode'), (479, 1, 'dark_mode', 'Dark Mode'), (480, 1, 'approve_posts_before_publishing', 'Approve Posts Before Publishing'), (481, 1, 'emoji_reactions_type', 'Emoji Reactions Type'), (482, 1, 'gif_animated', 'GIF (Animated)'), (483, 1, 'png_not_animated', 'PNG (Not Animated)'), (484, 1, 'text_editor_language', 'Text Editor Language'), (485, 1, 'site_language', 'Site Language'), (486, 1, 'social_login_settings', 'Social Login Settings'), (487, 1, 'app_id', 'App ID'), (488, 1, 'app_secret', 'App Secret'), (489, 1, 'client_id', 'Client ID'), (490, 1, 'client_secret', 'Client Secret'), (491, 1, 'connect_with_facebook', 'Connect with Facebook'), (492, 1, 'connect_with_google', 'Connect with Google'), (493, 1, 'or_register_with_email', 'Or register with email'), (494, 1, 'or_login_with_email', 'Or login with email'), (495, 1, 'username_or_email', 'Username or email'), (496, 1, 'msg_register_success', 'Your account has been created successfully!'), (497, 1, 'files', 'Files'), (498, 1, 'files_exp', 'Downloadable additional files (.pdf, .docx, .zip etc..)'), (499, 1, 'select_file', 'Select File'), (500, 1, 'main_post_image', 'Main post image'), (501, 1, 'more_main_images', 'More main images (slider will be active)'), (502, 1, 'upload_image', 'Upload Image'), (503, 1, 'drag_drop_files_here', 'Drag and drop files here or'), (504, 1, 'browse_files', 'Browse Files'), (505, 1, 'txt_processing', 'Processing...'), (506, 1, 'file_upload', 'File Upload'), (507, 1, 'msg_register_character_error', 'You cannot use the @ character in the username!'), (508, 1, 'google_adsense_code', 'Google Adsense Code'), (509, 1, 'edit_translations', 'Edit Translations'), (510, 1, 'mobile_logo', 'Mobile Logo'), (511, 1, 'import_rss_feed', 'Import RSS Feed'), (512, 1, 'feed_name', 'Feed Name'), (513, 1, 'feed_url', 'Feed URL'), (514, 1, 'number_of_posts_import', 'Number of Posts to Import'), (515, 1, 'show_images_from_original_source', 'Show Images from Original Source'), (516, 1, 'download_images_my_server', 'Download Images to My Server'), (517, 1, 'auto_update', 'Auto Update'), (518, 1, 'show_read_more_button', 'Show Read More Button'), (519, 1, 'add_posts_as_draft', 'Add Posts as Draft'), (520, 1, 'read_more_button_text', 'Read More Button Text'), (521, 1, 'update', 'Update'), (522, 1, 'msg_rss_warning', 'If you chose to download the images to your server, adding posts will take more time and will use more resources. If you see any problems, increase \'max_execution_time\' and \'memory_limit\' values from your server settings.'), (523, 1, 'msg_cron_feed', 'With this URL you can automatically update your feeds.'), (524, 1, 'update_rss_feed', 'Update Rss Feed'), (525, 1, 'feed', 'Feed'), (526, 1, 'generate_keywords_from_title', 'Generate Keywords from Title'), (527, 1, 'confirm_item', 'Are you sure you want to delete this item?'), (528, 1, 'file_manager', 'File Manager'), (529, 1, 'show_all_files', 'Show all Files'), (530, 1, 'show_only_own_files', 'Show Only Users Own Files'), (531, 1, 'maintenance_mode', 'Maintenance Mode'), (532, 1, 'msg_cron_sitemap', 'With this URL you can automatically update your sitemap.'), (533, 1, 'custom_css_codes', 'Custom CSS Codes'), (534, 1, 'custom_javascript_codes', 'Custom JavaScript Codes'), (535, 1, 'custom_css_codes_exp', 'These codes will be added to the header of the site.'), (536, 1, 'custom_javascript_codes_exp', 'These codes will be added to the footer of the site.'), (537, 1, 'font_settings', 'Font Settings'), (538, 1, 'site_font', 'Site Font'), (539, 1, 'add_font', 'Add Font'), (540, 1, 'font_family', 'Font Family'), (541, 1, 'fonts', 'Fonts'), (542, 1, 'update_font', 'Update Font'), (543, 1, 'msg_item_added', 'Item successfully added!'), (544, 1, 'all_posts', 'All Posts'); -- -------------------------------------------------------- -- -- Table structure for table `pages` -- CREATE TABLE `pages` ( `id` int(11) NOT NULL, `lang_id` tinyint(4) DEFAULT 1, `title` varchar(500) DEFAULT NULL, `page_description` varchar(500) DEFAULT NULL, `page_keywords` varchar(500) DEFAULT NULL, `slug` varchar(500) DEFAULT NULL, `is_custom` tinyint(1) DEFAULT 1, `page_content` longtext DEFAULT NULL, `page_order` int(11) DEFAULT 5, `page_active` tinyint(1) DEFAULT 1, `title_active` tinyint(1) DEFAULT 1, `breadcrumb_active` tinyint(1) DEFAULT 1, `right_column_active` tinyint(1) DEFAULT 1, `need_auth` tinyint(1) DEFAULT 0, `location` varchar(255) DEFAULT 'header', `link` varchar(1000) DEFAULT NULL, `parent_id` int(11) DEFAULT 0, `created_at` timestamp NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `pages` -- INSERT INTO `pages` (`id`, `lang_id`, `title`, `page_description`, `page_keywords`, `slug`, `is_custom`, `page_content`, `page_order`, `page_active`, `title_active`, `breadcrumb_active`, `right_column_active`, `need_auth`, `location`, `link`, `parent_id`, `created_at`) VALUES (1, 1, 'Gallery', 'Gallery Page', 'gallery, infinite', 'gallery', 0, NULL, 5, 1, 1, 1, 0, 0, 'header', NULL, 0, '2020-08-04 00:07:21'), (2, 1, 'Contact', 'Contact Page', 'contact, infinite', 'contact', 0, NULL, 6, 1, 1, 1, 0, 0, 'header', NULL, 0, '2020-08-04 00:07:21'), (3, 1, 'Terms & Conditions', 'Terms & Conditions Page', 'terms, conditions, infinite', 'terms-conditions', 0, NULL, 1, 1, 1, 1, 0, 0, 'footer', NULL, 0, '2020-08-04 00:07:21'); -- -------------------------------------------------------- -- -- Table structure for table `photos` -- CREATE TABLE `photos` ( `id` int(11) NOT NULL, `lang_id` tinyint(4) DEFAULT 1, `title` varchar(500) DEFAULT NULL, `album_id` int(11) DEFAULT 1, `category_id` int(11) DEFAULT NULL, `path_big` varchar(255) DEFAULT NULL, `path_small` varchar(255) DEFAULT NULL, `is_album_cover` tinyint(1) NOT NULL DEFAULT 0, `created_at` timestamp NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `polls` -- CREATE TABLE `polls` ( `id` int(11) NOT NULL, `lang_id` tinyint(4) DEFAULT 1, `question` text DEFAULT NULL, `option1` text DEFAULT NULL, `option2` text DEFAULT NULL, `option3` text DEFAULT NULL, `option4` text DEFAULT NULL, `option5` text DEFAULT NULL, `option6` text DEFAULT NULL, `option7` text DEFAULT NULL, `option8` text DEFAULT NULL, `option9` text DEFAULT NULL, `option10` text DEFAULT NULL, `status` tinyint(1) DEFAULT 1, `created_at` timestamp NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `poll_votes` -- CREATE TABLE `poll_votes` ( `id` int(11) NOT NULL, `poll_id` int(11) DEFAULT NULL, `user_id` int(11) DEFAULT NULL, `vote` varchar(100) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `posts` -- CREATE TABLE `posts` ( `id` int(11) NOT NULL, `lang_id` tinyint(4) DEFAULT 1, `title` varchar(500) DEFAULT NULL, `title_slug` varchar(500) DEFAULT NULL, `title_hash` varchar(500) DEFAULT NULL, `summary` varchar(1000) DEFAULT NULL, `content` longtext DEFAULT NULL, `keywords` varchar(500) DEFAULT NULL, `user_id` int(11) DEFAULT NULL, `category_id` int(11) DEFAULT NULL, `image_big` varchar(255) DEFAULT NULL, `image_mid` varchar(255) DEFAULT NULL, `image_small` varchar(255) DEFAULT NULL, `image_slider` varchar(255) DEFAULT NULL, `image_mime` varchar(100) DEFAULT 'jpg', `is_slider` tinyint(1) DEFAULT 0, `is_picked` tinyint(1) DEFAULT 0, `hit` int(11) DEFAULT 0, `slider_order` tinyint(4) DEFAULT 0, `optional_url` varchar(1000) DEFAULT NULL, `post_type` varchar(30) DEFAULT 'post', `video_url` varchar(1000) DEFAULT NULL, `video_embed_code` varchar(1000) DEFAULT NULL, `image_url` varchar(1000) DEFAULT NULL, `need_auth` tinyint(1) DEFAULT 0, `feed_id` int(11) DEFAULT NULL, `post_url` varchar(1000) DEFAULT NULL, `show_post_url` tinyint(1) DEFAULT 1, `visibility` tinyint(1) DEFAULT 1, `status` tinyint(1) DEFAULT 1, `created_at` timestamp NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `post_files` -- CREATE TABLE `post_files` ( `id` int(11) NOT NULL, `post_id` int(11) DEFAULT NULL, `file_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `post_images` -- CREATE TABLE `post_images` ( `id` int(11) NOT NULL, `post_id` int(11) DEFAULT NULL, `image_path` varchar(500) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `reactions` -- CREATE TABLE `reactions` ( `id` int(11) NOT NULL, `post_id` int(11) DEFAULT NULL, `re_like` int(11) DEFAULT 0, `re_dislike` int(11) DEFAULT 0, `re_love` int(11) DEFAULT 0, `re_funny` int(11) DEFAULT 0, `re_angry` int(11) DEFAULT 0, `re_sad` int(11) DEFAULT 0, `re_wow` int(11) DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `reading_lists` -- CREATE TABLE `reading_lists` ( `id` int(11) NOT NULL, `post_id` int(11) DEFAULT NULL, `user_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `rss_feeds` -- CREATE TABLE `rss_feeds` ( `id` int(11) NOT NULL, `lang_id` int(11) DEFAULT 1, `feed_name` varchar(500) DEFAULT NULL, `feed_url` varchar(1000) DEFAULT NULL, `post_limit` smallint(6) DEFAULT NULL, `category_id` int(11) DEFAULT NULL, `image_saving_method` varchar(30) DEFAULT 'url', `generate_keywords_from_title` tinyint(1) NOT NULL DEFAULT 1, `auto_update` tinyint(1) DEFAULT 1, `read_more_button` tinyint(1) DEFAULT 1, `read_more_button_text` varchar(255) DEFAULT 'Read More', `user_id` int(11) DEFAULT NULL, `add_posts_as_draft` tinyint(1) DEFAULT 0, `is_cron_updated` tinyint(1) NOT NULL DEFAULT 0, `created_at` timestamp NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `settings` -- CREATE TABLE `settings` ( `id` int(11) NOT NULL, `lang_id` tinyint(4) DEFAULT 1, `application_name` varchar(255) DEFAULT 'Infinite', `site_title` varchar(255) DEFAULT NULL, `home_title` varchar(255) DEFAULT NULL, `site_description` varchar(500) DEFAULT NULL, `keywords` varchar(500) DEFAULT NULL, `primary_font` smallint(6) DEFAULT 19, `secondary_font` smallint(6) DEFAULT 25, `facebook_url` varchar(500) DEFAULT NULL, `twitter_url` varchar(500) DEFAULT NULL, `instagram_url` varchar(500) DEFAULT NULL, `pinterest_url` varchar(500) DEFAULT NULL, `linkedin_url` varchar(500) DEFAULT NULL, `vk_url` varchar(500) DEFAULT NULL, `telegram_url` varchar(500) DEFAULT NULL, `youtube_url` varchar(500) DEFAULT NULL, `optional_url_button_name` varchar(500) DEFAULT 'Click Here to Visit', `about_footer` varchar(1000) DEFAULT NULL, `contact_text` text DEFAULT NULL, `contact_address` varchar(500) DEFAULT NULL, `contact_email` varchar(255) DEFAULT NULL, `contact_phone` varchar(255) DEFAULT NULL, `copyright` varchar(500) DEFAULT 'Copyright 2099 Infinite - All Rights Reserved.', `cookies_warning` tinyint(1) DEFAULT 0, `cookies_warning_text` text DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `settings` -- INSERT INTO `settings` (`id`, `lang_id`, `application_name`, `site_title`, `home_title`, `site_description`, `keywords`, `primary_font`, `secondary_font`, `facebook_url`, `twitter_url`, `instagram_url`, `pinterest_url`, `linkedin_url`, `vk_url`, `telegram_url`, `youtube_url`, `optional_url_button_name`, `about_footer`, `contact_text`, `contact_address`, `contact_email`, `contact_phone`, `copyright`, `cookies_warning`, `cookies_warning_text`) VALUES (1, 1, 'Infinite', 'Infinite - Blog Magazine Script', 'Index', 'Infinite - Blog Magazine Script', 'Infinite, Blog, Magazine', 19, 25, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Click Here to Visit', NULL, NULL, NULL, NULL, NULL, 'Copyright 2099 Infinite - All Rights Reserved.', 1, '<p>This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies <a href=\"#">Find out more here</a></p>'); -- -------------------------------------------------------- -- -- Table structure for table `subscribers` -- CREATE TABLE `subscribers` ( `id` int(11) NOT NULL, `email` varchar(255) DEFAULT NULL, `token` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `tags` -- CREATE TABLE `tags` ( `id` int(11) NOT NULL, `post_id` int(11) DEFAULT NULL, `tag` varchar(255) DEFAULT NULL, `tag_slug` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `username` varchar(255) DEFAULT NULL, `slug` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT '<EMAIL>', `password` varchar(255) DEFAULT NULL, `token` varchar(255) DEFAULT NULL, `role` varchar(30) DEFAULT 'user', `user_type` varchar(30) DEFAULT 'registered', `google_id` varchar(255) DEFAULT NULL, `facebook_id` varchar(255) DEFAULT NULL, `avatar` varchar(255) DEFAULT NULL, `status` tinyint(1) DEFAULT 1, `about_me` varchar(5000) DEFAULT NULL, `last_seen` timestamp NULL DEFAULT NULL, `facebook_url` varchar(500) DEFAULT NULL, `twitter_url` varchar(500) DEFAULT NULL, `instagram_url` varchar(500) DEFAULT NULL, `pinterest_url` varchar(500) DEFAULT NULL, `linkedin_url` varchar(500) DEFAULT NULL, `vk_url` varchar(500) DEFAULT NULL, `telegram_url` varchar(500) DEFAULT NULL, `youtube_url` varchar(500) DEFAULT NULL, `show_email_on_profile` tinyint(1) DEFAULT 1, `site_color` varchar(30) DEFAULT 'default', `site_mode` varchar(10) DEFAULT 'light', `created_at` timestamp NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Indexes for dumped tables -- -- -- Indexes for table `ad_spaces` -- ALTER TABLE `ad_spaces` ADD PRIMARY KEY (`id`); -- -- Indexes for table `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`), ADD KEY `idx_lang_id` (`lang_id`), ADD KEY `idx_parent_id` (`parent_id`); -- -- Indexes for table `ci_sessions` -- ALTER TABLE `ci_sessions` ADD KEY `ci_sessions_timestamp` (`timestamp`); -- -- Indexes for table `comments` -- ALTER TABLE `comments` ADD PRIMARY KEY (`id`), ADD KEY `idx_parent_id` (`parent_id`), ADD KEY `idx_post_id` (`post_id`), ADD KEY `idx_user_id` (`user_id`), ADD KEY `idx_status` (`status`); -- -- Indexes for table `contacts` -- ALTER TABLE `contacts` ADD PRIMARY KEY (`id`); -- -- Indexes for table `files` -- ALTER TABLE `files` ADD PRIMARY KEY (`id`), ADD KEY `idx_user_id` (`user_id`); -- -- Indexes for table `followers` -- ALTER TABLE `followers` ADD PRIMARY KEY (`id`), ADD KEY `idx_following_id` (`following_id`), ADD KEY `idx_follower_id` (`follower_id`); -- -- Indexes for table `fonts` -- ALTER TABLE `fonts` ADD PRIMARY KEY (`id`); -- -- Indexes for table `gallery_albums` -- ALTER TABLE `gallery_albums` ADD PRIMARY KEY (`id`); -- -- Indexes for table `gallery_categories` -- ALTER TABLE `gallery_categories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `general_settings` -- ALTER TABLE `general_settings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `images` -- ALTER TABLE `images` ADD PRIMARY KEY (`id`), ADD KEY `idx_user_id` (`user_id`); -- -- Indexes for table `languages` -- ALTER TABLE `languages` ADD PRIMARY KEY (`id`); -- -- Indexes for table `language_translations` -- ALTER TABLE `language_translations` ADD PRIMARY KEY (`id`), ADD KEY `idx_lang_id` (`lang_id`); -- -- Indexes for table `pages` -- ALTER TABLE `pages` ADD PRIMARY KEY (`id`); -- -- Indexes for table `photos` -- ALTER TABLE `photos` ADD PRIMARY KEY (`id`); -- -- Indexes for table `polls` -- ALTER TABLE `polls` ADD PRIMARY KEY (`id`); -- -- Indexes for table `poll_votes` -- ALTER TABLE `poll_votes` ADD PRIMARY KEY (`id`); -- -- Indexes for table `posts` -- ALTER TABLE `posts` ADD PRIMARY KEY (`id`), ADD KEY `idx_lang_id` (`lang_id`), ADD KEY `idx_category_id` (`category_id`), ADD KEY `idx_is_slider` (`is_slider`), ADD KEY `idx_is_picked` (`is_picked`), ADD KEY `idx_visibility` (`visibility`), ADD KEY `idx_status` (`status`), ADD KEY `idx_created_at` (`created_at`), ADD KEY `idx_user_id` (`user_id`); -- -- Indexes for table `post_files` -- ALTER TABLE `post_files` ADD PRIMARY KEY (`id`); -- -- Indexes for table `post_images` -- ALTER TABLE `post_images` ADD PRIMARY KEY (`id`); -- -- Indexes for table `reactions` -- ALTER TABLE `reactions` ADD PRIMARY KEY (`id`); -- -- Indexes for table `reading_lists` -- ALTER TABLE `reading_lists` ADD PRIMARY KEY (`id`); -- -- Indexes for table `rss_feeds` -- ALTER TABLE `rss_feeds` ADD PRIMARY KEY (`id`); -- -- Indexes for table `settings` -- ALTER TABLE `settings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `subscribers` -- ALTER TABLE `subscribers` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tags` -- ALTER TABLE `tags` ADD PRIMARY KEY (`id`), ADD KEY `idx_post_id` (`post_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `ad_spaces` -- ALTER TABLE `ad_spaces` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `comments` -- ALTER TABLE `comments` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `contacts` -- ALTER TABLE `contacts` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `files` -- ALTER TABLE `files` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `followers` -- ALTER TABLE `followers` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `fonts` -- ALTER TABLE `fonts` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33; -- -- AUTO_INCREMENT for table `gallery_albums` -- ALTER TABLE `gallery_albums` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `gallery_categories` -- ALTER TABLE `gallery_categories` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `general_settings` -- ALTER TABLE `general_settings` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `images` -- ALTER TABLE `images` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `languages` -- ALTER TABLE `languages` MODIFY `id` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `language_translations` -- ALTER TABLE `language_translations` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=544; -- -- AUTO_INCREMENT for table `pages` -- ALTER TABLE `pages` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `photos` -- ALTER TABLE `photos` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `polls` -- ALTER TABLE `polls` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `poll_votes` -- ALTER TABLE `poll_votes` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `posts` -- ALTER TABLE `posts` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `post_files` -- ALTER TABLE `post_files` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `post_images` -- ALTER TABLE `post_images` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `reactions` -- ALTER TABLE `reactions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `reading_lists` -- ALTER TABLE `reading_lists` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `rss_feeds` -- ALTER TABLE `rss_feeds` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `settings` -- ALTER TABLE `settings` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `subscribers` -- ALTER TABLE `subscribers` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `tags` -- ALTER TABLE `tags` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>Shuttl-Tech/antlr_psql -- file:numeric_big.sql ln:44 expect:true INSERT INTO num_exp_add VALUES (0,2,'-994877526002806872754342148749241.04353023451866590387054959174736129501310680280823383331007646306243540953499740615246583399296334239109936336446284803020643582102868247857009494139535009572740621288230740389545481395')
-- Create table schema for 6 CSV files, remembering to specify data types and keys. create table departments ( dept_no varchar, dept_name varchar ); select * from departments; create table dept_employee ( emp_no int, dept_no varchar ); select * from dept_employee; create table dept_manager ( dept_no varchar, emp_no int ); select * from dept_employee create table employee_info ( emp_no int, emp_title varchar, birth_date date, first_name varchar, last_name varchar, sex varchar, hire_date date ); select * from employee_info create table salaries ( emp_no int, salary int ); select * from salaries create table titles ( title_id varchar, title varchar ); select * from titles -- List details of each employee: employee number, last name, first name, sex, and salary. select employee_info.emp_no,employee_info.last_name,employee_info.first_name,employee_info.sex,salaries.salary from employee_info inner join salaries on employee_info.emp_no=salaries.emp_no; -- List first name, last name, hire date for employees hired in 1986. select first_name,last_name,hire_date from employee_info where extract(year from hire_date) = '1986'; -- List manager of each department with department number, department name, ID, last name, first name. select dept_manager.dept_no, departments.dept_name,dept_manager.emp_no,employee_info.last_name, employee_info.first_name from dept_manager left join departments on dept_manager.dept_no = departments.dept_no left join employee_info on dept_manager.emp_no = employee_info.emp_no order by emp_no; --List department of each employee with employee number, last name, first name, and department select employee_info.emp_no,employee_info.last_name,employee_info.first_name,dept_employee.dept_no,departments.dept_name from employee_info inner join dept_employee on employee_info.emp_no=dept_employee.emp_no inner join departments on departments.dept_no=dept_employee.dept_no order by emp_no; --List first name, last name, and sex for employees whose first name is 'Hercules' and last name begins with 'B' select * from employee_info where first_name='Hercules' and last_name like 'B%' ; --List all employees in sales dept--including employee number, last name, first name, and dept name select employee_info.emp_no, employee_info.last_name, employee_info.first_name, departments.dept_name from employee_info left join dept_employee on employee_info.emp_no=dept_employee.emp_no inner join departments on departments.dept_no=dept_employee.dept_no WHERE departments.dept_name='Sales'; --List all employees in sales and development dept, including employee number, last name, first name, and dept name select employee_info.emp_no, employee_info.last_name, employee_info.first_name, departments.dept_name from employee_info left join dept_employee on employee_info.emp_no=dept_employee.emp_no inner join departments on departments.dept_no=dept_employee.dept_no WHERE departments.dept_name in ('Sales','Development'); --In descending order, list frequency count of employee last names, i.e., how many employees share each last name select count(last_name), last_name from employee_info group by last_name order by count desc;
ALTER TABLE db_version CHANGE COLUMN required_10365_01_mangos_creature_ai_scripts required_10381_01_mangos_creature_model_race bit; DROP TABLE IF EXISTS `creature_model_race`; CREATE TABLE `creature_model_race` ( `modelid` mediumint(8) unsigned NOT NULL default '0', `racemask` mediumint(8) unsigned NOT NULL default '0', `creature_entry` mediumint(8) unsigned NOT NULL default '0' COMMENT 'option 1, modelid_N from creature_template', `modelid_racial` mediumint(8) unsigned NOT NULL default '0' COMMENT 'option 2, explicit modelid', PRIMARY KEY (`modelid`,`racemask`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Model system'; -- Data from removed hard coded shapeshift models. Mangos will not provide updates in the future. INSERT INTO creature_model_race VALUES (892, 690, 0, 8571),(2281, 690, 0, 2289),(21243, 690, 0, 21244),(20857, 690, 0, 20872); -- Drop no longer needed field ALTER TABLE creature_model_info DROP COLUMN modelid_other_team;
update ps_gamedefs.dbo.skills set reqlevel = 255 where skillid between 201 and 286 delete from ps_gamedata.dbo.charskills where skillid between 201 and 286
<reponame>simhnna/sourcegraph -- +++ -- parent: 1528395925 -- +++ BEGIN; DROP INDEX IF EXISTS sub_repo_perms_repo_id; DROP INDEX IF EXISTS sub_repo_perms_user_id; DROP INDEX IF EXISTS sub_repo_perms_version; COMMIT;
/* Navicat MySQL Data Transfer Source Server : phpstudy Source Server Version : 50553 Source Host : localhost:3306 Source Database : zzh Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2017-07-30 23:29:20 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for auth_permission -- ---------------------------- DROP TABLE IF EXISTS `auth_permission`; CREATE TABLE `auth_permission` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `pid` mediumint(8) unsigned NOT NULL, `name` char(80) NOT NULL DEFAULT '', `title` char(20) NOT NULL DEFAULT '', `is_menu` int(1) DEFAULT NULL COMMENT '是否是菜单 0:否 1:是', `icon` varchar(30) NOT NULL COMMENT '图标', `type` tinyint(1) NOT NULL DEFAULT '1', `status` tinyint(1) NOT NULL DEFAULT '1', `condition` char(100) NOT NULL DEFAULT '', `path` varchar(100) NOT NULL, `sort` int(11) NOT NULL DEFAULT '0', `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否显示', `create_time` int(11) NOT NULL, `update_time` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `pid` (`pid`) ) ENGINE=MyISAM AUTO_INCREMENT=22 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of auth_permission -- ---------------------------- INSERT INTO `auth_permission` VALUES ('1', '0', 'admin/index/index', '主页', '1', 'fa fa-android', '1', '1', '', '0', '1', '1', '0', '1501423982'); INSERT INTO `auth_permission` VALUES ('2', '0', 'admin/manage', '系统', '1', 'fa fa-cog', '1', '1', '', '0', '200', '1', '0', '1501423892'); INSERT INTO `auth_permission` VALUES ('3', '2', 'admin/role/index', '角色管理', '1', 'fa fa-user-secret', '1', '1', '', '0-2', '1', '1', '0', '1501424032'); INSERT INTO `auth_permission` VALUES ('4', '2', 'admin/permission/index', '权限列表', '1', 'fa fa-bars', '1', '1', '', '0-2', '2', '1', '0', '1501424048'); INSERT INTO `auth_permission` VALUES ('5', '4', 'admin/permission/create', '添加权限视图', '0', '', '1', '1', '', '0-2-4', '1', '0', '0', '1466686168'); INSERT INTO `auth_permission` VALUES ('6', '4', 'admin/permission/store', '添加权限操作', '0', '', '1', '1', '', '0-2-4', '1', '0', '0', '1466686168'); INSERT INTO `auth_permission` VALUES ('7', '4', 'admin/permission/edit', '编辑权限视图', '0', '', '1', '1', '', '0-2-4', '2', '0', '0', '1466686416'); INSERT INTO `auth_permission` VALUES ('8', '4', 'admin/permission/update', '编辑权限操作', '0', '', '1', '1', '', '0-2-4', '1', '0', '0', '1466686168'); INSERT INTO `auth_permission` VALUES ('9', '4', 'admin/permission/delete', '删除权限', '0', '', '1', '1', '', '0-2-4', '0', '0', '1466911172', '1466911172'); INSERT INTO `auth_permission` VALUES ('11', '0', 'admin/user/logout', '退出登录', '0', '', '1', '1', '', '0', '0', '0', '0', '0'); INSERT INTO `auth_permission` VALUES ('12', '3', 'admin/role/create', '添加角色视图', '0', '', '1', '1', '', '0-2-3', '0', '0', '0', '0'); INSERT INTO `auth_permission` VALUES ('13', '3', 'admin/role/edit', '编辑角色视图', '0', '', '1', '1', '', '0-2-3', '0', '0', '0', '0'); INSERT INTO `auth_permission` VALUES ('14', '3', 'admin/role/store', '添加角色操作', '0', '', '1', '1', '', '0-2-3', '0', '0', '0', '0'); INSERT INTO `auth_permission` VALUES ('15', '3', 'admin/role/update', '编辑角色操作', '0', '', '1', '1', '', '0-2-3', '0', '0', '0', '0'); INSERT INTO `auth_permission` VALUES ('16', '3', 'admin/role/delete', '删除角色', '0', '', '1', '1', '', '0-2-3', '0', '0', '0', '0'); -- ---------------------------- -- Table structure for auth_role -- ---------------------------- DROP TABLE IF EXISTS `auth_role`; CREATE TABLE `auth_role` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `title` char(100) NOT NULL DEFAULT '', `status` tinyint(1) NOT NULL DEFAULT '1', `rules` char(80) NOT NULL DEFAULT '', `description` text COMMENT '描述', `create_time` int(11) NOT NULL, `update_time` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of auth_role -- ---------------------------- INSERT INTO `auth_role` VALUES ('1', '管理员', '1', '2,3,12,13,14,15,16,4,5,6,7,8,9,1', '管理员', '0', '1501422933'); INSERT INTO `auth_role` VALUES ('6', '初级管理员', '1', '6,1,2,13,3,4,', '初级管理员', '1466910557', '1474193271'); INSERT INTO `auth_role` VALUES ('7', 'test', '1', '2,3,12,13,14,15,16,4,5,6,7,8,9,', '', '1501412554', '0'); INSERT INTO `auth_role` VALUES ('12', '444', '1', '1,11,', '44', '1<PASSWORD>', '0'); -- ---------------------------- -- Table structure for auth_user -- ---------------------------- DROP TABLE IF EXISTS `auth_user`; CREATE TABLE `auth_user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID', `username` char(16) NOT NULL COMMENT '用户名', `password` char(32) NOT NULL COMMENT '密码', `email` char(32) NOT NULL COMMENT '用户邮箱', `mobile` char(15) NOT NULL DEFAULT '' COMMENT '用户手机', `reg_ip` varchar(20) NOT NULL DEFAULT '0' COMMENT '注册IP', `last_login_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最后登录时间', `last_login_ip` varchar(20) NOT NULL DEFAULT '0' COMMENT '最后登录IP', `status` tinyint(4) DEFAULT '0' COMMENT '用户状态', `create_time` int(11) NOT NULL, `update_time` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`), KEY `status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COMMENT='用户表'; -- ---------------------------- -- Records of auth_user -- ---------------------------- INSERT INTO `auth_user` VALUES ('1', 'admin', 'MDAwMDAwMDAwMIS1f96yqLeX', '<EMAIL>', '18053449656', '0', '1501424062', '127.0.0.1', '1', '0', '1501424062'); INSERT INTO `auth_user` VALUES ('3', 'test123', 'MDAwMDAwMDAwMIS1f96yqLeX', '', '', '127.0.0.1', '1474193287', '2130706433', '1', '1466910101', '1474193287'); INSERT INTO `auth_user` VALUES ('12', 'test', 'MDAwMDAwMDAwMIS1f96yqLeX', '', '', '127.0.0.1', '0', '0', '1', '1474193837', '1474193837'); -- ---------------------------- -- Table structure for auth_user_role -- ---------------------------- DROP TABLE IF EXISTS `auth_user_role`; CREATE TABLE `auth_user_role` ( `uid` mediumint(8) unsigned NOT NULL, `group_id` mediumint(8) unsigned NOT NULL, UNIQUE KEY `uid_group_id` (`uid`,`group_id`), KEY `uid` (`uid`), KEY `group_id` (`group_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of auth_user_role -- ---------------------------- INSERT INTO `auth_user_role` VALUES ('1', '1'); INSERT INTO `auth_user_role` VALUES ('12', '6');
ALTER TABLE AM_APPLICATION_REGISTRATION ALTER COLUMN TOKEN_SCOPE TYPE VARCHAR(1500); DROP TABLE IF EXISTS AM_CERTIFICATE_METADATA; CREATE TABLE AM_CERTIFICATE_METADATA ( TENANT_ID INTEGER NOT NULL, ALIAS VARCHAR(45) NOT NULL, END_POINT VARCHAR(45) NOT NULL, CONSTRAINT PK_ALIAS PRIMARY KEY (ALIAS), CONSTRAINT END_POINT_CONSTRAINT UNIQUE (END_POINT) ); DROP TABLE IF EXISTS AM_APPLICATION_GROUP_MAPPING; CREATE TABLE AM_APPLICATION_GROUP_MAPPING ( APPLICATION_ID INTEGER NOT NULL, GROUP_ID VARCHAR(512) NOT NULL, TENANT VARCHAR(255), PRIMARY KEY (APPLICATION_ID,GROUP_ID,TENANT), FOREIGN KEY (APPLICATION_ID) REFERENCES AM_APPLICATION(APPLICATION_ID) ON DELETE CASCADE ON UPDATE CASCADE ); DROP TABLE IF EXISTS AM_USAGE_UPLOADED_FILES; CREATE TABLE AM_USAGE_UPLOADED_FILES ( TENANT_DOMAIN VARCHAR(255) NOT NULL, FILE_NAME VARCHAR(255) NOT NULL, FILE_TIMESTAMP TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, FILE_PROCESSED INTEGER DEFAULT 0, FILE_CONTENT BYTEA DEFAULT NULL, PRIMARY KEY (TENANT_DOMAIN, FILE_NAME, FILE_TIMESTAMP) ); DROP TABLE IF EXISTS AM_API_LC_PUBLISH_EVENTS; DROP SEQUENCE IF EXISTS AM_API_LC_PUBLISH_EVENTS_PK_SEQ; CREATE SEQUENCE AM_API_LC_PUBLISH_EVENTS_PK_SEQ; CREATE TABLE IF NOT EXISTS AM_API_LC_PUBLISH_EVENTS ( ID INTEGER NOT NULL DEFAULT NEXTVAL('AM_API_LC_PUBLISH_EVENTS_PK_SEQ'), TENANT_DOMAIN VARCHAR(500) NOT NULL, API_ID VARCHAR(500) NOT NULL, EVENT_TIME TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (ID) );
ALTER TABLE now_application_review ALTER COLUMN response_url TYPE varchar;
<reponame>FlyBase/chado<filename>schema/FBgg/main.sql CREATE SCHEMA IF NOT EXISTS gene_group; CREATE OR REPLACE FUNCTION gene_group.is_pathway(fbgg text, cvid varchar default '0003017') RETURNS bool AS $$ SELECT EXISTS( SELECT 1 FROM grp_cvterm gcvt JOIN cvterm cvt ON (gcvt.cvterm_id = cvt.cvterm_id) JOIN dbxref dbx ON (cvt.dbxref_id = dbx.dbxref_id) JOIN db ON (dbx.db_id = db.db_id) WHERE upper(db.name) = 'FBCV' AND dbx.accession = '0003017' AND gcvt.grp_id = grp.grp_id ) FROM grp WHERE grp.uniquename = fbgg ; $$ LANGUAGE SQL STABLE; DROP TABLE IF EXISTS gene_group.pathway CASCADE; CREATE TABLE gene_group.pathway AS SELECT grp.* FROM grp WHERE grp.uniquename ~ '^FBgg[0-9]+$' AND grp.is_analysis = false AND grp.is_obsolete = false AND gene_group.is_pathway(grp.uniquename) = true ; ALTER TABLE gene_group.pathway ADD COLUMN fullname text DEFAULT NULL; UPDATE gene_group.pathway SET fullname = (SELECT flybase.current_fullname(uniquename)); ALTER TABLE gene_group.pathway ADD PRIMARY KEY (grp_id); CREATE UNIQUE INDEX pathway_idx1 ON gene_group.pathway (uniquename); CREATE INDEX pathway_idx2 ON gene_group.pathway (name);
alter table `mst_project` add column if not exists `projectmodel_id` varchar(10) AFTER `projecttype_id`; update `mst_project` set `projectmodel_id` = 'IH'; alter table `mst_project` modify column if exists `projectmodel_id` varchar(10) not null; ALTER TABLE `mst_project` ADD KEY if not exists `projectmodel_id` (`projectmodel_id`); ALTER TABLE `mst_project` ADD CONSTRAINT `fk_mst_project_mst_projectmodel` FOREIGN KEY if not exists (`projectmodel_id`) REFERENCES `mst_projectmodel` (`projectmodel_id`); --- 20210919 -- tambah kolom untuk refernsi ke orderin (salesorder) alter table `mst_project` add column if not exists `orderin_id` varchar(30) AFTER `projectmodel_id`; ALTER TABLE `mst_project` ADD KEY if not exists `orderin_id` (`orderin_id`); ALTER TABLE `mst_project` ADD CONSTRAINT `fk_mst_project_trn_orderin` FOREIGN KEY if not exists (`orderin_id`) REFERENCES `trn_orderin` (`orderin_id`);
<gh_stars>1-10 CREATE TABLE example (id UUID NOT NULL, description VARCHAR(60) NOT NULL, PRIMARY KEY(id)); COMMENT ON COLUMN example.id IS '(DC2Type:uuid)'; CREATE TABLE customer (id UUID NOT NULL, name VARCHAR(60) NOT NULL, cpf CHAR(11) NOT NULL, cep CHAR(8) DEFAULT NULL, street_number VARCHAR(10) DEFAULT NULL, street_other_info VARCHAR(100) DEFAULT NULL, PRIMARY KEY(id)); COMMENT ON COLUMN customer.id IS '(DC2Type:uuid)';
DROP TABLE IF EXISTS `escalation_queue`;
-- Dumping structure for view gtas.daily_apis_counts DROP VIEW IF EXISTS `daily_apis_counts`; -- Removing temporary table and create final VIEW structure DROP TABLE IF EXISTS `daily_apis_counts`; CREATE VIEW `daily_apis_counts` AS SELECT id, DATE(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR)) AS 'day', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=0,1,NULL)) AS '1am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=1,1,NULL)) AS '2am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=2,1,NULL)) AS '3am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=3,1,NULL)) AS '4am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=4,1,NULL)) AS '5am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=5,1,NULL)) AS '6am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=6,1,NULL)) AS '7am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=7,1,NULL)) AS '8am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=8,1,NULL)) AS '9am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=9,1,NULL)) AS '10am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=10,1,NULL)) AS '11am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=11,1,NULL)) AS '12pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=12,1,NULL)) AS '1pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=13,1,NULL)) AS '2pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=14,1,NULL)) AS '3pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=15,1,NULL)) AS '4pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=16,1,NULL)) AS '5pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=17,1,NULL)) AS '6pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=18,1,NULL)) AS '7pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=19,1,NULL)) AS '8pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=20,1,NULL)) AS '9pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=21,1,NULL)) AS '10pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=22,1,NULL)) AS '11pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=23,1,NULL)) AS '12am' FROM message WHERE create_date >= DATE_FORMAT((CURRENT_DATE()-1),'%Y-%m-%d %T') AND create_date < DATE_FORMAT((CURRENT_DATE()+1),'%Y-%m-%d %T') AND raw LIKE '%PAXLST%' GROUP BY day ; -- Dumping structure for view gtas.daily_pnr_counts DROP VIEW IF EXISTS `daily_pnr_counts`; -- Removing temporary table and create final VIEW structure DROP TABLE IF EXISTS `daily_pnr_counts`; CREATE VIEW `daily_pnr_counts` AS SELECT id, DATE(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR)) AS 'day', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=0,1,NULL)) AS '1am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=1,1,NULL)) AS '2am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=2,1,NULL)) AS '3am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=3,1,NULL)) AS '4am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=4,1,NULL)) AS '5am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=5,1,NULL)) AS '6am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=6,1,NULL)) AS '7am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=7,1,NULL)) AS '8am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=8,1,NULL)) AS '9am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=9,1,NULL)) AS '10am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=10,1,NULL)) AS '11am', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=11,1,NULL)) AS '12pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=12,1,NULL)) AS '1pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=13,1,NULL)) AS '2pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=14,1,NULL)) AS '3pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=15,1,NULL)) AS '4pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=16,1,NULL)) AS '5pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=17,1,NULL)) AS '6pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=18,1,NULL)) AS '7pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=19,1,NULL)) AS '8pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=20,1,NULL)) AS '9pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=21,1,NULL)) AS '10pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=22,1,NULL)) AS '11pm', COUNT(IF(HOUR(DATE_ADD(create_date, INTERVAL (SELECT val FROM app_configuration WHERE opt LIKE '%HOURLY_ADJ%') HOUR))=23,1,NULL)) AS '12am' FROM message WHERE create_date >= DATE_FORMAT((CURRENT_DATE()-1),'%Y-%m-%d %T') AND create_date < DATE_FORMAT((CURRENT_DATE()+1),'%Y-%m-%d %T') AND raw LIKE '%PNRGOV%' GROUP BY day ; DROP VIEW IF EXISTS ytd_rule_hit_counts; DROP TABLE IF EXISTS ytd_rule_hit_counts; DROP VIEW IF EXISTS ytd_rules; DROP TABLE IF EXISTS ytd_rules; CREATE VIEW ytd_rule_hit_counts AS Select r.id as 'ruleid', r.UDR_RULE_REF as 'ruleref', COUNT(hd.id) as 'hits' FROM rule as r JOIN hit_detail as hd ON hd.rule_id = r.id GROUP BY r.id; CREATE VIEW ytd_rules AS SELECT udr.id as 'id', rm.TITLE as 'RuleName', r.hits as 'RuleHits', udr.author as 'CreatedBy', DATE_FORMAT(rm.START_DT,'%d %b %Y') as 'CreatedOn', udr.edited_by as 'LastUpdatedBy', DATE_FORMAT(udr.edit_dt,'%d %b %Y') as 'LastEditedOn' FROM udr_rule as udr, rule_meta rm, ytd_rule_hit_counts as r WHERE udr.id = r.ruleref AND rm.ID = r.ruleid; DROP VIEW IF EXISTS ytd_airport_stats; DROP TABLE IF EXISTS ytd_airport_stats; CREATE VIEW ytd_airport_stats AS SELECT a.id as 'ID', a.iata 'AIRPORT', COUNT(*) 'FLIGHTS', SUM(f.rule_hit_count) 'RULEHITS', SUM(f.list_hit_count) 'WATCHLISTHITS' FROM flight f, airport a WHERE a.country = 'USA' AND (TRIM(a.iata) = TRIM( f.origin ) OR TRIM(a.iata) = TRIM(f.destination)) GROUP BY a.iata ORDER BY COUNT(*) DESC LIMIT 5;
DROP TABLE IF EXISTS peptides_in_proteins; CREATE TABLE peptides_in_proteins LIKE peptides_in_proteins_before_homology_filtering; INSERT INTO peptides_in_proteins SELECT * FROM peptides_in_proteins_before_homology_filtering; DELETE pip FROM peptides_in_proteins as pip LEFT JOIN best_peptides_for_annotation as best USING(sequence) WHERE best.sequence is NULL ; OPTIMIZE TABLE peptides_in_proteins; DROP TABLE IF EXISTS peptide_in_proteins_sharing_grades; CREATE TEMPORARY TABLE peptide_in_proteins_sharing_grades SELECT sequence, count(entry) as protein_count FROM peptides_in_proteins GROUP BY sequence ; ALTER TABLE peptide_in_proteins_sharing_grades ADD INDEX(sequence); -- store resulting sharing grades UPDATE peptides_in_proteins JOIN peptide_in_proteins_sharing_grades USING(sequence) SET src_proteins = protein_count ; OPTIMIZE TABLE peptides_in_proteins;
<reponame>aivakha/laravel-blog-app<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Мар 06 2022 г., 13:18 -- Версия сервера: 10.4.19-MariaDB -- Версия PHP: 7.4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- База данных: `blog` -- -- -------------------------------------------------------- -- -- Структура таблицы `categories` -- CREATE TABLE `categories` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Дамп данных таблицы `categories` -- INSERT INTO `categories` (`id`, `created_at`, `updated_at`, `title`, `slug`) VALUES (1, '2021-10-28 14:23:16', '2021-10-28 14:23:16', 'est', 'est'), (2, '2021-10-28 14:23:16', '2021-10-28 14:23:16', 'nobis', 'nobis'), (3, '2021-10-28 14:23:16', '2021-10-28 14:23:16', 'iste', 'iste'), (4, '2021-10-28 14:23:16', '2021-10-28 14:23:16', 'sequi', 'sequi'), (5, '2021-10-28 14:23:16', '2021-10-28 14:23:16', 'pariatur', 'pariatur'); -- -------------------------------------------------------- -- -- Структура таблицы `comments` -- CREATE TABLE `comments` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `text` text COLLATE utf8mb4_unicode_ci NOT NULL, `user_id` int(11) NOT NULL, `post_id` int(11) NOT NULL, `status` int(11) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Дамп данных таблицы `comments` -- INSERT INTO `comments` (`id`, `created_at`, `updated_at`, `text`, `user_id`, `post_id`, `status`) VALUES (1, '2021-11-03 16:56:57', '2021-11-19 06:44:30', 'eqweqweq', 1, 13, 0), (3, '2021-11-05 09:37:18', '2021-11-19 06:44:28', 'sdfsdf', 1, 13, 0), (4, '2021-11-19 06:44:06', '2021-11-19 06:44:22', 'New comment', 14, 13, 1), (5, '2021-11-19 07:43:33', '2021-11-19 07:43:33', 'Тест', 14, 16, 0); -- -------------------------------------------------------- -- -- Структура таблицы `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Структура таблицы `jobs` -- CREATE TABLE `jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `queue` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `attempts` tinyint(3) UNSIGNED NOT NULL, `reserved_at` int(10) UNSIGNED DEFAULT NULL, `available_at` int(10) UNSIGNED NOT NULL, `created_at` int(10) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Структура таблицы `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Дамп данных таблицы `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (42, '2014_10_12_000000_create_users_table', 1), (43, '2014_10_12_100000_create_password_resets_table', 1), (44, '2019_08_19_000000_create_failed_jobs_table', 1), (45, '2019_12_14_000001_create_personal_access_tokens_table', 1), (46, '2021_10_18_170913_create_categories_table', 1), (47, '2021_10_18_171450_create_tags_table', 1), (48, '2021_10_18_171642_create_comments_table', 1), (49, '2021_10_18_171755_create_posts_table', 1), (50, '2021_10_18_171815_create_subscriptions_table', 1), (51, '2021_10_18_173302_create_posts_tags_table', 1), (52, '2021_11_28_152040_create_jobs_table', 2); -- -------------------------------------------------------- -- -- Структура таблицы `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Структура таблицы `personal_access_tokens` -- CREATE TABLE `personal_access_tokens` ( `id` bigint(20) UNSIGNED NOT NULL, `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `tokenable_id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, `abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `last_used_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Структура таблицы `posts` -- CREATE TABLE `posts` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `content` text COLLATE utf8mb4_unicode_ci NOT NULL, `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `date` date DEFAULT NULL, `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `category_id` int(11) DEFAULT NULL, `user_id` int(11) DEFAULT NULL, `status` int(11) NOT NULL DEFAULT 0, `views` int(11) NOT NULL DEFAULT 0, `is_featured` int(11) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Дамп данных таблицы `posts` -- INSERT INTO `posts` (`id`, `created_at`, `updated_at`, `title`, `slug`, `content`, `description`, `date`, `image`, `category_id`, `user_id`, `status`, `views`, `is_featured`) VALUES (1, '2021-11-03 12:54:11', '2021-11-19 07:44:58', 'Пост 1', 'post-1', '<p>цукуцкцук</p>', '<p>1213</p>', '2021-10-13', NULL, 3, 1, 0, 0, 1), (13, '2021-11-03 13:00:52', '2021-11-03 17:19:22', 'At quam earum quo excepturi eligendi molestiae.', 'at-quam-earum-quo-excepturi-eligendi-molestiae', '<p>Atque ad consequuntur veritatis sed dolores sit eos blanditiis.</p>', '<p>Est autem iure possimus laboriosam deleniti molestiae iusto dolor.</p>', '2021-11-03', '../img/photo1.png', 1, 1, 1, 662, 0), (14, '2021-11-03 13:00:52', '2021-11-03 13:00:52', 'Soluta aut dolore est non ut reiciendis tempora.', 'soluta-aut-dolore-est-non-ut-reiciendis-tempora', 'Aut vitae velit doloribus culpa dolorem.', 'Id velit qui itaque voluptates cum.', '2021-11-03', '../img/photo1.png', 5, 1, 1, 2499, 0), (15, '2021-11-03 13:00:52', '2021-11-03 13:00:52', 'Et temporibus sint praesentium ducimus.', 'et-temporibus-sint-praesentium-ducimus', 'Molestias nobis et eum.', 'Nihil enim placeat voluptatem ex.', '2021-11-03', '../img/photo1.png', 6, 1, 1, 1190, 0), (16, '2021-11-03 13:00:52', '2021-11-03 13:00:52', 'Autem omnis incidunt fuga quas aut sit.', 'autem-omnis-incidunt-fuga-quas-aut-sit', 'Amet et eos iste alias omnis rerum.', 'Accusantium accusantium et minima facere.', '2021-11-03', '../img/photo1.png', 5, 1, 1, 2126, 0), (17, '2021-11-03 13:00:52', '2021-11-03 13:00:52', 'Quaerat error iusto saepe qui eum.', 'quaerat-error-iusto-saepe-qui-eum', 'Vel repellat sunt dignissimos et aliquam.', 'Quis assumenda doloribus provident fugit.', '2021-11-03', '../img/photo1.png', 5, 1, 1, 2872, 0), (18, '2021-11-03 13:00:52', '2021-11-03 13:00:52', 'Culpa sed quam accusamus.', 'culpa-sed-quam-accusamus', 'Cupiditate harum et praesentium sed alias eum.', 'Praesentium nostrum atque ut.', '2021-11-03', '../img/photo1.png', 5, 1, 1, 4572, 0), (19, '2021-11-03 13:00:52', '2021-11-03 13:00:52', 'Aliquid quo aut occaecati numquam dolorem doloremque.', 'aliquid-quo-aut-occaecati-numquam-dolorem-doloremque', 'Et ab quo corrupti aspernatur saepe distinctio.', 'Aut odit magni sit similique omnis vitae eveniet.', '2021-11-03', '../img/photo1.png', 5, 1, 1, 861, 0), (20, '2021-11-03 13:00:52', '2021-11-03 13:00:52', 'Excepturi quod facere veniam quo cupiditate et facilis.', 'excepturi-quod-facere-veniam-quo-cupiditate-et-facilis', 'Debitis quo nisi cum dignissimos et omnis illum.', 'Aut neque impedit minus qui nesciunt accusamus.', '2021-11-03', '../img/photo1.png', 6, 1, 1, 2085, 0), (22, '2021-11-03 13:00:52', '2021-11-03 13:00:52', 'Molestiae deleniti deleniti atque.', 'molestiae-deleniti-deleniti-atque', 'Voluptatem repellat non corrupti.', 'Ipsam sit in blanditiis minus ut iste rerum.', '2021-11-03', '../img/photo1.png', 6, 1, 1, 4849, 0), (24, '2021-11-19 07:45:30', '2021-11-19 07:45:30', 'Тест 1', 'test-1', '<p>12313</p>', '<p>1231</p>', '2021-11-27', NULL, 1, 1, 0, 0, 0); -- -------------------------------------------------------- -- -- Структура таблицы `post_tags` -- CREATE TABLE `post_tags` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `post_id` int(11) NOT NULL, `tag_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Дамп данных таблицы `post_tags` -- INSERT INTO `post_tags` (`id`, `created_at`, `updated_at`, `post_id`, `tag_id`) VALUES (1, NULL, NULL, 11, 2), (2, NULL, NULL, 6, 2), (3, NULL, NULL, 6, 4), (4, NULL, NULL, 6, 5), (5, NULL, NULL, 7, 3), (6, NULL, NULL, 7, 4), (7, NULL, NULL, 12, 1), (8, NULL, NULL, 23, 2), (9, NULL, NULL, 23, 3), (10, NULL, NULL, 23, 4), (11, NULL, NULL, 23, 5), (12, NULL, NULL, 24, 2), (13, NULL, NULL, 24, 3); -- -------------------------------------------------------- -- -- Структура таблицы `subscriptions` -- CREATE TABLE `subscriptions` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Дамп данных таблицы `subscriptions` -- INSERT INTO `subscriptions` (`id`, `created_at`, `updated_at`, `email`, `token`) VALUES (1, '2021-11-05 16:15:56', '2021-11-05 16:15:56', '<EMAIL>', '<KEY>'), (17, '2021-11-06 06:49:19', '2021-11-06 06:49:19', '<EMAIL>', '<KEY>'), (21, '2021-11-06 08:06:30', '2021-11-06 08:06:58', '<EMAIL>', NULL), (23, '2021-11-19 06:39:26', '2021-11-19 06:40:28', '<EMAIL>', NULL); -- -------------------------------------------------------- -- -- Структура таблицы `tags` -- CREATE TABLE `tags` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Дамп данных таблицы `tags` -- INSERT INTO `tags` (`id`, `created_at`, `updated_at`, `title`, `slug`) VALUES (1, '2021-10-28 14:23:03', '2021-10-28 14:23:03', 'soluta', 'soluta'), (2, '2021-10-28 14:23:03', '2021-10-28 14:23:03', 'deleniti', 'deleniti'), (3, '2021-10-28 14:23:03', '2021-10-28 14:23:03', 'sed', 'sed'), (4, '2021-10-28 14:23:03', '2021-10-28 14:23:03', 'unde', 'unde'), (5, '2021-10-28 14:23:03', '2021-10-28 14:23:03', 'deleniti', 'deleniti-1'); -- -------------------------------------------------------- -- -- Структура таблицы `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `is_admin` int(11) NOT NULL DEFAULT 0, `status` int(11) NOT NULL DEFAULT 0, `avatar` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Дамп данных таблицы `users` -- INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`, `is_admin`, `status`, `avatar`) VALUES (1, 'Oleksandr', '<EMAIL>', NULL, '$2y$10$yWbtbe/hlp7YaBbfDbrdruML2GcEHQOY5sWWOlg/fK7sfZXPAYKa.', NULL, '2021-11-03 04:30:15', '2021-11-03 10:36:14', 1, 0, 'TlAxwpbfV5.jpg'), (14, 'Admin', '<EMAIL>', NULL, '$2y$10$our/tzJJlaLHxgHNecK77O5.mrByEZbBuciGbYdVuR50t1fasXJCW', NULL, '2021-11-19 05:34:53', '2021-11-19 05:34:53', 1, 0, NULL), (15, '<NAME>', '<EMAIL>', NULL, '$2y$10$00hi4eT7J7MFZ9dH9M8w6O1fc3G2bXUyTFEvAv35Xv4uAyX2n4vda', NULL, '2021-11-28 13:19:52', '2021-11-28 13:19:52', 1, 0, NULL), (16, '<NAME>', '<EMAIL>', NULL, '$2y$10$lXn5sQzdWCKTSeAskOjtmulSne/AoeS0rDeACfuAY3Zpk6ssGKpaS', NULL, '2021-11-28 13:29:48', '2021-11-28 13:29:48', 1, 0, NULL), (17, '<NAME>', '<EMAIL>', NULL, '$2y$10$kzBTFQTSVfh1DWrvsDe2F.IG1nukkGn41IHxVCfLR4dqOgXfYR6tu', NULL, '2021-11-28 13:30:13', '2021-11-28 13:30:13', 1, 0, NULL), (18, '<NAME>', '<EMAIL>', NULL, '$2y$10$jGmw9jSR8/i514p8Z1Ru1u2hPkgcmfzCvBH8M2k5jipanTKntBmqe', NULL, '2021-11-28 13:54:26', '2021-11-28 13:54:26', 1, 0, NULL), (19, '<NAME>', '<EMAIL>', NULL, '$2y$10$pk/PEQM3pQ3NwiZKQWdmOejOjy8RSlyzOPoct2LDuJaGAy5PT5dxu', NULL, '2021-11-28 13:57:03', '2021-11-28 13:57:03', 1, 0, NULL), (20, '<NAME>', '<EMAIL>', NULL, '$2y$10$DWpOdE2lVk1gsen.dloOCOF0C0OtpaSa6DzEsOwAvozyPtQCGx7EG', NULL, '2021-11-28 13:58:26', '2021-11-28 13:58:26', 1, 0, NULL), (21, '<NAME>', '<EMAIL>', NULL, '$2y$10$1PqksjgiDOwUB5AaZZhatO3UAiT4mDyKqPIhexf/PuKaVIYyLMIby', NULL, '2021-11-28 14:06:57', '2021-11-28 14:06:57', 1, 0, NULL), (22, '<NAME>', '<EMAIL>', NULL, '$2y$10$ym.eCwhL3Hh.xwXW.boXL.WFvppgrVLep2H6C39gJ7hOlHIChS1k.', NULL, '2021-11-28 14:11:17', '2021-11-28 14:11:17', 1, 0, NULL), (23, '<NAME>', '<EMAIL>', NULL, '$2y$10$Je1g80vVZzlrhbDyvHQMeOmYVZ35qFGoU72kPKIkqIYWotqVGDSUy', NULL, '2021-11-28 14:11:52', '2021-11-28 14:11:52', 0, 0, NULL), (24, '<NAME>', '<EMAIL>', NULL, '$2y$10$LhX6Gi9ToIh.wwst1Pit6u/iJPvhSP.OXXt3EH7d/7W0ohpuDKwJG', NULL, '2021-11-28 14:12:23', '2021-11-28 14:12:23', 0, 0, NULL), (25, '<NAME>', '<EMAIL>', NULL, '$2y$10$aFBfBLtVuGSreUKC7OtwF.YB8tH4TPc.b0DG.vQf/nZXZS7wp3Khy', NULL, '2021-11-28 14:17:21', '2021-11-28 14:17:21', 0, 0, NULL), (26, '<NAME>', '<EMAIL>', NULL, '$2y$10$PPYzwARHQ5U7HGjHEUNAmeIiKpYnxq7piZ93J.2U9ezFPSmqdAMKO', NULL, '2021-11-28 14:19:16', '2021-11-28 14:19:16', 0, 0, NULL), (27, '<NAME>', '<EMAIL>', NULL, '$2y$10$k/kXroU/bALNmVBY0thj8.TgOao2JQq4pmjSvFn9.Z5eYJScvpz9e', NULL, '2021-11-28 14:57:24', '2021-11-28 14:57:24', 0, 0, NULL), (28, '<NAME>', '<EMAIL>', NULL, '$2y$10$zB6us8idtgWiT6GH3f/oXuMDepJCWT73VYTCvAWKAIxGDxuIyls/a', NULL, '2021-11-28 15:01:20', '2021-11-28 15:01:20', 0, 0, NULL), (29, '<NAME>', '<EMAIL>', NULL, '$2y$10$/KnY0JNRgcZZwje1v9Y4cOyEnxuDtyPhKY.avAAN4ssF6ShGwasBS', NULL, '2021-12-02 17:57:57', '2021-12-02 17:57:57', 0, 0, NULL), (30, '<NAME>', '<EMAIL>', NULL, '$2y$10$Uuvj3820AeNnnY2nQNs8AOFa81yLEjbJ5.j8OjxQJ1KWyrm/jYPRa', NULL, '2021-12-03 06:41:21', '2021-12-03 06:41:21', 0, 0, NULL), (31, '<NAME>', '<EMAIL>', NULL, '$2y$10$A8jtDI72pe3l4ELLSQ6dLOS0M0Bdj/zsFqreu781Z5GatqXCRCm..', NULL, '2021-12-03 07:38:46', '2021-12-03 07:38:46', 0, 0, NULL), (32, 'G<NAME>', '<EMAIL>', NULL, '$2y$10$Q6.dw6kS9RnLaW1TM/GBZ.Ylj8H5jwu3P0muz9ZxFhKq2MzcVVvkK', NULL, '2021-12-03 07:50:54', '2021-12-03 07:50:54', 0, 0, NULL); -- -- Индексы сохранённых таблиц -- -- -- Индексы таблицы `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `comments` -- ALTER TABLE `comments` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Индексы таблицы `jobs` -- ALTER TABLE `jobs` ADD PRIMARY KEY (`id`), ADD KEY `jobs_queue_index` (`queue`); -- -- Индексы таблицы `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Индексы таблицы `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`), ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`); -- -- Индексы таблицы `posts` -- ALTER TABLE `posts` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `post_tags` -- ALTER TABLE `post_tags` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `subscriptions` -- ALTER TABLE `subscriptions` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `tags` -- ALTER TABLE `tags` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT для сохранённых таблиц -- -- -- AUTO_INCREMENT для таблицы `categories` -- ALTER TABLE `categories` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT для таблицы `comments` -- ALTER TABLE `comments` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT для таблицы `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT для таблицы `jobs` -- ALTER TABLE `jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=57; -- -- AUTO_INCREMENT для таблицы `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53; -- -- AUTO_INCREMENT для таблицы `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT для таблицы `posts` -- ALTER TABLE `posts` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25; -- -- AUTO_INCREMENT для таблицы `post_tags` -- ALTER TABLE `post_tags` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT для таблицы `subscriptions` -- ALTER TABLE `subscriptions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24; -- -- AUTO_INCREMENT для таблицы `tags` -- ALTER TABLE `tags` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT для таблицы `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE VIEW ViewStatEventNonProfitOrgType AS SELECT e.Id, t.Name AS Tag, e.DateOfEvent FROM Event e INNER JOIN NonProfitOrg n ON n.Id = e.NonProfitOrgId INNER JOIN NonProfitOrgType t ON t.Id=n.TypeId WHERE e.Deleted=0
CREATE DATABASE NDShoeStore; drop database NDShoeStore; USE NDShoeStore; -- staffs CREATE TABLE Staffs( staff_id int auto_increment primary key, staff_name varchar(50), user_name varchar(50), user_pass varchar(50), staff_phone varchar(20), role int not null default 1 ); -- customers CREATE TABLE Customers( customer_id int auto_increment primary key, customer_name varchar(50), customer_phone varchar(20), customer_address varchar(50) ); -- invoices CREATE TABLE Invoices( invoice_no int auto_increment primary key, customer_id int, invoice_date datetime default now() not null, invoice_status int, staff_id int, constraint fk_Invoices_Staffs foreign key(staff_id) references Staffs(staff_id), constraint fk_Invoices_Customers foreign key(customer_id) references Customers(customer_id) ); -- sizes CREATE TABLE Sizes( size_id int auto_increment primary key, size_number int ); -- color CREATE TABLE Colors( color_id int auto_increment primary key, color_name varchar(50) ); -- Shoes CREATE TABLE Shoes( shoe_id int auto_increment primary key, shoe_name varchar(50), shoe_price double, brand_name varchar(50), shoe_quantity int, shoe_desception varchar(500) ); -- ShoeDetails CREATE TABLE ShoesDetails( shoe_id int, color_id int, size_id int, quantity int, foreign key (shoe_id) references Shoes(shoe_id), foreign key (color_id) references Colors(color_id), foreign key (size_id) references Sizes(size_id), primary key (shoe_id, color_id, size_id) ); -- InvoiceDetails CREATE TABLE InvoiceDetails( invoice_no int , shoe_id int , color_id int, size_id int, amount int, total_price double, total double, foreign key (color_id) references colors(color_id), foreign key (size_id) references sizes(size_id), foreign key (shoe_id) references Shoes(shoe_id), foreign key (invoice_no) references Invoices(invoice_no), primary key (invoice_no, shoe_id) ); delimiter $$ create trigger tg_before_insert before insert on Shoes for each row begin if new.shoe_quantity < 0 then signal sqlstate '45001' set message_text = 'tg_before_insert: quantity must > 0'; end if; end $$ delimiter ; delimiter $$ create trigger tg_CheckQuantity before update on Shoes for each row begin if new.shoe_quantity < 0 then signal sqlstate '45001' set message_text = 'tg_CheckAmount: quantity must > 0'; end if; end $$ delimiter ; delimiter $$ create procedure sp_createCustomer(IN customerName varchar(50),IN customerPhone int ,IN customerAddress varchar(50), OUT customerId int) begin insert into Customers(customer_name,customer_phone,customer_address) values (customerName,customerPhone ,customerAddress); select max(customer_id) into customerId from Customers; end $$ delimiter ; -- call sp_createCustomer('<NAME>','843234324','TP.HCM',@cusId); -- select @cusId; INSERT INTO Shoes(shoe_name,shoe_price,brand_name,shoe_quantity,shoe_desception) VALUES ('Jordan 1', '799000', 'Nike', '999', 'USA' ),('Triple S', '999000', 'Baleciaga', '999', 'USA' ), ('UrBas The Gang', '399000', 'Vintas', '999', 'VN' ),('GD limitted', '1990000', 'Nike', '9', 'KR' ), ('Jordan 4', '699000', 'Nike', '200', 'USA' ),('Classic', '799000', 'Converse', '999', 'USA' ), ('Old Skool', '599000', 'Van', '100', 'USA' ),('JD Off White', '1299000', 'Nike', '150', 'USA' ), ('Off White 1', '1299000', 'Van', '150', 'USA' ),('PG 1', '1299000', 'Nike', '150', 'USA' ), ('Saigon 1980s NE','490000','Vintas','500','VN'),('Super Star','490000','Adidas','200','JP'), ('Ultra Boost 20B','2050000','Adidas','321','JP'),('EQT 91.18','890000','Adidas','213','JP'), ('Bumper Gum Mule','490000','Basas','500','VN'),('Xsport NY F1 Mule','250000','MLB','500','KR'), ('Bata','100000','ThuongDinh','1000','VN'),('StreetBall Master','890000','Peak','0','USA') ('TaiChi','1299000','Peak','0','CN'),('RS Pure Vision','1099000','Puma','0','Germany'); INSERT INTO sizes(size_number) VALUES ('31'),('32'),('33'),('34'),('35'),('36'),('37'),('38'),('39'),('40'),('41'),('42'),('43'),('44'); INSERT INTO colors(color_name) VALUES ('red'),('blue'),('black'), ('yellow'),('pink'),('white'),('purple'),('gray'),('brown'),('black and white'),('red and white'),('blue and white'),('white and gray'),('special'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd1 black and white ('1','10','6','27'),('1','10','7','27'),('1','10','8','27'),('1','10','9','27'), ('1','10','10','27'),('1','10','11','60'),('1','10','12','27'),('1','10','13','27'),('1','10','14','28'), -- jd1 red abd white ('1','11','6','27'),('1','11','7','27'),('1','11','8','27'),('1','11','9','27'), ('1','11','10','27'),('1','11','11','60'),('1','11','12','27'),('1','11','13','27'),('1','11','14','28'), -- jd1 blue and white ('1','12','6','27'),('1','12','7','27'),('1','12','8','27'),('1','12','9','27'), ('1','12','10','27'),('1','12','11','60'),('1','12','12','27'),('1','12','13','27'),('1','12','14','28'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- triples black ('2','3','6','27'),('2','3','7','27'),('2','3','8','27'),('2','3','9','27'),('2','3','10','27'), ('2','3','11','60'),('2','3','12','27'),('2','3','13','27'),('2','3','14','27'), -- white ('2','6','6','27'),('2','6','7','27'),('2','6','8','27'),('2','6','9','27'),('2','6','10','27'),('2','6','11','60'), ('2','6','12','27'),('2','6','13','27'),('2','6','14','27'), -- black and white ('2','10','6','27'),('2','10','7','27'),('2','10','8','27'),('2','10','9','27'), ('2','10','10','27'),('2','10','11','27'),('2','10','12','27'),('2','10','13','27'),('2','10','14','27'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- thegangs black ('3','3','6','27'),('3','3','7','27'),('3','3','8','27'),('3','3','9','27'),('3','3','10','27'), ('3','3','11','60'),('3','3','12','27'),('3','3','13','27'),('3','3','14','27'), -- white ('3','6','6','27'),('3','6','7','27'),('3','6','8','27'),('3','6','9','27'),('3','6','10','27'),('3','6','11','60'), ('3','6','12','27'),('3','6','13','27'),('3','6','14','27'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- GDlm black ('4','14','9','1'),('4','14','10','2'),('4','14','11','3'),('4','14','12','2'),('4','14','13','1'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd4 black ('5','3','6','10'),('5','3','7','10'),('5','3','8','10'),('5','3','9','10'),('5','3','10','10'), ('5','3','11','30'),('5','3','12','10'),('5','3','13','10'),('5','3','14','10'), -- white ('5','6','6','5'),('5','6','7','5'),('5','6','8','5'),('5','6','9','5'),('5','6','10','5'),('5','6','11','5'), ('5','6','12','15'),('5','6','13','5'),('5','6','14','5'), -- brown ('5','9','6','5'),('5','9','7','5'),('5','9','8','5'),('5','9','9','5'),('5','9','10','5'),('5','9','11','5'), ('5','9','12','15'),('5','9','13','5'),('5','9','14','5'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd1 black and white ('6','10','6','27'),('6','10','7','27'),('6','10','8','27'),('6','10','9','27'), ('6','10','10','27'),('6','10','11','60'),('6','10','12','27'),('6','10','13','27'),('6','10','14','28'), -- jd1 red abd white ('6','11','6','27'),('6','11','7','27'),('6','11','8','27'),('6','11','9','27'), ('6','11','10','27'),('6','11','11','60'),('6','11','12','27'),('6','11','13','27'),('6','11','14','28'), -- jd1 blue and white ('6','12','6','27'),('6','12','7','27'),('6','12','8','27'),('6','12','9','27'), ('6','12','10','27'),('6','12','11','60'),('6','12','12','27'),('6','12','13','27'),('6','12','14','28'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd1 black and white ('7','10','6','12'),('7','10','7','12'),('7','10','8','12'),('7','10','9','12'), ('7','10','10','12'),('7','10','11','14'),('7','10','12','12'),('7','10','13','12'),('7','10','14','12'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd1 black and white ('8','10','6','6'),('8','10','7','6'),('8','10','8','6'),('8','10','9','6'), ('8','10','10','6'),('8','10','11','6'),('8','10','12','27'),('8','10','13','6'),('8','10','14','6'), -- jd1 red abd white ('8','11','6','6'),('8','11','7','6'),('8','11','8','6'),('8','11','9','6'), ('8','11','10','6'),('8','11','11','8'),('8','11','12','6'),('8','11','13','6'),('8','11','14','6'), -- jd1 blue and white ('8','12','6','6'),('8','12','7','6'),('8','12','8','6'),('8','12','9','6'), ('8','12','10','6'),('8','12','11','8'),('8','12','12','6'),('8','12','13','6'),('8','12','14','6'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd1 black and white ('9','10','6','16'),('9','10','7','16'),('9','10','8','16'),('9','10','9','16'), ('9','10','10','16'),('9','10','11','29'),('9','10','12','25'),('9','10','13','16'),('9','10','14','16'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- pg1 black and white ('10','14','5','15'),('10','14','6','15'),('10','14','7','15'),('10','14','8','15'),('10','14','9','15'), ('10','14','10','15'),('10','14','11','15'),('10','14','12','15'),('10','14','13','16'),('10','14','14','15'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd4 black ('11','3','5','15'),('11','3','6','15'),('11','3','7','15'),('11','3','8','15'),('11','3','9','15'),('11','3','10','15'), ('11','3','11','15'),('11','3','12','15'),('11','3','13','15'),('11','3','14','15'), -- white ('11','6','5','15'),('11','6','6','15'),('11','6','7','15'),('11','6','8','15'),('11','6','9','15'),('11','6','10','15'),('11','6','11','15'), ('11','6','12','15'),('11','6','13','15'),('11','6','14','15'), -- brown ('11','9','5','10'),('11','9','6','10'),('11','9','7','10'),('11','9','8','10'),('11','9','9','10'),('11','9','10','10'),('11','9','11','10'), ('11','9','12','10'),('11','9','13','10'),('11','9','14','10'), -- gray ('11','8','5','10'),('11','8','6','10'),('11','8','7','10'),('11','8','8','10'),('11','8','9','10'),('11','8','10','10'),('11','8','11','10'), ('11','8','12','10'),('11','8','13','10'),('11','8','14','10'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- white ('12','6','5','20'),('12','6','6','20'),('12','6','7','20'),('12','6','8','20'),('12','6','9','20'),('12','6','10','20'),('12','6','11','20'), ('12','6','12','20'),('12','6','13','20'),('12','6','14','20'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd1 black and white ('13','10','6','10'),('13','10','7','10'),('13','10','8','10'),('13','10','9','10'), ('13','10','10','10'),('13','10','11','17'),('13','10','12','10'),('13','10','13','6'),('13','10','14','10'), -- jd1 red abd white ('13','11','6','10'),('13','11','7','10'),('13','11','8','10'),('13','11','9','10'), ('13','11','10','10'),('13','11','11','17'),('13','11','12','10'),('13','11','13','10'),('13','11','14','10'), -- jd1 blue and white ('13','12','6','10'),('13','12','7','10'),('13','12','8','10'),('13','12','9','6'), ('13','12','10','10'),('13','12','11','17'),('13','12','12','10'),('13','12','13','6'),('13','12','14','10'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd1 black and white ('14','10','6','10'),('14','10','7','10'),('14','10','8','10'),('14','10','9','10'), ('14','10','10','10'),('14','10','11','17'),('14','10','12','10'),('14','10','13','6'),('14','10','14','10'), -- jd1 red abd white ('14','11','6','10'),('14','11','7','10'),('14','11','8','10'),('14','11','9','10'), ('14','11','10','10'),('14','11','11','17'),('14','11','12','10'),('14','11','13','10'),('14','11','14','10'), -- jd1 blue and white ('14','12','6','10'),('14','12','7','10'),('14','12','8','10'),('14','12','9','6'), ('14','12','10','10'),('14','12','11','17'),('14','12','12','10'),('14','12','13','6'),('14','12','14','10'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd4 black ('15','3','5','25'),('15','3','6','25'),('15','3','7','25'),('15','3','8','25'), ('15','3','9','25'),('15','3','10','25'), ('15','3','11','25'),('15','3','12','25'),('15','3','13','25'),('15','3','14','25'), -- white ('15','6','5','25'),('15','6','6','25'),('15','6','7','25'),('15','6','8','25'), ('15','6','9','25'),('15','6','10','25'),('15','6','11','25'), ('15','6','12','25'),('15','6','13','25'),('15','6','14','25'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd4 black ('16','3','5','25'),('16','3','6','25'),('16','3','7','25'),('16','3','8','25'), ('16','3','9','25'),('16','3','10','25'), ('16','3','11','25'),('16','3','12','25'),('16','3','13','25'),('16','3','14','25'), -- white ('16','6','5','25'),('16','6','6','25'),('16','6','7','25'),('16','6','8','25'), ('16','6','9','25'),('16','6','10','25'),('16','6','11','25'), ('16','6','12','25'),('16','6','13','25'),('16','6','14','25'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd4 black ('17','3','5','50'),('17','3','6','50'),('17','3','7','50'),('17','3','8','50'), ('17','3','9','50'),('17','3','10','50'), ('17','3','11','50'),('17','3','12','50'),('17','3','13','50'),('17','3','14','50'), -- white ('17','6','5','50'),('17','6','6','50'),('17','6','7','50'),('17','6','8','50'), ('17','6','9','50'),('17','6','10','50'),('17','6','11','50'), ('17','6','12','50'),('17','6','13','50'),('17','6','14','50'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd4 black ('18','3','5','15'),('18','3','6','15'),('18','3','7','15'),('18','3','8','15'), ('18','3','9','15'),('18','3','10','15'), ('18','3','11','15'),('18','3','12','15'),('18','3','13','15'),('18','3','14','15'), -- white ('18','6','5','15'),('18','6','6','15'),('18','6','7','15'),('18','6','8','15'), ('18','6','9','15'),('18','6','10','15'),('18','6','11','15'), ('18','6','12','15'),('18','6','13','15'),('18','6','14','15'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd4 black ('19','3','5','10'),('19','3','6','10'),('19','3','7','10'),('19','3','8','10'), ('19','3','9','10'),('19','3','10','10'), ('19','3','11','10'),('19','3','12','10'),('19','3','13','10'),('19','3','14','10'), -- white10 ('19','6','5','10'),('19','6','6','10'),('19','6','7','10'),('19','6','8','10'), ('19','6','9','10'),('19','6','10','10'),('19','6','11','10'), ('19','6','12','10'),('19','6','13','10'),('19','6','14','10'); Insert into ShoesDetails(shoe_id,color_id,size_id,quantity) Values -- jd4 black ('20','3','5','5'),('20','3','6','5'),('20','3','7','5'),('20','3','8','5'), ('20','3','9','5'),('20','3','10','5'), ('20','3','11','5'),('20','3','12','5'),('20','3','13','5'),('20','3','14','5'), -- white ('20','6','5','5'),('20','6','6','5'),('20','6','7','5'),('20','6','8','5'), ('20','6','9','5'),('20','6','10','5'),('20','6','11','5'), ('20','6','12','5'),('20','6','13','5'),('20','6','14','5'); update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 1; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 1; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 2; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 3; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 4; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 5; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 6; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 7; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 8; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 9; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 10; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 11; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 12; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 13; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 14; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 15; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 16; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 17; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 18; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 19; update shoes set shoes.shoe_quantity= (select sum(shoesdetails.quantity) from shoesdetails where shoesdetails.shoe_id=shoes.shoe_id) where shoe_id = 20; insert into customers(customer_name,customer_phone,customer_address) values('<NAME>','0962358243','Cao Bang'); insert into Staffs(staff_name, user_name, user_pass) values ('<NAME>', 'hoainam', '<PASSWORD>'); insert into Staffs(staff_name, user_name, user_pass) values ('<NAME>', 'trandat', '<PASSWORD>'); CREATE USER IF NOT EXISTS 'hoainam'@'localhost' identified by 'hoainam04'; grant all on ndshoestore.* to 'hoainam'@'localhost'; select* from Shoes; select shoes.shoe_id,shoe_name,shoe_price,brand_name,colors.color_id, color_name,Sizes.size_id,size_number,quantity from shoesdetails inner join Colors on colors.color_id = shoesdetails.color_id inner join Sizes on sizes.size_id =shoesdetails.size_id inner join shoes on shoes.shoe_id = shoesdetails.shoe_id where shoes.shoe_id=4; SELECT DISTINCT colors.color_id,color_name FROM shoesdetails inner join Colors on colors.color_id = shoesdetails.color_id inner join shoes on shoes.shoe_id =shoesdetails.shoe_id where shoes.shoe_id=1; select Sizes.size_id,size_number,quantity from shoesdetails inner join Colors on colors.color_id = shoesdetails.color_id inner join Sizes on sizes.size_id =shoesdetails.size_id inner join shoes on shoes.shoe_id = shoesdetails.shoe_id where shoes.shoe_id=9 and Colors.color_id = 10; lock tables Staffs write,Invoices write, Customers write, Shoes write, sizes write, colors write, invoicedetails write, shoesdetails write; unlock tables; select customer_id from Customers order by customer_id desc limit 1; select invoices.invoice_no,customer_name,shoe_name,shoe_price,amount,total_price from invoicedetails inner join invoices on invoicedetails.invoice_no = invoices.invoice_no inner join customers on customers.customer_id = invoices.customer_id inner join shoes on shoes.shoe_id = invoicedetails.shoe_id where invoices.invoice_no =1; select invoices.invoice_no,invoice_date,customer_name,shoe_name,shoe_price, color_name,size_number,amount,total_price from invoicedetails inner join invoices on invoicedetails.invoice_no = invoices.invoice_no inner join customers on customers.customer_id = invoices.customer_id inner join shoes on shoes.shoe_id = invoicedetails.shoe_id inner join colors on colors.color_id = invoicedetails.color_id inner join sizes on sizes.size_id = invoicedetails.size_id; where invoices.invoice_no =16; SELECT SUM(total_price) as total FROM invoicedetails where invoice_no = 1; update invoicedetails set total= sum(total_price) where invoice_no = 16; select shoe_id,color_id,size_id from shoesdetails where shoe_id=1 and color_id=11 and size_id=11; update Shoes set shoe_quantity=shoe_quantity-3 where shoe_id=1; update shoesdetails set quantity = quantity - 3 where shoe_id =1 and color_id =10 and size_id = 11; update invoicedetails inner join shoes on shoes.shoe_id = invoicedetails.shoe_id set total_price = shoes.shoe_price * amount where invoice_no = 1 ; update invoicedetails set total_price = 0 where invoice_no = 1; select customer_id, customer_name,customer_phone,ifnull(customer_address, '') as customer_address from Customers where customer_phone=3; Select * from customers; select LAST_INSERT_ID() as invoice_no; Select * from Staffs where user_name = 'hoainam'and staff_name ='HoaiNam' and user_pass='<PASSWORD>'; Select staff_name from Staffs where staff_name= 'HoaiNam'; select * from Shoes where brand_name = 'van'; lock tables Customers write, Invoices write, Shoes write, InvoiceDetails write; unlock tables; select * from Customers order by customer_id desc limit 1;
<gh_stars>0 CREATE DATABASE employees; USE employees;
/****************************************************** 1. Find Names of All Employees by First Name ******************************************************/ SELECT first_name, last_name FROM employees WHERE first_name LIKE 'Sa%' ORDER BY employee_id; /****************************************************** 2. Find Names of All employees by Last Name ******************************************************/ SELECT first_name, last_name FROM employees WHERE last_name LIKE '%ei%' ORDER BY employee_id; /****************************************************** 3. Find First Names of All Employees ******************************************************/ SELECT first_name, last_name FROM employees WHERE department_id IN (3 , 10) AND EXTRACT(YEAR FROM hire_date) BETWEEN 1995 AND 2005 ORDER BY employee_id; /****************************************************** 4. Find All Employees Except Engineers ******************************************************/ SELECT first_name, last_name FROM employees WHERE job_title NOT LIKE '%engineer%' ORDER BY employee_id; /****************************************************** 5. Find Towns with Name Length ******************************************************/ SELECT name FROM towns WHERE CHAR_LENGTH(name) IN (5,6) ORDER BY name; /****************************************************** 6. Find Towns Starting With ******************************************************/ SELECT town_id, name FROM towns WHERE LEFT(name, 1) IN ('M' , 'K', 'B', 'E') ORDER BY name; /****************************************************** 7. Find Towns Not Starting With ******************************************************/ SELECT town_id, name FROM towns WHERE NOT LEFT(name, 1) IN ('R' , 'B', 'D') ORDER BY name; /****************************************************** 8. Create View Employees Hired After 2000 Year ******************************************************/ CREATE VIEW v_employees_hired_after_2000 AS SELECT first_name, last_name FROM employees WHERE EXTRACT(YEAR FROM hire_date) > 2000; /****************************************************** 9. Length of Last Name ******************************************************/ SELECT first_name,last_name FROM employees WHERE CHAR_LENGTH(last_name)=5; /****************************************************** 10. Countries Holding ‘A’ 3 or More Times ******************************************************/ SELECT country_name, iso_code FROM countries WHERE country_name LIKE '%a%a%a%' ORDER BY iso_code; /****************************************************** 11. Mix of Peak and River Names ******************************************************/ SELECT peak_name, river_name, LOWER(CONCAT(peak_name, '', SUBSTRING(river_name, 2))) AS mix FROM peaks, rivers WHERE RIGHT(peak_name, 1) = LEFT(river_name, 1) ORDER BY mix ASC; /****************************************************** 12. Games from 2011 and 2012 year ******************************************************/ SELECT name, DATE_FORMAT(start,'%Y-%m-%d') AS start FROM games WHERE EXTRACT(YEAR FROM start) BETWEEN 2011 AND 2012 ORDER BY start, name LIMIT 50; /****************************************************** 13. User Email Providers ******************************************************/ SELECT user_name, SUBSTRING(email, POSITION('@' IN email) + 1) AS `Email Provider` FROM users ORDER BY `Email Provider`, user_name; /****************************************************** 14. Get Users with IP Address Like Pattern ******************************************************/ SELECT user_name, ip_address FROM users WHERE ip_address LIKE '___.1%.%.___' ORDER BY user_name; /****************************************************** 15. Show All Games with Duration and Part of the Day ******************************************************/ SELECT name AS `game`, CASE WHEN EXTRACT(HOUR FROM start) BETWEEN 0 AND 11 THEN 'Morning' WHEN EXTRACT(HOUR FROM start) BETWEEN 12 AND 17 THEN 'Afternoon' WHEN EXTRACT(HOUR FROM start) BETWEEN 18 AND 23 THEN 'Evening' ELSE '' END AS `Part of the Day`, CASE WHEN duration BETWEEN 0 AND 3 THEN 'Extra Short' WHEN duration BETWEEN 4 AND 6 THEN 'Short' WHEN duration BETWEEN 7 AND 10 THEN 'Long' WHEN duration IS NULL THEN 'Extra Long' ELSE 'Extra Long' END AS `Duration` FROM games; /****************************************************** 16. Orders Table ******************************************************/ SELECT product_name, order_date, DATE_ADD(order_date, INTERVAL 3 DAY) AS 'pay_due', DATE_ADD(order_date, INTERVAL 1 MONTH) AS 'deliver_due' FROM orders;
DELETE FROM sso.permissions WHRER resource_type = 1;
USE [WiseEyeV5Express] GO /****** Object: StoredProcedure [dbo].[CheckInOut_Update] Script Date: 4/17/2015 4:44:42 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[CheckInOut_Update] @UserEnrollNumber int, @TimeStrOld datetime, @MachineNoOld int, @SourceOld nvarchar, @OriginTypeNew nvarchar, @TimeDateNew datetime, @TimeStrNew datetime, @MachineNoNew int, @SourceNew nvarchar AS BEGIN declare @ID int insert into GioGoc (TimeStr, MachineNo, Source) values (@TimeStrOld, @MachineNoOld, @SourceOld) select @ID = @@Identity update CheckInOut set TimeDate = @TimeDateNew, TimeStr = @TimeStrNew, OriginType = @OriginTypeNew, Source = @SourceNew, MachineNo = @MachineNoNew, IDGioGoc = @ID where UserEnrollNumber = @UserEnrollNumber and TimeStr = @TimeStrOld and (MachineNo % 2 = @MachineNoOld % 2) END
<gh_stars>0 CREATE TABLE Music ( musicID integer not null PRIMARY KEY AUTOINCREMENT, musicTitle varchar(100) not null, musicPerformerName text not null, musicOriginYear integer not null, linkToPlay varchar(100) not null, reasonToInclude text not null, userID integer not null, FOREIGN KEY (userID) REFERENCES User(userID) );
<filename>libs/sdc_etl_libs/sql/Fedex/CREATE_TABLE_tracking_events.sql<gh_stars>0 CREATE TABLE "LOGISTICS"."FEDEX"."TRACKING_EVENTS" ( "RTYPE" VARCHAR, "CCODE" VARCHAR, "TPIDC" VARCHAR, "TRCKNUM" VARCHAR, "FILL1" VARCHAR, "MTRKNUM" VARCHAR, "FILL2" VARCHAR, "SHIPD" VARCHAR, "ESTDD" VARCHAR, "ESTDT" VARCHAR, "DELVD" VARCHAR, "DELVT" VARCHAR, "PODNM" VARCHAR, "OCODE" VARCHAR, "DCODE" VARCHAR, "STATD" VARCHAR, "STATC" VARCHAR, "FILL3" VARCHAR, "SHPRN" VARCHAR, "SHPCO" VARCHAR, "SHPA1" VARCHAR, "SHPA2" VARCHAR, "SHPA3" VARCHAR, "SHPRC" VARCHAR, "SHPRS" VARCHAR, "SHPCC" VARCHAR, "SHPRZ" VARCHAR, "ACCTNUM" VARCHAR, "SIREF" VARCHAR, "RCPTN" VARCHAR, "RCPCO" VARCHAR, "RCPA1" VARCHAR, "RCPA2" VARCHAR, "RCPA3" VARCHAR, "RCPTC" VARCHAR, "RCPTS" VARCHAR, "RCPTZ" VARCHAR, "RCPCC" VARCHAR, "FILL4" VARCHAR, "SVCCD" VARCHAR, "PKGCD" VARCHAR, "TRPAY" VARCHAR, "DTPAY" VARCHAR, "TYPCD" VARCHAR, "FILL5" VARCHAR, "PIECS" VARCHAR, "UOMCD" VARCHAR, "DIMCD" VARCHAR, "FILL6" VARCHAR, "PKGLN" VARCHAR, "PKGWD" VARCHAR, "PKGHT" VARCHAR, "POREF" VARCHAR, "INREF" VARCHAR, "DEPTNUM" VARCHAR, "SHPID" VARCHAR, "LBWGT" VARCHAR, "KGWGT" VARCHAR, "DEXCD" VARCHAR, "SCODE" VARCHAR, "TCNNUM" VARCHAR, "BOLNUM" VARCHAR, "PCNUM1" VARCHAR, "PCNUM2" VARCHAR, "RMANUM" VARCHAR, "APPTD" VARCHAR, "APPTT" VARCHAR, "ECITY" VARCHAR, "EVEST" VARCHAR, "EVECO" VARCHAR, "CDRC1" VARCHAR, "CDRC2" VARCHAR, "AINFO" VARCHAR, "SPHC1" VARCHAR, "SPHC2" VARCHAR, "SPHC3" VARCHAR, "SPHC4" VARCHAR, "RCPTNUM" VARCHAR, "FILL7" VARCHAR, "_ETL_FILENAME" VARCHAR, "_SF_INSERTEDDATETIME" DATETIME );
<gh_stars>1-10 use lacus; SELECT part_year, country_info.name as country_name, max(max_temperature) as max_temperature, max(precipitation) as precipitation, count(*) as obs_count, count(distinct ghcn.station_id) as station_count FROM ghcn LEFT JOIN station_info ON ghcn.station_id = station_info.station_id LEFT JOIN country_info ON station_info.country = country_info.name LEFT JOIN state_info ON station_info.us_state = state_info.name GROUP BY part_year, country_info.name ORDER BY part_year, country_info.name;
<gh_stars>10-100 /* Run this script on: (local)\sqlexpress.CodeCampServerVersioned - This database will be modified to synchronize it with: (local)\sqlexpress.CodeCampServer You are recommended to back up your database before running this script Script created by SQL Compare version 8.1.0 from Red Gate Software Ltd at 12/31/2009 4:12:34 PM */ SET NUMERIC_ROUNDABORT OFF GO SET ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, ARITHABORT, QUOTED_IDENTIFIER, ANSI_NULLS ON GO IF EXISTS (SELECT * FROM tempdb..sysobjects WHERE id=OBJECT_ID('tempdb..#tmpErrors')) DROP TABLE #tmpErrors GO CREATE TABLE #tmpErrors (Error int) GO SET XACT_ABORT ON GO SET TRANSACTION ISOLATION LEVEL SERIALIZABLE GO BEGIN TRANSACTION GO PRINT N'Dropping foreign keys from [dbo].[Sponsors]' GO ALTER TABLE [dbo].[Sponsors] DROP CONSTRAINT [FK_Sponsors_UserGroupId_UserGroups_Id] GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO PRINT N'Dropping constraints from [dbo].[Sponsors]' GO ALTER TABLE [dbo].[Sponsors] DROP CONSTRAINT [PK_Sponsors] GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO PRINT N'Dropping [dbo].[UserGroupSponsors]' GO DROP TABLE [dbo].[UserGroupSponsors] GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO PRINT N'Dropping [dbo].[UserGroupRssFeeds]' GO DROP TABLE [dbo].[UserGroupRssFeeds] GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO PRINT N'Dropping [dbo].[Tracks]' GO DROP TABLE [dbo].[Tracks] GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO PRINT N'Dropping [dbo].[TimeSlots]' GO DROP TABLE [dbo].[TimeSlots] GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO PRINT N'Dropping [dbo].[Speakers]' GO DROP TABLE [dbo].[Speakers] GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO PRINT N'Dropping [dbo].[Sessions]' GO DROP TABLE [dbo].[Sessions] GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO PRINT N'Dropping [dbo].[RssFeeds]' GO DROP TABLE [dbo].[RssFeeds] GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO PRINT N'Dropping [dbo].[Proposals]' GO DROP TABLE [dbo].[Proposals] GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO PRINT N'Dropping [dbo].[Attendees]' GO DROP TABLE [dbo].[Attendees] GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO PRINT N'Rebuilding [dbo].[Sponsors]' GO CREATE TABLE [dbo].[tmp_rg_xx_Sponsors] ( [Id] [int] NOT NULL IDENTITY(1, 1), [Created] [datetime] NULL, [Updated] [datetime] NULL, [CreatedBy] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [UpdatedBy] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [Name] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [Url] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [BannerUrl] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [Level] [int] NULL, [UserGroupId] [uniqueidentifier] NULL ) GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO SET IDENTITY_INSERT [dbo].[tmp_rg_xx_Sponsors] ON GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO SET IDENTITY_INSERT [dbo].[tmp_rg_xx_Sponsors] OFF GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO DROP TABLE [dbo].[Sponsors] GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO EXEC sp_rename N'[dbo].[tmp_rg_xx_Sponsors]', N'Sponsors' GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO PRINT N'Creating primary key [PK_Sponsors] on [dbo].[Sponsors]' GO ALTER TABLE [dbo].[Sponsors] ADD CONSTRAINT [PK_Sponsors] PRIMARY KEY CLUSTERED ([Id]) GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO PRINT N'Adding foreign keys to [dbo].[Sponsors]' GO ALTER TABLE [dbo].[Sponsors] ADD CONSTRAINT [FK_Sponsors_UserGroupId_UserGroups_Id] FOREIGN KEY ([UserGroupId]) REFERENCES [dbo].[UserGroups] ([Id]) GO IF @@ERROR<>0 AND @@TRANCOUNT>0 ROLLBACK TRANSACTION GO IF @@TRANCOUNT=0 BEGIN INSERT INTO #tmpErrors (Error) SELECT 1 BEGIN TRANSACTION END GO IF EXISTS (SELECT * FROM #tmpErrors) ROLLBACK TRANSACTION GO IF @@TRANCOUNT>0 BEGIN PRINT 'The database update succeeded' COMMIT TRANSACTION END ELSE PRINT 'The database update failed' GO DROP TABLE #tmpErrors GO
<reponame>payals/mimeo<filename>updates/mimeo--0.8.1--0.8.2.sql -- Moved index creation step after data insertion. This will apply to all maker functions as well. /* * Snap refresh to repull all table data */ CREATE OR REPLACE FUNCTION refresh_snap(p_destination text, p_index boolean DEFAULT true, p_debug boolean DEFAULT false, p_pulldata boolean DEFAULT true) RETURNS void LANGUAGE plpgsql SECURITY DEFINER AS $$ DECLARE v_adv_lock boolean; v_cols_n_types text; v_cols text; v_condition text; v_create_sql text; v_dblink_schema text; v_dblink int; v_dest_table text; v_exists int; v_filter text[]; v_insert_sql text; v_job_id int; v_jobmon_schema text; v_job_name text; v_lcols_array text[]; v_local_sql text; v_l text; v_match boolean := 'f'; v_old_search_path text; v_parts record; v_post_script text[]; v_rcols_array text[]; v_refresh_snap text; v_remote_index_sql text; v_remote_sql text; v_row record; v_rowcount bigint; v_r text; v_snap text; v_source_table text; v_step_id int; v_table_exists int; v_view_definition text; BEGIN IF p_debug IS DISTINCT FROM true THEN PERFORM set_config( 'client_min_messages', 'notice', true ); END IF; v_job_name := 'Refresh Snap: '||p_destination; SELECT nspname INTO v_dblink_schema FROM pg_namespace n, pg_extension e WHERE e.extname = 'dblink' AND e.extnamespace = n.oid; SELECT nspname INTO v_jobmon_schema FROM pg_namespace n, pg_extension e WHERE e.extname = 'pg_jobmon' AND e.extnamespace = n.oid; -- Set custom search path to allow easier calls to other functions, especially job logging SELECT current_setting('search_path') INTO v_old_search_path; EXECUTE 'SELECT set_config(''search_path'',''@extschema@,'||v_jobmon_schema||','||v_dblink_schema||',public'',''false'')'; v_job_id := add_job(v_job_name); PERFORM gdb(p_debug,'Job ID: '||v_job_id::text); -- Take advisory lock to prevent multiple calls to function overlapping and causing possible deadlock v_adv_lock := pg_try_advisory_lock(hashtext('refresh_snap'), hashtext(v_job_name)); IF v_adv_lock = 'false' THEN v_step_id := add_step(v_job_id,'Obtaining advisory lock for job: '||v_job_name); PERFORM gdb(p_debug,'Obtaining advisory lock FAILED for job: '||v_job_name); PERFORM update_step(v_step_id, 'OK','Found concurrent job. Exiting gracefully'); PERFORM close_job(v_job_id); EXECUTE 'SELECT set_config(''search_path'','''||v_old_search_path||''',''false'')'; RETURN; END IF; v_step_id := add_step(v_job_id,'Grabbing Mapping, Building SQL'); SELECT source_table , dest_table , dblink , filter , condition , post_script INTO v_source_table , v_dest_table , v_dblink , v_filter , v_condition , v_post_script FROM refresh_config_snap WHERE dest_table = p_destination; IF NOT FOUND THEN RAISE EXCEPTION 'ERROR: This table is not set up for snapshot replication: %',v_job_name; END IF; -- checking for current view SELECT definition INTO v_view_definition FROM pg_views where ((schemaname || '.') || viewname)=v_dest_table; v_exists := strpos(v_view_definition, 'snap1'); IF v_exists > 0 THEN v_snap := '_snap2'; ELSE v_snap := '_snap1'; END IF; v_refresh_snap := v_dest_table||v_snap; PERFORM gdb(p_debug,'v_refresh_snap: '||v_refresh_snap::text); PERFORM dblink_connect('mimeo_refresh_snap', @extschema@.auth(v_dblink)); v_remote_sql := 'SELECT array_to_string(array_agg(attname),'','') as cols, array_to_string(array_agg(attname||'' ''||format_type(atttypid, atttypmod)::text),'','') as cols_n_types FROM pg_attribute WHERE attrelid = '||quote_literal(v_source_table)||'::regclass AND attnum > 0 AND attisdropped is false'; -- Apply column filters if used IF v_filter IS NOT NULL THEN v_remote_sql := v_remote_sql || ' AND ARRAY[attname::text] <@ '||quote_literal(v_filter); END IF; v_remote_sql := 'SELECT cols, cols_n_types FROM dblink(''mimeo_refresh_snap'', ' || quote_literal(v_remote_sql) || ') t (cols text, cols_n_types text)'; perform gdb(p_debug,'v_remote_sql: '||v_remote_sql); EXECUTE v_remote_sql INTO v_cols, v_cols_n_types; perform gdb(p_debug,'v_cols: '||v_cols); perform gdb(p_debug,'v_cols_n_types: '||v_cols_n_types); v_remote_sql := 'SELECT '||v_cols||' FROM '||v_source_table; -- Used by p_pull options in all maker functions to be able to create a replication job but pull no data IF p_pulldata = false THEN v_remote_sql := v_remote_sql || ' LIMIT 0'; ELSIF v_condition IS NOT NULL THEN v_remote_sql := v_remote_sql || ' ' || v_condition; END IF; v_insert_sql := 'INSERT INTO ' || v_refresh_snap || ' SELECT '||v_cols||' FROM dblink(''mimeo_refresh_snap'','||quote_literal(v_remote_sql)||') t ('||v_cols_n_types||')'; PERFORM update_step(v_step_id, 'OK','Done'); v_step_id := add_step(v_job_id,'Truncate non-active snap table'); -- Create snap table if it doesn't exist SELECT string_to_array(v_refresh_snap, '.') AS oparts INTO v_parts; SELECT INTO v_table_exists count(1) FROM pg_tables WHERE schemaname = v_parts.oparts[1] AND tablename = v_parts.oparts[2]; IF v_table_exists = 0 THEN PERFORM gdb(p_debug,'Snap table does not exist. Creating... '); v_create_sql := 'CREATE TABLE ' || v_refresh_snap || ' (' || v_cols_n_types || ')'; perform gdb(p_debug,'v_create_sql: '||v_create_sql::text); EXECUTE v_create_sql; ELSE /* Check local column definitions against remote and recreate table if different. Allows automatic recreation of snap tables if columns change (add, drop type change) */ v_local_sql := 'SELECT array_agg(attname||'' ''||format_type(atttypid, atttypmod)::text) as cols_n_types FROM pg_attribute WHERE attnum > 0 AND attisdropped is false AND attrelid = ' || quote_literal(v_refresh_snap) || '::regclass'; PERFORM gdb(p_debug,'v_local_sql: '||v_local_sql::text); EXECUTE v_local_sql INTO v_lcols_array; SELECT string_to_array(v_cols_n_types, ',') AS cols INTO v_rcols_array; -- Check to see if there's a change in the column structure on the remote FOREACH v_r IN ARRAY v_rcols_array LOOP v_match := 'f'; FOREACH v_l IN ARRAY v_lcols_array LOOP IF v_r = v_l THEN v_match := 't'; EXIT; END IF; END LOOP; END LOOP; IF v_match = 'f' THEN EXECUTE 'DROP TABLE ' || v_refresh_snap; EXECUTE 'DROP VIEW ' || v_dest_table; v_create_sql := 'CREATE TABLE ' || v_refresh_snap || ' (' || v_cols_n_types || ')'; PERFORM gdb(p_debug,'v_create_sql: '||v_create_sql::text); EXECUTE v_create_sql; v_step_id := add_step(v_job_id,'Source table structure changed.'); PERFORM update_step(v_step_id, 'OK','Tables and view dropped and recreated. Please double-check snap table attributes (permissions, indexes, etc'); PERFORM gdb(p_debug,'Source table structure changed. Tables and view dropped and recreated. Please double-check snap table attributes (permissions, indexes, etc)'); END IF; -- truncate non-active snap table EXECUTE 'TRUNCATE TABLE ' || v_refresh_snap; PERFORM update_step(v_step_id, 'OK','Done'); END IF; -- populating snap table v_step_id := add_step(v_job_id,'Inserting records into local table'); PERFORM gdb(p_debug,'Inserting rows... '||v_insert_sql); EXECUTE v_insert_sql; GET DIAGNOSTICS v_rowcount = ROW_COUNT; PERFORM update_step(v_step_id, 'OK','Inserted '||v_rowcount||' records'); -- Create indexes if new table was created IF (v_table_exists = 0 OR v_match = 'f') AND p_index = true THEN v_remote_index_sql := 'SELECT CASE WHEN i.indisprimary IS true THEN ''primary'' WHEN i.indisunique IS true THEN ''unique'' ELSE ''index'' END AS key_type, ( SELECT array_agg( a.attname ORDER by x.r ) FROM pg_attribute a JOIN ( SELECT k, row_number() over () as r FROM unnest(i.indkey) k ) as x ON a.attnum = x.k AND a.attrelid = i.indrelid '; IF v_filter IS NOT NULL THEN v_remote_index_sql := v_remote_index_sql || ' WHERE ARRAY[a.attname::text] <@ '||quote_literal(v_filter); END IF; v_remote_index_sql := v_remote_index_sql || ') AS indkey_names FROM pg_index i WHERE i.indrelid = '||quote_literal(v_source_table)||'::regclass'; FOR v_row IN EXECUTE 'SELECT key_type, indkey_names FROM dblink(''mimeo_refresh_snap'', '||quote_literal(v_remote_index_sql)||') t (key_type text, indkey_names text[])' LOOP IF v_row.indkey_names IS NOT NULL THEN -- If column filter is used, indkey_name column may be null IF v_row.key_type = 'primary' THEN RAISE NOTICE 'Creating primary key...'; EXECUTE 'ALTER TABLE '||v_refresh_snap||' ADD CONSTRAINT '||v_parts.oparts[2]||'_'||array_to_string(v_row.indkey_names, '_')||'_idx PRIMARY KEY ('||array_to_string(v_row.indkey_names, ',')||')'; ELSIF v_row.key_type = 'unique' THEN RAISE NOTICE 'Creating unique index...'; EXECUTE 'CREATE UNIQUE INDEX '||v_parts.oparts[2]||'_'||array_to_string(v_row.indkey_names, '_')||'_idx ON '||v_refresh_snap|| '('||array_to_string(v_row.indkey_names, ',')||')'; ELSE RAISE NOTICE 'Creating index...'; EXECUTE 'CREATE INDEX '||v_parts.oparts[2]||'_'||array_to_string(v_row.indkey_names, '_')||'_idx ON '||v_refresh_snap|| '('||array_to_string(v_row.indkey_names, ',')||')'; END IF; END IF; END LOOP; END IF; IF v_rowcount IS NOT NULL THEN EXECUTE 'ANALYZE ' ||v_refresh_snap; --SET statement_timeout='30 min'; -- swap view v_step_id := add_step(v_job_id,'Swap view to '||v_refresh_snap); PERFORM gdb(p_debug,'Swapping view to '||v_refresh_snap); EXECUTE 'CREATE OR REPLACE VIEW '||v_dest_table||' AS SELECT * FROM '||v_refresh_snap; PERFORM update_step(v_step_id, 'OK','View Swapped'); v_step_id := add_step(v_job_id,'Updating last value'); UPDATE refresh_config_snap set last_run = CURRENT_TIMESTAMP WHERE dest_table = p_destination; PERFORM update_step(v_step_id, 'OK','Done'); -- Runs special sql to fix indexes, permissions, etc on recreated objects IF v_match = 'f' AND v_post_script IS NOT NULL THEN v_step_id := add_step(v_job_id,'Applying post_script sql commands due to schema change'); PERFORM @extschema@.post_script(v_dest_table); PERFORM update_step(v_step_id, 'OK','Done'); END IF; PERFORM close_job(v_job_id); ELSE RAISE EXCEPTION 'No rows found in source table'; END IF; PERFORM dblink_disconnect('mimeo_refresh_snap'); -- Ensure old search path is reset for the current session EXECUTE 'SELECT set_config(''search_path'','''||v_old_search_path||''',''false'')'; PERFORM pg_advisory_unlock(hashtext('refresh_snap'), hashtext(v_job_name)); EXCEPTION WHEN QUERY_CANCELED THEN EXECUTE 'SELECT set_config(''search_path'',''@extschema@,'||v_jobmon_schema||','||v_dblink_schema||''',''false'')'; IF dblink_get_connections() @> '{mimeo_refresh_snap}' THEN PERFORM dblink_disconnect('mimeo_refresh_snap'); END IF; EXECUTE 'SELECT set_config(''search_path'','''||v_old_search_path||''',''false'')'; PERFORM pg_advisory_unlock(hashtext('refresh_snap'), hashtext(v_job_name)); RAISE EXCEPTION '%', SQLERRM; WHEN OTHERS THEN EXECUTE 'SELECT set_config(''search_path'',''@extschema@,'||v_jobmon_schema||','||v_dblink_schema||''',''false'')'; IF v_job_id IS NULL THEN v_job_id := add_job('Refresh Snap: '||p_destination); v_step_id := add_step(v_job_id, 'EXCEPTION before job logging started'); END IF; IF v_step_id IS NULL THEN v_step_id := jobmon.add_step(v_job_id, 'EXCEPTION before first step logged'); END IF; PERFORM update_step(v_step_id, 'BAD', 'ERROR: '||coalesce(SQLERRM,'unknown')); PERFORM fail_job(v_job_id); IF dblink_get_connections() @> '{mimeo_refresh_snap}' THEN PERFORM dblink_disconnect('mimeo_refresh_snap'); END IF; EXECUTE 'SELECT set_config(''search_path'','''||v_old_search_path||''',''false'')'; PERFORM pg_advisory_unlock(hashtext('refresh_snap'), hashtext(v_job_name)); RAISE EXCEPTION '%', SQLERRM; END $$;
/* This script creates the Open Infobutton database for Oracle Pre-requisites: - Create or identify the tablespaces you will use - login to SQL tool as DBA or privileged user */ CREATE ROLE "OIB_ROLE" NOT IDENTIFIED; GRANT CREATE TABLE TO "OIB_ROLE"; GRANT CREATE VIEW TO "OIB_ROLE"; GRANT UNLIMITED TABLESPACE TO "OIB_ROLE"; create user oib identified by "<PASSWORD>" default tablespace your_tablespace temporary tablespace your_temp_tablespace quota unlimited on your_tablespace account unlock; grant connect to OIB; grant OIB_ROLE to OIB; CREATE TABLE "OIB"."OIB_APP_PROPERTY" ( "APP_PROPERTY_ID" NUMBER, "PROP_GROUP_CD" VARCHAR2(50 BYTE), "PROP_NAME" VARCHAR2(100 BYTE), "PROP_VALUE" VARCHAR2(1000 BYTE), PRIMARY KEY ("APP_PROPERTY_ID") ); CREATE TABLE "OIB"."OIB_ASSET" ( "ASSET_ID" NUMBER, "NAMESPACE_CD" VARCHAR2(100 BYTE), "DISPLAY_NAME" VARCHAR2(255 BYTE), "LAST_UPDATE_DTS" DATE, "ASSET_URL" VARCHAR2(1000 BYTE), "ASSET_MIME_TYPE" VARCHAR2(50 BYTE), PRIMARY KEY ("ASSET_ID") ); CREATE TABLE "OIB"."OIB_ASSET_PROPERTY" ( "ASSET_PROPERTY_ID" NUMBER(*,0) NOT NULL ENABLE, "ASSET_ID" NUMBER NOT NULL ENABLE, "PROP_GROUP_NUM" NUMBER, "PROP_NAME" VARCHAR2(100 BYTE) NOT NULL ENABLE, "PROP_TYPE_CD" VARCHAR2(20 BYTE) NOT NULL ENABLE, "CODE" VARCHAR2(100 BYTE), "CODE_SYSTEM" VARCHAR2(100 BYTE), "DISPLAY_NAME" VARCHAR2(1000 BYTE), "PROP_VALUE" VARCHAR2(1000 BYTE), "GENERATED_BY_CD" VARCHAR2(50 BYTE) NOT NULL ENABLE, CONSTRAINT "OIB_ASSET_PROPERTY_PK" PRIMARY KEY ("ASSET_PROPERTY_ID") ); ALTER TABLE OIB_ASSET_PROPERTY ADD CONSTRAINT OIB_ASSET_PROPERTY_UK1 UNIQUE ( ASSET_ID , PROP_GROUP_NUM , PROP_NAME ) ENABLE; ALTER TABLE OIB_ASSET_PROPERTY ADD CONSTRAINT OIB_ASSET_PROPERTY_OIB_AS_FK1 FOREIGN KEY (ASSET_ID) REFERENCES OIB_ASSET (ASSET_ID) ENABLE; CREATE TABLE "OIB"."OIB_REQUEST_PARAMETER" ( "REQUEST_PARAMETER_ID" NUMBER(*,0) NOT NULL ENABLE, "PARAMETER_NAME" VARCHAR2(100 BYTE), "PARAMETER_DSC" VARCHAR2(1000 BYTE), "CARDINALITY_MIN" NUMBER, "CARDINALITY_MAX" NUMBER, "PARAMETER_ROOT" VARCHAR2(50 BYTE), "TYPE_CD" VARCHAR2(20 BYTE), "PARAMETER_SUFFIX" VARCHAR2(50 BYTE), "VALUE_SET_ID" NUMBER, CONSTRAINT "OIB_REQUEST_PARAMETER_PK" PRIMARY KEY ("REQUEST_PARAMETER_ID") ); CREATE TABLE "OIB"."OIB_VALUE_SET" ( "VALUE_SET_ID" NUMBER, "VALUE_SET_TYPE_CD" VARCHAR2(50 BYTE), "VALUE_SET_OID" VARCHAR2(100 BYTE), "VALUE_SET_DISPLAY_NAME" VARCHAR2(255 BYTE), "VALUE_SET_URI" VARCHAR2(255 BYTE), PRIMARY KEY ("VALUE_SET_ID") ); CREATE TABLE "OIB"."OIB_VALUE_SET_CODE" ( "VALUE_SET_CODE_ID" NUMBER, "VALUE_SET_ID" NUMBER, "CODE" VARCHAR2(50 BYTE), "CODE_SYSTEM_OID" VARCHAR2(100 BYTE), "CODE_DISPLAY_NAME" VARCHAR2(255 BYTE), "LIST_ORDER" NUMBER, "PARENT_VALUE_SET_CODE_ID" NUMBER, "CODE_URI" VARCHAR2(255 BYTE), PRIMARY KEY ("VALUE_SET_CODE_ID") ); ALTER TABLE OIB_VALUE_SET_CODE ADD CONSTRAINT OIB_VALUE_SET_CODE_FK1 FOREIGN KEY (VALUE_SET_ID) REFERENCES OIB_VALUE_SET (VALUE_SET_ID) ENABLE; ALTER TABLE OIB_VALUE_SET_CODE ADD CONSTRAINT OIB_VALUE_SET_CODE_OIB_VA_FK1 FOREIGN KEY (PARENT_VALUE_SET_CODE_ID) REFERENCES OIB_VALUE_SET_CODE (VALUE_SET_CODE_ID) ENABLE;
<gh_stars>0 -- @testpoint: box类型,使用(x1,y1),(x2,y2)方式插入空值,合理报错 drop table if exists test_box05; create table test_box05 (name box); insert into test_box05 values (box '(null,null),(null,null)'); insert into test_box05 values (box '('',''),('','')'); select * from test_box05; drop table test_box05;
SELECT vbb_stops.stop_name, vbb_stops.stop_lat, vbb_stops.stop_lon, routes_with_colours.route_short_name, routes_with_colours.Hex, routes_with_colours.Inverse FROM vbb_trips INNER JOIN ( SELECT * FROM vbb_routes INNER JOIN vbb_linienfarben ON vbb_linienfarben.Linie = vbb_routes.route_short_name WHERE (vbb_routes.route_short_name LIKE "S%" OR vbb_routes.route_short_name LIKE "U%") AND agency_id != 108 # Exclude S Bahns outside of Berlin-Brandenburg ) as routes_with_colours ON routes_with_colours.route_id = vbb_trips.route_id INNER JOIN vbb_stop_times ON vbb_stop_times.trip_id = vbb_trips.trip_id INNER JOIN vbb_stops ON vbb_stop_times.stop_id = vbb_stops.stop_id WHERE direction_id = 0 GROUP BY routes_with_colours.route_short_name, vbb_stops.stop_name ORDER BY routes_with_colours.route_short_name ;
create database T_OpFlix use T_OpFlix --DDL-- create table Tipos ( IdTipo int primary key identity ,Nome varchar (255) not null unique ); create table Plataformas ( IdPlataforma int primary key identity ,Nome varchar (255) not null ); create table Generos ( IdGenero int primary key identity ,Nome varchar (255) not null unique ); create table TipoUsuarios ( IdTipoUsuario int primary key identity ,Nome varchar (255) not null unique ); create table Usuarios ( IdUsuario int primary key identity ,Nome varchar (255) not null ,Email varchar (255) not null unique ,Senha varchar (255) not null ,IdTipoUsuario int foreign key references TipoUsuarios(IdTipoUsuario) ); create table Lancamentos ( IdLancamento int primary key identity ,Nome varchar (255) not null unique ,Duracao_min int not null ,Classificacao varchar (255) not null ,DataLancamento date not null ,Sinopse varchar (1000) not null ,IdPlataforma int foreign key references Plataformas(IdPlataforma) ,IdGenero int foreign key references Generos(IdGenero) ,IdTipo int foreign key references Tipos(IdTipo) );
<gh_stars>0 # 基础查询 /* 语法: select 查询列表 form 表名; 类似于: System.out.println(打印); 特点: 1. 查询列表可以是,表中的字段,常量值,表达式,函数 2. 查询的结果是一个虚拟的表格 */ USE test; #1.查询表中的单个字段 SELECT xx FROM yy; #2.查询表中的多个字段 SELECT xx, xx FROM yy; #3.查询表中的所有字段 SELECT * FROM yy; #4.查询常量池 SELECT 100; SELECT 'olg'; #5.查询表达式 SELECT 100+150; #6.查询函数 SELECT DATABASE(); #7.取别名 SELECT 100+150 AS result; SELECT xx AS XX FROM yy; SELECT xx XX FROM yy; SELECT xx AS "x x" FROM yy; #8.查询时去除重复(distinct 独特的) SELECT DISTINCT xx FROM yy; #9.操作符+的作用, # aa和bb都是数值类型就直接相加,其中一个为字符型(22+'33'), # 则尝试将'33'转为数值型33, # 若(22+'三三'),明显转化不了,则将字符型转为数值0, # 若aa或bb有为 null 的相加后一定是null SELECT aa+bb AS xx FROM yy; #10.合并字符型,使用函数concat(),和null拼接一定是null SELECT CONCAT('o','l','g') AS xx; SELECT CONCAT('o','l',NULL) AS xx; #11.判断是否为空, isnull(p1, p2), # p1为null就取p2的值,p1不为null还是p1 SELECT IFNULL(NULL, 222) AS xx; SELECT IFNULL(22, 33) AS xx;
<reponame>demchuk20/hapHere12 INSERT INTO hap_here.user_info (user_id, email, info, phone) VALUES (1, '<EMAIL>', null, null); INSERT INTO hap_here.user_info (user_id, email, info, phone) VALUES (2, '<EMAIL>', null, null); INSERT INTO hap_here.user_info (user_id, email, info, phone) VALUES (3, '<EMAIL>2<EMAIL>', null, null);
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 20 Okt 2021 pada 15.43 -- Versi server: 10.4.14-MariaDB -- Versi PHP: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `ntxid` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `bookmark` -- CREATE TABLE `bookmark` ( `id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `product_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `bookmark` -- INSERT INTO `bookmark` (`id`, `user_id`, `product_id`) VALUES (3, 17, 15), (4, 17, 10), (6, 4, 14), (7, 4, 16); -- -------------------------------------------------------- -- -- Struktur dari tabel `category` -- CREATE TABLE `category` ( `cat_id` int(2) NOT NULL, `cat_code` int(2) NOT NULL, `subcat_code` int(2) NOT NULL, `cat_name` varchar(100) NOT NULL, `subcat_name` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `category` -- INSERT INTO `category` (`cat_id`, `cat_code`, `subcat_code`, `cat_name`, `subcat_name`) VALUES (1, 11, 11, 'Properti', 'Rumah/Apartemen'), (2, 11, 12, 'Properti', 'Ruko/Toko'), (3, 11, 13, 'Properti', 'Tanah/Kebun'), (4, 12, 11, 'Mobil', 'Mobil'), (5, 12, 12, 'Mobil', 'Sparepart'), (6, 12, 13, 'Mobil', 'Aksesoris'), (7, 13, 11, 'Motor', 'Motor'), (8, 13, 12, 'Motor', 'Sparepart'), (9, 13, 13, 'Motor', 'Aksesoris'), (10, 14, 11, 'Elektronik', 'AC'), (11, 14, 12, 'Elektronik', 'Lemari Es'), (12, 14, 13, 'Elektronik', 'Televisi'), (13, 14, 14, 'Elektronik', 'Strika'), (14, 14, 15, 'Elektronik', 'Dispenser'), (15, 14, 16, 'Elektronik', 'Sparepart'), (16, 14, 17, 'Elektronik', 'Aksesoris'), (17, 15, 11, 'Komputer', 'PC (Personal Computer)'), (18, 15, 12, 'Komputer', 'Laptop/Notebook'), (19, 15, 13, 'Komputer', 'Sparepart'), (20, 15, 14, 'Komputer', 'Aksesoris'), (21, 16, 11, 'Gadget', 'Smartphone'), (22, 16, 12, 'Gadget', 'Tablet'), (23, 16, 13, 'Gadget', 'Candybarphone'), (24, 16, 14, 'Gadget', 'Sparepart'), (25, 16, 15, 'Gadget', 'Aksesoris'), (26, 17, 11, 'Fashion', 'Pria'), (27, 17, 12, 'Fashion', 'Wanita'), (28, 17, 13, 'Fashion', 'Anak-anak'), (29, 17, 14, 'Fashion', 'Aksesoris Pria'), (30, 17, 15, 'Fashion', 'Aksesoris Wanita'), (31, 17, 16, 'Fashion', 'Aksesoris Anak'), (32, 18, 11, 'Ibu&bayi', 'Perlengkapan Ibu'), (33, 18, 12, 'Ibu&bayi', 'Perlengkapan Bayi'), (34, 19, 11, 'Perkakas Rumah', 'Ruang Tamu'), (35, 19, 12, 'Perkakas Rumah', 'Ruang Tidur'), (36, 19, 13, 'Perkakas Rumah', 'Dapur'), (37, 19, 14, 'Perkakas Rumah', 'Kamar Mandi'), (38, 19, 15, 'Perkakas Rumah', 'Luar Rumah'), (39, 20, 11, 'Makanan&minuman', 'Makanan'), (40, 20, 12, 'Makanan&minuman', 'Minuman'), (41, 20, 13, 'Makanan&minuman', 'Buah'), (42, 20, 14, 'Makanan&minuman', 'Sayur'), (43, 21, 11, 'Jasa&sewa', 'Hotel/penginapan'), (44, 21, 12, 'Jasa&sewa', 'Ruko/toko'), (45, 21, 13, 'Jasa&sewa', 'Rumah/indekos'), (46, 21, 14, 'Jasa&sewa', 'Mobil'), (47, 21, 15, 'Jasa&sewa', 'Motor'), (48, 21, 16, 'Jasa&sewa', 'Service Elektronik'); -- -------------------------------------------------------- -- -- Struktur dari tabel `company` -- CREATE TABLE `company` ( `id` int(11) NOT NULL, `name` varchar(128) NOT NULL, `about1` varchar(1000) NOT NULL, `about2` varchar(1000) NOT NULL, `about3` varchar(1000) NOT NULL, `created` varchar(128) NOT NULL, `aboutme` varchar(2000) NOT NULL, `email` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `company` -- INSERT INTO `company` (`id`, `name`, `about1`, `about2`, `about3`, `created`, `aboutme`, `email`) VALUES (1, 'ntx.id', 'Ini adalah aplikasi jual-beli di Natuna.', 'Aplikasi ini masih banyak kekurangan di sana sini. Kritik dan saran yang membangun sangat saya butuhkan untuk pengembangan aplikasi ini. Ke depannya, saya akan membuat aplikasi androidnya untuk mempermudah mengakses melalui smartphone android.', 'Terima kasih Pak Ricky yang telah mendorong saya untuk terus belajar sehingga adanya aplikasi ini.', 'drg. <NAME>', 'I am a dentist, husband, father, and programmer ....', '<EMAIL>'); -- -------------------------------------------------------- -- -- Struktur dari tabel `location` -- CREATE TABLE `location` ( `id` int(11) NOT NULL, `prov_code` varchar(2) NOT NULL, `kot_code` varchar(2) NOT NULL, `kec_code` varchar(2) NOT NULL, `prov_name` varchar(100) NOT NULL, `kot_name` varchar(100) NOT NULL, `kec_name` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `location` -- INSERT INTO `location` (`id`, `prov_code`, `kot_code`, `kec_code`, `prov_name`, `kot_name`, `kec_name`) VALUES (1, '21', '03', '04', 'Kepulauan Riau', 'Natuna', 'Midai'), (2, '21', '03', '05', 'Kepulauan Riau', 'Natuna', 'Bunguran Barat'), (3, '21', '03', '06', 'Kepulauan Riau', 'Natuna', 'Serasan'), (4, '21', '03', '07', 'Kepulauan Riau', 'Natuna', 'Bunguran Timur'), (5, '21', '03', '08', 'Kepulauan Riau', 'Natuna', 'Bunguran Utara'), (6, '21', '03', '09', 'Kepulauan Riau', 'Natuna', 'Subi'), (7, '21', '03', '10', 'Kepulauan Riau', 'Natuna', 'Pulau Laut'), (8, '21', '03', '11', 'Kepulauan Riau', 'Natuna', 'Pulau Tiga'), (9, '21', '03', '15', 'Kepulauan Riau', 'Natuna', 'Bunguran Timur Laut'), (10, '21', '03', '16', 'Kepulauan Riau', 'Natuna', 'Bunguran Tengah'), (11, '21', '03', '18', 'Kepulauan Riau', 'Natuna', 'Bunguran Selatan'), (12, '21', '03', '19', 'Kepulauan Riau', 'Natuna', 'Serasan Timur'); -- -------------------------------------------------------- -- -- Struktur dari tabel `product` -- CREATE TABLE `product` ( `product_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `cat_code` int(2) NOT NULL, `subcat_code` int(2) NOT NULL, `name` varchar(128) NOT NULL, `about` varchar(512) NOT NULL, `price` int(11) NOT NULL, `image1` varchar(128) NOT NULL, `image2` varchar(128) NOT NULL, `image3` varchar(128) NOT NULL, `image4` varchar(128) NOT NULL, `image5` varchar(128) NOT NULL, `date_created` int(11) NOT NULL, `last_edited` int(11) NOT NULL, `is_active` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `product` -- INSERT INTO `product` (`product_id`, `user_id`, `cat_code`, `subcat_code`, `name`, `about`, `price`, `image1`, `image2`, `image3`, `image4`, `image5`, `date_created`, `last_edited`, `is_active`) VALUES (9, 17, 11, 12, 'Roti Bakar Bandung', 'Roti sedap mantap.\r\nLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\r\ntempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,\r\nquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\r\nconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse\r\ncillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non\r\nproident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 23000, 'resep_roti_bakar_1.jpg', 'f32624bc-9f6d-4d28-9633-bde315f6de5d.jpg', 'Resep-Sate-Ayam-Madura-1.jpg', 'Resep-Bubur-Ayam1.jpg', 'images_mancanegara_Resep_Kebab_00.jpg', 0, 0, 1), (10, 4, 15, 12, '<NAME>', 'Teh mantap.\r\nLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\r\ntempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,\r\nquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\r\nconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse\r\ncillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non\r\nproident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 9000, 'f32624bc-9f6d-4d28-9633-bde315f6de5d.jpg', '', '', '', '', 0, 1587663921, 1), (11, 17, 16, 13, 'Lontong', 'Lontong Sayur mantap.\r\nLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\r\ntempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,\r\nquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\r\nconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse\r\ncillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non\r\nproident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 17000, '104127_1423633018_0.jpg', '', 'f32624bc-9f6d-4d28-9633-bde315f6de5d.jpg', '', '', 0, 0, 1), (12, 4, 12, 13, '<NAME>', '<NAME>.\r\nLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\r\ntempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,\r\nquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\r\nconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse\r\ncillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non\r\nproident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 12000, 'Resep-Bubur-Ayam.jpg', '', '', '', '', 0, 0, 1), (14, 17, 18, 11, '<NAME>', '<NAME>.\r\nLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\r\ntempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,\r\nquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\r\nconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse\r\ncillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non\r\nproident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 28000, '50de339f-7e20-4738-b9a4-a2ba49991add1.jpg', 'f32624bc-9f6d-4d28-9633-bde315f6de5d.jpg', '', '', '', 0, 1587716671, 1), (15, 4, 16, 13, '<NAME>', 'Sate ayam kampung mantap.\r\nLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod\r\ntempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,\r\nquis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\r\nconsequat. Duis aute irure dolor in reprehenderit in voluptate velit esse\r\ncillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non\r\nproident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 20000, 'Resep-Sate-Ayam-Madura-1.jpg', 'f32624bc-9f6d-4d28-9633-bde315f6de5d.jpg', '', '', 'f32624bc-9f6d-4d28-9633-bde315f6de5d.jpg', 0, 1587664139, 1), (16, 17, 13, 13, '<NAME>', 'Bakso gaoyang lidah goyang kantong', 35000, 'resep-mie-bakso-780x440.jpg', '', 'f32624bc-9f6d-4d28-9633-bde315f6de5d.jpg', '', '', 0, 0, 1), (17, 4, 19, 11, 'Bubur Kacang Kacang Hijau Bubur Kacang Kacang Hijau Bubur Kacang Kacang Hijau Bubur Kacang Kacang Hijau', 'Bubur kacang hijau dengan mata ikan dan santan mantap', 17000, 'bubur-kacang-ijo-jagung-kesukaan-foto-resep-utama.jpg', 'f32624bc-9f6d-4d28-9633-bde315f6de5d.jpg', '', 'f32624bc-9f6d-4d28-9633-bde315f6de5d.jpg', '', 0, 0, 1), (18, 17, 20, 11, '<NAME>', 'Bubur Ayam kota', 13000, 'Resep-Bubur-Ayam1.jpg', 'resep-mie-bakso-780x440.jpg', '', '', '', 0, 0, 1), (19, 17, 21, 11, '<NAME>', '<NAME> Daging', 28000, '27539.jpg', '', '', 'resep-mie-bakso-780x440.jpg', '', 0, 0, 1), (20, 4, 17, 11, 'Kebab versi 2', 'Kebab dengan berbagai rasa', 50000, 'images_mancanegara_Resep_Kebab_00.jpg', '', 'resep-mie-bakso-780x440.jpg', '', '', 0, 0, 1); -- -------------------------------------------------------- -- -- Struktur dari tabel `user` -- CREATE TABLE `user` ( `user_id` int(11) NOT NULL, `name` varchar(128) NOT NULL, `email` varchar(128) NOT NULL, `phonenumber` bigint(11) NOT NULL, `whatsappnumber` bigint(11) NOT NULL, `prov_code` varchar(2) NOT NULL, `kot_code` varchar(2) NOT NULL, `kec_code` varchar(2) NOT NULL, `address` varchar(100) NOT NULL, `image` varchar(128) NOT NULL, `password` varchar(256) NOT NULL, `role_id` int(11) NOT NULL, `is_active` int(1) NOT NULL, `date_created` int(11) NOT NULL, `last_logged` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `user` -- INSERT INTO `user` (`user_id`, `name`, `email`, `phonenumber`, `whatsappnumber`, `prov_code`, `kot_code`, `kec_code`, `address`, `image`, `password`, `role_id`, `is_active`, `date_created`, `last_logged`) VALUES (1, 'Ricky', '<EMAIL>', 0, 0, '21', '03', '09', '', 'default.jpg', '$2y$10$EuGbwwYrQvpRcoAcBNbjGupvTgvHQjTKKgHHuSn2EZQlrnD1DQL9.', 1, 1, 1582829982, 1634737312), (4, 'Yusfadia', '<EMAIL>', 68546544535, 7865167, '21', '03', '11', 'jl perjuangan gang Merdeka no. 17 Ranai', '23_1.jpg', '$2y$10$Muw1aKTGEYV7q5OtVWPbc.1YoHc.ty10Y4R1YDeCBts9TSBDnZyEK', 2, 1, 1582915364, 1587658128), (17, '<NAME>', '<EMAIL>', 899495616111, 8526465919111, '21', '03', '08', '<NAME>', 'Ntx_brand_usage_1_created_by_logaster(1).png', '$2y$10$jnPDEkyTBK/dotB/UYXFaeEtOsFucZpzpTLGWASeUIdv4he0yHv02', 2, 1, 1586680248, 1587715716); -- -------------------------------------------------------- -- -- Struktur dari tabel `user_access_menu` -- CREATE TABLE `user_access_menu` ( `id` int(11) NOT NULL, `role_id` int(11) NOT NULL, `menu_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `user_access_menu` -- INSERT INTO `user_access_menu` (`id`, `role_id`, `menu_id`) VALUES (1, 1, 1), (2, 1, 2), (19, 2, 3), (20, 2, 4); -- -------------------------------------------------------- -- -- Struktur dari tabel `user_menu` -- CREATE TABLE `user_menu` ( `id` int(11) NOT NULL, `menu` varchar(128) NOT NULL, `menu_uri` varchar(128) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `user_menu` -- INSERT INTO `user_menu` (`id`, `menu`, `menu_uri`) VALUES (1, 'Dashboard', 'admin'), (2, 'Manage', 'manage'), (3, 'Pengaturan', 'user'), (4, 'My Product', 'myproduct'); -- -------------------------------------------------------- -- -- Struktur dari tabel `user_role` -- CREATE TABLE `user_role` ( `role_id` int(11) NOT NULL, `role` varchar(128) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `user_role` -- INSERT INTO `user_role` (`role_id`, `role`) VALUES (1, 'Administrator'), (2, 'User'); -- -------------------------------------------------------- -- -- Struktur dari tabel `user_sub_menu` -- CREATE TABLE `user_sub_menu` ( `id` int(11) NOT NULL, `menu_id` int(11) NOT NULL, `title` varchar(128) NOT NULL, `url` varchar(128) NOT NULL, `icon` varchar(128) NOT NULL, `is_active` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `user_sub_menu` -- INSERT INTO `user_sub_menu` (`id`, `menu_id`, `title`, `url`, `icon`, `is_active`) VALUES (1, 1, 'Profil Perusahaan', 'admin', 'fas fa-fw fa-tachometer-alt', 1), (2, 3, 'Profil Saya', 'user', 'fas fa-fw fa-user', 1), (3, 3, 'Ubah Profil', 'user/edit', 'fas fa-fw fa-user-edit', 1), (11, 3, 'Ubah Password', 'user/password', 'fas fa-fw fa-key', 1), (19, 2, 'Daftar Akun', 'manage/account', '', 1), (20, 2, 'Daftar Produk', 'manage/product', '', 1), (21, 2, 'Produk Blacklist', 'manage/blacklist', '', 1), (22, 4, 'Produk Saya', 'myproduct', '', 1), (23, 4, 'Bookmark', 'myproduct/bookmark', '', 1), (24, 1, 'Ubah Password', 'admin/password', 'fas fa-fw fa-key', 1); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `bookmark` -- ALTER TABLE `bookmark` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `category` -- ALTER TABLE `category` ADD PRIMARY KEY (`cat_id`); -- -- Indeks untuk tabel `company` -- ALTER TABLE `company` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `location` -- ALTER TABLE `location` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `product` -- ALTER TABLE `product` ADD PRIMARY KEY (`product_id`); -- -- Indeks untuk tabel `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`user_id`); -- -- Indeks untuk tabel `user_access_menu` -- ALTER TABLE `user_access_menu` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `user_menu` -- ALTER TABLE `user_menu` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `user_role` -- ALTER TABLE `user_role` ADD PRIMARY KEY (`role_id`); -- -- Indeks untuk tabel `user_sub_menu` -- ALTER TABLE `user_sub_menu` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `bookmark` -- ALTER TABLE `bookmark` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT untuk tabel `category` -- ALTER TABLE `category` MODIFY `cat_id` int(2) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49; -- -- AUTO_INCREMENT untuk tabel `company` -- ALTER TABLE `company` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT untuk tabel `location` -- ALTER TABLE `location` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT untuk tabel `product` -- ALTER TABLE `product` MODIFY `product_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24; -- -- AUTO_INCREMENT untuk tabel `user` -- ALTER TABLE `user` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT untuk tabel `user_access_menu` -- ALTER TABLE `user_access_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- AUTO_INCREMENT untuk tabel `user_menu` -- ALTER TABLE `user_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT untuk tabel `user_sub_menu` -- ALTER TABLE `user_sub_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>db.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 05 Feb 2022 pada 16.44 -- Versi server: 10.4.22-MariaDB -- Versi PHP: 8.0.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */ ; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */ ; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */ ; /*!40101 SET NAMES utf8mb4 */ ; -- -- Database: `larastrusmedis` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `doctors` -- CREATE TABLE `doctors` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `images` text COLLATE utf8mb4_unicode_ci NOT NULL, `specialist_id` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; -- -- Dumping data untuk tabel `doctors` -- INSERT INTO `doctors` ( `id`, `name`, `images`, `specialist_id`, `created_at`, `updated_at` ) VALUES ( 1, 'Dr. Nurul', 'RSBP-Dokter_41.-dr.-Nurul-Widiati-Sp.M-585x618.png', 1, NULL, NULL ), ( 2, 'Dr. Simon', 'cba7b68a-c95b-46b5-a2e6-66ba7449cfd7_43.jpeg', 2, NULL, NULL ), ( 3, 'Dr. <NAME>', 'Dr-Bobby-Singh.jpg', 2, NULL, NULL ), ( 4, 'Dr. <NAME>', 'Dr-Luthfi-Saad.jpg', 3, NULL, NULL ), (5, 'Dr. Mona', 'dr-mona.png', 4, NULL, NULL); -- -------------------------------------------------------- -- -- Struktur dari tabel `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Struktur dari tabel `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; -- -- Dumping data untuk tabel `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (11, '2014_10_12_000000_create_users_table', 1), ( 12, '2014_10_12_100000_create_password_resets_table', 1 ), ( 13, '2019_08_19_000000_create_failed_jobs_table', 1 ), ( 14, '2019_12_14_000001_create_personal_access_tokens_table', 1 ), ( 15, '2022_02_04_124916_create_spesialists_table', 1 ), (16, '2022_02_05_121337_create_doctors_table', 1), (18, '2022_02_05_153720_create_products_table', 2); -- -------------------------------------------------------- -- -- Struktur dari tabel `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Struktur dari tabel `personal_access_tokens` -- CREATE TABLE `personal_access_tokens` ( `id` bigint(20) UNSIGNED NOT NULL, `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `tokenable_id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, `abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `last_used_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; -- -- Dumping data untuk tabel `personal_access_tokens` -- INSERT INTO `personal_access_tokens` ( `id`, `tokenable_type`, `tokenable_id`, `name`, `token`, `abilities`, `last_used_at`, `created_at`, `updated_at` ) VALUES ( 1, 'App\\Models\\User', 1, 'token', '<KEY>', '[\"*\"]', NULL, '2022-02-05 07:28:20', '2022-02-05 07:28:20' ); -- -------------------------------------------------------- -- -- Struktur dari tabel `products` -- CREATE TABLE `products` ( `id` bigint(20) UNSIGNED NOT NULL, `doctor_id` int(11) NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `description` text COLLATE utf8mb4_unicode_ci NOT NULL, `price` double NOT NULL, `breakdown_price` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Struktur dari tabel `spesialists` -- CREATE TABLE `spesialists` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `images` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; -- -- Dumping data untuk tabel `spesialists` -- INSERT INTO `spesialists` ( `id`, `name`, `images`, `created_at`, `updated_at` ) VALUES (1, 'Neurology', 'neurology.png', NULL, NULL), ( 2, 'Dentist', '360_F_302681154_9HOWdvGLtCKpfwO5B85yESszG7MfmlUl.jpg', NULL, NULL ), (3, 'Urulogist', '6490656.png', NULL, NULL), ( 4, 'Cardiology', 'Breast-Cance-92.jpg', NULL, NULL ), (5, 'Radiology', 'images.jpg', NULL, NULL); -- -------------------------------------------------------- -- -- Struktur dari tabel `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `role` enum('Admin', 'Pasien') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Pasien', `address` text COLLATE utf8mb4_unicode_ci NOT NULL, `dob` date NOT NULL, `gender` enum('Male', 'Female') COLLATE utf8mb4_unicode_ci NOT NULL, `phone` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; -- -- Dumping data untuk tabel `users` -- INSERT INTO `users` ( `id`, `name`, `email`, `email_verified_at`, `password`, `role`, `address`, `dob`, `gender`, `phone`, `remember_token`, `created_at`, `updated_at` ) VALUES ( 1, 'IQBAL', '<EMAIL>', NULL, '$2y$10$4i0aavKvwdQdXAp9tqeRC.bbHzmIk9wDBxmbuN.Re5Vp1ZAjAeMzq', 'Pasien', '', '2021-01-05', 'Male', '082335078685', NULL, '2022-02-05 05:33:17', '2022-02-05 05:33:17' ); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `doctors` -- ALTER TABLE `doctors` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Indeks untuk tabel `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indeks untuk tabel `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`), ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`, `tokenable_id`); -- -- Indeks untuk tabel `products` -- ALTER TABLE `products` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `spesialists` -- ALTER TABLE `spesialists` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `doctors` -- ALTER TABLE `doctors` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT = 6; -- -- AUTO_INCREMENT untuk tabel `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT = 19; -- -- AUTO_INCREMENT untuk tabel `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT = 2; -- -- AUTO_INCREMENT untuk tabel `products` -- ALTER TABLE `products` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `spesialists` -- ALTER TABLE `spesialists` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT = 6; -- -- AUTO_INCREMENT untuk tabel `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT = 2; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */ ; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */ ; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */ ;
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 29, 2021 at 10:28 AM -- Server version: 10.5.12-MariaDB-cll-lve -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `u422338526_sales` -- -- -------------------------------------------------------- -- -- Table structure for table `stock_management` -- CREATE TABLE `stock_management` ( `id` bigint(20) UNSIGNED NOT NULL, `stock_item_id` bigint(20) DEFAULT NULL, `batch_id` bigint(20) DEFAULT NULL, `warehouse_id` bigint(20) DEFAULT NULL, `document_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `item_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `pack_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `uom` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `qty` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `balance_qty` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `rate` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `balance_value` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `total_balance` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `voucher_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `in_transit` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '1', `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created` datetime DEFAULT NULL, `status` int(11) NOT NULL COMMENT '1:purchase,2:sales,5:opening_stock', `active` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `voucher_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `stock_management` -- INSERT INTO `stock_management` (`id`, `stock_item_id`, `batch_id`, `warehouse_id`, `document_no`, `item_name`, `pack_code`, `uom`, `qty`, `balance_qty`, `rate`, `balance_value`, `total_balance`, `voucher_type`, `in_transit`, `description`, `created`, `status`, `active`, `created_at`, `updated_at`, `voucher_no`) VALUES (586, 52, 7, 9, 'MR000014', 'Baking powder', '859874', 'Kg', '-25', NULL, '25', '-625', '625', 'Stock entry - material_issue', '1', NULL, '2021-11-18 04:53:55', 3, 1, NULL, NULL, 'MR-ST-2111180453'), (587, 53, 8, 10, 'MR000014', 'Caustic soda', '78', 'Litre', '-20', NULL, '10', '-200', '200', 'Stock entry - material_issue', '1', NULL, '2021-11-18 04:53:55', 3, 1, NULL, NULL, 'MR-ST-2111180453'), (588, 52, 7, 9, 'MR000014', 'Baking powder', '859874', 'Kg', '25', NULL, '25', '625', '1250', 'Stock entry - material_receipt', '1', NULL, '2021-11-18 04:54:45', 3, 1, NULL, NULL, 'MR-ST-2111180454'), (589, 53, 8, 10, 'MR000014', 'Caustic soda', '78', 'Litre', '20', NULL, '10', '200', '400', 'Stock entry - material_receipt', '1', NULL, '2021-11-18 04:54:45', 3, 1, NULL, NULL, 'MR-ST-2111180454'), (590, 55, 10, 11, 'MR000015', 'Shoda', '4587', 'Kg', '-30', NULL, '30', '-900', '900', 'Stock entry - material_issue', '1', NULL, '2021-11-18 04:56:01', 3, 1, NULL, NULL, 'MR-ST-2111180456'), (591, 58, 13, 27, 'MR000016', ' Adipic acid', '856', 'Kg', '-50', NULL, '50', '-2500', '2500', 'Stock entry - material_transfer', '1', NULL, '2021-11-18 05:04:07', 3, 1, NULL, NULL, 'MR-ST-2111180504'), (592, 58, 13, 27, 'MR000016', ' Adipic acid', '856', 'Kg', '50', NULL, '50', '2500', '2500', 'Stock entry - material_transfer', '1', NULL, '2021-11-18 05:04:07', 3, 1, NULL, NULL, 'MR-ST-2111180504'), (593, 58, 13, 27, 'MR000017', ' Adipic acid', '856', 'Kg', '-25', NULL, '20', '-500', '2000', 'Stock entry - material_issue', '1', NULL, '2021-11-18 05:10:46', 3, 1, NULL, NULL, 'MR-ST-2111180510'), (594, 58, 13, 27, 'MR000017', ' Adipic acid', '856', 'Kg', '25', NULL, '20', '500', '2500', 'Stock entry - material_receipt', '1', NULL, '2021-11-18 05:11:07', 3, 1, NULL, NULL, 'MR-ST-2111180511'), (595, 53, NULL, 10, NULL, 'Caustic soda', '78', 'Litre', '1000', NULL, '100', '100000', '100400', 'Purchase Receipt', '1', NULL, '2021-11-25 06:19:01', 1, 1, NULL, NULL, 'MR-PR-2111250619'), (596, 53, 8, 10, 'MR000018', 'Caustic soda', '78', 'Litre', '-150', NULL, '100', '-15000', '-14600', 'Stock entry - material_transfer', '1', NULL, '2021-11-25 06:20:55', 3, 1, NULL, NULL, 'MR-ST-2111250620'), (597, 53, 8, 11, 'MR000018', 'Caustic soda', '78', 'Litre', '150', NULL, '100', '15000', '15400', 'Stock entry - material_transfer', '1', NULL, '2021-11-25 06:20:55', 3, 1, NULL, NULL, 'MR-ST-2111250620'), (598, 53, 8, 10, 'MR000019', 'Caustic soda', '78', 'Litre', '-200', NULL, '100', '-20000', '-34600', 'Stock entry - material_issue', '1', NULL, '2021-11-25 06:21:56', 3, 1, NULL, NULL, 'MR-ST-2111250621'), (601, 53, 8, 25, 'MR000020', 'Caustic soda', '78', 'Litre', '100', NULL, '20', '2000', '-32600', 'Stock entry - material_receipt', '1', NULL, '2021-11-25 09:21:33', 3, 1, NULL, NULL, 'MR-ST-2111250921'), (606, 53, 8, 10, 'MR000023', 'Caustic soda', '78', 'Litre', '-40', NULL, '10', '-400', '-35000', 'Stock entry - material_transfer', '1', NULL, '2021-11-25 11:15:09', 3, 1, NULL, NULL, 'MR-ST-2111251115'), (607, 53, 8, 27, 'MR000023', 'Caustic soda', '78', 'Litre', '40', NULL, '10', '400', '-34200', 'Stock entry - material_transfer', '1', NULL, '2021-11-25 11:15:09', 3, 1, NULL, NULL, 'MR-ST-2111251115'), (608, 59, NULL, 26, NULL, 'Medicine-liquied', '741', 'Litre', '600', NULL, '10', '6000', '6000', 'Purchase Receipt', '1', NULL, '2021-11-25 11:24:38', 1, 1, NULL, NULL, 'MR-PR-2111251124'), (609, 59, 14, 26, 'MR000024', 'Medicine-liquied', '741', 'Litre', '-100', NULL, '10', '-1000', '1000', 'Stock entry - material_transfer', '1', NULL, '2021-11-25 11:25:28', 3, 1, NULL, NULL, 'MR-ST-2111251125'), (610, 59, 14, 27, 'MR000024', 'Medicine-liquied', '741', 'Litre', '100', NULL, '10', '1000', '1000', 'Stock entry - material_transfer', '1', NULL, '2021-11-25 11:25:28', 3, 1, NULL, NULL, 'MR-ST-2111251125'), (611, 59, 14, 26, 'MR000025', 'Medicine-liquied', '741', 'Litre', '-50', NULL, '10', '-500', '500', 'Stock entry - material_issue', '1', NULL, '2021-11-25 11:28:28', 3, 1, NULL, NULL, 'MR-ST-2111251128'), (612, 59, 14, 9, 'MR000025', 'Medicine-liquied', '741', 'Litre', '50', NULL, '10', '500', '1000', 'Stock entry - material_receipt', '1', NULL, '2021-11-25 11:29:23', 3, 1, NULL, NULL, 'MR-ST-2111251129'), (613, 59, 14, 26, 'MR000026', 'Medicine-liquied', '741', 'Litre', '-20', NULL, '20', '-400', '100', 'Stock entry - material_transfer', '1', NULL, '2021-11-25 11:37:05', 3, 1, NULL, NULL, 'MR-ST-2111251137'), (614, 59, 14, 26, 'MR000026', 'Medicine-liquied', '741', 'Litre', '20', NULL, '20', '400', '900', 'Stock entry - material_transfer', '1', NULL, '2021-11-25 11:37:05', 3, 1, NULL, NULL, 'MR-ST-2111251137'), (615, 59, NULL, 26, NULL, 'Medicine-liquied', '741', 'GM', '-100', NULL, '10', '-1000', '-100', 'Sales Invoice', '1', NULL, '2021-11-25 11:42:33', 2, 1, NULL, NULL, 'MR-SO-2111251142'), (616, 52, NULL, 26, 'MR000022', 'Baking powder', '859874', 'Kg', '50', NULL, '10', '500', '500', 'Stock entry - material_receipt', '1', NULL, '2021-11-26 05:59:22', 3, 1, NULL, NULL, 'MR-ST-2111260559'), (617, 59, 14, 26, 'MR000023', 'Medicine-liquied', '741', 'Litre', '-100', NULL, '100', '-10000', '-9100', 'Stock entry - material_issue', '1', NULL, '2021-11-26 06:43:10', 3, 1, NULL, NULL, 'MR-ST-2111260643'), (621, 62, NULL, 26, NULL, 'Detergent', '8569', '15', '2300', '2300', '1', '2300', '2300', 'Stock Entry - opening_stock', '1', NULL, '2021-11-26 07:34:45', 5, 1, NULL, NULL, NULL), (622, 62, NULL, 9, NULL, 'Detergent', '8569', 'GM', '1300', '1300', '20', '26000', '28300', 'Purchase Receipt', '1', NULL, '2021-11-26 07:38:24', 1, 1, NULL, NULL, 'MR-PR-2111260738'), (623, 62, 15, 25, 'MR000024', 'Detergent', '8569', 'GM', '-100', NULL, '10', '-1000', '1000', 'Stock entry - material_issue', '1', NULL, '2021-11-26 07:43:50', 3, 1, NULL, NULL, 'MR-ST-2111260743'), (624, 62, NULL, 26, NULL, 'Detergent', '8569', 'GM', '100', '100', '100', '10000', '11000', 'Purchase Receipt', '1', NULL, '2021-11-26 07:51:34', 1, 1, NULL, NULL, 'MR-PR-2111260751'), (625, 62, NULL, 9, NULL, 'Detergent', '8569', 'GM', '200', '200', '100', '20000', '31000', 'Purchase Receipt', '1', NULL, '2021-11-26 07:53:32', 1, 1, NULL, NULL, 'MR-PR-2111260753'), (626, 62, NULL, 9, NULL, 'Detergent', '8569', 'GM', '100', '300', '10', '1000', '32000', 'Purchase Receipt', '1', NULL, '2021-11-26 08:37:37', 1, 1, NULL, NULL, 'MR-PR-2111260837'), (627, 52, NULL, 9, NULL, 'Baking powder', '859874', 'Kg', '100', '100', '10', '1000', '1500', 'Purchase Receipt', '1', NULL, '2021-11-26 08:41:19', 1, 1, NULL, NULL, 'MR-PR-2111260841'), (628, 52, NULL, 9, NULL, 'Baking powder', '859874', 'Kg', '10', '110', '10', '100', '1600', 'Purchase Receipt', '1', NULL, '2021-11-26 08:43:21', 1, 1, NULL, NULL, 'MR-PR-2111260843'), (629, 62, 7, 9, NULL, 'Detergent', '8569', 'GM', '-100', NULL, '10', '-1000', '31000', 'Sales Invoice', '1', NULL, '2021-11-26 08:51:36', 2, 1, NULL, NULL, 'MR-SO-2111260851'), (630, 62, NULL, 9, NULL, 'Detergent', '8569', 'GM', '-100', NULL, '10', '-1000', '30000', 'Sales Invoice', '1', NULL, '2021-11-26 08:58:47', 2, 1, NULL, NULL, 'MR-SO-2111260858'), (631, 62, 7, 9, NULL, 'Detergent', '8569', 'GM', '-100', NULL, '10', '-1000', '29000', 'Sales Invoice', '1', NULL, '2021-11-26 09:04:37', 2, 1, NULL, NULL, 'MR-SO-2111260904'), (632, 62, NULL, 9, NULL, 'Detergent', '8569', 'GM', '-100', '-100', '10', '-1000', '28000', 'Sales Invoice', '1', NULL, '2021-11-26 09:11:41', 2, 1, NULL, NULL, 'MR-SO-2111260911'), (633, 62, NULL, 9, NULL, 'Detergent', '8569', 'GM', '-100', '200', '10', '-1000', '27000', 'Sales Invoice', '1', NULL, '2021-11-26 09:14:29', 2, 1, NULL, NULL, 'MR-SO-2111260914'), (634, 62, NULL, 9, NULL, 'Detergent', '8569', 'GM', '-150', '50', '10', '-1500', '25500', 'Sales Invoice', '1', NULL, '2021-11-26 09:18:23', 2, 1, NULL, NULL, 'MR-SO-2111260918'), (635, 62, NULL, 9, NULL, 'Detergent', '8569', 'GM', '-20', '30', '10', '-200', '25300', 'Sales Invoice', '1', NULL, '2021-11-26 09:20:08', 2, 1, NULL, NULL, 'MR-SO-2111260920'), (636, 62, NULL, 9, 'MR000025', 'Detergent', '8569', 'GM', '-10', '20', '10', '-100', '25200', 'Stock entry - material_issue', '1', NULL, '2021-11-26 09:51:32', 3, 1, NULL, NULL, 'MR-ST-2111260951'), (637, 62, NULL, 9, 'MR000026', 'Detergent', '8569', 'GM', '-10', '10', '10', '-100', '25100', 'Stock entry - material_issue', '1', NULL, '2021-11-26 09:52:58', 3, 1, NULL, NULL, 'MR-ST-2111260952'), (638, 59, 12, 9, 'MR000026', 'Medicine-liquied', '741', 'Litre', '20', '20', '20', '400', '400', 'Stock entry - material_receipt', '1', NULL, '2021-11-26 09:55:14', 3, 1, NULL, NULL, 'MR-ST-2111260955'), (639, 62, NULL, 9, 'MR000026', 'Detergent', '8569', 'GM', '10', '10', '10', '100', '25200', 'Stock entry - material_receipt', '1', NULL, '2021-11-26 09:55:14', 3, 1, NULL, NULL, 'MR-ST-2111260955'), (640, 62, NULL, 9, 'MR000027', 'Detergent', '8569', 'GM', '-10', '0', '10', '-100', '25100', 'Stock entry - material_issue', '1', NULL, '2021-11-26 09:56:40', 3, 1, NULL, NULL, 'MR-ST-2111260956'), (641, 62, NULL, 9, 'MR000027', 'Detergent', '8569', 'GM', '10', '10', '10', '100', '25200', 'Stock entry - material_receipt', '1', NULL, '2021-11-26 09:57:23', 3, 1, NULL, NULL, 'MR-ST-2111260957'), (642, 63, NULL, 27, NULL, 'Phenyl', '789', '7', '1500', '1500', '1', '1500', '1500', 'Stock Entry - opening_stock', '1', NULL, '2021-11-26 10:00:31', 5, 1, NULL, NULL, NULL), (643, 63, NULL, 27, NULL, 'Phenyl', '789', 'Litre', '2500', '4000', '10', '25000', '26500', 'Purchase Receipt', '1', NULL, '2021-11-26 10:05:39', 1, 1, NULL, NULL, 'MR-PR-2111261005'), (644, 63, NULL, 27, NULL, 'Phenyl', '789', 'Litre', '200', '4200', '10', '2000', '28500', 'Purchase Receipt', '1', NULL, '2021-11-26 10:08:05', 1, 1, NULL, NULL, 'MR-PR-2111261008'), (645, 63, NULL, 27, NULL, 'Phenyl', '789', 'Litre', '-400', '3800', '10', '-4000', '24500', 'Sales Invoice', '1', NULL, '2021-11-26 10:09:56', 2, 1, NULL, NULL, 'MR-SO-2111261009'), (646, 63, 16, 27, 'MR000028', 'Phenyl', '789', 'Litre', '-250', '3550', '10', '-2500', '2500', 'Stock entry - material_issue', '1', NULL, '2021-11-26 10:12:10', 3, 1, NULL, NULL, 'MR-ST-2111261012'), (647, 63, 8001, 27, 'MR000028', 'Phenyl', '789', 'Litre', '250', '250', '10', '2500', '2500', 'Stock entry - material_receipt', '1', NULL, '2021-11-26 10:13:14', 3, 1, NULL, NULL, 'MR-ST-2111261013'), (648, 63, 16, 27, 'MR000029', 'Phenyl', '789', 'Litre', '-200', '50', '10', '-2000', '500', 'Stock entry - material_issue', '1', NULL, '2021-11-26 10:19:12', 3, 1, NULL, NULL, 'MR-ST-2111261019'), (649, 63, 8001, 27, 'MR000029', 'Phenyl', '789', 'Litre', '200', '200', '10', '2000', '4500', 'Stock entry - material_receipt', '1', NULL, '2021-11-26 10:19:35', 3, 1, NULL, NULL, 'MR-ST-2111261019'), (650, 63, 16, 27, 'MR000030', 'Phenyl', '789', 'Litre', '-50', '150', '10', '-500', '0', 'Stock entry - material_issue', '1', NULL, '2021-11-26 10:24:30', 3, 1, NULL, NULL, 'MR-ST-2111261024'), (651, 63, 8001, 27, 'MR000030', 'Phenyl', '789', 'Litre', '50', '50', '10', '500', '5000', 'Stock entry - material_receipt', '1', NULL, '2021-11-26 10:25:08', 3, 1, NULL, NULL, 'MR-ST-2111261025'), (652, 63, 16, 27, 'MR000031', 'Phenyl', '789', 'Litre', '-40', '10', '10', '-400', '-400', 'Stock entry - material_issue', '1', NULL, '2021-11-26 10:28:07', 3, 1, NULL, NULL, 'MR-ST-2111261028'), (653, 63, 8001, 27, 'MR000031', 'Phenyl', '789', 'Litre', '40', '50', '10', '400', '5400', 'Stock entry - material_receipt', '1', NULL, '2021-11-26 10:28:30', 3, 1, NULL, NULL, 'MR-ST-2111261028'), (654, 63, 16, 27, 'MR000032', 'Phenyl', '789', 'Litre', '-50', '0', '10', '-500', '-900', 'Stock entry - material_transfer', '1', NULL, '2021-11-26 10:29:10', 3, 1, NULL, NULL, 'MR-ST-2111261029'), (655, 63, 16, 26, 'MR000032', 'Phenyl', '789', 'Litre', '50', '50', '10', '500', '100', 'Stock entry - material_transfer', '1', NULL, '2021-11-26 10:29:10', 3, 1, NULL, NULL, 'MR-ST-2111261029'), (656, 64, NULL, 11, NULL, 'Acid', '789', '7', '100', '100', '1', '100', '100', 'Stock Entry - opening_stock', '1', NULL, '2021-11-26 10:32:04', 5, 1, NULL, NULL, NULL), (657, 64, NULL, 11, NULL, 'Acid', '789', 'Litre', '100', '200', '10', '1000', '1100', 'Purchase Receipt', '1', NULL, '2021-11-26 10:34:25', 1, 1, NULL, NULL, 'MR-PR-2111261034'), (658, 64, NULL, 11, NULL, 'Acid', '789', 'Litre', '-50', '150', '10', '-500', '600', 'Sales Invoice', '1', NULL, '2021-11-26 10:35:39', 2, 1, NULL, NULL, 'MR-SO-2111261035'), (659, 64, NULL, 11, 'MR000033', 'Acid', '789', 'Litre', '-20', '130', '10', '-200', '400', 'Stock entry - material_issue', '1', NULL, '2021-11-26 10:36:13', 3, 1, NULL, NULL, 'MR-ST-2111261036'), (660, 64, NULL, 11, 'MR000033', 'Acid', '789', 'Litre', '20', '150', '10', '200', '600', 'Stock entry - material_receipt', '1', NULL, '2021-11-26 10:36:35', 3, 1, NULL, NULL, 'MR-ST-2111261036'); -- -- Indexes for dumped tables -- -- -- Indexes for table `stock_management` -- ALTER TABLE `stock_management` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `stock_management` -- ALTER TABLE `stock_management` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=693; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>danishabdullah/lunatic \echo # Creating feedback_type type for conversation create type feedback_type as enum ( 'positive', 'negative', 'neutral' ); insert into data.uisetup (name, details) values ('feedback_type', '{"Negative":"negative","Neutral":"neutral","Positive":"positive"}'::jsonb) ; -- prettified json structure is as follows -- { -- "Negative": "negative", -- "Neutral": "neutral", -- "Positive": "positive" -- }
drop database if exists techblog_db; create database techblog_db; use techblog_db;