<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nand Patel</title>
    <description>The latest articles on DEV Community by Nand Patel (@nand_patel_1311).</description>
    <link>https://dev.to/nand_patel_1311</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4233920%2Fe17e2982-bf64-41a7-9049-e377975e6325.png</url>
      <title>DEV Community: Nand Patel</title>
      <link>https://dev.to/nand_patel_1311</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nand_patel_1311"/>
    <language>en</language>
    <item>
      <title>How I designed one workflow for 4 restaurant roles (owner, waiter, kitchen, cashier)</title>
      <dc:creator>Nand Patel</dc:creator>
      <pubDate>Sun, 08 Nov 2026 17:51:42 +0000</pubDate>
      <link>https://dev.to/nand_patel_1311/im-a-student-founder-i-built-one-system-for-4-restaurant-roles-heres-what-broke-my-first-design-2j83</link>
      <guid>https://dev.to/nand_patel_1311/im-a-student-founder-i-built-one-system-for-4-restaurant-roles-heres-what-broke-my-first-design-2j83</guid>
      <description>&lt;p&gt;I'm a Computer Engineering student in Ahmedabad, and I'm building Nirvaan Tech, my own software company.&lt;/p&gt;

&lt;p&gt;Our first product is RestaurantOS, a restaurant operations system that connects the &lt;strong&gt;owner, waiter, kitchen and cashier&lt;/strong&gt; in one workflow.&lt;/p&gt;

&lt;p&gt;The hardest part wasn't the UI. It was deciding who is allowed to change what, and when.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the flow, not the screens
&lt;/h2&gt;

&lt;p&gt;One order in a restaurant touches four people:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Table → Order → Kitchen → Serve → Billing → Payment → Reports&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Each role sees the same order differently and can only change it in a way that fits their job. If every role gets its own copy of the data, they will eventually disagree about what's happening.&lt;/p&gt;

&lt;p&gt;So the design rule I followed: &lt;strong&gt;one order, one status, many views.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Model the order as states
&lt;/h2&gt;

&lt;p&gt;Instead of building four separate dashboards, I treat the order as a state machine. Each role can only move it forward in the way its job allows.&lt;/p&gt;

&lt;p&gt;A simplified version of the idea:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;transitions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;placed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;by&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;waiter&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="na"&gt;next&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;preparing&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="na"&gt;preparing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;by&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;kitchen&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;next&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;ready&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="na"&gt;ready&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;     &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;by&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;waiter&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="na"&gt;next&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;served&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="na"&gt;served&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;by&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;cashier&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;next&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;billed&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="na"&gt;billed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;by&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;cashier&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;next&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;paid&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now the rules live in one place:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The kitchen can't mark an order as paid.&lt;/li&gt;
&lt;li&gt;The cashier can't skip the kitchen.&lt;/li&gt;
&lt;li&gt;The owner sees everything without disturbing the flow.&lt;/li&gt;
&lt;li&gt;Reports are just a read of what already happened.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4 lessons for multi-role software
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Trace one real transaction through every role before designing any screen.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make state changes explicit.&lt;/strong&gt; If anyone can edit anything, bugs become untraceable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Permissions belong to actions, not pages.&lt;/strong&gt; Hiding a button is not security.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clean states make reporting simple.&lt;/strong&gt; Reports become a query, not a separate system.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What I'm still learning
&lt;/h2&gt;

&lt;p&gt;I'm a first-time founder, and I don't think this approach is perfect. I'd like to hear where it breaks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Question for you
&lt;/h2&gt;

&lt;p&gt;If you've built software where several roles share one workflow (restaurants, hospitals, logistics, anything):&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Did you model it as states and transitions, or did you end up with a different approach? What would you change in the design above?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'm building this in public at &lt;a href="https://nirvaantech.in/" rel="noopener noreferrer"&gt;Nirvaan Tech&lt;/a&gt;. The comments are open, and I'll reply to every one.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>startup</category>
      <category>showdev</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
