From ec6bbb4b9ea8056c6071a020dc7194508a3a8a21 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Fri, 26 Apr 2024 12:37:56 -0500 Subject: [PATCH] implementing ving schema requirement changes --- ving/schema/schemas/APIKey.mjs | 1 - ving/schema/schemas/S3File.mjs | 3 --- ving/schema/schemas/User.mjs | 4 ---- 3 files changed, 8 deletions(-) diff --git a/ving/schema/schemas/APIKey.mjs b/ving/schema/schemas/APIKey.mjs index cf1af160..b11fbe21 100644 --- a/ving/schema/schemas/APIKey.mjs +++ b/ving/schema/schemas/APIKey.mjs @@ -55,7 +55,6 @@ export const apikeySchema = { type: "id", name: 'userId', required: true, - length: 36, db: (prop) => dbRelation(prop), relation: { type: 'parent', diff --git a/ving/schema/schemas/S3File.mjs b/ving/schema/schemas/S3File.mjs index c6be67ed..04d5a0d7 100644 --- a/ving/schema/schemas/S3File.mjs +++ b/ving/schema/schemas/S3File.mjs @@ -78,7 +78,6 @@ export const s3fileSchema = { type: "enum", name: 'status', required: true, - length: 20, default: 'pending', db: (prop) => dbEnum(prop), enums: ['pending', 'ready', 'postProcessingFailed', 'verifyFailed'], @@ -90,7 +89,6 @@ export const s3fileSchema = { type: "enum", name: 'icon', required: true, - length: 20, default: 'pending', db: (prop) => dbEnum(prop), enums: ['pending', 'thumbnail', 'extension', 'self'], @@ -103,7 +101,6 @@ export const s3fileSchema = { name: 'userId', required: true, filterQualifier: true, - length: 36, db: (prop) => dbRelation(prop), relation: { type: 'parent', diff --git a/ving/schema/schemas/User.mjs b/ving/schema/schemas/User.mjs index b975042c..5c3bd329 100644 --- a/ving/schema/schemas/User.mjs +++ b/ving/schema/schemas/User.mjs @@ -58,7 +58,6 @@ export const userSchema = { type: "enum", name: "passwordType", required: false, - length: 20, default: 'bcrypt', db: (prop) => dbEnum(prop), enums: ['bcrypt'], @@ -70,7 +69,6 @@ export const userSchema = { type: "enum", name: 'useAsDisplayName', required: true, - length: 20, default: 'username', db: (prop) => dbEnum(prop), enums: ['username', 'email', 'realName'], @@ -117,7 +115,6 @@ export const userSchema = { type: "enum", name: 'avatarType', required: true, - length: 20, default: 'robot', db: (prop) => dbEnum(prop), enums: ['robot', 'uploaded'], @@ -140,7 +137,6 @@ export const userSchema = { type: "id", name: 'avatarId', required: false, - length: 36, db: (prop) => dbRelation(prop), relation: { acceptedFileExtensions: ['png', 'jpeg', 'jpg', 'gif'],