generated from admin/template
Обновить works/lab-01/lesson1_result.txt
This commit is contained in:
@@ -1,29 +1,41 @@
|
|||||||
Сущность: card
|
Сущность: card
|
||||||
- card_id: INT
|
- card_id: INT [primary key, auto_increment]
|
||||||
- card_name: TEXT
|
- card_name: TEXT UNIQUE NOT NULL
|
||||||
- stage: TEXT
|
- stage: TEXT NOT NULL
|
||||||
- hp: INT or NUMERIC
|
- hp: INT or NUMERIC NOT NULL CHECK
|
||||||
- pokedex_number: INT
|
- pokedex_number: INT UNIQUE NOT NULL
|
||||||
- category: TEXT
|
- category: TEXT NOT NULL
|
||||||
- height: numeric
|
- height: numeric NOT NULL
|
||||||
- weight: numeric
|
- weight: numeric NOT NULL
|
||||||
- retreact_cost: INT or NUMERIC
|
- retreat_cost: INT or NUMERIC
|
||||||
- release_date: DATE
|
- release_date: DATE NOT NULL
|
||||||
|
|
||||||
|
- illustrator_name: TEXT [foreign key references illustrator(illustrator_name)] NOT NULL
|
||||||
|
- set_id: INT [foreign key references card_set(set_id)] NOT NULL
|
||||||
|
|
||||||
|
|
||||||
|
CONSTRAINT check_hp CHECK (hp > 0)
|
||||||
|
CONSTAINT check_antropometrics CHECK (height > 0 AND weight > 0)
|
||||||
|
|
||||||
|
|
||||||
Сущность card_set
|
Сущность card_set
|
||||||
- set_name: TEXT
|
- set_id: INT [primary key, auto_increment]
|
||||||
- set_code: INT
|
- set_name: TEXT UNIQUE NOT NULL
|
||||||
- card_amount: INT
|
- set_code: INT NOT NULL
|
||||||
- release_date: DATE
|
- card_amount: INT NOT NULL
|
||||||
|
- release_date: DATE NOT NULL
|
||||||
|
|
||||||
Сущность: attack
|
Сущность: attack
|
||||||
- attack_name: TEXT
|
- attack_id: INT [primary key, auto_increment]
|
||||||
- base_damage: TEXT
|
- attack_name: TEXT NOT NULL
|
||||||
- text_effect: TEXT
|
- base_damage: TEXT NOT NULL
|
||||||
|
- text_effect: TEXT
|
||||||
|
|
||||||
|
|
||||||
Сущность: element_type:
|
Сущность: element_type:
|
||||||
- element_name: TEXT
|
- element_id: INT [primary key, auto_increment]
|
||||||
|
- element_name: TEXT NOT NULL
|
||||||
|
|
||||||
Сущность: illustrator
|
Сущность: illustrator
|
||||||
- illustrator_name: TEXT
|
- illustrator_id: INT [primary key, auto_increment]
|
||||||
|
- illustrator_name: TEXT NOT NULL UNIQUE
|
||||||
Reference in New Issue
Block a user