FactoryBot.define do factory :staff, class: 'Sis::Core::Staff' do end # SINGLE = 'Single'.freeze # MARRIED = 'Married'.freeze # MARITAL_STATUS = [SINGLE, MARRIED].freeze # factory :staff, class: 'Sis::Core::Staff' do # user # job_title { FFaker::Job.title } # job_level { FFaker::Company.position } # department { FFaker::Education.school_name } # date_of_employment { FFaker::Time.date } # salary { [2000, 5500.5, 10_000, 20_000].sample } # remark { FFaker::Lorem.sentence } # mothers_name { FFaker::Name.name } # education_level { FFaker::Education.degree } # phone_number { FFaker::PhoneNumber.phone_number } # place_of_birth { FFaker::Address.city } # marital_status { %w[Single Married].sample } # region { FFaker::Address.city } # zone { FFaker::Address.neighborhood } # wereda { [1, 2, 5, 13].sample } # kebele { [1, 2, 5, 13].sample } # passport_number { FFaker::Guid.guid } # id_number { FFaker::Guid.guid } # emergency_contact_name { FFaker::Name.name } # emergency_contact_phone { FFaker::PhoneNumber.phone_number } # relation_to_emergency_contact do # %w[mother,father,brother,spouse].sample # end # created_at { FFaker::Time.datetime } # updated_at { FFaker::Time.datetime } # end end