fssa-batch3 / fssa-batch3/sec_b_dhanush.selvam__corejava_project_2
Create Employee
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### Feature: Create Employee
#### User Story:
* User can create a new employee account
#### Pre-requisites:
- [ ] Create Roles table
- [ ] Create Employees table
- [ ] Create Employee-Role table
- [ ] Implement Employee model
- [ ] Implement Role model
- [ ] Implement Employee-Role model
- [ ] Implement Role DAO (findAll, findById)
- [ ] Implement Employee DAO (create)
- [ ] Implements Employee-Role DAO (create)
#### Validations:
- [ ] Form Validation
* First Name (null, empty)
* Last Name (null, empty)
* Email (Match email pattern)
* Phone Number(Match phone no pattern)
* Password (Must contain one lowercase, one uppercase, one number, one special character and length should be minimum 8 to maximum 24 characters)
* Address (null, empty)
- [ ] Business Validation
* Email already exists
#### Messages:
* First Name cannot be nulll or empty
* Last Name cannot be null or empty
* Invalid Email id
* Invalid Phone Number
* Password should not match the pattern
* Address cannot be null or empty
* Email id already exist
#### Flow:
```mermaid
graph TD;
A[Employee Service: Create User] --> B[Form Validation]
B -- Yes --> C{Unique Email Check}
B -- No --> G[Employee Service: Invalid input]
C -- Yes --> D[Employee DAO: Create User]
D --> E[Employee Service: User Created ]
C -- No --> F[Employee Service: Email Already Exists ]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.