subdag_id = "dag.subdag"
        subdag = DAG(
            subdag_id,
            start_date=DEFAULT_DATE,
        )
        with subdag:
            EmptyOperator(
                task_id="dummy_task",
            )
        dag_id = "dag"
        dag = DAG(
            dag_id,
            start_date=DEFAULT_DATE,
        )
        with dag:
            SubDagOperator(task_id="subdag", subdag=subdag)
        
        subdag.parent_dag = dag
        session.query(DagModel).filter(DagModel.dag_id.in_([subdag_id, dag_id])).delete(
            synchronize_session=False
        )
        dag.sync_to_db(session=session)
        unpaused_dags = (
            session.query(DagModel.dag_id, DagModel.is_paused)
            .filter(
                DagModel.dag_id.in_([subdag_id, dag_id]),
            )
            .all()