refactor: Move api token related files to ee
This commit is contained in:
17
packages/backend/src/models/api-token.ee.js
Normal file
17
packages/backend/src/models/api-token.ee.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import Base from './base.js';
|
||||
|
||||
class ApiToken extends Base {
|
||||
static tableName = 'api_tokens';
|
||||
|
||||
static jsonSchema = {
|
||||
type: 'object',
|
||||
required: ['token'],
|
||||
|
||||
properties: {
|
||||
id: { type: 'string', format: 'uuid' },
|
||||
token: { type: 'string', minLength: 32 },
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export default ApiToken;
|
||||
Reference in New Issue
Block a user