summaryrefslogtreecommitdiff
path: root/packages/backend/src/services/chart/charts/entities/active-users.ts
blob: 5767b76f8ec2cfc71ef8a09d8c72d75a4284cf0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import Chart from '../../core.js';

export const name = 'activeUsers';

export const schema = {
	'readWrite': { intersection: ['read', 'write'], range: 'small' },
	'read': { uniqueIncrement: true, range: 'small' },
	'write': { uniqueIncrement: true, range: 'small' },
	'registeredWithinWeek': { uniqueIncrement: true, range: 'small' },
	'registeredWithinMonth': { uniqueIncrement: true, range: 'small' },
	'registeredWithinYear': { uniqueIncrement: true, range: 'small' },
	'registeredOutsideWeek': { uniqueIncrement: true, range: 'small' },
	'registeredOutsideMonth': { uniqueIncrement: true, range: 'small' },
	'registeredOutsideYear': { uniqueIncrement: true, range: 'small' },
} as const;

export const entity = Chart.schemaToEntity(name, schema);