/**
 * ⚠️ 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 ProjectSchema = {
  $id: "#project/base",
  title: "core/project",
  type: "object",
  required: [
    "_id",
    "isDeleted",
    "createdAt",
    "updatedAt",
  ],
  properties: {
    _id: {
      type: "string",
    },
    title: {
      maxLength: 200,
      type: "string",
    },
    account: {
      default: null,
      type: "string",
    },
    tags: {
      default: [],
      type: "array",
      items: {
        type: "string",
      },
    },
    description: {
      type: "string",
    },
    isDefault: {
      default: false,
      type: "boolean",
    },
    config: {
      $id: "#project/config",
      title: "core/project-config",
      type: "object",
      required: [
        "tags",
        "railPageNavigation",
      ],
      properties: {
        tags: {
          default: [],
          type: "array",
          items: {
            type: "string",
          },
        },
        railPageNavigation: {
          default: false,
          type: "boolean",
        },
      },
    },
    isDeleted: {
      default: false,
      type: "boolean",
    },
    createdAt: {
      format: "date-time",
      type: "string",
    },
    updatedAt: {
      format: "date-time",
      type: "string",
    },
  },
}



export default ProjectSchema
