{
  "type": "sqlite3",
  "connection": {
    "filename": "/data/authdb.sqlite3"
  },
  "direct": true,
  "schema": {
    "tables": {
      "users": {
        "columns": {
          "id": {
            "db": {
              "type": "increments",
              "primary": true,
              "unique": false,
              "nullable": false
            }
          },
          "email": {
            "db": {
              "type": "string",
              "maxLength": 255,
              "primary": false,
              "unique": false,
              "nullable": true
            }
          },
          "pwd": {
            "db": {
              "type": "string",
              "maxLength": 255,
              "primary": false,
              "unique": false,
              "nullable": true
            }
          },
          "regdate": {
            "db": {
              "type": "datetime",
              "default": "knex.fn.now()",
              "primary": false,
              "unique": false,
              "nullable": true
            }
          },
          "regcode": {
            "db": {
              "type": "string",
              "maxLength": 255,
              "primary": false,
              "unique": false,
              "nullable": true
            }
          },
          "validated": {
            "db": {
              "type": "boolean",
              "primary": false,
              "unique": false,
              "nullable": true
            }
          },
          "firstname": {
            "db": {
              "type": "string",
              "maxLength": 255,
              "primary": false,
              "unique": false,
              "nullable": true
            }
          },
          "lastname": {
            "db": {
              "type": "string",
              "maxLength": 255,
              "primary": false,
              "unique": false,
              "nullable": true
            }
          }
        },
        "db": {}
      },
      "roles": {
        "columns": {
          "id": {
            "db": {
              "type": "increments",
              "primary": true,
              "unique": false,
              "nullable": false
            }
          },
          "name": {
            "db": {
              "type": "string",
              "maxLength": 255,
              "primary": false,
              "unique": false,
              "nullable": true
            }
          },
          "isDepartment": {
            "db": {
              "type": "boolean",
              "primary": false,
              "unique": false,
              "nullable": true
            }
          }
        },
        "db": {}
      },
      "xuserrole": {
        "columns": {
          "id": {
            "db": {
              "type": "increments",
              "primary": true,
              "unique": false,
              "nullable": false
            }
          },
          "userid": {
            "db": {
              "type": "integer",
              "primary": false,
              "unique": false,
              "nullable": true
            }
          },
          "roleid": {
            "db": {
              "type": "integer",
              "primary": false,
              "unique": false,
              "nullable": true
            }
          }
        },
        "db": {}
      }
    },
    "views": {}
  }
}
