raster-foundry / granary

Open source repo for AI-supported information feeds

Home Page:https://raster-foundry.github.io/granary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add User Model

notthatbreezy opened this issue · comments

I don't think this needs to be complicated - in fact it could be as simple as adding an email + ID (another UUID that doesn't change), but pretty quickly we're going to want a way to separate out predictions and models amongst users.

My proposal is the following:

  • Add an OwnerID and email (for easier record keeping) to the tokens field
  • Add an owner field to predictions + models
  • Restrict CRUD actions to owners (except for the webhook)