diff --git a/ngsplanner_schema.sql b/ngsplanner_schema.sql index 46a0d91..1d8b7ea 100644 --- a/ngsplanner_schema.sql +++ b/ngsplanner_schema.sql @@ -248,6 +248,26 @@ CREATE TABLE "augment_type" ( "icon" text ); +CREATE TABLE "weapon_skill" ( + "id" SERIAL UNIQUE PRIMARY KEY, + "name" text, + "weapon_type_id" int, + "potency" int, + "power_distribution" float, + "pp" int, + "frames" int, + "dps" int, + "description" text, + "skill_dependency" text +); + +CREATE TABLE "enemy_data" ( + "id" SERIAL UNIQUE PRIMARY KEY, + "level" int, + "def" int, + "atk" int +); + ALTER TABLE "class_weapon_type_data" ADD FOREIGN KEY ("class_id") REFERENCES "class" ("id"); ALTER TABLE "class_level_data" ADD FOREIGN KEY ("class_id") REFERENCES "class" ("id"); @@ -277,3 +297,5 @@ ALTER TABLE "weapon_existence_data" ADD FOREIGN KEY ("weapon_type_id") REFERENCE ALTER TABLE "augment" ADD FOREIGN KEY ("augment_type_id") REFERENCES "augment_type" ("id"); ALTER TABLE "database_audit" ADD FOREIGN KEY ("users_id") REFERENCES "users" ("id"); + +ALTER TABLE "weapon_skill" ADD FOREIGN KEY ("weapon_type_id") REFERENCES "weapon_type" ("id"); diff --git a/ngsplanner_seed.sql b/ngsplanner_seed.sql index 38e7a96..cab282e 100644 --- a/ngsplanner_seed.sql +++ b/ngsplanner_seed.sql @@ -239,4 +239,18 @@ insert into armor(name,rarity,level_req,def,hp,pp,mel_dmg,rng_dmg,tec_dmg,crit_r insert into database_audit(action,table_name,row_name,row_id,old_value,new_value,date,users_id) values('INSERT','augment','crit_rate',4,'','0.15','2018-07-16 03:30+00',(select id from users where username='sigonasr2' limit 1)); insert into database_audit(action,table_name,row_name,row_id,old_value,new_value,date,users_id) - values('UPDATE','skill_data','mel_dmg',1,'0.01','0','2018-07-17 19:45+00',(select id from users where username='sigonasr3' limit 1)); \ No newline at end of file + values('UPDATE','skill_data','mel_dmg',1,'0.01','0','2018-07-17 19:45+00',(select id from users where username='sigonasr3' limit 1)); + +insert into weapon_skill(name,weapon_type_id,potency,power_distribution,pp,frames,dps,description,skill_dependency) + values('Normal Attack Lv1',(select id from weapon_type where name='Twin Dagger' limit 1),100,0.45,2,20,270,''); +insert into weapon_skill(name,weapon_type_id,potency,power_distribution,pp,frames,dps,description,skill_dependency) + values('Spin Counter',(select id from weapon_type where name='Twin Dagger' limit 1),100,3,8,38,521,''); + +insert into enemy_data(level,def,atk) + values(1,450,900); +insert into enemy_data(level,def,atk) + values(2,450,918); +insert into enemy_data(level,def,atk) + values(3,467,935); +insert into enemy_data(level,def,atk) + values(4,467,953); \ No newline at end of file