Shilpa

See the sample project “Member reservations” without signing up

A sample project for a members-only restaurant booking system. Every new organization starts with this project, so you can try it hands-on (it does not count toward your project limit).

Reservations and customer records for a members-only restaurant

Requirements

No.TitleDescriptionPriority
REQ-001Sign up and sign inMembers sign up with an email and password and can sign in. A reset email is sent when they forget the password.High
REQ-002Book from availabilityChoosing a date, time and party size shows open seats, which can be booked right away.High
REQ-003Change or cancel a bookingMembers can change or cancel their own booking until 6 pm the day before.Mid
REQ-004Restaurant booking bookStaff see each day's bookings in a list and record arrivals and no-shows.Mid
NFR-001Works on phonesThe member screens work at phone width (390px) without breaking.Mid

Table definitions

members Member

NameLogical nameTypeConstraints
idMember IDbigintPK、auto increment
emailEmailvarchar(255)NOT NULL、unique
nameNamevarchar(60)NOT NULL
created_atSigned up atdatetimeNOT NULL

reservations Booking

NameLogical nameTypeConstraints
idBooking IDbigintPK、auto increment
member_idMember IDbigintNOT NULL、FK → members.id
reserved_atBooked fordatetimeNOT NULL
peopleParty sizeintNOT NULL
statusStatusenumbooked / visited / canceled / noshow

DDL (MySQL)

Generated from the tables. PostgreSQL, TypeScript types, Prisma and the Excel definition come from the same tables.

CREATE TABLE `members` (
  `id` BIGINT NOT NULL AUTO_INCREMENT COMMENT 'Member ID',
  `email` VARCHAR(255) NOT NULL UNIQUE COMMENT 'Email',
  `name` VARCHAR(60) NOT NULL COMMENT 'Name',
  `created_at` DATETIME NOT NULL COMMENT 'Signed up at',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Member';

CREATE TABLE `reservations` (
  `id` BIGINT NOT NULL AUTO_INCREMENT COMMENT 'Booking ID',
  `member_id` BIGINT NOT NULL COMMENT 'Member ID',
  `reserved_at` DATETIME NOT NULL COMMENT 'Booked for',
  `people` INT NOT NULL COMMENT 'Party size',
  `status` ENUM('booked', 'visited', 'canceled', 'noshow') COMMENT 'Status',
  PRIMARY KEY (`id`),
  FOREIGN KEY (`member_id`) REFERENCES `members`(`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Booking';

Screen design

Book a tablePhone
Header
Book a table
Date
Time
Party size
Check availability
Booking bookPC
Header
Today's bookings
Bookings (time, name, party size, status)
Record arrival

Tasks

To doT-3Build the availability searchT-4Build the booking book screenT-5Decide the cancellation deadline (ask the client)
DoingT-2Build the sign-in screen
DoneT-1Build the sign-up API

This page is a sample. It does not describe any real company or person.

Try this sample

Create an organization and it starts with this sample project. Every Team plan feature is free for 14 days, no card needed.

Get started