artysan/management-platformsConfidential

Custom management systems and platforms

Custom management systems and web platforms: per-role permissions in the database, server functions, integrations. One platform went live in seven days.

The problem
Customers, bookings and payments live in disconnected tools, and a prototype built in a hurry is not enough for real users and real data.
What I built
The back end of a management system with six roles and of a platform with a client area and a staff area: permissions in the database, server functions, integrations.

7days from opening the repository to production, for the platform

TypeScriptReactSupabasePostgres
Start

01 / 07Where it starts

The prototype exists. Now it has to hold up with real users and real data.

The management system was born with an AI app builder, and a colleague still builds the interface with that tool. I work underneath: who can see what, the server functions, the emails to customers and the sync with the system the client already used.

The prototype exists. Now it has to hold up with real users and real data.

Interfaceborn with an AI app builder, looked after by a colleague

typed adapters

This part is mine

  1. Per-role permissions in the database6roles
  2. Server functions9functions
  3. Transactional emailfrom a verified domain
  4. Sync with the previous systemevery night

The schema only changes through migrations in the repository, even when the builder writes them.

02 / 07One button too many

If the interface shows one button too many, the database still says no.

The interface changes often, and sooner or later a button shows up where it shouldn't. That's why every request goes through the database, which checks the role's policy before running it. In the example, staff can read customer files and nothing more.

If the interface shows one button too many, the database still says no.
Customer file· example, made-up datarole: staff

Luca B.

customer since March 2026

Phone
+39 000 000 0000
Email
luca.b@example.com
Active bookings
2
Delete customer

Rejected by the database

per-role policy: staff can read customer files, not delete them

03 / 07Permissions

The database decides who can see and change what.

Six roles, from administration to the customer, each with its own policies. A customer sees their own bookings and nothing else.

The database decides who can see and change what.
RoleBookingsCustomer filesPaymentsReportsUsers and roles
Ownerview and editview and editview and editview and editview and edit
Adminview and editview and editview and editview and editview
Front deskview and editview and editview and editnonenone
Staffown onlyviewnonenonenone
Salesviewview and editnoneviewnone
Customerown onlyown onlyown onlynonenone

Customer × Bookings: sees only their own. The filter lives in the database policy, so it holds on every screen.

Example schema: roles renamed generically, actions simplified.

Next

04 / 07Every night

At night the new system syncs with the previous one.

A server function reads customer records and sales from the system the client already used. An empty field gets filled in. A field that differs is not overwritten: it goes into a queue, and in the morning the staff decides which one to keep.

At night the new system syncs with the previous one.
Previous systemGiulia R.
Phone333 000 0000
Emailgiulia@example.com
Address3 Rome Street
New systemGiulia R.
Phone333 000 0000filled in
Emailgiulia@example.comsame
Address5 Rome Streetdiffers, queued

In the morningTo review (1)

Giulia R. · AddressKeep 3 Rome StreetKeep 5 Rome Street

example, made-up data

05 / 07Four hands

Between the interface and the data there is a typed contract.

My colleague works on the interface with the builder, I work on data, permissions and functions. We talk through typed adapters, so each of us can change our side without breaking the other. The schema only changes through migrations in the repository, never by hand from a dashboard.

adapter.tsinterface side
export interface Booking {  id: string  customer: string  start: Date  status: 'confirmed' | 'cancelled'}
migration.sqldatabase side
create policy "own only"  on bookings for select  using (customer_id = auth.uid());
Example code

06 / 07The platform

From opening the repository to production, seven days.

For a services company. I looked after the back end and the infrastructure, with a colleague on the websites.

  • Website
  • Client area
  • Staff area
  • Message inbox with an agent
repository: October 26, 2026. in production: November 2, 2026.
releases between 26 October and 10 November
25
SQL test files that check the database permissions
54

I approve every release to production.

Source: the repository history from 26 October to 10 November 2026

07 / 07Today

One platform in production, one management system in acceptance testing, one in analysis.

One platform in production, one management system in acceptance testing, one in analysis.
  1. The platform

    since October 2026

    ProductionLive since 2 November, with a release almost every day.

  2. The management system

    since June 2026

    AcceptanceOnline with demo data. The client decides when to start with real data.

  3. A second management system

    since September 2026

    RequirementsSix types of user. Requirements and questions about the stack first, then the code.

Next

The end

The rest is in the details.

Below is the project README. For questions, or to work on something together, get in touch.

Details

README.md

Anonymized case study: I don't name clients, industries or third-party tools, and I don't give usage numbers.

Technical choices

The database schema changes only through migrations in the repository, never by hand from a dashboard, even when the builder writes them. Permissions are per-role policies in the database: if the interface shows one button too many, the database still refuses the operation. On the platform the permissions have their own SQL tests, and on the management system I took them through several security reviews ahead of launch.

What I learned

Working next to an AI app builder goes well when the boundary is clear. The interface can change every day, because permissions live in the database and data goes through typed adapters.

Artysan.

Custom software, automation and integrations. From Rome.

© 2026 Samuel Tagliacozzo · Artysan