pit table creation in dbt 1.2 version

can someone tell me how to write the code to create a pit table in dbt 1.2 version. i tried to use the automate_dv macros. but no luck.