Forgot to save my work earlier...?

This commit is contained in:
Scott Idem
2025-01-15 22:05:41 -05:00
parent 6f11820857
commit 8b309d7b04
4 changed files with 100 additions and 127 deletions

View File

@@ -5,7 +5,7 @@ import type { key_val } from '../ae_stores';
// li = list
// kv = key value list
// Updated 202-01-15
// Updated 2025-01-15
export interface Sponsorship {
id: string;
// id_random: string;
@@ -74,49 +74,43 @@ export interface Sponsorship {
}
// // Updated 2024-11-13
// export interface Sponsorship_Comment {
// id: string;
// // id_random: string;
// sponsorship_comment_id: string;
// // sponsorship_comment_id_random: string;
// Updated 2025-01-15
export interface Sponsorship_Cfg {
id: string;
// id_random: string;
sponsorship_cfg_id: string;
// sponsorship_cfg_id_random: string;
// sponsorship_id: string;
// // sponsorship_id_random: string;
account_id: string;
// account_id_random: string;
// external_person_id?: null|string; // For IDAA this is the Novi UUID
for_type?: null|string;
for_id?: null|number;
// name: null|string;
// title: null|string;
// // summary?: null|string;
// content?: null|string;
level_li_json?: null|string;
option_li_json?: null|string;
schedule_li_json?: null|string;
// anonymous?: null|boolean;
// full_name?: null|string;
// email?: null|string;
// notify?: null|boolean;
cfg_json?: null|key_val;
// linked_li_json?: null|string;
// cfg_json?: null|key_val;
enable: null|boolean;
hide?: null|boolean;
priority?: null|boolean
sort?: null|number;
group?: null|string;
notes?: null|string;
created_on: Date;
updated_on?: null|Date;
// enable: null|boolean;
// hide?: null|boolean;
// priority?: null|boolean
// sort?: null|number;
// group?: null|string;
// notes?: null|string;
// created_on: Date;
// updated_on?: null|Date;
// // Additional fields for convenience (database views)
// }
// Additional fields for convenience (database views)
}
// Updated 2024-09-25
export class MySubClassedDexie extends Dexie {
// We just tell the typing system this is the case
sponsorship!: Table<Sponsorship>;
// comment!: Table<Sponsorship_Comment>;
cfg!: Table<Sponsorship_Cfg>;
constructor() {
super('ae_sponsorships_db');
@@ -129,7 +123,12 @@ export class MySubClassedDexie extends Dexie {
level_num, level_str, amount,
agree,
enable, hide, priority, sort, group, notes, created_on, updated_on, [updated_on+created_on], [created_on+updated_on]`,
});
cfg: `
id, sponsorship_cfg_id,
account_id,
for_type, for_id`,
});
}
}