import type { ColumnType } from 'kysely'; export type Generated = T extends ColumnType ? ColumnType : ColumnType; export type Timestamp = ColumnType; import type { PostType, CommentType, Role, BurnType, AccountDanaHistoryType, NotificationLevel, UserTwoFactorType, ImageUploadableType, MessageType, PageMessageSessionStatus, BookmarkType, EventType, OfferType, OfferStatus, DisputeStatus, EscrowOrderStatus, AddressType, Coin, AccountType } from './enums'; export type Account = { id: Generated; name: string; account_type: Generated; encrypted_mnemonic: string | null; encrypted_secret: Generated; created_at: Generated; updated_at: Generated; mnemonic_hash: string | null; address: Generated; hash_160: Generated; language: Generated; secondary_language: string | null; public_key: Generated; email: string | null; description: Generated; day_of_birth: number | null; month_of_birth: number | null; year_of_birth: number | null; website: Generated; create_comment_fee: Generated; account_avatar_image_uploadable_id: string | null; account_cover_image_uploadable_id: string | null; role: Generated; telegram_id: string | null; telegram_username: string | null; anonymous_username_localecash: string | null; }; export type AccountDana = { id: string; account_id: number; dana_given: Generated; dana_received: Generated; dana_burn_up: Generated; dana_burn_down: Generated; dana_burn_score: Generated; dana_received_up: Generated; dana_received_down: Generated; dana_received_score: Generated; version: Generated; }; export type AccountDanaHistory = { id: string; accountDanaId: string | null; txid: string; burn_type: BurnType; burn_for_type: number; burned_for_id: string; given_up_value: Generated; given_down_value: Generated; received_up_value: Generated; received_down_value: Generated; type: AccountDanaHistoryType | null; created_at: Generated; updated_at: Generated; }; export type BankInfo = { id: string; orderId: string; bank_name: string | null; account_name_bank: string | null; account_number_bank: string | null; app_name: string | null; account_name_app: string | null; account_number_app: string | null; }; export type Bookmark = { id: string; account_id: number; bookmarkable_id: string | null; created_at: Generated; updated_at: Generated; }; export type Bookmarkable = { id: string; type: BookmarkType; }; export type BoostFee = { id: string; txid: string; boost_type: boolean; boost_for_type: number; boosted_by_hash: string; boosted_for_id: string; boosted_value: Generated; created_at: Generated; updated_at: Generated; }; export type Burn = { id: string; txid: string; burn_type: boolean; burn_for_type: number; burned_by: Buffer; burned_for_id: string; burned_value: Generated; created_at: Generated; updated_at: Generated; coinBurned: Generated; }; export type Category = { id: Generated; name: Generated; created_at: Generated; updated_at: Generated; }; export type ChronikWatchAddress = { id: string; account_id: number; hash_160: string; type: string; created_at: Generated; }; export type City = { id: Generated; name: string; state_code: string; country_code: string; latitude: string; longitude: string; created_at: Timestamp | null; updated_at: Timestamp | null; flag: Generated; wiki_data_id: string | null; country_id: number; state_id: number; }; export type Claim = { id: Generated; ip_address: string; transaction_id: string; created_at: Generated; updated_at: Generated; claim_address: string; amount: string; lixi_id: number; nft_token_id: string | null; nft_token_url: Generated; }; export type Comment = { id: string; comment_account_id: number | null; comment_by_public_key: string | null; comment_to_id: string; commentable_id: string | null; comment_text: Generated; created_at: Generated; updated_at: Generated; dana_burn_up: Generated; dana_burn_down: Generated; dana_burn_score: Generated; create_fee: number | null; txid: string | null; comment_image_uploadable_id: string | null; parentId: string | null; rootId: string | null; }; export type Commentable = { id: string; type: Generated; }; export type CommentDana = { dana_burn_up: Generated; dana_burn_down: Generated; dana_burn_score: Generated; comment_id: string; version: Generated; }; export type Country = { id: Generated; name: string; iso3: string | null; iso2: string | null; numeric_code: string | null; phone_code: string | null; capital: string | null; currency: string | null; currency_name: string | null; currency_symbol: string | null; tld: string | null; native: string | null; region: string | null; sub_region: string | null; timezones: string | null; translations: string | null; latitude: string | null; longitude: string | null; emoji: string | null; emoji_u: string | null; created_at: Timestamp | null; updated_at: Generated; flag: Generated; wiki_data_id: string | null; }; export type Dispute = { id: string; escrow_order_id: string; created_by: string; reason: string | null; status: Generated; created_at: Generated; updated_at: Generated; }; export type EmailTemplate = { id: string; slug: Generated; description: string; created_at: Generated; updated_at: Generated; }; export type EmailTemplateTranslation = { id: string; sender: Generated; email_template_id: string; title: Generated; body: Generated; subject: Generated; language: string; is_default: boolean | null; created_at: Generated; updated_at: Generated; }; export type Envelope = { id: Generated; name: string; thumbnail: string; image: string; slug: string; created_at: Generated; updated_at: Generated; description: Generated; }; export type EscrowOrder = { id: string; seller_account_id: number; buyer_account_id: number; arbitrator_account_id: number; moderator_account_id: number; escrow_address: string; escrow_fee_address: string | null; escrow_buyer_deposit_fee_address: string | null; release_txid: string | null; return_txid: string | null; return_fee_txid: string | null; return_buyer_deposit_fee_txid: string | null; payment_method_id: number; message: string | null; price: string; amount: Generated; amount_coin_or_currency: Generated; offer_id: string; status: Generated; escrow_script: Buffer; escrow_fee_script: Buffer | null; escrow_buyer_deposit_fee_script: Buffer | null; release_signatory: Buffer | null; return_signatory: Buffer | null; signatory_owner_hash160: Buffer | null; return_fee_signatory: Buffer | null; signatory_owner_fee_hash160: Buffer | null; return_buyer_deposit_fee_signatory: Buffer | null; signatory_owner_buyer_deposit_fee_hash160: Buffer | null; nonce: string; buyer_deposit_tx: string | null; seller_telegram_message_id: number | null; buyer_telegram_message_id: number | null; seller_donate_amount: number | null; buyer_donate_amount: number | null; mark_as_paid: Generated; allow_offer_taker_chat: Generated; created_at: Generated; updated_at: Generated; }; export type EscrowTxId = { txid: string; outIdx: number; feeOutIdx: number | null; buyer_deposit_fee_out_idx: number | null; value: string; feeValue: string | null; buyer_deposit_fee_value: string | null; escrowOrderId: string; created_at: Generated; updated_at: Generated; }; export type Event = { postId: string; name: string; description: string | null; start_date: Timestamp; end_date: Timestamp; location: string | null; eventType: EventType; }; export type FeatureFlag = { id: Generated; name: string; enabled: Generated; created_at: Generated; updated_at: Generated; }; export type FollowAccount = { id: string; follower_account_id: number; following_account_id: number; created_at: Generated; updated_at: Generated; }; export type FollowPage = { id: string; account_id: number; page_id: string | null; token_id: string | null; created_at: Generated; updated_at: Generated; }; export type GiveTip = { id: string; txid: string; from_address: string; from_account_id: number; to_address: string; to_account_id: number; comment_id: string; tip_value: number; created_at: Generated; }; export type GiveTipMessage = { id: string; txid: string; from_address: string; from_account_id: number; to_address: string; to_account_id: number; message_id: string; tip_value: number; created_at: Generated; updated_at: Generated; }; export type Handle = { id: string; network: Generated; name: string; address: Generated; block_height: number; status: Generated; txid: string; }; export type Hashtag = { id: string; content: string; normalizedContent: string; dana_burn_up: Generated; dana_burn_down: Generated; dana_burn_score: Generated; created_at: Generated; updated_at: Generated; }; export type HashtagDana = { dana_received_up: Generated; dana_received_down: Generated; dana_received_score: Generated; dana_burn_up: Generated; dana_burn_down: Generated; dana_burn_score: Generated; hashtag_id: string; version: Generated; }; export type ImageUploadable = { id: string; account_id: number; image_uploadable_type: ImageUploadableType | null; }; export type Lixi = { id: Generated; name: string; max_claim: Generated; claimed_num: Generated; claim_type: Generated; lixi_type: Generated; min_value: number; max_value: number; fixed_value: number; divided_value: Generated; encrypted_xpriv: string; encrypted_claim_code: string; total_claim: Generated; created_at: Generated; updated_at: Generated; min_staking: Generated; expiry_at: Timestamp | null; activation_at: Timestamp | null; country: string | null; is_family_friendly: boolean; join_lottery_program: Generated; status: Generated; previous_status: Generated; invetory_status: Generated; account_id: number; derivation_index: Generated; address: string; amount: Generated; sub_lixi_value: number | null; parent_id: number | null; envelope_id: number | null; envelope_message: Generated; check_claim: Generated; is_nft_enabled: Generated; number_lixi_per_package: number | null; package_id: number | null; upload_detail_id: string | null; network_type: Generated; lixi_image_uploadable_id: string | null; }; export type LixiDistribution = { id: string; address: string; type: string; lixiId: number; }; export type Message = { id: string; body: string | null; author_id: number; is_page_owner: boolean | null; created_at: Generated; updated_at: Generated; page_message_session_id: string | null; messageType: Generated; image_uploadable_id: string | null; }; export type Notification = { id: string; message: Generated; readAt: Timestamp | null; deletedAt: Timestamp | null; sender_id: number | null; additional_data: unknown | null; type_id: number; level: NotificationLevel; created_at: Generated; updated_at: Generated; status: Generated; recipient_id: number | null; url: string | null; action: string | null; }; export type NotificationType = { id: Generated; name: Generated; description: string; created_at: Generated; updated_at: Generated; }; export type NotificationTypeTranslation = { id: Generated; notification_type_id: number; language: string; is_default: boolean | null; template: string; created_at: Generated; updated_at: Generated; }; export type Offer = { post_id: string; public_key: string; message: string; note_offer: Generated; price: string; coin_payment: string | null; coin_others: Generated; price_coin_others: Generated; price_goods_services: Generated; ticker_price_goods_services: string | null; margin_percentage: Generated; local_currency: string | null; payment_app: string | null; coin: Generated; order_limit_min: Generated; order_limit_max: Generated; type: Generated; status: Generated; country_id: number | null; state_id: number | null; location_id: string | null; telegram_message_id: string | null; hide_from_home: Generated; created_at: Generated; updated_at: Generated; }; export type OfferPaymentMethod = { id: string; offer_id: string; payment_method_id: number; created_at: Generated; updated_at: Generated; }; export type Package = { id: Generated; created_at: Generated; updated_at: Generated; registrant: string | null; }; export type Page = { id: string; page_account_id: number; name: Generated; title: Generated; category_id: number | null; description: Generated; parent_id: string | null; website: Generated; country_id: number | null; state_id: number | null; address: Generated; created_at: Generated; updated_at: Generated; dana_burn_up: Generated; dana_burn_down: Generated; dana_burn_score: Generated; create_post_fee: Generated; create_comment_fee: Generated; encrypted_mnemonic: string | null; salt: string | null; total_posts_burn_up: Generated; total_posts_burn_down: Generated; total_posts_burn_score: Generated; access_message_fee: Generated; min_dana_for_message: Generated; follower_free_message: Generated; page_avatar_image_uploadable_id: string | null; page_cover_image_uploadable_id: string | null; }; export type PageDana = { dana_received_up: Generated; dana_received_down: Generated; dana_received_score: Generated; dana_burn_up: Generated; dana_burn_down: Generated; dana_burn_score: Generated; page_id: string; version: Generated; }; export type PageMessageSession = { id: string; name: string | null; page_id: string; account_id: number; lixi_id: number | null; lixi_claim_code: string | null; session_opened_at: Timestamp | null; session_closed_at: Timestamp | null; status: Generated; created_at: Generated; updated_at: Generated; }; export type PaymentMethod = { id: Generated; name: string; message: string | null; created_at: Generated; updated_at: Generated; }; export type PersonOnTemple = { id: string; temple_id: string; worshiped_person_id: string; }; export type Poll = { postId: string; question: string; start_date: Timestamp; end_date: Timestamp; single_select: Generated; can_add_option: Generated; }; export type PollAnswerOnAccount = { account_id: number; poll_option_id: string; created_at: Generated; poll_dana_score: Generated; }; export type PollOption = { id: string; poll_id: string; option: string; }; export type Post = { id: string; account_id: number; page_id: string | null; token_id: string | null; content: Generated; created_at: Generated; updated_at: Generated; dana_burn_up: Generated; dana_burn_down: Generated; dana_burn_score: Generated; create_fee: number | null; txid: string | null; updated_repost_at: Generated; original_language: string | null; commentable_id: string | null; bookmarkable_id: string | null; taggableId: string | null; post_image_uploadable_id: string | null; type: Generated; }; export type PostBoostScore = { boost_received_up: Generated; boost_received_down: Generated; boost_received_score: Generated; boost_up: Generated; boost_down: Generated; boost_score: Generated; post_id: string; version: Generated; }; export type PostDana = { dana_received_up: Generated; dana_received_down: Generated; dana_received_score: Generated; dana_burn_up: Generated; dana_burn_down: Generated; dana_burn_score: Generated; post_id: string; version: Generated; }; export type PostHashtag = { id: string; hashtagId: string; postId: string | null; created_at: Generated; updated_at: Generated; }; export type PostTranslation = { id: string; post_id: string; translate_language: string | null; translate_content: string | null; created_at: Generated; updated_at: Generated; }; export type Product = { postId: string; title: Generated; price: Generated; price_unit: Generated; phone_number: Generated; category_id: number | null; description: Generated; country_id: number | null; state_id: number | null; address: Generated; }; export type Repost = { id: string; account_id: number; post_id: string; txid: string | null; repost_fee: Generated; created_at: Generated; updated_at: Generated; }; export type RepostDana = { dana_burn_up: Generated; dana_burn_down: Generated; dana_burn_score: Generated; repost_id: string; version: Generated; }; export type SeedVersion = { id: string; name: string; created_at: Generated; updated_at: Generated; }; export type Setting = { id: string; accountId: number; lastSeedBackupTime: Timestamp | null; use_public_local_user_name: Generated; created_at: Generated; updated_at: Generated; }; export type State = { id: Generated; name: string; country_code: string; fips_code: string | null; iso2: string | null; type: string | null; latitude: string | null; longitude: string | null; created_at: Timestamp | null; updated_at: Generated; flag: Generated; wiki_data_id: string | null; country_id: number; }; export type Taggable = { id: string; }; export type TagSet = { id: string; taggableId: string; hashtagId: string; }; export type Temple = { id: string; name: string; accountId: number; achievement: string | null; description: string | null; alias: string | null; religion: string | null; address: string | null; president: string | null; website: string | null; verified: Generated; date_of_completed: Timestamp | null; day_of_completed: number | null; month_of_completed: number | null; year_of_completed: number | null; total_worship_amount: Generated; cityId: number | null; countryId: number | null; stateId: number | null; created_at: Generated; updated_at: Generated; temple_avatar_image_uploadable_id: string | null; temple_cover_image_uploadable_id: string | null; }; export type Token = { id: string; token_id: string; token_type: Generated; name: Generated; ticker: Generated; decimals: number; token_document_url: Generated; total_burned: Generated; total_minted: Generated; initial_token_quantity: Generated; comments: Generated; created_at: Generated; created_date: Generated; }; export type TokenDana = { dana_received_up: Generated; dana_received_down: Generated; dana_received_score: Generated; dana_burn_up: Generated; dana_burn_down: Generated; dana_burn_score: Generated; token_id: string; version: Generated; }; export type Upload = { id: string; original_filename: string; file_size: number | null; width: number | null; height: number | null; url: string | null; created_at: Timestamp; updated_at: Timestamp; sha: string | null; extension: string | null; thumbnail_width: number | null; thumbnail_height: number | null; type: string | null; bucket: string | null; cf_image_id: string | null; cf_image_filename: string | null; image_uploadable_id: string | null; }; export type UploadDetail = { id: string; account_id: number; upload_id: string; lixi_id: number | null; page_cover_id: string | null; page_avatar_id: string | null; post_cover_id: string | null; worshipedPerson_avatar_id: string | null; temple_avatar_id: string | null; temple_cover_id: string | null; avatarAccountId: number | null; coverAccountId: number | null; messageId: string | null; }; export type WalletPath = { id: string; path: string; address: string; hash160: string; type: AddressType; public_key: string; account_id: number; network: Generated; }; export type WebpushSubscriber = { id: string; client_app_id: string; auth: string; p256dh: string; endpoint: string; device_id: string; account_id: number | null; address: string; expiration_time: Timestamp | null; created_at: Generated; updated_at: Generated; }; export type Worldcities = { city: string | null; city_ascii: string | null; city_alt: string | null; lat: Generated; lng: Generated; country: string | null; iso2: string | null; iso3: string | null; admin_name: string | null; admin_name_ascii: string | null; admin_code: string | null; admin_type: string | null; capital: string | null; density: Generated; population: string | null; population_proper: string | null; ranking: number | null; timezone: string | null; same_name: string | null; id: string; }; export type Worship = { id: string; accountId: number; worshipedPersonId: string | null; templeId: string | null; lotus_worship_amount: Generated; location: string | null; latitude: string | null; longitude: string | null; created_at: Generated; updated_at: Generated; }; export type WorshipedPerson = { id: string; name: string; wikiAvatar: string | null; country_of_citizenship: string | null; achievement: string | null; bio: string | null; alias: string | null; religion: string | null; wiki_data_id: string | null; quote: Generated; place_of_birth: string | null; place_of_death: string | null; place_of_burial: string | null; date_of_birth: Timestamp | null; day_of_birth: number | null; month_of_birth: number | null; year_of_birth: number | null; date_of_death: Timestamp | null; day_of_death: number | null; month_of_death: number | null; year_of_death: number | null; created_at: Generated; updated_at: Generated; total_worship_amount: Generated; cityId: number | null; countryId: number | null; stateId: number | null; }; export type DB = { account: Account; account_dana: AccountDana; account_dana_history: AccountDanaHistory; bank_info: BankInfo; bookmark: Bookmark; bookmarkable: Bookmarkable; boost_fee: BoostFee; burn: Burn; category: Category; chronik_watch_address: ChronikWatchAddress; city: City; claim: Claim; comment: Comment; comment_dana: CommentDana; commentable: Commentable; country: Country; dispute: Dispute; email_template: EmailTemplate; email_template_translation: EmailTemplateTranslation; envelope: Envelope; escrow_order: EscrowOrder; EscrowTxId: EscrowTxId; event: Event; feature_flag: FeatureFlag; follow_account: FollowAccount; follow_page: FollowPage; give_tip: GiveTip; give_tip_messsage: GiveTipMessage; handle: Handle; hashtag: Hashtag; hashtag_dana: HashtagDana; image_uploadable: ImageUploadable; lixi: Lixi; lixi_distribution: LixiDistribution; message: Message; notification: Notification; notification_type: NotificationType; notification_type_translation: NotificationTypeTranslation; offer: Offer; offer_payment_method: OfferPaymentMethod; package: Package; page: Page; page_dana: PageDana; page_message_session: PageMessageSession; payment_method: PaymentMethod; person_on_temple: PersonOnTemple; poll: Poll; poll_option: PollOption; pollawnswer_on_account: PollAnswerOnAccount; post: Post; post_boost_score: PostBoostScore; post_dana: PostDana; post_hashtag: PostHashtag; post_translation: PostTranslation; product: Product; repost: Repost; repost_dana: RepostDana; seed_version: SeedVersion; Setting: Setting; state: State; taggable: Taggable; tagset: TagSet; Temple: Temple; token: Token; token_dana: TokenDana; upload: Upload; upload_detail: UploadDetail; wallet_path: WalletPath; webpush_subscription: WebpushSubscriber; world_cities: Worldcities; Worship: Worship; WorshipedPerson: WorshipedPerson; };