const {
    Collection
} = require("@bitev.io/core/types");

module.exports = Collection({
    "activeTask": false,
    "singleType": false,
    "hidden": false,
    "mode": "model",
    "slug": "Users",
    "timestamps": true,
    "auth": {
        "enabled": true,
        "by": "email"
    },
    "admin": {
        "timestampsFormat": "YYYY-MM-DD HH:mm:ss"
    },
    "fields": [{
        "admin": {
            "sortable": false,
            "readonly": false,
            "hidden": false,
            "required": false
        },
        "name": "role",
        "type": "relationship",
        "unique": false,
        "hasMany": false,
        "relationTo": "Roles",
        "linked": true,
        "required": false,
        "relationType": "many-to-one",
        "relationSideName": "users",
        "private": false,
        "onSideRelation": true
    }, {
        "admin": {
            "sortable": false,
            "readonly": false,
            "hidden": false,
            "required": false
        },
        "name": "email",
        "type": "string",
        "unique": false,
        "hasMany": false,
        "linked": true,
        "required": false,
        "relationType": "one-to-many",
        "private": false
    }, {
        "admin": {
            "sortable": false,
            "readonly": false,
            "hidden": false,
            "required": false
        },
        "name": "password",
        "type": "password",
        "unique": false,
        "hasMany": false,
        "linked": true,
        "required": true,
        "relationType": "one-to-many",
        "private": false
    }],
    "_v": true
})