{"action":"created","issue":{"url":"https://api.github.com/repos/RaymondYounan/LEMIS/issues/376","labels_url":"https://api.github.com/repos/RaymondYounan/LEMIS/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/RaymondYounan/LEMIS/issues/376/comments","events_url":"https://api.github.com/repos/RaymondYounan/LEMIS/issues/376/events","html_url":"https://github.com/RaymondYounan/LEMIS/issues/376","id":118201404,"number":376,"title":"P1: Implement TeacherCitizenshipNo and TeacherResidenceID fields in Teacher table","user":{"login":"DrJoeHage","id":9402931,"avatar_url":"https://avatars.githubusercontent.com/u/9402931?v=3","gravatar_id":"","url":"https://api.github.com/users/DrJoeHage","html_url":"https://github.com/DrJoeHage","followers_url":"https://api.github.com/users/DrJoeHage/followers","following_url":"https://api.github.com/users/DrJoeHage/following{/other_user}","gists_url":"https://api.github.com/users/DrJoeHage/gists{/gist_id}","starred_url":"https://api.github.com/users/DrJoeHage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrJoeHage/subscriptions","organizations_url":"https://api.github.com/users/DrJoeHage/orgs","repos_url":"https://api.github.com/users/DrJoeHage/repos","events_url":"https://api.github.com/users/DrJoeHage/events{/privacy}","received_events_url":"https://api.github.com/users/DrJoeHage/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RaymondYounan/LEMIS/labels/P0","name":"P0","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"RaymondYounan","id":9402560,"avatar_url":"https://avatars.githubusercontent.com/u/9402560?v=3","gravatar_id":"","url":"https://api.github.com/users/RaymondYounan","html_url":"https://github.com/RaymondYounan","followers_url":"https://api.github.com/users/RaymondYounan/followers","following_url":"https://api.github.com/users/RaymondYounan/following{/other_user}","gists_url":"https://api.github.com/users/RaymondYounan/gists{/gist_id}","starred_url":"https://api.github.com/users/RaymondYounan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaymondYounan/subscriptions","organizations_url":"https://api.github.com/users/RaymondYounan/orgs","repos_url":"https://api.github.com/users/RaymondYounan/repos","events_url":"https://api.github.com/users/RaymondYounan/events{/privacy}","received_events_url":"https://api.github.com/users/RaymondYounan/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-21T14:51:46Z","updated_at":"2015-12-07T22:09:25Z","closed_at":null,"body":"These two fields will be OPTIONAL in the database. However, in the UI, the following logic must be implemented:\r\n1. If Country of Citizenship = 1 (Iraq), then the TeacherCivilStatusNationalID and TeacherCitizenshipNo are required AND the TeacherResidenceID must be NULL. In this case, the FatherCivilStatusNationalID is optional.\r\n1. If Country of Citizenship <> 1 (Any country other than Iraq), then the TeacherResidenceID is required AND the TeacherCivilStatusNationalID and TeacherCitizenshipNo must be NULL. In this case, the FatherCivilStatusNationalID is optional.\r\n\r\nI already implemented the fields in the Teacher table and filled them with the appropriate seed data.\r\n"},"comment":{"url":"https://api.github.com/repos/RaymondYounan/LEMIS/issues/comments/162681978","html_url":"https://github.com/RaymondYounan/LEMIS/issues/376#issuecomment-162681978","issue_url":"https://api.github.com/repos/RaymondYounan/LEMIS/issues/376","id":162681978,"user":{"login":"RaymondYounan","id":9402560,"avatar_url":"https://avatars.githubusercontent.com/u/9402560?v=3","gravatar_id":"","url":"https://api.github.com/users/RaymondYounan","html_url":"https://github.com/RaymondYounan","followers_url":"https://api.github.com/users/RaymondYounan/followers","following_url":"https://api.github.com/users/RaymondYounan/following{/other_user}","gists_url":"https://api.github.com/users/RaymondYounan/gists{/gist_id}","starred_url":"https://api.github.com/users/RaymondYounan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaymondYounan/subscriptions","organizations_url":"https://api.github.com/users/RaymondYounan/orgs","repos_url":"https://api.github.com/users/RaymondYounan/repos","events_url":"https://api.github.com/users/RaymondYounan/events{/privacy}","received_events_url":"https://api.github.com/users/RaymondYounan/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T22:09:25Z","updated_at":"2015-12-07T22:09:25Z","body":"Done. \r\nThe Teacher Residence ID is hidden by default"}}