35176-vm/db/migrations/001_create_plants_table.sql
Flatlogic Bot 2835cd9864 R0
2025-10-24 09:53:19 +00:00

8 lines
272 B
SQL

CREATE TABLE IF NOT EXISTS plants (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
location VARCHAR(255) NOT NULL,
capacity DECIMAL(10, 2) NOT NULL,
commissioning_date DATE NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);