/**
 * ⚠️ WARNING: THIS FILE IS AUTO-GENERATED ⚠️
 * 
 * This file is generated by the type generation system.
 * Any manual changes will be overwritten on next server start and should always be committed.
 * 
 */

import { Type } from "@sinclair/typebox"

export const UserCreateSchema = {
  $id: "#user/create",
  title: "core/user-create",
  type: "object",
  required: [
    "email",
    "firstname",
    "lastname",
    "email_verified",
    "tags",
    "password",
    "account",
  ],
  properties: {
    _id: {
      type: "string",
    },
    email: {
      format: "email",
      type: "string",
    },
    title: {
      type: "string",
    },
    firstname: {
      type: "string",
    },
    lastname: {
      type: "string",
    },
    email_verified: {
      default: false,
      type: "boolean",
    },
    active: {
      default: true,
      type: "boolean",
    },
    blocked: {
      default: false,
      type: "boolean",
    },
    tags: {
      default: [],
      type: "array",
      items: {
        type: "string",
      },
    },
    settings: {},
    ux: {},
    password: {
      type: "string",
    },
    account: {
      type: "string",
    },
  },
}



export default UserCreateSchema
