CREATE TABLE IF NOT EXISTS habits
(
    id          INTEGER PRIMARY KEY AUTOINCREMENT,
    list_id     INTEGER NOT NULL,
    name        TEXT NOT NULL,
    note        TEXT,
    times       INTEGER NOT NULL,
    unit        INTEGER,
    slot        INTEGER NOT NULL,
    created_at  TEXT NOT NULL,
    updated_at  TEXT NOT NULL,
    FOREIGN KEY (list_id) REFERENCES habit_lists(id)
);