-- Hibernate `DbTask` → table `dbtask` (Java task_commons / task_server).

CREATE TABLE dbtask (
    task_id TEXT PRIMARY KEY,
    hty_id TEXT,
    task_type TEXT NOT NULL,
    task_status TEXT NOT NULL,
    duration DOUBLE PRECISION,
    created_by TEXT NOT NULL,
    created_at TIMESTAMP NOT NULL,
    updated_by TEXT NOT NULL,
    updated_at TIMESTAMP NOT NULL,
    meta TEXT
);
