Online reservation and ordering system (available online)

1Introduction to the online ordering and reservation system

Database course design assignment using python

When going to a restaurant to dine, if you do not reserve a seat in advance, you may not be able to find the seat you want or the dish you want to eat. In order to solve this problem, customers can make reservations online first, and then go to the reserved restaurant to enjoy the dishes they have ordered when the reservation time comes.

2 Requirements analysis of online food ordering and reservation system

2.1 Overview of online food ordering reservation system requirements

(1) Customer login and modification of personal information
(2) Merchant login and modification of merchant information
(3) Merchant provides reservation information (available reservation time and table number)

(4) Customer reservation

(5) Generate reservation results and provide feedback to users and merchants

2.2.1 Top-level data flow diagram

 2.2.2 Online food ordering and reservation system layer 1 data flow diagram

2.2.3 Layer 2 data flow diagram of online food ordering and reservation system

2.3 Data flow

Data flow name

illustrate

Data flow source

Where the data flow goes

composition

User login information

Login information for users who use online ordering to make reservations

user input

User Management

account password

User modified information

Basic information in the system that the user wishes to modify

user input

User Management

Account number, password, address, contact information

User Info

Basic information of merchants on the online food ordering and reservation platform

User information table

User Management

Account number, password, address, contact information, reservation results

Merchant login information

Login information for merchants using online reservations

Merchant input

Merchant management

account password

Business information

Basic information about merchants on the online food ordering and reservation platform

Business information table

Merchant management, business information table

Store name, address, contact information, number of remaining tables

Merchants modify information

The basic information in the system that the merchant wishes to modify

Merchant input

Merchant management

Store name, address, contact information, number of remaining tables

Appointment information

Reservation information for users’ online meal reservations

user input

Appointment management

User account, user password, user name, meal time, number of guests,

Appointment results

Describe the results of reservation information

Appointment management

Users, merchants

Reservation number, reservation time, user account, merchant account, total price, number of diners, and reserved dish name

 2.4 Data storage

data storage

illustrate

incoming data stream

Outgoing data flow

composition

User information table

Store user-related information of the online food ordering reservation system

User modification information, user login information, reservation results

User Info

Account number, password, name, address, contact information, reservation results

Business information table

Store information related to merchants in the online food ordering reservation system

Merchant login information, reservation results

Business information

Account number, password, store name, address, contact information, number of remaining tables, reservation results

Reservation information form

Store information related to merchants in the online food ordering reservation system

Appointment information

Appointment information

User account, user password, user name, meal time, number of diners

 2.5 Data items

Data item name

Explanation of meaning

User contact information

The number of the user using the ordering system

user password

User-defined login password

user account

That is, the mailbox uniquely identifies each user.

username

Name of user who uses the online ordering system

Merchant store name

Ordering system merchant name

Merchant account

That is, the email address that uniquely identifies the merchant

Merchant password

Merchant customized login password

Store contact information

Uniquely identify each store 

2.6 Processing process

Processing

illustrate

enter

output

deal with

User login

Login account

Name, account number, password, address, contact information

Basic user information table

Add a new user's information in the "User Information" data store

Modify user information

Modify a user's basic information

Name, account number, password, address, contact information

Basic user information table

Modify a user's information in the "User Information" data store

Update user information

Add appointment information

Appointment results

Basic user information table

Modify user reservation information in the "User Information" data store

User information query

Query user information

Query conditions

Appointment results

Query the user's information in the "User Information" data store

Merchant login

Merchant login

Store name, address, contact information

Basic business information table

Add a new business information to the "Business Information" data store

Business information modification

Modify a merchant’s basic information

Store name, address, contact information

Basic business information table

Modify a business's information in the Business Information data store

Business information query

Query business information

Query conditions

Basic reservation information table

Query business information in the Business Information data store

Update business information

Add appointment information

Appointment results

Basic business information table

Modify appointment information in the Places data store

Appointment order review

Review appointment information

Reservation information, business information

Basic reservation information table

Add a reservation information to the "Appointment Information" data store

Appointment information update

Feedback reservation results to users and merchants

Appointment information

Basic business information table and basic user information table

Add a reservation information in the "basic business information table and basic user information table" data storage

3 Conceptual structure of online food ordering and reservation system

3.1 Partial ER diagram

 

 

3.2 Global ER diagram 

 

Go to home page

The program remotely connected to the Huawei cloud server successfully (server IP and port number: ip:3306)

  1. I am a user

Enter the user interface when the user selects 1

1.1 User login

When the user selects 1, the user login page is entered, and the user enters the correct account number and password to log in.

(1) The user entered the wrong account number

 

(2)用户输入错误的密码

(3)用户输入正确

登录后检查该用户的预约结果

若为“成功”,则用户可以选择:

  1. 查看预约信息
  2. 取消预约
  3. 退出登录,返回主页

若为“失败”或为NULL,则跳出商家信息栏供用户预约,用户可以选择:

  1. 预约
  2. 退出登录,返回主页
      1. 查看预约信息

    1. 取消预约

  1. 预约 
  2. 商家表中对应餐厅的剩余桌位加1,同时预约信息表中的预约信息删除,用户表中的预约结果由“成功”变为NULL(通过远程控制传输到服务器,相应的更改服务器中数据库的数据
  3. (1)预约失败

    若出现以下情况,则预约失败,重新进入预约界面:

  4. 用户输入的餐厅号有误
  5. 在系统中无用户输入的餐厅(餐厅号)
  6. 用户订餐的餐厅无空余桌位(该餐厅已订满)

 以上仅列举了部分测试结果,由于是课程作业,其中测试结果包含本人隐私信息如电话号码姓名,所有后续测试结果就不放出来了。

程序使用python完成,需要提取租用服务器并构建数据库。

代码部分如下:

使用python制作的数据库课程设计作业,使用python制作网上订餐系统(真实可用,可联网),内含全部代码已经测试文档。-Python文档类资源-CSDN文库

https://download.csdn.net/download/HUANGliang_/85247017icon-default.png?t=M3K6https://download.csdn.net/download/HUANGliang_/8524701


声明:本内容完全原创,未经过本人同意请勿转载

Guess you like

Origin blog.csdn.net/HUANGliang_/article/details/124508594