[feat] extend database schema with new tables and indexes
This commit is contained in:
14
database/main/creature_attack_has_property.sql
Normal file
14
database/main/creature_attack_has_property.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
create table creature_attack_has_property
|
||||
(
|
||||
attack_id INTEGER not null
|
||||
references creature_attack
|
||||
on delete cascade,
|
||||
property_id INTEGER not null
|
||||
references creature_attack_property
|
||||
on delete restrict,
|
||||
primary key (attack_id, property_id)
|
||||
);
|
||||
|
||||
create index idx_creature_attack_has_prop_prop
|
||||
on creature_attack_has_property (property_id);
|
||||
|
Reference in New Issue
Block a user