We are designing a new database and I would like some input in where to put stuff like default values. There are 3 scenarios:
1: New values, created_date field. Should the column have a default value when you do an insert?
2: Updated values, updated_date fiels. I've been thinkin about implementing a trigger that sets this to getdate(), other option is in code.
3: country table with country_name, should we enforce a unique constraint directly on the table or make sure code does this?
and last a bit of topic, but we also have an updated_by and created_by (int) in each table that refers to a user_id in the user table. Is it worth the effort to implement this a fk. constraints on all tables?