mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 09:23:51 +00:00
refactor: restructure model to contain an object of rundowns
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
import { DatabaseModel } from 'ontime-types';
|
||||
import { DatabaseModel, Rundown } from 'ontime-types';
|
||||
import { ONTIME_VERSION } from '../ONTIME_VERSION.js';
|
||||
|
||||
export const defaultRundown: Rundown = {
|
||||
id: 'default',
|
||||
title: 'Default',
|
||||
order: [],
|
||||
entries: {},
|
||||
revision: 0,
|
||||
};
|
||||
|
||||
export const dbModel: DatabaseModel = {
|
||||
rundown: [],
|
||||
rundowns: {
|
||||
default: { ...defaultRundown },
|
||||
},
|
||||
project: {
|
||||
title: '',
|
||||
description: '',
|
||||
|
||||
Reference in New Issue
Block a user