{
  "name": "sources",
  "plural": "sources",
  "base": "PersistedModel",
  "idInjection": false,
  "options": {
    "validateUpsert": true
  },
  "mixins": {
    "Counts": true
  },
  "properties": {
    "source_id": {
      "type": "number",
      "id": true
    },
    "source": {
      "type": "string"
    },
    "is_active": {
      "type": "number"
    },
    "user_id": {
      "type": "number"
    }
  },
  "validations": [],
  "relations": {
    "user": {
      "type": "belongsTo",
      "model": "User",
      "foreignKey": "user_id"
    },
    "items": {
      "type": "hasMany",
      "model": "items",
      "foreignKey": "source_id"
    },
    "itemBundles": {
      "type": "hasMany",
      "model": "itemBundles",
      "foreignKey": "source_id"
    }
  },
  "acls": [
    {
      "accessType": "*",
      "principalType": "ROLE",
      "principalId": "$everyone",
      "permission": "DENY"
    },
    {
      "accessType": "WRITE",
      "principalType": "ROLE",
      "principalId": "$authenticated",
      "permission": "ALLOW"
    },
    {
      "accessType": "READ",
      "principalType": "ROLE",
      "principalId": "$authenticated",
      "permission": "ALLOW"
    }
  ],
  "methods": {}
}
