SQL
CREATE TABLE ontology_review_items (
id VARCHAR(50) NOT NULL,
version_id VARCHAR(50) NOT NULL,
ontology_id VARCHAR(50) NOT NULL,
tenant_id VARCHAR(50) NOT NULL,
comment TEXT NOT NULL,
commented_by VARCHAR(255) NOT NULL,
commented_at DATETIME DEFAULT (CURRENT_TIMESTAMP) NOT NULL,
action_type VARCHAR(50) NOT NULL,
created_at DATETIME DEFAULT (CURRENT_TIMESTAMP) NOT NULL,
deleted BOOLEAN NOT NULL,
PRIMARY KEY (id)
)
Columns
| Column | Data type | Allow null | Primary key | Actions |
|---|---|---|---|---|
id |
VARCHAR(50) |
✓ | Rename | Drop | |
version_id |
VARCHAR(50) |
Rename | Drop | ||
ontology_id |
VARCHAR(50) |
Rename | Drop | ||
tenant_id |
VARCHAR(50) |
Rename | Drop | ||
comment |
TEXT |
Rename | Drop | ||
commented_by |
VARCHAR(255) |
Rename | Drop | ||
commented_at |
DATETIME |
Rename | Drop | ||
action_type |
VARCHAR(50) |
Rename | Drop | ||
created_at |
DATETIME |
Rename | Drop | ||
deleted |
BOOLEAN |
Rename | Drop |
Indexes
| Name | Columns | Unique | SQL | Drop? |
|---|---|---|---|---|
| idx_review_version |
|
SQL | Drop | |
| ix_ontology_review_items_ontology_id |
ontology_id
|
SQL | Drop | |
| ix_ontology_review_items_version_id |
version_id
|
SQL | Drop | |
| sqlite_autoindex_ontology_review_items_1 |
id
|
✓ | SQL | Drop |