Add class skill tables

pull/1/head
sigonasr2 3 years ago
parent c3830be63d
commit 6362f2df73
  1. 37
      ngsplanner_schema.sql
  2. 20
      ngsplanner_seed.sql

@ -267,6 +267,39 @@ CREATE TABLE "enemy_data" (
"atk" int
);
CREATE TABLE "class_skill" (
"id" SERIAL UNIQUE PRIMARY KEY,
"name" text,
"class_id" int,
"icon" text,
"description" text
);
CREATE TABLE "class_skill_data" (
"id" SERIAL UNIQUE PRIMARY KEY,
"name" text,
"class_skill_id" int,
"dependency" text,
"level" int,
"effect" text,
"duration" int,
"cooldown" int,
"damage_taken" float,
"pa_potency" float,
"conditional_buff" boolean,
"pp_recovery" float,
"property" text,
"all_damage_buff" float,
"active_pp_recovery" float,
"status_ailment_accum" float,
"status_ailment_duration" float,
"pp_consumption" float,
"max_hp_decrease" float,
"natural_pp_recovery" float,
"added_pp" int,
"pb_gauge_fortification" float
);
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");
@ -298,3 +331,7 @@ ALTER TABLE "augment" ADD FOREIGN KEY ("augment_type_id") REFERENCES "augment_ty
ALTER TABLE "database_audit" ADD FOREIGN KEY ("users_id") REFERENCES "users" ("id");
ALTER TABLE "photon_art" ADD FOREIGN KEY ("weapon_type_id") REFERENCES "weapon_type" ("id");
ALTER TABLE "class_skill_data" ADD FOREIGN KEY ("class_skill_id") REFERENCES "class_skill" ("id");
ALTER TABLE "class_skill" ADD FOREIGN KEY ("class_id") REFERENCES "class" ("id");

@ -1,3 +1,5 @@
delete from class_skill_data;
delete from class_skill;
delete from photon_art;
delete from enemy_data;
delete from database_audit;
@ -255,4 +257,20 @@ insert into enemy_data(level,def,atk)
insert into enemy_data(level,def,atk)
values(3,467,935);
insert into enemy_data(level,def,atk)
values(4,467,953);
values(4,467,953);
insert into class_skill(name,class_id,icon,description)
values('Hunter Physique',(SELECT id from class WHERE name='Hunter' limit 1),'','This does something useful. Probably.');
insert into class_skill(name,class_id,icon,description)
values('War Cry',(SELECT id from class WHERE name='Fighter' limit 1),'','This is not useful.');
insert into class_skill(name,class_id,icon,description)
values('Assault Charge Advent',(SELECT id from class WHERE name='Gunner' limit 1),'','This is ');
insert into class_skill_data(name,class_skill_id,dependency,level,effect,duration,cooldown,damage_taken,pa_potency,conditional_buff,pp_recovery,property,all_damage_buff,active_pp_recovery,status_ailment_accum,status_ailment_duration,pp_consumption,max_hp_decrease,natural_pp_recovery,added_pp,pb_gauge_fortification)
values('Hunter Physique Lv.1',(SELECT id from class_skill WHERE name='Hunter Physique' limit 1),'',1,'Effect Name',20,15,0.7,1,false,0.5,'',0,0,0,0,0,0,0,0,0);
insert into class_skill_data(name,class_skill_id,dependency,level,effect,duration,cooldown,damage_taken,pa_potency,conditional_buff,pp_recovery,property,all_damage_buff,active_pp_recovery,status_ailment_accum,status_ailment_duration,pp_consumption,max_hp_decrease,natural_pp_recovery,added_pp,pb_gauge_fortification)
values('War Cry Lv.1',(SELECT id from class_skill WHERE name='War Cry' limit 1),'',1,'Effect Name',14,10,0.5,1.1,false,0.8,'',0,0,0,0.6,0,0,0,0,0);
insert into class_skill_data(name,class_skill_id,dependency,level,effect,duration,cooldown,damage_taken,pa_potency,conditional_buff,pp_recovery,property,all_damage_buff,active_pp_recovery,status_ailment_accum,status_ailment_duration,pp_consumption,max_hp_decrease,natural_pp_recovery,added_pp,pb_gauge_fortification)
values('War Cry Lv.2',(SELECT id from class_skill WHERE name='War Cry' limit 1),'',2,'Effect Name',11,11,0.8,1.0,false,0.7,'',0,0,0,0.9,0,0,0,0,0);
insert into class_skill_data(name,class_skill_id,dependency,level,effect,duration,cooldown,damage_taken,pa_potency,conditional_buff,pp_recovery,property,all_damage_buff,active_pp_recovery,status_ailment_accum,status_ailment_duration,pp_consumption,max_hp_decrease,natural_pp_recovery,added_pp,pb_gauge_fortification)
values('Assault Charge Advent',(SELECT id from class_skill WHERE name='Assault Charge Advent' limit 1),'',1,'Effect Name',30,24,1.0,1.1,false,0.8,'',0,0,0,0,0,0,0.6,0,0);

Loading…
Cancel
Save