create a tenant
curl --location --request POST 'localhost:3001/api/tenants'
--header 'Content-Type: application/json'
--data-raw '{"name":"my first customer"}'
get tenants
curl -X GET 'http://localhost:3001/api/tenants'
create a todo (don't forget to use a real tenant-id in the URL)
curl -X POST
'http://localhost:3001/api/tenants/108124a5-2e34-418a-9735-b93082e9fbf2/todos'
--header 'Content-Type: application/json'
--data-raw '{"title": "feed the cat", "complete": false}'
list todos for tenant (don't forget to use a real tenant-id in the URL)
curl -X GET
'http://localhost:3001/api/tenants/108124a5-2e34-418a-9735-b93082e9fbf2/todos'
This is the file structure of the project. In the `src/db` directory, we have database-related files including connection in `db.ts` and schema definitions in `schema.ts`. The files generated by the migrations and introspections are in `./drizzle`