mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
27 lines
730 B
TypeScript
27 lines
730 B
TypeScript
import { environment } from 'src/environments/environment';
|
|
import { models } from 'src/plugin/src';
|
|
const { ArrayField, JsonField} = models.indexedDB.fields;
|
|
|
|
export class CalendarEventModel extends models.Model {
|
|
startTime = models.CharField()
|
|
endTime = models.CharField()
|
|
allDay = models.BooleanField()
|
|
event = JsonField({blank:true})
|
|
calendarName = models.CharField()
|
|
profile = models.CharField()
|
|
id = models.CharField()
|
|
CalendarId = models.CharField()
|
|
}
|
|
|
|
export class EventForToday extends models.Model {
|
|
|
|
}
|
|
|
|
|
|
models.register({
|
|
databaseName: 'agenda'+environment.version.lastCommitNumber + environment.id,
|
|
type: 'indexedDB',
|
|
version: 14,
|
|
models: [CalendarEventModel, EventForToday]
|
|
})
|