#How would I make a model for a habit.
3 messages · Page 1 of 1 (latest)
I would probably have a foreign key from a HabitDay table to a Habit table. The HabitDay table would have a datetime field, is_completed boolean and perhaps a notes field.
A row would be added to the HabitDay table each day and then marked as is_completed if the habit is completed.
I'd think just a CharField named "description", and a BooleanField named "complete".