Commit 3b80507
committed
feat(i18n): add audit fields to Translation table
Add created_by and updated_by fields to Translation model for proper
audit trail consistency with other core entities (User, Contest, etc).
- Add created_by and updated_by fields to Translation model
- Add relations to User model (creator, updater)
- Add indexes on created_by and updated_by
- Create migration: 20260114163745_add_translation_audit_fields
Resolves Issue #11: Translation table missing created_by and updated_by1 parent 33bbba8 commit 3b80507
3 files changed
Lines changed: 25 additions & 1 deletion
File tree
- backend
- prisma
- migrations/20260114163745_add_translation_audit_fields
Large diffs are not rendered by default.
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
966 | 968 | | |
967 | 969 | | |
968 | 970 | | |
| 971 | + | |
| 972 | + | |
969 | 973 | | |
970 | 974 | | |
971 | 975 | | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
972 | 979 | | |
973 | 980 | | |
974 | 981 | | |
| 982 | + | |
| 983 | + | |
975 | 984 | | |
976 | 985 | | |
977 | 986 | | |
| |||
0 commit comments