[feat] add initial database schema with tables, triggers, and views
This commit is contained in:
19
database/main/profession_trait.sql
Normal file
19
database/main/profession_trait.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
create table profession_trait
|
||||
(
|
||||
profession_id INTEGER not null
|
||||
references profession
|
||||
on delete cascade,
|
||||
trait_id INTEGER not null
|
||||
references trait
|
||||
on delete restrict,
|
||||
level INTEGER,
|
||||
param_value TEXT,
|
||||
primary key (profession_id, trait_id)
|
||||
);
|
||||
|
||||
create index idx_profession_trait_trait
|
||||
on profession_trait (trait_id);
|
||||
|
||||
create index idx_profession_trait_trait2
|
||||
on profession_trait (trait_id);
|
||||
|
Reference in New Issue
Block a user