According to the definition available online is "Multi-tenancy is an architecture in which a single instance of a software application serves multiple customers". It meann I have a Restaurant or School website and I provide access to different restaurant or school to use my application with their own data by using their credential I provide once they purchase my school management product. Like my website is like schoolmanagement.com and I provide different sub domains to different schools clients like school1.schoolmanagement.com & school2.schoolmanagement.com but the code is same behind both these subdomains. Both schools has different functionality or theme depend on their separate database. So I need to provide schoolmanagement.com for login and once my client login based on their login credential I redirect to their respective url e.g school1.schoolmanagement.com.
This is my understanding of multi tenant application. Is my understanding right? Is there any online multi-tenant application that I can go through.