text: const mongoose = require("mongoose");
  
  const endpoint = new mongoose.Schema(	
  	{
  		"hash": {
  			type: String,
  		},
  		"secret":{
  			type: String,
  		},
  		"callbackUrl": {
  			type: String,
  			default: ""
  		},
  		"telegramChatId": {
  			type: String,
  			default: ""
  		},
  		"telegramApiKey": {
  			type: String,
  			default: ""
  		},
  		"admin": {
  			type: Boolean,
  			default: false
  		},
  	},
  	{
  		timestamps: true,
  	});
  
  endpoint.index( { hash: 1 } , { unique: true });
  module.exports = mongoose.model( "endpoint", endpoint, "endpoint");
  