Skip to content

Detail Design Table

Overview

Table for managing detail design information

Table Definition

Logical Name Physical Name Column Name Data Type Primary Key Relation Unique Nullable Default Value Remarks
Detail design detail_design id string โ—ฏ varchar(255)
project_id number project:id
name string unique per project (see below)
file_url string
created_at datetime
updated_at datetime
deleted_at datetime โ—ฏ
created_by string user:cognito_sub
updated_by string user:cognito_sub
deleted_by string user:cognito_sub โ—ฏ

Relations

  • project_id โ†’ project.id
  • Audit fields use user.cognito_sub

Indexes

  • PRIMARY KEY (id)
  • UNIQUE detail_design_unique_name_per_project (project_id, name)
  • INDEX detail_design_project_id_deleted_at_idx (project_id, deleted_at)
  • INDEX detail_design_project_created_idx (project_id, created_at)

Notes

  • name is unique per project_id