More serious work on badge printing. Working on the templates and actually implementing the printable badge.
This commit is contained in:
@@ -108,6 +108,9 @@ export interface Badge {
|
||||
event_id: string;
|
||||
event_id_random: string;
|
||||
|
||||
event_badge_template_id?: null|string;
|
||||
event_badge_template_id_random?: null|string;
|
||||
|
||||
pronouns?: null|string;
|
||||
informal_name?: null|string;
|
||||
title_names?: null|string;
|
||||
@@ -187,6 +190,17 @@ export interface Badge {
|
||||
}
|
||||
|
||||
|
||||
// Updated 2025-10-06
|
||||
export interface Badge_template {
|
||||
id: number;
|
||||
// id_random: string;
|
||||
|
||||
event_id: string;
|
||||
event_id_random: string;
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Updated 2024-10-16
|
||||
export interface Device {
|
||||
id: number;
|
||||
@@ -730,6 +744,7 @@ export class MySubClassedDexie extends Dexie {
|
||||
// We just tell the typing system this is the case
|
||||
event!: Table<Event>;
|
||||
badge!: Table<Badge>;
|
||||
badge_template!: Table<Badge_template>;
|
||||
device!: Table<Device>;
|
||||
exhibit!: Table<Exhibit>;
|
||||
exhibit_tracking!: Table<Exhibit_tracking>;
|
||||
@@ -767,6 +782,9 @@ export class MySubClassedDexie extends Dexie {
|
||||
tmp_sort_1, tmp_sort_2,
|
||||
enable, hide, priority, sort, group, notes, created_on, updated_on`,
|
||||
|
||||
badge_template: `
|
||||
id, event_id, event_id_random`,
|
||||
|
||||
device: `
|
||||
id, id_random, event_device_id_random, event_device_id,
|
||||
event_id, event_id_random, event_location_id, event_location_id_random,
|
||||
|
||||
Reference in New Issue
Block a user