Company Data Requirements
The company is organized into branches. Each branch has a unique number, a name, and a particular employee who manages it.
The company makes it's money by selling to clients. Each client has a name and a unique number to identify it.
The foundation of the company is it's employees. Each employee has a name, birthday, sex, salary and a unique number.
An employee can work for one branch at a time, and each branch will be managed by one of the employees that work there. We’ll also want to keep track of when the current manager started as manager.
An employee can act as a supervisor for other employees at the branch, an employee may also act as the supervisor for employees at other branches. An employee can have at most one supervisor.
A branch may handle a number of clients, with each client having a name and a unique number to identify it. A single client may only be handled by one branch at a time.
Employees can work with clients controlled by their branch to sell them stuff. If necessary multiple employees can work with the same client. We'll want to keep track of how many dollars worth of stuff each employee sells to each client they work with.
Many branches will need to work with suppliers to buy inventory. For each supplier we'll keep track of their name and the type of product they’re selling the branch. A single supplier may supply products to multiple branches.
Kompaniya ma'lumotlariga qo'yiladigan talablar
Kompaniya filiallarga bo'lingan. Har bir filialning identifikatori, nomi va uni boshqaradigan ma'lum bir xodimi mavjud.
Kompaniya mijozlarga tovarlar sotish orqali pul topadi. Har bir mijozning ismi va uni aniqlovchi identifikatori mavjud.
Kompaniyaning asosi uning xodimlaridir. Har bir xodimning ismi, tug'ilgan kuni, jinsi, maoshi va identifikatori mavjud.
Xodim bir vaqtning o'zida bitta filialda ishlashi mumkin va har bir filialni u erda ishlaydigan xodimlardan biri boshqaradi. Shuningdek, joriy menejer qachon menejer sifatida ish boshlaganini ham kuzatib borish lozim.
Biror xodim filialdagi boshqa xodimlarga yoki boshqa filialdagi xodimlarga o'rgatuvchi(rahbar) bo'lishi mumkin. Xodimda ko'pi bilan bitta o'rgatuvchi bo'lishi mumkin.
Filial ko'plab mijozlarga xizmat ko'rsatishi mumkin, har bir mijozning nomi va identifikatori bor. Bitta mijoz bir vaqtning o'zida faqat bitta filial bilan ishlashi mumkin.
Xodimlar o'z filiallari bilan ishlaydigan mijozlar bilan ularga narsalarni sotish orqali xizmat ko'rsatishlari mumkin. Agar kerak bo'lsa, bir mijoz bilan bir nechta xodimlar ishlashi mumkin. Har bir xodimning ishlayotgan har bir mijoziga qancha dollarlik mahsulot sotishi kuzatib boriladi.
Ko'pgina filiallar mahsulotni sotib olish uchun etkazib beruvchilar bilan ishlashlari kerak. Har bir yetkazib beruvchi uchun ularning nomini va filialda sotayotgan mahsulot turini kuzatib boramiz. Bitta etkazib beruvchi bir nechta filiallarga mahsulot etkazib berishi mumkin.
Endi yuqoridagi chizma asosida jadvallarni yaratib olamiz. Buni 5 qadamda amalga oshiramiz.
Do'stlaringiz bilan baham: |