2023-06-01 16:34:41 +00:00
[
{
"id" : "w85pgrtrmovf916" ,
"name" : "transactions" ,
"type" : "base" ,
"system" : false ,
"schema" : [
{
"id" : "5aeh5giq" ,
"name" : "account" ,
"type" : "relation" ,
"system" : false ,
"required" : true ,
"options" : {
"collectionId" : "74ftooxenpeq14b" ,
"cascadeDelete" : false ,
"minSelect" : null ,
"maxSelect" : 1 ,
"displayFields" : [
"firstName" ,
"lastName"
]
}
} ,
{
"id" : "2bzqyeuk" ,
"name" : "label" ,
"type" : "text" ,
"system" : false ,
"required" : true ,
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
"id" : "zsx9i8w7" ,
"name" : "amount" ,
"type" : "number" ,
"system" : false ,
"required" : false ,
"options" : {
"min" : null ,
"max" : null
}
}
] ,
"indexes" : [ ] ,
"listRule" : "" ,
"viewRule" : "" ,
"createRule" : "" ,
"updateRule" : null ,
"deleteRule" : null ,
"options" : { }
} ,
2023-06-30 14:18:07 +00:00
{
"id" : "74ftooxenpeq14b" ,
"name" : "accounts" ,
"type" : "base" ,
"system" : false ,
"schema" : [
{
"id" : "as1gvc1r" ,
"name" : "accountNumber" ,
"type" : "text" ,
"system" : false ,
2023-07-03 09:38:34 +00:00
"required" : false ,
2023-06-30 14:18:07 +00:00
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
"id" : "vxeq20lk" ,
"name" : "firstName" ,
"type" : "text" ,
"system" : false ,
"required" : true ,
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
"id" : "bsinpdk7" ,
"name" : "lastName" ,
"type" : "text" ,
"system" : false ,
"required" : true ,
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
2023-07-03 09:38:34 +00:00
"id" : "4lw6gmtc" ,
"name" : "grade" ,
"type" : "text" ,
2023-06-30 14:18:07 +00:00
"system" : false ,
2023-07-03 09:38:34 +00:00
"required" : true ,
2023-06-30 14:18:07 +00:00
"options" : {
2023-07-03 09:38:34 +00:00
"min" : null ,
"max" : null ,
"pattern" : ""
2023-06-30 14:18:07 +00:00
}
} ,
{
2023-07-03 09:38:34 +00:00
"id" : "syfivtki" ,
"name" : "lastCheckIn" ,
"type" : "date" ,
2023-06-30 14:18:07 +00:00
"system" : false ,
"required" : false ,
"options" : {
2023-07-03 09:38:34 +00:00
"min" : "" ,
"max" : ""
2023-06-30 14:18:07 +00:00
}
} ,
{
"id" : "gwrzizpu" ,
"name" : "company" ,
"type" : "relation" ,
"system" : false ,
2023-07-06 22:10:50 +00:00
"required" : false ,
2023-06-30 14:18:07 +00:00
"options" : {
"collectionId" : "s854d2w72fvyl54" ,
"cascadeDelete" : false ,
"minSelect" : null ,
"maxSelect" : 1 ,
"displayFields" : [ ]
}
} ,
{
"id" : "rtvjzpxw" ,
"name" : "shift" ,
"type" : "text" ,
"system" : false ,
"required" : true ,
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
"id" : "ma5ckyk1" ,
"name" : "wageFactor" ,
"type" : "number" ,
"system" : false ,
"required" : true ,
"options" : {
2023-07-03 09:38:34 +00:00
"min" : 1 ,
2023-06-30 14:18:07 +00:00
"max" : null
}
}
] ,
"indexes" : [
2023-07-03 09:38:34 +00:00
"CREATE INDEX `idx_mPdvrAQ` ON `accounts` (`accountNumber`)"
2023-06-30 14:18:07 +00:00
] ,
"listRule" : "" ,
"viewRule" : null ,
"createRule" : null ,
2023-07-03 09:38:34 +00:00
"updateRule" : "(@request.data.id = null && @request.data.accountNumber = null && @request.data.firstName = null && @request.data.lastName = null && @request.data.grade = null && @request.data.created = null && @request.data.updated = null && @request.data.company = null && @request.data.shift = null && @request.data.wageFactor = null) || (@request.data.id = null && @request.data.accountNumber = null && @request.data.firstName = null && @request.data.lastName = null && @request.data.created = null && @request.data.updated = null && @request.data.company = null && @request.auth.id = company.id)" ,
2023-06-30 14:18:07 +00:00
"deleteRule" : null ,
"options" : { }
2023-07-09 20:45:42 +00:00
} ,
{
"id" : "c3zz98wpbn7m6zw" ,
"name" : "accountsList" ,
"type" : "view" ,
"system" : false ,
"schema" : [
{
"id" : "gdeqamzy" ,
"name" : "accountNumber" ,
"type" : "text" ,
"system" : false ,
"required" : false ,
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
"id" : "qzyafadn" ,
"name" : "name" ,
"type" : "json" ,
"system" : false ,
"required" : false ,
"options" : { }
} ,
{
"id" : "biqmxwri" ,
"name" : "grade" ,
"type" : "text" ,
"system" : false ,
"required" : true ,
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
"id" : "tbd7vg86" ,
"name" : "lastCheckIn" ,
"type" : "date" ,
"system" : false ,
"required" : false ,
"options" : {
"min" : "" ,
"max" : ""
}
} ,
{
"id" : "hm1hs5z9" ,
"name" : "balance" ,
"type" : "json" ,
"system" : false ,
"required" : false ,
"options" : { }
}
] ,
"indexes" : [ ] ,
"listRule" : null ,
"viewRule" : null ,
"createRule" : null ,
"updateRule" : null ,
"deleteRule" : null ,
"options" : {
"query" : "SELECT\n a.id AS id,\n a.accountNumber AS accountNumber,\n (a.firstName || ' ' || a.lastName) AS name,\n a.grade AS grade,\n a.lastCheckIn AS lastCheckIn,\n SUM(t.amount) AS balance\nFROM\n accounts AS a\nLEFT JOIN\n transactions AS t\nON\n a.id = t.account\nGROUP BY\n a.id\nORDER BY\n a.grade, a.lastName"
}
} ,
2023-07-12 13:30:25 +00:00
{
"id" : "5msnfxat1sc2c1r" ,
"name" : "companyTransactions" ,
"type" : "base" ,
"system" : false ,
"schema" : [
{
"id" : "7rnyupog" ,
"name" : "account" ,
"type" : "relation" ,
"system" : false ,
"required" : true ,
"options" : {
"collectionId" : "s854d2w72fvyl54" ,
"cascadeDelete" : false ,
"minSelect" : null ,
"maxSelect" : 1 ,
"displayFields" : [ ]
}
} ,
{
"id" : "ruby9fp9" ,
"name" : "label" ,
"type" : "text" ,
"system" : false ,
"required" : true ,
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
"id" : "4hiu46ib" ,
"name" : "amount" ,
"type" : "number" ,
"system" : false ,
"required" : false ,
"options" : {
"min" : null ,
"max" : null
}
}
] ,
"indexes" : [ ] ,
"listRule" : "" ,
"viewRule" : "" ,
"createRule" : "" ,
"updateRule" : null ,
"deleteRule" : null ,
"options" : { }
} ,
2023-07-11 11:38:58 +00:00
{
2023-07-12 13:30:25 +00:00
"id" : "t4gewf713jqhz3i" ,
"name" : "settings" ,
2023-07-11 11:38:58 +00:00
"type" : "base" ,
"system" : false ,
"schema" : [
{
2023-07-12 13:30:25 +00:00
"id" : "z7pmr7wm" ,
"name" : "minWage" ,
"type" : "number" ,
"system" : false ,
"required" : true ,
"options" : {
"min" : 0 ,
"max" : null
}
} ,
{
"id" : "7wzv9qum" ,
"name" : "incomeTax" ,
"type" : "number" ,
"system" : false ,
"required" : true ,
"options" : {
"min" : 0 ,
"max" : null
}
} ,
{
"id" : "3pgjcfai" ,
"name" : "incomeTaxRecipient" ,
2023-07-11 11:38:58 +00:00
"type" : "relation" ,
"system" : false ,
"required" : true ,
"options" : {
"collectionId" : "s854d2w72fvyl54" ,
"cascadeDelete" : false ,
"minSelect" : null ,
"maxSelect" : 1 ,
"displayFields" : [ ]
}
} ,
{
2023-07-12 13:30:25 +00:00
"id" : "dawtvakx" ,
"name" : "maxWageFactor" ,
"type" : "number" ,
2023-07-11 11:38:58 +00:00
"system" : false ,
"required" : true ,
"options" : {
2023-07-12 13:30:25 +00:00
"min" : 0 ,
"max" : null
2023-07-11 11:38:58 +00:00
}
} ,
{
2023-07-12 13:30:25 +00:00
"id" : "ftzmu1na" ,
"name" : "radioUrl" ,
"type" : "url" ,
2023-07-11 11:38:58 +00:00
"system" : false ,
2023-07-12 13:30:25 +00:00
"required" : true ,
2023-07-11 11:38:58 +00:00
"options" : {
2023-07-12 13:30:25 +00:00
"exceptDomains" : [ ] ,
"onlyDomains" : [ ]
2023-07-11 11:38:58 +00:00
}
}
] ,
"indexes" : [ ] ,
"listRule" : "" ,
"viewRule" : "" ,
2023-07-12 13:30:25 +00:00
"createRule" : null ,
2023-07-11 11:38:58 +00:00
"updateRule" : null ,
"deleteRule" : null ,
"options" : { }
2023-07-12 13:36:33 +00:00
} ,
{
"id" : "s854d2w72fvyl54" ,
"name" : "companies" ,
"type" : "auth" ,
"system" : false ,
"schema" : [
{
"id" : "h5ogbj93" ,
"name" : "accountNumber" ,
"type" : "text" ,
"system" : false ,
"required" : false ,
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
"id" : "cvcgnf4x" ,
"name" : "name" ,
"type" : "text" ,
"system" : false ,
"required" : true ,
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
"id" : "ujqd3vik" ,
"name" : "earlyShiftPayed" ,
"type" : "date" ,
"system" : false ,
"required" : false ,
"options" : {
"min" : "" ,
"max" : ""
}
} ,
{
"id" : "t1kakf3f" ,
"name" : "lateShiftPayed" ,
"type" : "date" ,
"system" : false ,
"required" : false ,
"options" : {
"min" : "" ,
"max" : ""
}
}
] ,
"indexes" : [
"CREATE INDEX `idx_eX1Vqqz` ON `companies` (`accountNumber`)"
] ,
"listRule" : "" ,
"viewRule" : null ,
"createRule" : null ,
"updateRule" : "(@request.data.username = null && @request.data.email = null && @request.data.accountNumber = null && @request.data.created = null && @request.data.updated = null && @request.data.name = null && @request.data.emailVisibility = null && @request.data.verified = null) && id = @request.auth.id" ,
"deleteRule" : null ,
"options" : {
"allowEmailAuth" : true ,
"allowOAuth2Auth" : true ,
"allowUsernameAuth" : true ,
"exceptEmailDomains" : null ,
"manageRule" : null ,
"minPasswordLength" : 8 ,
"onlyEmailDomains" : null ,
"requireEmail" : false
}
2023-06-01 16:34:41 +00:00
}
]