Skip to content

Commit

Permalink
implementing ving schema requirement changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rizen committed Apr 26, 2024
1 parent 2a9d06b commit ec6bbb4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion ving/schema/schemas/APIKey.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export const apikeySchema = {
type: "id",
name: 'userId',
required: true,
length: 36,
db: (prop) => dbRelation(prop),
relation: {
type: 'parent',
Expand Down
3 changes: 0 additions & 3 deletions ving/schema/schemas/S3File.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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'],
Expand All @@ -103,7 +101,6 @@ export const s3fileSchema = {
name: 'userId',
required: true,
filterQualifier: true,
length: 36,
db: (prop) => dbRelation(prop),
relation: {
type: 'parent',
Expand Down
4 changes: 0 additions & 4 deletions ving/schema/schemas/User.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export const userSchema = {
type: "enum",
name: "passwordType",
required: false,
length: 20,
default: 'bcrypt',
db: (prop) => dbEnum(prop),
enums: ['bcrypt'],
Expand All @@ -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'],
Expand Down Expand Up @@ -117,7 +115,6 @@ export const userSchema = {
type: "enum",
name: 'avatarType',
required: true,
length: 20,
default: 'robot',
db: (prop) => dbEnum(prop),
enums: ['robot', 'uploaded'],
Expand All @@ -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'],
Expand Down

0 comments on commit ec6bbb4

Please sign in to comment.