blcompro/database/migrations/000006_create_about_company_keynotes_table.up.sql
2025-05-29 08:55:21 +00:00

11 lines
478 B
SQL

CREATE TABLE IF NOT EXISTS about_company_keynotes (
id SERIAL PRIMARY KEY,
about_company_id INT REFERENCES about_companies(id) ON DELETE CASCADE,
keypoint text,
path_image text null,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP,
deleted_at TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX idx_about_company_keynotes_about_company_id ON about_company_keynotes(about_company_id);