Thomas Ravenel and Kathryn Dennis have reached an agreement in their ongoing custody battle.

The Southern Charm exes, who share daughter Kensington Calhoun, 5, and son Saint, 3, reached a custody agreement last week, according to court documents obtained by All About the Tea.

“The parties now consider it to be in their best interests and in accord with the best interests and welfare of their children to settle between themselves all matters in issue and have reached a permanent and complete agreement and now wish to reduce their agreement to writing and desire that it shall constitute the total agreement between them,” the court documents read.

Ravenel, 57, and Dennis, 28, have agreed to share joint legal and physical custody of Kensington and Saint, with Ravenel “being the primary custodian,” according to the court documents.

“[Ravenel] shall have a duty to consult with [Dennis] on all major decisions involving the children, including, but not limited to, the children’s education, extra-curricular activities, religious training, non-emergency healthcare and general welfare. If after discussion the parties are unable to come to an agreement on an issue concerning the minor children, [Ravenel] has final decision-making authority,” the documents state.

“The caretaking parent shall have the right to make regular, day-to-day decisions regarding the children when the children are in that parent’s care,” the documents read.

Ravenel’s attorney confirmed the new custody agreement to PEOPLE.

“The parties’ custody agreement awarded Mr. Ravenel primary legal custody of the minor children,” said his lawyer. “The parties currently share physical custody of the children on a 36%/64% split, with Ms. Dennis having the children five out of fourteen overnights and Mr. Ravenel having the children nine out of fourteen overnights. This time-sharing arrangement is scheduled to change in the Summer of 2020, whereby the parties will then share physical custody of the children on a 50/50 week-on week-off basis. Ms. Dennis is required to employ a nanny during the majority of her time with the children and Mr. Ravenel has agreed to pay the nanny’s salary in lieu of child support.”

An attorney Dennis didn’t immediately return PEOPLE’s requests for comment.

Kathryn Dennis and Thomas Ravenel More

Per the agreement, both Ravenel and Dennis have agreed to raise their children in the Christian faith. They “agree that they have the same basic philosophy with regard to their desire to have their children raised in the Christian faith, and they desire that the minor children be confirmed. The parents shall cooperate to ensure that the children will attend all classes necessary for confirmation.”

When it comes to splitting time with the children, Dennis and Ravenel have created a timesharing schedule through summer 2020 and have also created a holiday and special occasions agreement, including Halloween, Thanksgiving, Christmas, Spring/Easter break and Mother’s Day/Father’s Day.

Additionally, the exes have agreed to “not expose the minor children to age-inappropriate/violent conduct, language, TV, videos, movies, books, or materials of any kind,” and it “specifically prohibits either parent from granting the children permission to watch any episode or reunion show of Southern Charm. This restraint expires on each child’s 13 birthday,” the documents state.