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. | Title | Description | Priority |
|---|---|---|---|
REQ-001 | Sign up and sign in | Members sign up with an email and password and can sign in. A reset email is sent when they forget the password. | High |
REQ-002 | Book from availability | Choosing a date, time and party size shows open seats, which can be booked right away. | High |
REQ-003 | Change or cancel a booking | Members can change or cancel their own booking until 6 pm the day before. | Mid |
REQ-004 | Restaurant booking book | Staff see each day's bookings in a list and record arrivals and no-shows. | Mid |
NFR-001 | Works on phones | The member screens work at phone width (390px) without breaking. | Mid |
Table definitions
members Member
| Name | Logical name | Type | Constraints |
|---|---|---|---|
id | Member ID | bigint | PK、auto increment |
email | varchar(255) | NOT NULL、unique | |
name | Name | varchar(60) | NOT NULL |
created_at | Signed up at | datetime | NOT NULL |
reservations Booking
| Name | Logical name | Type | Constraints |
|---|---|---|---|
id | Booking ID | bigint | PK、auto increment |
member_id | Member ID | bigint | NOT NULL、FK → members.id |
reserved_at | Booked for | datetime | NOT NULL |
people | Party size | int | NOT NULL |
status | Status | enum | booked / 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
Header
Book a table
Date
Time
Party size
Header
Today's bookings
Bookings (time, name, party size, status)
Tasks
To do
T-3Build the availability searchT-4Build the booking book screenT-5Decide the cancellation deadline (ask the client)Doing
T-2Build the sign-in screenDone
T-1Build the sign-up APIThis 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