Финализация схемы
This commit is contained in:
+9
-9
@@ -1,4 +1,5 @@
|
||||
// https://dbml.dbdiagram.io/docs
|
||||
// https://dbdiagram.io/d/Shema-BD-dlya-perevodov-Pf2e-67f0f7de4f7afba18471ab41
|
||||
|
||||
// Entity
|
||||
Table entity {
|
||||
@@ -53,8 +54,8 @@ Table keyword {
|
||||
|
||||
}
|
||||
Table entity_keywords {
|
||||
entity_id int [ref: > entity.id]
|
||||
keyword_id int [ref: > keyword.id]
|
||||
entity_id int [not null, ref: > entity.id]
|
||||
keyword_id int [not null, ref: > keyword.id]
|
||||
}
|
||||
Table keyword_aliases {
|
||||
keyword_id int [pk, ref: > keyword.id]
|
||||
@@ -69,8 +70,8 @@ Table source {
|
||||
url varchar [not null]
|
||||
}
|
||||
Table entity_sources {
|
||||
entity_id int [ref: > entity.id]
|
||||
source_id int [ref: > source.id]
|
||||
entity_id int [not null, ref: > entity.id]
|
||||
source_id int [not null, ref: > source.id]
|
||||
suffix varchar [not null, default: "", note: "страница и проч."]
|
||||
is_remaster bool [not null]
|
||||
}
|
||||
@@ -242,9 +243,8 @@ Table background {
|
||||
'''
|
||||
}
|
||||
Table background_items {
|
||||
id int [pk]
|
||||
background_id int [not null, ref: > background.id]
|
||||
entity_id int [not null, ref: > entity.id, note: "{}.name"]
|
||||
background_id int [pk, ref: > background.id]
|
||||
entity_id int [pk, ref: > entity.id, note: "{}.name"]
|
||||
|
||||
level int [note: "{}.level"]
|
||||
// name string [note: "{}.name (?)"]
|
||||
@@ -583,7 +583,7 @@ Table spell_area {
|
||||
}
|
||||
Table spell_damage {
|
||||
id int [pk, increment]
|
||||
spell_id int [ref: > spell.id]
|
||||
spell_id int [not null, ref: > spell.id]
|
||||
|
||||
key varchar [not null, note: "{}.[key]"]
|
||||
|
||||
@@ -607,7 +607,7 @@ Table spell_ritual {
|
||||
}
|
||||
Table spell_defense {
|
||||
id int [pk, increment]
|
||||
spell_id int [ref: > spell.id]
|
||||
spell_id int [not null, ref: > spell.id]
|
||||
|
||||
is_passive bool [not null, note: "true = {}.passive; true = {}.save"]
|
||||
is_basic bool [null, note: "{}.save?.basic"]
|
||||
|
||||
Reference in New Issue
Block a user