mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-11-18 21:30:12 +01:00
98 lines
1.8 KiB
TypeScript
98 lines
1.8 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: [
|
|
{
|
|
key: "expiresAt",
|
|
type: "key",
|
|
attributes: ["expiresAt"],
|
|
orders: ["ASC"],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
$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: [],
|
|
},
|
|
];
|