You are on page 1of 13

Software

Requirements
Specification
For

Choose it we do it System
Prepared by: Maram Belaidi
1 Introduction

2 General Description

3 Detailed document for users

Work 4 Use case diagram


plan La Centrale Goulette 2
5 Class diagram

6 Relational schemas

7 SQL CODE

8 Conclusion
ns Perspective:
uct
select a suitable
web-based
mer
ovie/
erfacesTV series/
with two
ere are
with
user
dember,
d the
by
5
theseveral
browser
system's
ministrator
optionssystem.
hesecan
mer
ecure
ed
ofnsactions 4
hein theenvironment
web
. The shop and
eady-to-Wear General
esigners
Description
clerk-
based or on users'
by choosing the
r-level
clerical workers
creating
3
ator system
ld articles, and
wner
hole
ve system,
items
ational into the 2
hop ownerAlso
nformation. andto
es.
ter as a member.
1
3 Detailed document for users
This document outlines the functional and non-functional
requirements for a clothing web-based system that allows
customers and members to search and buy clothes, customize
their own clothes, and modify membership information. The
system should provide an intuitive user interface, web access,
persistent storage, and a secure environment for financial
transactions and confidential member information. Functional
requirements include registration for customers to become
members, search for models and designs, login security, adding or
removing articles from the inventory, and modifying article
information. Non-functional requirements include practical and
user-friendly search options, easy-to-understand result lists, and
one-click element selection.
4 Use case diagram
5 Class diagram
6 Relational schemas

PRODUCT (code_product, type)


READY-TO-WEAR (#code_product, price_r, type_r, description_r)
DESIGNER (designer_ID, name_des, adress_des, years_of_profession)
DESIGN (design_code, category_d, name_d, #designer_ID)
MEMBER (memberID, gender, age, phone, username, password)
MEMBER_PRODUCT (#memberID, #code_product)
CUSTOMIZED (#code_product, price_cust, description_cust, #design_code)
CUSTOMER (customer_ID)
CUSTOMER_PRODUCT (#customer_id, #code_product)
CART (num_cart, date_com, date_livr)
DETAIL_CART (#num_cart, #code_product, Qte_com)
PAYMENT (code_payment, date_payment, ddl_payment, #num_cart)
7 SQL CODE

Database creation

Tables creation

Examples of queries
Database creation

CREATE DATABASE CWDS


7)
3) CREATE TABLE customized (
Tables creation CREATE TABLE designer (
5) code_product int (11) NOT NULL,
1) CREATE TABLE member ( Designer_id int (11) NOT NULL,
price_cust float (24) DEFAULT NULL,
CREATE TABLEint
member_id product ( NULL,
(11) NOT Name_des varchar (20) DEFAULT NULL,
description_cust varchar (50) DEFAULT NULL,
code_product int (11)(20)
gender varchar NOTDEFAULT
NULL, NULL, Address_des varchar
design_code (30)NOT
int (11) DEFAULT
NULL,NULL,
type age
varchar (30)DEFAULT
int (10) DEFAULTNULL,
NULL, Years_of_profession int (4) DEFAULT NULL,
PRIMARY KEY (code_product),
PRIMARY
phone KEY (code_product)
varchar (30) DEFAULT NULL, PRIMARY KEY (designer_id)
FOREIGN KEY (code_product) REFERENCES
username varchar (20) DEFAULT NULL, product(code_product),
password varchar (8) DEFAULT NULL, 4) FOREIGN KEY (design_code) REFERENCES
2)
PRIMARY KEY (member_id) design(design_code)
CREATE TABLE design (
CREATE TABLE readytowear (
6) Design_code int (11) NOT NULL,
Code_product int (11) NOT NULL, 8)
CREATE TABLE member_product ( Category_d varchar (50) DEFAULT NULL,
Price_r float (24) DEFAULT NULL,
member_id int (20)
(11) NOT NULL,NULL, CREATEvarchar
Name_d TABLE (50)
customer (
DEFAULT NULL,
Type_r varchar DEFAULT
code_productvarchar
int (11) (50)
NOTDEFAULT
NULL, NULL, Designer_id int (11) NOT NULL,
Description_r
PRIMARY KEY KEY (code_product),
(member_id, code_product), customer_id
PRIMARY intKEY
(11) (design_code),
NOT NULL,
PRIMARY
FOREIGNKEY KEY(code_product)
(member_id) REFERENCES FOREIGN KEY (designer_id) REFERENCES designer
FOREIGN REFERENCES PRIMARY KEY (customer_id))
member(member_id), (designer_id)
product (code_product)
FOREIGN KEY (code_product) REFERENCES
product(code_product)
Examples of queries

1)Display the num of cart which


have date of livraison = ‘2022-
10-10’
SELECT num_cart, date_liv

FROM cart

WHERE date_liv= ‘2022-10-10’


Conclusion

You might also like