# == Schema Information
#
# Table name: articles
#
#  id               :bigint           not null, primary key
#  accept_comments  :boolean          default(TRUE), not null
#  content          :text             not null
#  description      :text             not null
#  publication_date :date             not null
#  published        :boolean          default(FALSE), not null
#  slug             :string           not null, indexed
#  title            :string           not null
#  created_at       :datetime         not null
#  updated_at       :datetime         not null
#  user_id          :bigint           indexed
#
# Indexes
#
#  index_articles_on_slug     (slug) UNIQUE
#  index_articles_on_user_id  (user_id)
#
# Foreign Keys
#
#  fk_rails_...  (user_id => users.id)
#

FactoryBot.define do
  factory :article do
    user nil
    title Faker::Job.title
    description Faker::Hacker.say_something_smart
    content Faker::Lorem.paragraph
    published true
    accept_comments true
    publication_date Time.now
  end
end
