2022-04-25 15:15:17 +02:00
|
|
|
export default [
|
|
|
|
{
|
|
|
|
$id: "shares",
|
|
|
|
$read: [],
|
|
|
|
$write: [],
|
|
|
|
name: "Shares",
|
|
|
|
enabled: true,
|
2022-05-11 15:32:28 +02:00
|
|
|
permission: "document",
|
2022-04-25 15:15:17 +02:00
|
|
|
attributes: [
|
|
|
|
{
|
|
|
|
key: "securityID",
|
|
|
|
type: "string",
|
|
|
|
required: false,
|
|
|
|
array: false,
|
|
|
|
size: 255,
|
|
|
|
default: null,
|
|
|
|
},
|
2022-05-06 10:25:10 +02:00
|
|
|
{
|
|
|
|
key: "users",
|
|
|
|
type: "string",
|
|
|
|
required: false,
|
|
|
|
array: true,
|
|
|
|
size: 255,
|
|
|
|
default: null,
|
|
|
|
},
|
2022-04-25 15:15:17 +02:00
|
|
|
{
|
|
|
|
key: "createdAt",
|
|
|
|
type: "integer",
|
|
|
|
required: true,
|
|
|
|
array: false,
|
|
|
|
min: 0,
|
|
|
|
max: 9007199254740991,
|
|
|
|
default: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "expiresAt",
|
|
|
|
type: "integer",
|
|
|
|
required: true,
|
|
|
|
array: false,
|
|
|
|
min: 0,
|
|
|
|
max: 9007199254740991,
|
|
|
|
default: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "visitorCount",
|
|
|
|
type: "integer",
|
|
|
|
required: false,
|
|
|
|
array: false,
|
|
|
|
min: 0,
|
|
|
|
max: 9007199254740991,
|
|
|
|
default: 0,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "enabled",
|
|
|
|
type: "boolean",
|
|
|
|
required: false,
|
|
|
|
array: false,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
],
|
2022-04-28 16:51:18 +02:00
|
|
|
indexes: [
|
|
|
|
{
|
|
|
|
key: "expiresAt",
|
|
|
|
type: "key",
|
|
|
|
attributes: ["expiresAt"],
|
|
|
|
orders: ["ASC"],
|
|
|
|
},
|
2022-05-11 13:50:28 +02:00
|
|
|
{
|
|
|
|
key: "enabled",
|
|
|
|
type: "key",
|
|
|
|
attributes: ["enabled"],
|
|
|
|
orders: ["ASC"],
|
|
|
|
},
|
2022-04-28 16:51:18 +02:00
|
|
|
],
|
2022-04-25 15:15:17 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
$id: "shareSecurity",
|
|
|
|
$read: [],
|
|
|
|
$write: [],
|
|
|
|
name: "ShareSecurity",
|
|
|
|
enabled: true,
|
2022-05-05 11:22:47 +02:00
|
|
|
permission: "collection",
|
2022-04-25 15:15:17 +02:00
|
|
|
attributes: [
|
|
|
|
{
|
|
|
|
key: "password",
|
|
|
|
type: "string",
|
|
|
|
required: false,
|
|
|
|
array: false,
|
|
|
|
size: 128,
|
|
|
|
default: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: "maxVisitors",
|
|
|
|
type: "integer",
|
|
|
|
required: false,
|
|
|
|
array: false,
|
|
|
|
min: 0,
|
|
|
|
max: 9007199254740991,
|
|
|
|
default: null,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
indexes: [],
|
|
|
|
},
|
|
|
|
];
|