// Sequelize → D1 shim
// Replaces the `sequelize` package at build time
// Only implements the subset Payment Kit actually uses

export { Model, setDB, getDB, modelRegistry } from './model';
export { Op } from './operators';
export { DataTypes } from './datatypes';
export { Sequelize } from './sequelize-class';

// QueryTypes enum
export const QueryTypes = {
  SELECT: 'SELECT',
  INSERT: 'INSERT',
  UPDATE: 'UPDATE',
  DELETE: 'DELETE',
  RAW: 'RAW',
};

// Re-export types that source code imports
export type {
  WhereOptions,
  FindOptions,
  CreateOptions,
  UpdateOptions,
  DestroyOptions,
  InferAttributes,
  InferCreationAttributes,
  CreationOptional,
  OrderItem,
  ModelStatic,
} from './types';

// Named exports used in source: `import { literal, fn, col } from 'sequelize'`
export { literal, fn, col } from './helpers';
