fssa-batch3 / fssa-batch3/sec_b_maruthan.alagar__corejava_project_2

Create User

Open
#12 1 comment 0 reactions 1 assignee Claimed by @suryaumapathy2812 View on GitHub
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Feature : User Creation
#### User Story:
Shop can create new User or Customer .
#### Prerequisites:
- [ ] Create User table
- [ ] Implement User model
- [ ] Implement User DAO (create)
#### Validations:

##### Form Validation:
- [ ] Name (Null , Pattern & Length)
- [ ] Phone Number ( Pattern )
- [ ] Email ( Null , Pattern) **(Optional)**
- [ ] Address (Null , Empty , Length) **(Optional)**
##### Business Validation:
- [ ] Check The user is already exists using phone number
#### Messages:
- Name Cannot be Null or Empty.
- Phone Number doesn't match the Pattern.
- Email doesn't match the Pattern.
- Address Cannot be Empty.

#### Flow:

```mermaid
graph TD;

A[User Service: Create User] --> B[Form Validation]

B -- Yes --> C{Business Validation}
B -- No --> G[Throws Exception]

C -- Yes --> D[User DAO: Create User]

D --> E[User Service: User Created ]

C -- No --> F[User Service: User Already Exists ]
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.