it when running server for the first time. And I created audit log when a object is created, audit log also has an field called created_by field. When seeding data should I pass a default for audit log or making created_by field optional?
Either an is_seeded boolean column or a default value. I don't like optional because you lose a DB constraint that should apply to all other data
Обсуждают сегодня