pub async fn ensure_not_unlocked_yet_status(
conn: &mut PgConnection,
user_id: Uuid,
chapter_id: Uuid,
course_id: Uuid,
) -> ModelResult<UserChapterLockingStatus>Expand description
Creates a status row with not_unlocked_yet status if one doesn’t exist.
If a row already exists (with any status), returns the existing row without modifying it.
This function does not overwrite existing statuses.