|
1 | 1 | # frozen_string_literal: true |
2 | 2 |
|
| 3 | +# == Schema Information |
| 4 | +# |
| 5 | +# Table name: pwb_spp_listings |
| 6 | +# Database name: primary |
| 7 | +# |
| 8 | +# id :uuid not null, primary key |
| 9 | +# active :boolean default(FALSE), not null |
| 10 | +# archived :boolean default(FALSE) |
| 11 | +# extra_data :jsonb |
| 12 | +# highlighted_features :jsonb |
| 13 | +# listing_type :string default("sale"), not null |
| 14 | +# live_url :string |
| 15 | +# noindex :boolean default(FALSE), not null |
| 16 | +# photo_ids_ordered :jsonb |
| 17 | +# price_cents :bigint default(0), not null |
| 18 | +# price_currency :string default("EUR"), not null |
| 19 | +# published_at :datetime |
| 20 | +# spp_settings :jsonb |
| 21 | +# spp_slug :string |
| 22 | +# template :string |
| 23 | +# translations :jsonb not null |
| 24 | +# visible :boolean default(FALSE) |
| 25 | +# created_at :datetime not null |
| 26 | +# updated_at :datetime not null |
| 27 | +# realty_asset_id :uuid not null |
| 28 | +# |
| 29 | +# Indexes |
| 30 | +# |
| 31 | +# index_pwb_spp_listings_on_noindex (noindex) |
| 32 | +# index_pwb_spp_listings_on_realty_asset_id (realty_asset_id) |
| 33 | +# index_pwb_spp_listings_on_spp_slug (spp_slug) |
| 34 | +# index_pwb_spp_listings_on_translations (translations) USING gin |
| 35 | +# index_pwb_spp_listings_unique_active (realty_asset_id,listing_type,active) UNIQUE WHERE (active = true) |
| 36 | +# |
| 37 | +# Foreign Keys |
| 38 | +# |
| 39 | +# fk_rails_... (realty_asset_id => pwb_realty_assets.id) |
| 40 | +# |
3 | 41 | FactoryBot.define do |
4 | 42 | factory :pwb_spp_listing, class: 'Pwb::SppListing' do |
5 | 43 | association :realty_asset, factory: :pwb_realty_asset |
|
0 commit comments