mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
add model
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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]
|
||||
})
|
||||
Reference in New Issue
Block a user