// Copyright Abridged, Inc. 2021,2024. All Rights Reserved. // Node module: @collabland/sdk // This file is licensed under the MIT License. // License text available at https://opensource.org/license/mit/ import {model, property} from '@loopback/repository'; import {DiscordChannel} from './discord-channel.model.js'; import {DiscordRole} from './discord-role.model.js'; /** * The model class is generated from OpenAPI schema - DiscordGuild * DiscordGuild */ @model({name: 'DiscordGuild'}) export class DiscordGuild { constructor(data?: Partial) { if (data != null && typeof data === 'object') { Object.assign(this, data); } } /** * */ @property({ jsonSchema: { type: 'string', }, }) id?: string; /** * */ @property({ jsonSchema: { type: 'number', }, }) memberCount?: number; /** * */ @property.array(DiscordChannel, { jsonSchema: { type: 'array', items: { $ref: '#/components/schemas/DiscordChannel', }, }, }) channels?: DiscordChannel[]; /** * */ @property.array(DiscordRole, { jsonSchema: { type: 'array', items: { $ref: '#/components/schemas/DiscordRole', }, }, }) roles?: DiscordRole[]; } export interface DiscordGuildRelations { // describe navigational properties here } export type DiscordGuildWithRelations = DiscordGuild & DiscordGuildRelations;