Sets up calendar package with core infrastructure
Adds core calendar package components including: - Base services for events, resources, and settings - Calendar app and orchestrator - Build and bundling configuration - IndexedDB storage setup Prepares foundational architecture for calendar functionality
This commit is contained in:
parent
12e7594f30
commit
ceb44446f0
97 changed files with 13858 additions and 1 deletions
17
packages/calendar/src/extensions/customers/CustomerStore.ts
Normal file
17
packages/calendar/src/extensions/customers/CustomerStore.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { IStore } from '../../storage/IStore';
|
||||
|
||||
/**
|
||||
* CustomerStore - IndexedDB ObjectStore definition for customers
|
||||
*/
|
||||
export class CustomerStore implements IStore {
|
||||
static readonly STORE_NAME = 'customers';
|
||||
readonly storeName = CustomerStore.STORE_NAME;
|
||||
|
||||
create(db: IDBDatabase): void {
|
||||
const store = db.createObjectStore(CustomerStore.STORE_NAME, { keyPath: 'id' });
|
||||
|
||||
store.createIndex('name', 'name', { unique: false });
|
||||
store.createIndex('phone', 'phone', { unique: false });
|
||||
store.createIndex('syncStatus', 'syncStatus', { unique: false });
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue