// 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'; /** * The model class is generated from OpenAPI schema - Drop * Drop */ @model({name: 'Drop'}) export class Drop { constructor(data?: Partial) { if (data != null && typeof data === 'object') { Object.assign(this, data); } } /** * */ @property({ jsonSchema: { type: 'string', }, }) id?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) createdTime?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) pk?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) sk?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) classifier?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) classifierGroup?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) title?: string; /** * */ @property({ required: true, jsonSchema: { type: 'string', format: 'BigNumber', }, }) reward: string; /** * */ @property({ required: true, jsonSchema: { type: 'number', format: 'int32', minimum: -2147483648, maximum: 2147483647, }, }) total: number; /** * */ @property({ jsonSchema: { type: 'number', }, }) remaining?: number; /** * */ @property({ jsonSchema: { type: 'number', }, }) deadline?: number; /** * */ @property({ jsonSchema: { type: 'string', }, }) communityId?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) chainId?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) tokenAddress?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) cashtag?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) tokenSymbol?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) createdByName?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) createdById?: string; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) claimedBy?: string[]; /** * */ @property.array(String, { jsonSchema: { type: 'array', items: { type: 'string', }, }, }) claimedByTime?: string[]; /** * */ @property({ jsonSchema: { type: 'string', }, }) link?: string; } export interface DropRelations { // describe navigational properties here } export type DropWithRelations = Drop & DropRelations;