Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
2.3 kB
2
Indexable
Never
{
  "kind": "collectionType",
  "collectionName": "up_users",
  "info": {
    "name": "user",
    "description": "",
    "singularName": "user",
    "pluralName": "users",
    "displayName": "Агенты"
  },
  "options": {
    "draftAndPublish": false
  },
  "attributes": {
    "username": {
      "type": "string",
      "minLength": 3,
      "unique": true,
      "configurable": false,
      "required": true
    },
    "email": {
      "type": "email",
      "minLength": 6,
      "configurable": false,
      "required": true
    },
    "provider": {
      "type": "string",
      "configurable": false
    },
    "password": {
      "type": "password",
      "minLength": 6,
      "configurable": false,
      "private": true,
      "searchable": false,
      "regex": "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).+$"
    },
    "resetPasswordToken": {
      "type": "string",
      "configurable": false,
      "private": true,
      "searchable": false
    },
    "confirmationToken": {
      "type": "string",
      "configurable": false,
      "private": true,
      "searchable": false
    },
    "confirmed": {
      "type": "boolean",
      "default": false,
      "configurable": false
    },
    "blocked": {
      "type": "boolean",
      "default": false,
      "configurable": false
    },
    "role": {
      "type": "relation",
      "relation": "manyToOne",
      "target": "plugin::users-permissions.role",
      "inversedBy": "users",
      "configurable": false
    },
    "girls": {
      "type": "relation",
      "relation": "oneToMany",
      "target": "api::girl.girl",
      "mappedBy": "users_permissions_user"
    },
    "balance": {
      "type": "decimal",
      "required": false,
      "default": 0,
      "min": 0
    },
    "name": {
      "type": "string",
      "required": true
    },
    "payments": {
      "type": "relation",
      "relation": "oneToMany",
      "target": "api::payment.payment",
      "mappedBy": "users_permissions_user"
    },
    "moderator_payments": {
      "type": "relation",
      "relation": "oneToMany",
      "target": "api::moderator-payment.moderator-payment",
      "mappedBy": "users_permissions_agent"
    },
    "notification": {
      "type": "boolean",
      "default": true
    }
  }
}
Leave a Comment