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

module.exports = Collection({
    "activeTask": false,
    "singleType": false,
    "hidden": false,
    "mode": "model",
    "slug": "logs",
    "timestamps": true,
    "auth": {
        "enabled": false,
        "by": "email"
    },
    "admin": {
        "label": "Logs",
        "timestampsFormat": "YY-MM-DD ,HH:mm:ss a"
    },
    "fields": [{
        "admin": {
            "label": "Action",
            "sortable": false,
            "readonly": true,
            "hidden": false,
            "required": false,
            "displayTemplate": "return item.id"
        },
        "name": "action",
        "type": "string",
        "unique": false,
        "hasMany": false,
        "linked": true,
        "required": false,
        "relationType": "one-to-many",
        "private": false,
        "index": false,
        "onSideRelation": false,
        "computedFx": {
            "active": true,
            "fx": "return ;"
        },
        "medias": {
            "allowedTypes": ["images", "videos", "files"]
        }
    }, {
        "admin": {
            "label": "User",
            "sortable": false,
            "readonly": false,
            "hidden": false,
            "required": false,
            "displayTemplate": "return item.id"
        },
        "name": "user",
        "type": "json",
        "unique": false,
        "hasMany": false,
        "linked": true,
        "required": false,
        "relationType": "one-to-many",
        "private": false,
        "index": false,
        "onSideRelation": false,
        "computedFx": {
            "active": true,
            "fx": "return ;"
        },
        "medias": {
            "allowedTypes": ["images", "videos", "files"]
        }
    }, {
        "admin": {
            "label": "Details",
            "sortable": false,
            "readonly": false,
            "hidden": false,
            "required": false,
            "displayTemplate": "return item.id"
        },
        "name": "details",
        "type": "json",
        "unique": false,
        "hasMany": false,
        "linked": true,
        "required": false,
        "relationType": "one-to-many",
        "private": false,
        "index": false,
        "onSideRelation": false,
        "computedFx": {
            "active": true,
            "fx": "return ;"
        },
        "medias": {
            "allowedTypes": ["images", "videos", "files"]
        }
    }, {
        "admin": {
            "label": "Type",
            "sortable": false,
            "readonly": true,
            "hidden": false,
            "required": false,
            "displayTemplate": "return item.id"
        },
        "name": "type",
        "type": "string",
        "unique": false,
        "hasMany": false,
        "linked": true,
        "required": false,
        "relationType": "one-to-many",
        "private": false,
        "index": false,
        "onSideRelation": false,
        "computedFx": {
            "active": true,
            "fx": "return ;"
        },
        "medias": {
            "allowedTypes": ["images", "videos", "files"]
        }
    }, {
        "admin": {
            "label": "Model",
            "sortable": false,
            "readonly": true,
            "hidden": false,
            "required": false,
            "displayTemplate": "return item.id"
        },
        "name": "model",
        "type": "string",
        "unique": false,
        "hasMany": false,
        "linked": true,
        "required": false,
        "relationType": "one-to-many",
        "private": false,
        "index": false,
        "onSideRelation": false,
        "computedFx": {
            "active": true,
            "fx": "return ;"
        },
        "medias": {
            "allowedTypes": ["images", "videos", "files"]
        }
    }, {
        "admin": {
            "label": "User id",
            "sortable": false,
            "readonly": false,
            "hidden": false,
            "required": false,
            "displayTemplate": "return item.id"
        },
        "name": "user_id",
        "type": "string",
        "unique": false,
        "hasMany": false,
        "linked": true,
        "required": false,
        "relationType": "one-to-many",
        "private": false,
        "index": false,
        "onSideRelation": false,
        "computedFx": {
            "active": true,
            "fx": "return ;"
        },
        "medias": {
            "allowedTypes": ["images", "videos", "files"]
        }
    }, {
        "admin": {
            "label": "Document id",
            "sortable": false,
            "readonly": false,
            "hidden": false,
            "required": false,
            "displayTemplate": "return item.id"
        },
        "name": "document_id",
        "type": "string",
        "unique": false,
        "hasMany": false,
        "linked": true,
        "required": false,
        "relationType": "one-to-many",
        "private": false,
        "index": false,
        "onSideRelation": false,
        "computedFx": {
            "active": true,
            "fx": "return ;"
        },
        "medias": {
            "allowedTypes": ["images", "videos", "files"]
        }
    }],
    "behavior": "basic",
    "realtime": false,
    "_v": true
})