import typeMetadataStorage from '../storage/type-metadata.storage';

export type SchemaOptions = {
  collectionId: string;
  collectionName: string;
  permissions?: string[];
  documentSecurity?: boolean;
  enabled?: boolean;
};

export const Schema = (options: SchemaOptions): ClassDecorator => {
  return (target: Function) => {
    typeMetadataStorage.addSchemaMetadata(target, options);
  };
};
