/**
 * ⚠️ 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 AccountSchema = {
  $id: "#account/base",
  title: "core/account",
  type: "object",
  required: [
    "_id",
    "name",
    "active",
    "blocked",
    "tags",
    "isDeleted",
    "createdAt",
    "updatedAt",
  ],
  properties: {
    _id: {
      type: "string",
    },
    name: {
      maxLength: 200,
      type: "string",
    },
    active: {
      default: true,
      type: "boolean",
    },
    blocked: {
      default: false,
      type: "boolean",
    },
    expires: {
      anyOf: [
        {
          format: "date-time",
          type: "string",
        },
        {
          type: "null",
        },
      ],
    },
    owner: {
      default: null,
      type: "string",
    },
    tags: {
      default: [],
      type: "array",
      items: {
        type: "string",
      },
    },
    isDeleted: {
      default: false,
      type: "boolean",
    },
    createdAt: {
      format: "date-time",
      type: "string",
    },
    updatedAt: {
      format: "date-time",
      type: "string",
    },
  },
}



export default AccountSchema
