2023-06-01 16:34:41 +00:00
[
2023-07-17 17:40:07 +00:00
{
"id" : "s854d2w72fvyl54" ,
"name" : "companies" ,
"type" : "auth" ,
"system" : false ,
"schema" : [
{
"id" : "h5ogbj93" ,
"name" : "accountNumber" ,
2023-06-30 14:18:07 +00:00
"type" : "text" ,
"system" : false ,
2023-07-17 17:40:07 +00:00
"required" : false ,
2023-06-30 14:18:07 +00:00
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
2023-07-17 17:40:07 +00:00
"id" : "cvcgnf4x" ,
"name" : "name" ,
2023-07-03 09:38:34 +00:00
"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-17 17:40:07 +00:00
"id" : "ujqd3vik" ,
"name" : "earlyShiftPayed" ,
2023-07-03 09:38:34 +00:00
"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
}
} ,
{
2023-07-17 17:40:07 +00:00
"id" : "t1kakf3f" ,
"name" : "lateShiftPayed" ,
"type" : "date" ,
2023-06-30 14:18:07 +00:00
"system" : false ,
2023-07-06 22:10:50 +00:00
"required" : false ,
2023-06-30 14:18:07 +00:00
"options" : {
2023-07-17 17:40:07 +00:00
"min" : "" ,
"max" : ""
2023-06-30 14:18:07 +00:00
}
}
] ,
"indexes" : [
2023-07-17 17:40:07 +00:00
"CREATE INDEX `idx_eX1Vqqz` ON `companies` (`accountNumber`)"
2023-06-30 14:18:07 +00:00
] ,
"listRule" : "" ,
"viewRule" : null ,
"createRule" : null ,
2023-07-17 17:40:07 +00:00
"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" ,
2023-06-30 14:18:07 +00:00
"deleteRule" : null ,
2023-07-17 17:40:07 +00:00
"options" : {
"allowEmailAuth" : true ,
"allowOAuth2Auth" : true ,
"allowUsernameAuth" : true ,
"exceptEmailDomains" : null ,
"manageRule" : null ,
"minPasswordLength" : 8 ,
"onlyEmailDomains" : null ,
"requireEmail" : false
}
2023-07-09 20:45:42 +00:00
} ,
2023-07-12 13:30:25 +00:00
{
2023-07-17 17:40:07 +00:00
"id" : "c3zz98wpbn7m6zw" ,
"name" : "accountsList" ,
"type" : "view" ,
2023-07-12 13:30:25 +00:00
"system" : false ,
"schema" : [
{
2023-07-17 17:40:07 +00:00
"id" : "ne8rkvlr" ,
"name" : "accountNumber" ,
"type" : "text" ,
2023-07-12 13:30:25 +00:00
"system" : false ,
2023-07-17 17:40:07 +00:00
"required" : false ,
2023-07-12 13:30:25 +00:00
"options" : {
2023-07-17 17:40:07 +00:00
"min" : null ,
"max" : null ,
"pattern" : ""
2023-07-12 13:30:25 +00:00
}
} ,
{
2023-07-17 17:40:07 +00:00
"id" : "paqieqwu" ,
"name" : "name" ,
"type" : "json" ,
"system" : false ,
"required" : false ,
"options" : { }
} ,
{
"id" : "7sij0xcm" ,
"name" : "grade" ,
2023-07-12 13:30:25 +00:00
"type" : "text" ,
"system" : false ,
"required" : true ,
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
2023-07-17 17:40:07 +00:00
"id" : "txpycyit" ,
"name" : "lastCheckIn" ,
"type" : "date" ,
2023-07-12 13:30:25 +00:00
"system" : false ,
"required" : false ,
"options" : {
2023-07-17 17:40:07 +00:00
"min" : "" ,
"max" : ""
2023-07-12 13:30:25 +00:00
}
2023-07-17 17:40:07 +00:00
} ,
{
"id" : "og7zs0ox" ,
"name" : "balance" ,
"type" : "json" ,
"system" : false ,
"required" : false ,
"options" : { }
2023-07-12 13:30:25 +00:00
}
] ,
"indexes" : [ ] ,
2023-07-17 17:40:07 +00:00
"listRule" : null ,
"viewRule" : null ,
"createRule" : null ,
2023-07-12 13:30:25 +00:00
"updateRule" : null ,
"deleteRule" : null ,
2023-07-17 17:40:07 +00:00
"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
} ,
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" ,
2023-07-17 17:40:07 +00:00
"name" : "maxWage" ,
2023-07-12 13:30:25 +00:00
"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
} ,
{
2023-07-17 17:40:07 +00:00
"id" : "74ftooxenpeq14b" ,
"name" : "accounts" ,
"type" : "base" ,
2023-07-12 13:36:33 +00:00
"system" : false ,
"schema" : [
{
2023-07-17 17:40:07 +00:00
"id" : "as1gvc1r" ,
2023-07-12 13:36:33 +00:00
"name" : "accountNumber" ,
"type" : "text" ,
"system" : false ,
"required" : false ,
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
2023-07-17 17:40:07 +00:00
"id" : "vxeq20lk" ,
"name" : "firstName" ,
2023-07-12 13:36:33 +00:00
"type" : "text" ,
"system" : false ,
"required" : true ,
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
2023-07-17 17:40:07 +00:00
"id" : "bsinpdk7" ,
"name" : "lastName" ,
"type" : "text" ,
2023-07-12 13:36:33 +00:00
"system" : false ,
2023-07-17 17:40:07 +00:00
"required" : true ,
2023-07-12 13:36:33 +00:00
"options" : {
2023-07-17 17:40:07 +00:00
"min" : null ,
"max" : null ,
"pattern" : ""
2023-07-12 13:36:33 +00:00
}
} ,
{
2023-07-17 17:40:07 +00:00
"id" : "4lw6gmtc" ,
"name" : "grade" ,
"type" : "text" ,
2023-07-12 13:36:33 +00:00
"system" : false ,
2023-07-17 17:40:07 +00:00
"required" : true ,
2023-07-12 13:36:33 +00:00
"options" : {
2023-07-17 17:40:07 +00:00
"min" : null ,
"max" : null ,
"pattern" : ""
2023-07-12 13:36:33 +00:00
}
2023-07-17 17:40:07 +00:00
} ,
2023-07-16 11:32:14 +00:00
{
2023-07-17 17:40:07 +00:00
"id" : "syfivtki" ,
"name" : "lastCheckIn" ,
"type" : "date" ,
2023-07-16 11:32:14 +00:00
"system" : false ,
"required" : false ,
"options" : {
2023-07-17 17:40:07 +00:00
"min" : "" ,
"max" : ""
2023-07-16 11:32:14 +00:00
}
} ,
{
2023-07-17 17:40:07 +00:00
"id" : "gwrzizpu" ,
"name" : "company" ,
"type" : "relation" ,
2023-07-16 11:32:14 +00:00
"system" : false ,
"required" : false ,
2023-07-17 17:40:07 +00:00
"options" : {
"collectionId" : "s854d2w72fvyl54" ,
"cascadeDelete" : false ,
"minSelect" : null ,
"maxSelect" : 1 ,
"displayFields" : [ ]
}
2023-07-16 11:32:14 +00:00
} ,
{
2023-07-17 17:40:07 +00:00
"id" : "rtvjzpxw" ,
"name" : "shift" ,
2023-07-16 11:32:14 +00:00
"type" : "text" ,
"system" : false ,
"required" : true ,
"options" : {
"min" : null ,
"max" : null ,
"pattern" : ""
}
} ,
{
2023-07-17 17:40:07 +00:00
"id" : "ggx1gyeq" ,
"name" : "wage" ,
"type" : "number" ,
2023-07-16 11:32:14 +00:00
"system" : false ,
"required" : false ,
"options" : {
2023-07-17 17:40:07 +00:00
"min" : null ,
"max" : null
2023-07-16 11:32:14 +00:00
}
}
] ,
2023-07-17 17:40:07 +00:00
"indexes" : [
"CREATE INDEX `idx_mPdvrAQ` ON `accounts` (`accountNumber`)"
] ,
"listRule" : "" ,
2023-07-16 11:32:14 +00:00
"viewRule" : null ,
"createRule" : null ,
2023-07-17 17:40:07 +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.wage = 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-07-16 11:32:14 +00:00
"deleteRule" : null ,
2023-07-17 17:40:07 +00:00
"options" : { }
2023-07-17 18:21:59 +00:00
} ,
{
"id" : "w1au07idupp27qv" ,
"name" : "bankers" ,
"type" : "auth" ,
"system" : false ,
"schema" : [ ] ,
"indexes" : [ ] ,
"listRule" : null ,
"viewRule" : null ,
"createRule" : null ,
"updateRule" : null ,
"deleteRule" : null ,
"options" : {
"allowEmailAuth" : true ,
"allowOAuth2Auth" : true ,
"allowUsernameAuth" : true ,
"exceptEmailDomains" : null ,
"manageRule" : null ,
"minPasswordLength" : 8 ,
"onlyEmailDomains" : null ,
"requireEmail" : false
}
} ,
{
"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" : "@request.auth.id != \"\" && @collection.bankers.id ?= @request.auth.id" ,
"viewRule" : "@request.auth.id != \"\" && @collection.bankers.id ?= @request.auth.id" ,
"createRule" : "@request.auth.id != \"\" && @collection.bankers.id ?= @request.auth.id" ,
"updateRule" : null ,
"deleteRule" : null ,
"options" : { }
} ,
{
"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" : "@request.auth.id != \"\" && @collection.bankers.id ?= @request.auth.id" ,
"viewRule" : "@request.auth.id != \"\" && @collection.bankers.id ?= @request.auth.id" ,
"createRule" : "@request.auth.id != \"\" && @collection.bankers.id ?= @request.auth.id" ,
"updateRule" : null ,
"deleteRule" : null ,
"options" : { }
2023-06-01 16:34:41 +00:00
}
]