-- Deactivate UNIQUE_CHECKS and FOREIGN_KEY_CHECKS
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS;
ALTER DATABASE Tabletop SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
ALTER DATABASE Tabletop SET CONSTRAINT ALL DEFERRED;

-- Database
USE Tabletop;

-- Fractions
INSERT INTO Fractions (Image) VALUES 
(NULL),
(NULL),
(NULL),
(NULL);

-- Fraction Descriptions
INSERT INTO FractionDescription (FractionId, Code, Name, ShortName, Description) VALUES 
(1, 'en', 'Grand Army of the Republic', 'GAR', 'The Grand Army of the Republic is the main military force of the Galactic Republic. It was formed during the Clone Wars to combat the Separatists. The army consists primarily of clone troopers, who were created using the genetic material of Jango Fett as a basis. It encompasses a variety of troops, including infantry, artillery, and special forces, as well as an extensive fleet of starships. The Grand Army of the Republic is renowned for its effective organization, disciplined training, and tactical prowess.'),
(1, 'de', 'Große Armee der Republik', 'GAR', 'Die Große Armee der Republik ist die Hauptstreitmacht der Galaktischen Republik. Sie wurde während der Klonkriege eingesetzt, um die Separatisten zu bekämpfen. Die Armee besteht hauptsächlich aus Klontruppen, die mit dem genetischen Material von Jango Fett als Grundlage geschaffen wurden. Sie umfasst eine Vielzahl von Truppentypen, darunter Infanterie, Artillerie und Spezialeinheiten, sowie eine umfangreiche Flotte von Raumschiffen. Die Große Armee der Republik ist bekannt für ihre effektive Organisation, disziplinierte Ausbildung und taktische Geschicklichkeit.'),
(2, 'en', 'Confederacy of Independent Systems', 'CIS', 'The Confederation of Independent Systems (CIS) is a military alliance in the galaxy, consisting of renegade planets and organizations that have distanced themselves from the rule of the Galactic Republic. The CIS possesses an impressive military force, primarily composed of droid armies. These automated combat droids are produced in large numbers and pose a dangerous threat due to their numerical superiority.'),
(2, 'de', 'Konföderation der unabhängigen Systeme', 'KUS', 'Die Konföderation unabhängiger Systeme (KUS) ist ein militärisches Bündnis in der Galaxis, bestehend aus abtrünnigen Planeten und Organisationen, die sich von der Herrschaft der Galaktischen Republik distanziert haben. Die KUS verfügt über eine beeindruckende Militärmacht, die hauptsächlich aus Droidenarmeen besteht. Diese automatisierten Kampfdroiden werden in großen Mengen produziert und stellen aufgrund ihrer zahlenmäßigen Überlegenheit eine gefährliche Bedrohung dar.'),
(3, 'en', 'Galactic Empire', 'EMP', 'The Galactic Empire is a military power in the galaxy that emerged after the fall of the Galactic Republic. It possesses a massive military force based on the suppression and control of planets and systems. The Empire employs a variety of troop types. It is renowned for its iron discipline, rigorous training, and ruthless efficiency. It seeks galaxy-wide dominance and pursues a policy of fear and subjugation.'),
(3, 'de', 'Galaktisches Imperium', 'IMP', 'Das Galaktische Imperium ist eine militärische Macht in der Galaxie, die nach dem Fall der Galaktischen Republik entstand. Es verfügt über eine massive Militärmacht, die auf der Unterdrückung und Kontrolle von Planeten und Systemen basiert. Das Imperium setzt verschiedene Arten von Truppen ein. Es ist bekannt für seine eiserne Disziplin, strenge Ausbildung und rücksichtslose Effizienz. Es strebt die Vorherrschaft in der gesamten Galaxie an und verfolgt eine Politik der Angst und Unterwerfung.'),
(4, 'en', 'Rebellion', 'REB', 'The Rebellion is a military resistance movement that fights against the rule of the Galactic Empire. It consists of various factions and planets that rise up against oppression. The Rebellion employs asymmetric warfare and guerrilla tactics to inflict damage upon the Empire. Its forces include both regular troops and partisan units. The Rebellion is known for its determination, belief in freedom, and ability to mobilize resources to challenge the Empire. It also utilizes stolen or improvised starships and weapons to carry out its operations.'),
(4, 'de', 'Rebellion', 'REB', 'Der Widerstand ist eine militärische Widerstandsbewegung, die gegen die Herrschaft des Galaktischen Imperiums kämpft. Er besteht aus verschiedenen Fraktionen und Planeten, die sich gegen die Unterdrückung erheben. Der Widerstand setzt asymmetrische Kriegsführung und Guerillataktiken ein, um dem Imperium Schaden zuzufügen. Seine Streitkräfte umfassen sowohl reguläre Truppen als auch Partisaneneinheiten. Der Widerstand ist bekannt für seine Entschlossenheit, seinen Glauben an die Freiheit und seine Fähigkeit, Ressourcen zu mobilisieren, um das Imperium herauszufordern. Er verwendet auch gestohlene oder improvisierte Raumschiffe und Waffen, um seine Operationen durchzuführen.');

-- Classes
INSERT INTO Classes (ClassId, Quantity) VALUES 
(1, 0),
(2, 0),
(3, 0);

-- Class Descriptions
INSERT INTO ClassDescription (ClassId, Code, Name, Description) VALUES 
(1, 'en', 'Regular', ''),
(1, 'de', 'Regulär', ''),
(2, 'en', 'Elite', ''),
(2, 'de', 'Elite', ''),
(3, 'en', 'Specialist', ''),
(3, 'de', 'Spezialist', '');

-- Abilities
INSERT INTO Abilities (AbilityId, Quality, Force) VALUES 
(1, 1, 0),
(2, 0, 1);

-- Ability Descriptions
INSERT INTO AbilityDescription (AbilityId, Code, Name, Description) VALUES 
(1, 'en', '', ''),
(1, 'de', '', ''),
(2, 'en', '', ''),
(2, 'de', '', '');

-- Weapons
INSERT INTO Weapons (Attack, Quality, Range, Dices) VALUES 
(5, 5, 60, 1),
(6, 5, 45, 1),
(9, 7, 80, 1),
(4, 4, 30, 1),
(7, 4, 30, 6),
(6, 4, 40, 1),
(10, 7, 80, 1),
(6, 5, 45, 1),
(6, 4, 50, 2),
(7, 4, 30, 4),
(5, 5, 45, 1),
(7, 4, 60, 1),
(9, 7, 80, 1),
(4, 4, 45, 2),
(8, 4, 35, 1),
(4, 4, 30, 1);

-- Weapon Descriptions
INSERT INTO WeaponDescription (WeaponId, Code, Name, Description) VALUES 
(1, 'en', 'DC-15A Blaster Rifle', ''),
(1, 'de', 'DC-15A Blastergewehr', ''),
(2, 'en', 'DC-15S Blaster Carbine', ''),
(2, 'de', 'DC-15S Blasterkarabiner', ''),
(3, 'en', 'DC-15x Sniper Rifle', ''),
(3, 'de', 'DC-15x Scharfschützengewehr', ''),
(4, 'en', 'DC-17 Hand Blaster', ''),
(4, 'de', 'DC-17 Handblaster', ''),
(5, 'en', 'Z-6 Rotary Blaster Cannon', ''),
(5, 'de', 'Z-6 Rotationsblaster', ''),
(6, 'en', 'E-5 Blaster Rifle', ''),
(6, 'de', 'E-5 Blastergewehr', ''),
(7, 'en', 'E-5s Sniper Rifle', ''),
(7, 'de', 'E-5s Scharfschützengewehr', ''),
(8, 'en', 'RG-4D Blaster Pistol', ''),
(8, 'de', 'RG-4D Blasterpistole', ''),
(9, 'en', 'Wrist Blaster', ''),
(9, 'de', 'Dual-Blaster', ''),
(10, 'en', 'Droideka', ''),
(10, 'de', 'Droideka', ''),
(11, 'en', 'E-11 Blaster Rifle', ''),
(11, 'de', 'E-11 Blastergewehr', ''),
(12, 'en', 'DLT-19 Heavy Blaster Rifle', ''),
(12, 'de', 'DLT-19 Schweres Blastergewehr', ''),
(13, 'en', 'E-11s Sniper Rifle', ''),
(13, 'de', 'E-11s Scharfschützengewehr', ''),
(14, 'en', 'E-22 Blaster Rifle', ''),
(14, 'de', 'E-22 Blastergewehr', ''),
(15, 'en', 'E-11D Blaster Rifle', ''),
(15, 'de', 'E-11D Blastergewehr', ''),
(16, 'en', 'SE-14 Hand Blaster', ''),
(16, 'de', 'SE-14 Handblaster', '');

-- Units
INSERT INTO Units (FractionId, ClassId, TroopQuantity, Defense, Moving, PrimaryWeaponId, SecondaryWeaponId, FirstAbilityId, SecondAbilityId, Image) VALUES 
(1, 1, 6, 6, 16, 2, NULL, NULL, NULL, NULL),
(1, 1, 6, 5, 16, 1, NULL, NULL, NULL, NULL),
(1, 1, 6, 6, 16, 1, NULL, NULL, NULL, NULL),
(1, 1, 6, 6, 16, 2, NULL, NULL, NULL, NULL),
(1, 1, 6, 6, 16, 2, NULL, 1, NULL, NULL),
(1, 2, 4, 6, 22, 4, 4, NULL, NULL, NULL),
(1, 2, 4, 6, 22, 2, NULL, NULL, NULL, NULL),
(1, 3, 1, 7, 10, 5, NULL, NULL, NULL, NULL),
(1, 3, 1, 6, 14, 3, 4, NULL, NULL, NULL),
(2, 1, 8, 2, 12, 6, NULL, NULL, NULL, NULL),
(2, 1, 6, 5, 14, 9, NULL, NULL, NULL, NULL),
(2, 2, 4, 6, 17, 6, NULL, 1, NULL, NULL),
(2, 2, 6, 5, 14, 9, NULL, NULL, NULL, NULL),
(2, 2, 6, 2, 22, 6, NULL, NULL, NULL, NULL),
(2, 3, 1, 10, 22, 15, NULL, NULL, NULL, NULL),
(2, 3, 1, 2, 12, 6, 8, NULL, NULL, NULL),
(3, 1, 6, 5, 16, 11, NULL, NULL, NULL, NULL),
(3, 1, 6, 5, 15, 11, NULL, NULL, NULL, NULL),
(3, 2, 4, 7, 15, 15, NULL, NULL, NULL, NULL),
(3, 1, 6, 5, 16, 14, NULL, NULL, NULL, NULL),
(3, 2, 4, 6, 14, 12, NULL, NULL, NULL, NULL),
(3, 2, 4, 5, 22, 11, NULL, NULL, NULL, NULL),
(3, 3, 1, 4, 15, 13, 16, NULL, NULL, NULL),
(4, 1, 6, 4, 16, 11, NULL, NULL, NULL, NULL),
(4, 2, 4, 4, 16, 11, NULL, NULL, NULL, NULL),
(4, 1, 6, 4, 16, 11, NULL, NULL, NULL, NULL),
(4, 1, 6, 4, 16, 11, NULL, NULL, NULL, NULL),
(4, 2, 4, 4, 16, 11, NULL, NULL, NULL, NULL),
(4, 3, 1, 4, 16, 11, NULL, NULL, NULL, NULL),
(4, 3, 1, 4, 16, 11, NULL, NULL, NULL, NULL);

-- Unit Descriptions
INSERT INTO UnitDescription (UnitId, Code, Name, Description, Mechanic) VALUES 
(1, 'en', '41st Ranger Platoon', 'The 41st Ranger Platoon is a clone trooper infantry platoon and strike team within the 41st Elite Corps. The platoon participated in sabotage missions on Separatist supply lines and installations.', ''),
(1, 'de', '41. Ranger Platoon', '', ''),
(2, 'en', '41st Elite Corps', 'The 41st Elite Corps is a military corps of the Grand Army of the Republic. They are specialized in conducting missions on exotic and often primitve worlds. One of their main tasks was to contact and cooperate with the native indigenous population. in addition, the unit was capable of successfully carrying out both infatry and reconnaissance missions.', ''),
(2, 'de', '41. Elitekorps', '', ''),
(3, 'en', '212th Attack Battalion', 'The 212th Attack Battalion is a clone trooper battalion in the Grand Army of the Republic. The Battalion is famous for its bravery, discipline and effectivness in combat. As an extremly versatile infantry unit of the Regular Forces, it is optimally equipped for a variety of different tasks.', ''),
(3, 'de', '212. Angriffsbataillion', '', ''),
(4, 'en', '2nd Airborne Company', 'The 2nd Airborne Company was an aerial infantry company of the 212th Attack Battalion. The company consisted of clone paratroopers and participated in the Clone Wars.', ''),
(4, 'de', '2. Luftlandekompanie', '', ''),
(5, 'en', '501st Legion', 'The 501st Legion is an elite military battalion of clone troopers in the Grand Army of the Galactic Republic. The soldiers of the Legion are known for their courage, unconventional tactics and loyalty to the Republic.', ''),
(5, 'de', '501. Legion', '', ''),
(6, 'en', '501st Jetpack Company', 'The 501st Jetpack Company is an special unit within the 501st Legion whose soldiers are equipped with jetpacks. The jetpack troopers use their jetpacks with limited flight capabilities to quickly cover large distances and gain an advantage over their enemies in the air. Thanks to their exceptional agility, they are hard to hit and can skillfully attack their enemies from behind.', ''),
(6, 'de', '501. Jetpack Kompanie', '', ''),
(7, 'en', '104th Battalion', 'The 104th Battalion, is a military unit within the Galactic Republic. Its primary mission is to perform relief and recovery missions. The battalions distinctive mark is a symbol with a wolfs snout, which is why they are also called the Wolfpack battalion.', ''),
(7, 'de', '104. Bataillion', '', ''),
(8, 'en', '501st Heavy Gunner', 'The 501st Heavy Gunners form an elite special forces unit within the 501st Legion, whose members are equipped with powerful Heavy Guns. These soldiers possess advanced clone trooper armor that offers significant improvements over traditional army clone troopers. Their heavy blasters also give them superior firepower, making them a formidable presence on the battlefield.', ''),
(8, 'de', '501. Schwerer Schütze', '', ''),
(9, 'en', '501st Specialist', 'The 501st Specialist represent an special unit within the 501st Legion. Their expertise lies in precise attacks from a considerable distance, which makes them an extremely dangerous threat. Their primary mission is to conduct patrols and lead reconnaissance missions.', ''),
(9, 'de', '501. Scharfschütze', '', ''),
(10, 'en', 'B1-series Battle Droid', 'The B1 battle droids are developed for mass combat and are known to operate in large numbers against enemy forces. They have a relatively simple artificial intelligence and are often quite clumsy and easy to overcome.', ''),
(10, 'de', 'B1-Serie Kampfdroide', '', ''),
(11, 'en', 'B2-series Super Battle Droid', 'The B2-Series Super Battle Droid is a more advanced and much more durable version of the B1-Series Battle Droid. Equipped with reinforced armor and more advanced weapons, the B2 significantly surpasses its predecessor in terms of combat power. Added to this is its improved artificial intelligence, which makes it an extremely dangerous and efficient combat unit.', ''),
(11, 'de', 'B2-Serie Superkampfdroide', '', ''),
(12, 'en', 'BX-series Commando Droid', 'The BX-series Commando Droid represents a specialized and sophisticated class of combat droids. Their main role is in covert missions and tactical operations. Equipped with advanced cloaking devices that can make them almost invisible, they are capable of carrying out surprise attacks skillfully.', ''),
(12, 'de', 'BX-Serie Kommandodroide', '', ''),
(13, 'en', 'B2-HA series Super Battle Droid', 'The B2-HA Super Battle Droid, also known as the Heavy Assault Super Battle Droid, is a variant of the B2-Series Battle Droid equipped with a missile launcher. Its ability to perform targeted missile attacks makes it an extremely dangerous combat unit in various situations.', ''),
(13, 'de', 'B2-HA Serie Raketenkampfdroide', '', ''),
(14, 'en', 'B1-series Rocket Battle Droid', '', ''),
(14, 'de', 'B1-Serie Jetpack Kampfdroide', '', ''),
(15, 'en', 'Droideka', 'Droidekas are specialized battle droids characterized by their characteristic spherical shape. In this spherical form, they are able to attack, but they are also extremely fast and agile. However, once they assume their attack position, they unfold to reveal their three-legged form. In this upright position, they have devastating energy weapon salvos and are also equipped with powerful energy shields that protect them from enemy fire.', ''),
(15, 'de', 'Droideka', '', ''),
(16, 'en', 'B1-series Sniper Droid', 'The B1-series Sniper Droid is a special variant of the B1-series combat droid. Their gyroscopic stabilizers and detailed target selection programs made them very effective snipers.', ''),
(16, 'de', 'B1-Serie Scharfschützendroide', '', ''),
(17, 'en', 'Imperial Storm Trooper', 'Stormtroopers are the primary unit of the Galactic Empire. In action, the Stormtroopers are capable of a variety of tasks, including counterinsurgency, defense of Imperial installations, as well as assault missions and conducting operations as part of the Galactic Conquest of the Empire.', ''),
(17, 'de', 'Imperialer Sturmtruppe', '', ''),
(18, 'en', 'Imperial Snow Trooper', 'The Snowtroopers are specialized stormtroopers of the Galactic Empire, equipped with special armors designed to protect them from extreme conditions, including cold, ice, and snow. Their main mission is to pursue hostile targets in snow-covered regions.', ''),
(18, 'de', 'Imperialer Schneetruppe', '', ''),
(19, 'en', 'Imperial Death Trooper', 'Death Troopers are elite soldiers assigned to particularly dangerous and clandestine missions. They often serve as bodyguards for high-ranking Imperial officers or perform special tasks where discretion and efficiency are of the utmost importance.', ''),
(19, 'de', 'Imperiale Todestruppe', '', ''),
(20, 'en', 'Imperial Shore Trooper', 'Shore Troopers are specialized stormtroopers equipped with armor optimized for combat in maritime environments. Their main task is to engage hostile forces on beaches or coastlines and secure important locations. Additionally, they are often deployed in the defense of Imperial bases along coastal lines.', ''),
(20, 'de', 'Imperiale Küstentruppe', '', ''),
(21, 'en', 'Imperial Shock Trooper', 'Shock troopers are elite and highly trained Storm Troopers of the Galactic Empire. They are known for wearing red armor. Their role is to maintain imperial order and combat threats to the Empire.', ''),
(21, 'de', 'Imperiale Stocktruppe', '', ''),
(22, 'en', 'Imperial Jetpack Trooper', 'Jetpack Troopers are specialized troops equipped with jetpacks, allowing them to hover in the air and move faster and more agilely in combat, making them dangerous and versatile adversaries.', ''),
(22, 'de', 'Imperiale Jetpack Truppe', '', ''),
(23, 'en', 'Imperial Scout Trooper', 'The Imperial Scout Troopers are specialized stormtroopers who place special emphasis on speed and agility. Therefore, they wear lighter and slimmer armor compared to regular stormtroopers. The main task of this unit is to conduct patrols and perform reconnaissance missions.', ''),
(23, 'de', 'Imperiale Aufklärungstruppe', '', ''),
(24, 'en', 'Rebel Trooper', '', ''),
(24, 'de', 'Rebellentruppe', '', ''),
(25, 'en', 'Rebel Commando Trooper', '', ''),
(25, 'de', 'Kommandotruppe der Rebellion', '', ''),
(26, 'en', 'Rebel Fleet Trooper', '', ''),
(26, 'de', 'Flottentruppe der Rebellion', '', ''),
(27, 'en', 'Rebel Snow Trooper', '', ''),
(27, 'de', 'Schneetruppe der Rebellion', '', ''),
(28, 'en', 'Rebel Jetpack Trooper', '', ''),
(28, 'de', 'Jetpack Truppe der Rebellion', '', ''),
(29, 'en', 'Rebel Sniper', '', ''),
(29, 'de', 'Scharfschütze der Rebellion', '', ''),
(30, 'en', 'Rebel Heavy Gunner', '', ''),
(30, 'de', 'Schwerer Schütze der Rebellion', '', '');

-- Gamemodes
INSERT INTO Gamemodes (Image) VALUES 
(NULL),
(NULL),
(NULL),
(NULL);

-- Gamemode Descriptions
INSERT INTO GamemodeDescription (GamemodeId, Code, Name, Description, Mechanic) VALUES 
(1, 'en', 'Skirmish', 'The game mode "Skirmish" is the most common of all and focuses on the battle between armies. In this mode, 2-4 armies compete against each other, aiming to eliminate as many units from the opponents field as possible. The game mode is round-limited. The winner is the player who has the most power points remaining on the field at the end.', ''),
(1, 'de', 'Gefecht', 'Der Spielmodus "Gefecht" ist der häufigste aller Spielmodi und konzentriert sich auf die Schlacht zwischen Armeen. In diesem Modus treten 2-4 Armeen gegeneinander an und versuchen so viele Einheiten wie möglich auf dem Spielfeld des Gegners zu eliminieren. Der Spielmodus ist rundenbegrenzt. Der Gewinner ist der Spieler, der am Ende die meisten Macht-Punkte auf dem Spielfeld übrig hat.', ''),
(2, 'en', 'Extraction', 'The game mode "Escape" revolves around both players escorting a VIP and trying to get them out of the area. The conflict arises because there is only one extraction point. It is also possible to eliminate the enemys VIP from the game. Once the enemy VIP has been eliminated or your own VIP has escaped through the evacuation zone, the player wins.', ''),
(2, 'de', 'Flucht', 'Der Spielmodus "Flucht" dreht sich darum, dass beide Spieler einen VIP begleiten und versuchen ihn aus dem Gebiet herauszubringen. Der Konflikt entsteht, weil es nur einen Evakuierungspunkt gibt. Es ist auch möglich, den gegnerischen VIP aus dem Spiel zu eliminieren. Sobald der gegnerische VIP eliminiert wurde oder der eigene VIP durch die Evakuierungszone entkommen ist, gewinnt der Spieler.', ''),
(3, 'en', 'Assault', 'In the game mode "Assault," the objective is to occupy or defend three defense sectors in succession. The attacker begins with their entire army on one side, while the defender distributes their units across the defense sectors. The attacker has six rounds to capture each sector. The round limit resets after a successful capture. The attacker wins after capturing the third sector, while the defender wins if the round limit expires at any of the sectors.', ''),
(3, 'de', 'Ansturm', 'Im Spielmodus "Angriff" besteht das Ziel darin, drei Verteidigungssektoren nacheinander einzunehmen oder zu verteidigen. Der Angreifer startet mit seiner gesamten Armee auf einer Seite, während der Verteidiger seine Einheiten auf die Verteidigungssektoren verteilt. Der Angreifer hat sechs Runden Zeit, um jeden Sektor zu erobern. Die Rundenbegrenzung setzt sich nach einer erfolgreichen Eroberung zurück. Der Angreifer gewinnt, nachdem er den dritten Sektor erobert hat, während der Verteidiger gewinnt, wenn die Rundenbegrenzung in einem der Sektoren abläuft.', ''),
(4, 'en', 'Domination', 'In the game mode "Domination," there are three zones that each side must control.', ''),
(4, 'de', 'Herrschaft', 'Im Spielmodus "Herrschaft" gibt es drei Zonen, die jede Seite kontrollieren muss.', '');

-- Permissions
INSERT INTO Permissions (PermissionId, Identifier) VALUES 
(1, 'ADD_USERS'),
(2, 'ADD_UNITS'),
(3, 'ADD_WEAPONS'),
(4, 'ADD_FRACTIONS'),
(5, 'ADD_GAMEMODES'),
(6, 'VIEW_USERS'),
(7, 'VIEW_UNITS'),
(8, 'VIEW_WEAPONS'),
(9, 'VIEW_FRACTIONS'),
(10, 'VIEW_GAMEMODES'),
(11, 'EDIT_USERS'),
(12, 'EDIT_UNITS'),
(13, 'EDIT_WEAPONS'),
(14, 'EDIT_FRACTIONS'),
(15, 'EDIT_GAMEMODES'),
(16, 'DELETE_USERS'),
(17, 'DELETE_UNITS'),
(18, 'DELETE_WEAPONS'),
(19, 'DELETE_FRACTIONS'),
(20, 'DELETE_GAMEMODES');

-- Permission Descriptions
INSERT INTO PermissionDescription (PermissionId, Code, Name, Description) VALUES 
(1, 'en', 'Add Users', ''),
(1, 'de', 'Benutzer erstellen', ''),
(2, 'en', 'Add Units', ''),
(2, 'de', 'Einheiten erstellen', ''),
(3, 'en', 'Add Weapons', ''),
(3, 'de', 'Waffen erstellen', ''),
(4, 'en', 'Add Fractions', ''),
(4, 'de', 'Fraktionen erstellen', ''),
(5, 'en', 'Add Gamemodes', ''),
(5, 'de', 'Spielmodi erstellen', ''),
(6, 'en', 'View Users', ''),
(6, 'de', 'Benutzer einsehen', ''),
(7, 'en', 'View Units', ''),
(7, 'de', 'Einheiten einsehen', ''),
(8, 'en', 'View Weapons', ''),
(8, 'de', 'Waffen einsehen', ''),
(9, 'en', 'View Fractions', ''),
(9, 'de', 'Fraktionen einsehen', ''),
(10, 'en', 'View Gamemodes', ''),
(10, 'de', 'Spielmodi einsehen', ''),
(11, 'en', 'Edit Users', ''),
(11, 'de', 'Benutzer bearbeiten', ''),
(12, 'en', 'Edit Units', ''),
(12, 'de', 'Einheiten bearbeiten', ''),
(13, 'en', 'Edit Weapons', ''),
(13, 'de', 'Waffen bearbeiten', ''),
(14, 'en', 'Edit Fractions', ''),
(14, 'de', 'Fraktionen bearbeiten', ''),
(15, 'en', 'Edit Gamemodes', ''),
(15, 'de', 'Spielmodi bearbeiten', ''),
(16, 'en', 'Delete Users', ''),
(16, 'de', 'Benutzer löschen', ''),
(17, 'en', 'Delete Units', ''),
(17, 'de', 'Einheiten löschen', ''),
(18, 'en', 'Delete Weapons', ''),
(18, 'de', 'Waffen löschen', ''),
(19, 'en', 'Delete Fractions', ''),
(19, 'de', 'Fraktionen löschen', ''),
(20, 'en', 'Delete Gamemodes', ''),
(20, 'de', 'Spielmodi löschen', '');

-- Users
INSERT INTO Users (Username, DisplayName, Description, MainFractionId, Password, Salt, LastLogin, Image) VALUES 
('Admin', 'Administrator', NULL, NULL, 'AQAAAAIAAYagAAAAECDOJwBpi0sqraVzpbiMs47xjH/gr8+/QcCClDnZ2oHzn1xA1jmU50ym+jODGjAHiQ==', '5Vjt5j4785', NULL, NULL);

-- User Permissions
INSERT INTO UserPermissions (UserId, PermissionId) VALUES 
(1, 1),
(1, 2),
(1, 3),
(1, 4),
(1, 5),
(1, 6),
(1, 7),
(1, 8),
(1, 9),
(1, 10),
(1, 11),
(1, 12),
(1, 13),
(1, 14),
(1, 15),
(1, 16),
(1, 17),
(1, 18),
(1, 19),
(1, 20);

-- Activate UNIQUE_CHECKS and FOREIGN_KEY_CHECKS
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
ALTER DATABASE tabletop SET MULTI_USER;
ALTER DATABASE tabletop SET CONSTRAINT ALL IMMEDIATE;