Skip to content

Instantly share code, notes, and snippets.

@marcamillion
Created April 12, 2011 18:08
Show Gist options
  • Save marcamillion/916048 to your computer and use it in GitHub Desktop.
Save marcamillion/916048 to your computer and use it in GitHub Desktop.
# == Schema Information
# Schema version: 20110412101615
#
# Table name: plans
#
# id :integer not null, primary key
# name :string(255)
# storage :float
# num_of_projects :integer
# num_of_clients :integer
# cached_slug :string(255)
# created_at :datetime
# updated_at :datetime
# amount :integer
# trial_duration :integer
# trial_duration_unit :string(255)
# currency :string(255)
# billing_cycle :integer
# billing_cycle_unit :string(255)
#
# == Schema Information
# Schema version: 20110412101615
#
# Table name: subscriptions
#
# id :integer not null, primary key
# status :string(255)
# plan_id :integer
# payment_method_token :string(255)
# created_at :datetime
# updated_at :datetime
#
# == Schema Information
# Schema version: 20110412180008
#
# Table name: transactions
#
# id :integer not null, primary key
# status :string(255)
# type :string(255)
# amount :integer
# user_id :integer
# subscription_id :integer
# plan_id :integer
# created_at :datetime
# updated_at :datetime
#
# == Schema Information
# Schema version: 20110412170916
#
# Table name: users
#
# id :integer not null, primary key
# email :string(255)
# encrypted_password :string(128)
# password_salt :string(255)
# reset_password_token :string(255)
# remember_token :string(255)
# remember_created_at :datetime
# sign_in_count :integer
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# username :string(255)
# first_name :string(255)
# last_name :string(255)
# created_at :datetime
# updated_at :datetime
# invitation_token :string(60)
# invitation_sent_at :datetime
# plan_id :integer
# current_state :string(255)
# confirmation_token :string(255)
# confirmed_at :datetime
# confirmation_sent_at :datetime
# space_used :integer default(0), not null
# failed_attempts :integer default(0)
# unlock_token :string(255)
# locked_at :datetime
# trial_end_date :date
# active_subscription :boolean
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment