Uploaded August 2026 | Updated November 2026, 14 hours ago
n this Bathrobe Coding session, I’m back from vacation and continuing work on my Udemy coupon and referral portal.
The big realization today is that my original one-table coupon model has outgrown itself. A Udemy course can have a permanent referral link and multiple temporary coupons, which naturally leads us to a one-to-many data model: one course, many coupons.
I work through that redesign with AI, rebuild the SQLite schema, improve the course and coupon administration interface, add editable site text and configuration overrides, and then deploy the new version to production.
Along the way I talk about:
One-to-many database relationships
Refactoring a data model instead of patching around it
Using AI as a programming partner
Rapidly iterating on user-interface details
Udemy referral links and coupon behavior
Keeping small applications simple
Why programmers still need to understand concepts like data modeling in the age of AI
My evolving ideas about shorter, focused courses for AI-enabled learning
This is another raw, uncut look at how I actually use AI while developing software—and occasionally argue with it when it decides to do more than I asked.
Udemy courses: udemy.drchuck.com
Campus-Linked Django course: django.drchuck.com
Cheers!
Dr. Chuck
n this Bathrobe Coding session, I’m back from vacation and continuing work on my Udemy coupon and referral portal.
The big realization today is that my original one-table coupon model has outgrown itself. A Udemy course can have a permanent referral link and multiple temporary coupons, which naturally leads us to a one-to-many data model: one course, many coupons.
I work through that redesign with AI, rebuild the SQLite schema, improve the course and coupon administration interface, add editable site text and configuration overrides, and then deploy the new version to production.
Along the way I talk about:
One-to-many database relationships
Refactoring a data model instead of patching around it
Using AI as a programming partner
Rapidly iterating on user-interface details
Udemy referral links and coupon behavior
Keeping small applications simple
Why programmers still need to understand concepts like data modeling in the age of AI
My evolving ideas about shorter, focused courses for AI-enabled learning
This is another raw, uncut look at how I actually use AI while developing software—and occasionally argue with it when it decides to do more than I asked.
Udemy courses: udemy.drchuck.com
Campus-Linked Django course: django.drchuck.com
Cheers!
Dr. Chuck










