import { db } from "@tailor-platform/sdk";
import { defaultGqlPermission, defaultPermission } from "../../../shared/modelPermissions";

export const company = db
  .type("Company", {})
  .permission(defaultPermission)
  .gqlPermission(defaultGqlPermission);

export const site = db
  .type("Site", {})
  .permission(defaultPermission)
  .gqlPermission(defaultGqlPermission);

export const businessPartner = db
  .type("BusinessPartner", {})
  .permission(defaultPermission)
  .gqlPermission(defaultGqlPermission);

export const partnerRole = db
  .type("PartnerRole", {})
  .permission(defaultPermission)
  .gqlPermission(defaultGqlPermission);

export const partnerIdentification = db
  .type("PartnerIdentification", {})
  .permission(defaultPermission)
  .gqlPermission(defaultGqlPermission);

export const item = db
  .type("Item", {})
  .permission(defaultPermission)
  .gqlPermission(defaultGqlPermission);

export const currency = db
  .type("Currency", {})
  .permission(defaultPermission)
  .gqlPermission(defaultGqlPermission);

export const unit = db
  .type("Unit", {})
  .permission(defaultPermission)
  .gqlPermission(defaultGqlPermission);

export const user = db
  .type("User", {})
  .permission(defaultPermission)
  .gqlPermission(defaultGqlPermission);
