forked from tsai/budibase
2 changed files with 37 additions and 31 deletions
@ -1,7 +1,42 @@ |
|||||
|
const { BUILTIN_LEVEL_IDS } = require("../utilities/security/accessLevels") |
||||
|
|
||||
const AuthTypes = { |
const AuthTypes = { |
||||
APP: "app", |
APP: "app", |
||||
BUILDER: "builder", |
BUILDER: "builder", |
||||
EXTERNAL: "external", |
EXTERNAL: "external", |
||||
} |
} |
||||
|
|
||||
|
const USERS_TABLE_SCHEMA = { |
||||
|
_id: "ta_users", |
||||
|
type: "table", |
||||
|
views: {}, |
||||
|
name: "Users", |
||||
|
schema: { |
||||
|
username: { |
||||
|
type: "string", |
||||
|
constraints: { |
||||
|
type: "string", |
||||
|
length: { |
||||
|
maximum: "", |
||||
|
}, |
||||
|
presence: true, |
||||
|
}, |
||||
|
fieldName: "username", |
||||
|
name: "username", |
||||
|
}, |
||||
|
accessLevelId: { |
||||
|
fieldName: "accessLevelId", |
||||
|
name: "accessLevelId", |
||||
|
type: "options", |
||||
|
constraints: { |
||||
|
type: "string", |
||||
|
presence: false, |
||||
|
inclusion: Object.keys(BUILTIN_LEVEL_IDS), |
||||
|
}, |
||||
|
}, |
||||
|
}, |
||||
|
primaryDisplay: "username", |
||||
|
} |
||||
|
|
||||
exports.AuthTypes = AuthTypes |
exports.AuthTypes = AuthTypes |
||||
|
exports.USERS_TABLE_SCHEMA = USERS_TABLE_SCHEMA |
||||
|
|||||
Loading…
Reference in new issue