=begin
OpenAPI Petstore

This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.

The version of the OpenAPI document: 1.0.0
Generated by: https://github.com/openapitools/openapi-generator.git

=end

class InitTables < ActiveRecord::Migration
  def change
    create_table "api_response".pluralize.to_sym, id: false do |t|
      t.integer :code
      t.string :type
      t.string :message

      t.timestamps
    end

    create_table "category".pluralize.to_sym, id: false do |t|
      t.integer :id
      t.string :name

      t.timestamps
    end

    create_table "inline_object".pluralize.to_sym, id: false do |t|
      t.string :name
      t.string :status

      t.timestamps
    end

    create_table "inline_object_1".pluralize.to_sym, id: false do |t|
      t.string :additional_metadata
      t.File :file

      t.timestamps
    end

    create_table "order".pluralize.to_sym, id: false do |t|
      t.integer :id
      t.integer :pet_id
      t.integer :quantity
      t.datetime :ship_date
      t.string :status
      t.boolean :complete

      t.timestamps
    end

    create_table "pet".pluralize.to_sym, id: false do |t|
      t.integer :id
      t.string :category
      t.string :name
      t.string :photo_urls
      t.string :tags
      t.string :status

      t.timestamps
    end

    create_table "tag".pluralize.to_sym, id: false do |t|
      t.integer :id
      t.string :name

      t.timestamps
    end

    create_table "user".pluralize.to_sym, id: false do |t|
      t.integer :id
      t.string :username
      t.string :first_name
      t.string :last_name
      t.string :email
      t.string :password
      t.string :phone
      t.integer :user_status

      t.timestamps
    end

  end
end
