import type {
  InferSchema,
  Insertable,
  Selectable,
  Updateable,
} from "@tailor-platform/erp-kit/core";
import type { DB } from "../generated/kysely-tailordb";

export type Schema = InferSchema<DB>;

export type AccountingEvent<T extends { AccountingEvent: object }> = Selectable<
  T["AccountingEvent"]
>;
export type AccountingEventCreate<T extends { AccountingEvent: object }> = Insertable<
  T["AccountingEvent"]
>;
export type AccountingEventUpdate<T extends { AccountingEvent: object }> = Updateable<
  T["AccountingEvent"]
>;
