Spaces:
Running
Running
File size: 507 Bytes
b39afbe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
/**
* Copyright (c) 2023 MERCENARIES.AI PTE. LTD.
* All rights reserved.
*/
import { DBObject, type IDBObjectLink } from './DBObject';
class Organisation extends DBObject {
static readonly modelName = 'Organisation';
name: string;
members: IDBObjectLink[];
groups: IDBObjectLink[];
constructor(id: string, name: string) {
super(id);
this._id = `${Organisation.modelName}:${this.id}`;
this.name = name;
this.members = [];
this.groups = [];
}
}
export { Organisation };
|