1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-05 15:30:14 +01:00
pingvin-share/.setup/data/collections.ts
2022-04-25 15:15:17 +02:00

91 lines
1.7 KiB
TypeScript

export default [
{
$id: "shares",
$read: [],
$write: [],
name: "Shares",
enabled: true,
permission: "document",
attributes: [
{
key: "securityID",
type: "string",
status: "available",
required: false,
array: false,
size: 255,
default: null,
},
{
key: "createdAt",
type: "integer",
status: "available",
required: true,
array: false,
min: 0,
max: 9007199254740991,
default: null,
},
{
key: "expiresAt",
type: "integer",
status: "available",
required: true,
array: false,
min: 0,
max: 9007199254740991,
default: null,
},
{
key: "visitorCount",
type: "integer",
status: "available",
required: false,
array: false,
min: 0,
max: 9007199254740991,
default: 0,
},
{
key: "enabled",
type: "boolean",
status: "available",
required: false,
array: false,
default: false,
},
],
indexes: [],
},
{
$id: "shareSecurity",
$read: [],
$write: [],
name: "ShareSecurity",
enabled: true,
permission: "document",
attributes: [
{
key: "password",
type: "string",
status: "available",
required: false,
array: false,
size: 128,
default: null,
},
{
key: "maxVisitors",
type: "integer",
status: "available",
required: false,
array: false,
min: 0,
max: 9007199254740991,
default: null,
},
],
indexes: [],
},
];