Seed BankSeeds of Hawaiʻi · Seed Lab database

Seed Bank / How it works

How it works

What the database does and how it is built, with four things to try on sample data.

Try it

Four things the app does, on sample data, in your browser. Nothing here touches the bank.

Undo

Every save is one change in History. Any of them can be taken back.

Test 90001 · count 3 · sample data
Count dateDec 8, 2021
Germinated14
History

Nothing yet. Edit the count and save.

    Configure

    Describe the change. The agent writes the plan; an administrator applies it.

    Intake form · sample
    Accession991231001
    Source accession number—

    Permissions

    User types decide, table by table. The database enforces it, whatever the screen sends.

    Test 90001 · sample

    Press a button as this user type.

    Quality checks

    Rules run on every save and say what is wrong. The Data steward re-reads the whole bank weekly.

    New count on test 90001 · sown Nov 24, 2021 · 50 seeds · sample

    Features

    Every table and record we had was carried over. These are the functions the database adds on top.

    Queries and reports

    Ask a question in plain language or write SQL. The result can be saved as a query, built into a report and printed as a PDF in the lab’s page layout.

    Undo

    Every save is recorded as one change, with who made it and when. Any change, including an agent’s, can be undone from History.

    Configuration by administrators

    Administrators add columns, rename labels, change page layouts, define user types and edit print layouts from inside the app, without a developer.

    Quality checks

    Rules run on every save and report what is wrong. The Data steward agent re-checks the whole database every week.

    Permissions

    User types set, table by table, who can view, add, change or delete, and which features they can use. The rules are enforced in the database, not only in the screens.

    Limits on the AI

    The AI features see table structure and the glossary. They never receive locations, coordinates, sites or population data. Every proposal is shown with its reasoning before it is applied.

    Technical summary

    For people who run collections databases.

    PostgreSQL on Supabase69 tables and 682 columns, every table and field we brought with us, kept as it was.
    Row-level securityPermissions are database policies. A request that is not allowed returns nothing, from any screen or script.
    Audit log with undoEvery row change is stored with who, when and which save it belonged to. Undo replays changes in reverse and stops if the row has changed since.
    Migrations from inside the appSchema changes are dry-run, security-checked and recorded by administrators, with no terminal.
    Agents with human reviewAgents write proposals; people apply or dismiss them. Runs, findings and decisions are kept.
    ImportsThe ingest tool takes a dataset from any platform, in whatever format it is in, maps it and checks it. It loaded our full 32-year history that way.

    Locations of rare plants stay private

    Not on this page. Nothing here comes from a location, site, population, coordinate, elevation or person. The page is checked for it on every release.

    Not sent to the AI. The agents and the assistant work from table structure, counts and the glossary. Location and coordinate values are never included in what they read.

    Not for every member. User types decide, table by table, who can see what. The database enforces it, whichever screen or script asks.