This is a mostly working state again. Some files were backed up to ~/tmp/Aether_UI_UX_app. Things are slowly being merged back in. Not easy.
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
import Dexie, { type Table } from 'dexie';
|
||||
import type {
|
||||
ae_HostedFile,
|
||||
ae_Person,
|
||||
ae_User,
|
||||
ae_Account,
|
||||
ae_Site,
|
||||
ae_SiteDomain,
|
||||
ae_Address,
|
||||
ae_Contact
|
||||
import type {
|
||||
ae_HostedFile,
|
||||
ae_Person,
|
||||
ae_User,
|
||||
ae_Account,
|
||||
ae_Site,
|
||||
ae_SiteDomain,
|
||||
ae_Address,
|
||||
ae_Contact,
|
||||
ae_DataStore
|
||||
} from '$lib/types/ae_types';
|
||||
|
||||
// li = list
|
||||
@@ -32,7 +33,7 @@ export interface Person extends ae_Person {
|
||||
external_sys_id?: string;
|
||||
person_profile_id?: string;
|
||||
person_profile_id_random?: string;
|
||||
|
||||
|
||||
username?: string;
|
||||
user_name?: string;
|
||||
user_email?: string;
|
||||
@@ -53,24 +54,21 @@ export interface Person extends ae_Person {
|
||||
address_id_random?: string;
|
||||
}
|
||||
|
||||
export interface User extends ae_User {
|
||||
// Additional local fields if needed
|
||||
}
|
||||
|
||||
// Updated 2026-01-09
|
||||
// Updated 2026-01-28 - Unified Types and added Data Store
|
||||
export class MySubClassedDexie extends Dexie {
|
||||
file!: Table<ae_LocalFile>;
|
||||
person!: Table<Person>;
|
||||
user!: Table<User>;
|
||||
user!: Table<ae_User>;
|
||||
account!: Table<ae_Account>;
|
||||
site!: Table<ae_Site>;
|
||||
site_domain!: Table<ae_SiteDomain>;
|
||||
address!: Table<ae_Address>;
|
||||
contact!: Table<ae_Contact>;
|
||||
data_store!: Table<ae_DataStore>;
|
||||
|
||||
constructor() {
|
||||
super('ae_core_db');
|
||||
this.version(2).stores({
|
||||
this.version(3).stores({
|
||||
file: `
|
||||
id, hosted_file_id, hosted_file_id_random,
|
||||
hash_sha256,
|
||||
@@ -123,6 +121,16 @@ export class MySubClassedDexie extends Dexie {
|
||||
account_id, account_id_random,
|
||||
for_type, for_id_random,
|
||||
title, email, phone_mobile,
|
||||
enable, hide, priority, sort, group, created_on, updated_on`,
|
||||
|
||||
data_store: `
|
||||
id, data_store_id, data_store_id_random,
|
||||
account_id, account_id_random,
|
||||
for_type, for_id_random,
|
||||
code, name, type,
|
||||
[code+for_type+for_id_random],
|
||||
[code+account_id_random+for_type],
|
||||
[code+account_id_random],
|
||||
enable, hide, priority, sort, group, created_on, updated_on`
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user