1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-19 05:40:12 +01:00
pingvin-share/.setup/data/collections.ts
2022-05-11 13:50:28 +02:00

105 lines
1.9 KiB
TypeScript

export default [
{
$id: "shares",
$read: [],
$write: [],
name: "Shares",
enabled: true,
permission: "collection",
attributes: [
{
key: "securityID",
type: "string",
required: false,
array: false,
size: 255,
default: null,
},
{
key: "users",
type: "string",
required: false,
array: true,
size: 255,
default: null,
},
{
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,
},
],
indexes: [
{
key: "expiresAt",
type: "key",
attributes: ["expiresAt"],
orders: ["ASC"],
},
{
key: "enabled",
type: "key",
attributes: ["enabled"],
orders: ["ASC"],
},
],
},
{
$id: "shareSecurity",
$read: [],
$write: [],
name: "ShareSecurity",
enabled: true,
permission: "collection",
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: [],
},
];