According to the definition available online, "Multi-tenancy is an architecture in which a single instance of a software application serves multiple customers". It means 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 school clients like school1.schoolmanagement.com & school2.schoolmanagement.com but the code is the same behind both these subdomains. Both schools have different functionality or theme depending 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?