{"code":"var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,\"name\",{value,configurable:true});import{sql}from\"@payloadcms/db-sqlite\";async function up({db,payload,req}){await db.run(sql`CREATE TABLE \\`phone_calculator_licence_tiers\\` (\n  \t\\`_order\\` integer NOT NULL,\n  \t\\`_parent_id\\` integer NOT NULL,\n  \t\\`id\\` text PRIMARY KEY NOT NULL,\n  \t\\`simultaneous_calls\\` numeric NOT NULL,\n  \t\\`price_per_year\\` numeric NOT NULL,\n  \tFOREIGN KEY (\\`_parent_id\\`) REFERENCES \\`phone_calculator\\`(\\`id\\`) ON UPDATE no action ON DELETE cascade\n  );\n  `);await db.run(sql`CREATE INDEX \\`phone_calculator_licence_tiers_order_idx\\` ON \\`phone_calculator_licence_tiers\\` (\\`_order\\`);`);await db.run(sql`CREATE INDEX \\`phone_calculator_licence_tiers_parent_id_idx\\` ON \\`phone_calculator_licence_tiers\\` (\\`_parent_id\\`);`);await db.run(sql`CREATE TABLE \\`phone_calculator\\` (\n  \t\\`id\\` integer PRIMARY KEY NOT NULL,\n  \t\\`enabled\\` integer DEFAULT false,\n  \t\\`eyebrow\\` text DEFAULT 'Telefonie-Vergleich',\n  \t\\`heading\\` text DEFAULT 'Ab wann lohnt sich 3CX?',\n  \t\\`lead\\` text DEFAULT 'Anbieter rechnen pro Benutzer ab, 3CX nach gleichzeitigen Gesprächen. Schieb die Anzahl Mitarbeitender und sieh, wo sich die beiden Kurven kreuzen.',\n  \t\\`disclaimer\\` text DEFAULT 'Richtwerte auf Basis von Listenpreisen. Der tatsächliche Preis hängt von Vertragslaufzeit, Anzahl Rufnummern und Gesprächsvolumen ab — die verbindliche Zahl bekommst du von uns nach einem kurzen Gespräch.',\n  \t\\`employees_per_call\\` numeric DEFAULT 5,\n  \t\\`min_simultaneous_calls\\` numeric DEFAULT 4,\n  \t\\`price_per_number\\` numeric,\n  \t\\`price_per_trunk\\` numeric,\n  \t\\`base_trunks\\` numeric DEFAULT 2,\n  \t\\`employees_per_additional_trunk\\` numeric DEFAULT 25,\n  \t\\`management_per_month\\` numeric,\n  \t\\`setup_once\\` numeric,\n  \t\\`competitor_name\\` text DEFAULT 'Anbieter mit Preis pro Benutzer',\n  \t\\`competitor_price_per_user\\` numeric,\n  \t\\`competitor_base_fee\\` numeric,\n  \t\\`competitor_note\\` text DEFAULT 'Bei Abrechnung pro Benutzer zahlst du für jede Person gleich viel — auch für die, die zweimal im Monat telefoniert.',\n  \t\\`updated_at\\` text,\n  \t\\`created_at\\` text\n  );\n  `)}__name(up,\"up\");async function down({db,payload,req}){await db.run(sql`DROP TABLE \\`phone_calculator_licence_tiers\\`;`);await db.run(sql`DROP TABLE \\`phone_calculator\\`;`)}__name(down,\"down\");export{down,up};\n","warnings":[],"map":{"version":3,"mappings":"kHAAA,OAAyC,QAAW,wBAEpD,eAAsB,GAAG,CAAE,GAAI,QAAS,GAAI,EAAiC,CAC3E,MAAM,GAAG,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQZ,EACD,MAAM,GAAG,IAAI,kHAAkH,EAC/H,MAAM,GAAG,IAAI,0HAA0H,EACvI,MAAM,GAAG,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAsBZ,CACH,CAnCsB,gBAqCtB,eAAsB,KAAK,CAAE,GAAI,QAAS,GAAI,EAAmC,CAC/E,MAAM,GAAG,IAAI,mDAAmD,EAChE,MAAM,GAAG,IAAI,qCAAqC,CACpD,CAHsB","names":[],"ignoreList":[],"sources":["/home/bitneo/htdocs/bitneo.ch/src/migrations/20260814_055239_phone_calculator.ts"],"sourcesContent":[null]}}