Version 3 (modified by 3 years ago) ( diff ) | ,
---|
ER Model
ЕР Дијаграм
Податочни побарувања
Ентититети
- PRODUCT_CATEGORY
- id serial,
- category_name varchar
- constraint pk_cid primary key(id)
- PRODUCT
- id serial
- sku varchar
- name varchar
- description varchar
- unit_price decimal
- image_url varchar
- units_in_stock integer
- date_created timestamp
- last_updated timestamp
- category_id integer
- constraint pk_id primary key(id)
- constraint fk_cid foreign key(category_id) references product_category(id)
- CUSTOMER
- id serial
- first_name varchar
- last_name varchar
- email varchar unique
- constraint pk_customer primary key(id)
- ADDRESS
- id serial
- city varchar
- country varchar
- street varchar
- zip_code varchar
- constraint pk_address primary_key(id)
- ORDERS
- id bigserial
- order_tracking_number varchar
- total_price decimal
- total_quantity int
- customer_id int
- last_updated timestamp
- billing_address_id int unique
- shipping_address unique
- constraint pk_orders primary key(id)
- constraint fk_billing_add foreign key(billing_address_id) references address(id)
- constraint fk_shipping_add foreign key(shipping_address_id) references address(id)
- ORDERED_ITEM
- id serial
- quantity int
- order_id bigserial
- product_id int
- constraint pk_order_item primary key(id)
- constraint fk_order_id foreign key(order_id) references orders(id)
- constraint fk_product_id foreign key(product_id) references product(id)
Следните два ентитети се ентитети за Држава и Град кои служат за популирање на полиња во апликацијата на front-end.
- COUNTRY
- id serial
- code varchar
- name varchar
- constraint pk_country primary_key(id)
- CITY
- id serial
- name varchar
- country_id int
- constraint pk_city primary key(id),
- constraint fk_country foreign key(country_id) references country(id)
Attachments (4)
- ER_VERSION_1.jpg (122.2 KB ) - added by 3 years ago.
- ER_VERSION_2.jpg (97.8 KB ) - added by 3 years ago.
- ERD_VERSION_3.jpg (103.8 KB ) - added by 3 years ago.
- ERD_VERSION_4.jpg (113.5 KB ) - added by 3 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.