relational-schema: lotb_dml.sql

File lotb_dml.sql, 1.7 KB (added by 181557, 10 days ago)
Line 
1INSERT INTO Player (Username, Email, Password) VALUES
2('HeroSlayer', 'hero@example.com', 'hashedpassword1'),
3('DragonMaster', 'dragon@example.com', 'hashedpassword2');
4
5INSERT INTO Character (PlayerID, Name, Health, EXP, Gold) VALUES
6(1, 'Alek', 100, 10, 500),
7(2, 'Mira', 120, 20, 600);
8
9INSERT INTO Faction (Name, Description) VALUES
10('Kingdom of Zeta', 'A mighty kingdom with strong warriors.'),
11('The Shadow Order', 'A secretive group of assassins.');
12
13INSERT INTO Reputation (CharacterID, FactionID, ReputationPoints, Rank) VALUES
14(1, 1, 100, 'Knight'),
15(2, 2, -50, 'Outlaw');
16
17INSERT INTO Quest (Name, EXP_Required, EXP_Reward, Gold_Reward) VALUES
18('Defeat the Bandits', 0, 50, 100),
19('Rescue the Villagers', 30, 100, 200);
20
21INSERT INTO Item (Name, Type, Rarity, Craftable) VALUES
22('Sword of Light', 'Weapon', 'Rare', TRUE),
23('Health Potion', 'Consumable', 'Common', TRUE);
24
25INSERT INTO Enemy (Name, Health, Damage, LootDrop) VALUES
26('Goblin', 50, 10, TRUE),
27('Orc', 80, 15, TRUE);
28
29INSERT INTO Trader (Name, Type) VALUES
30('Harlan the Merchant', 'General Goods'),
31('Mira the Blacksmith', 'Weapons');
32
33INSERT INTO Market (ItemID, SellerID, Price) VALUES
34(1, 1, 500),
35(2, 2, 50);
36
37INSERT INTO Guild (Name, LeaderID) VALUES
38('Warriors of Zeta', 1),
39('The Shadow Assassins', 2);
40
41INSERT INTO Character_Quest (CharacterID, QuestID) VALUES
42(1, 1),
43(2, 2);
44
45INSERT INTO Character_Item (CharacterID, ItemID) VALUES
46(1, 1),
47(2, 2);
48
49INSERT INTO Enemy_Item (EnemyID, ItemID) VALUES
50(1, 2),
51(2, 1);
52
53INSERT INTO Trader_Item (TraderID, ItemID) VALUES
54(1, 2),
55(2, 1);
56
57INSERT INTO Character_Guild (CharacterID, GuildID) VALUES
58(1, 1),
59(2, 2);