New annotation, because of db switch to mysql.

Background: sqlite has some problems with decimal option.
This commit is contained in:
benni 2011-05-07 21:55:24 +02:00
parent c2496aa4fd
commit 46450cebef
60 changed files with 623 additions and 568 deletions

View file

@ -1,12 +1,3 @@
# == Schema Information
#
# Table name: article_categories
#
# id :integer not null, primary key
# name :string(255) default(""), not null
# description :string(255)
#
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
fruits:
name: Fruits
@ -15,3 +6,13 @@ vegi:
name: Vegetables
other:
name: Other stuff
# == Schema Information
#
# Table name: article_categories
#
# id :integer(4) not null, primary key
# name :string(255) default(""), not null
# description :string(255)
#

View file

@ -1,16 +1,3 @@
# == Schema Information
#
# Table name: article_prices
#
# id :integer not null, primary key
# article_id :integer
# price :decimal(8, 2) default(0.0), not null
# tax :decimal(8, 2) default(0.0), not null
# deposit :decimal(8, 2) default(0.0), not null
# unit_quantity :integer
# created_at :datetime
#
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
banana1:
@ -48,3 +35,17 @@ applejuice1:
unit_quantity: 1
deposit: 0.15
created_at: <%= Time.now.to_s(:db) %>
# == Schema Information
#
# Table name: article_prices
#
# id :integer(4) not null, primary key
# article_id :integer(4)
# price :decimal(8, 2) default(0.0), not null
# tax :decimal(8, 2) default(0.0), not null
# deposit :decimal(8, 2) default(0.0), not null
# unit_quantity :integer(4)
# created_at :datetime
#

View file

@ -80,6 +80,7 @@ applejuice:
# == Schema Information
#
# Table name: articles

View file

@ -1,12 +1,13 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
# == Schema Information
#
# Table name: assignments
#
# id :integer not null, primary key
# user_id :integer default(0), not null
# task_id :integer default(0), not null
# accepted :boolean default(FALSE)
# id :integer(4) not null, primary key
# user_id :integer(4) default(0), not null
# task_id :integer(4) default(0), not null
# accepted :boolean(1) default(FALSE)
#

View file

@ -1,15 +1,3 @@
# == Schema Information
#
# Table name: financial_transactions
#
# id :integer not null, primary key
# ordergroup_id :integer default(0), not null
# amount :decimal(8, 2) default(0.0), not null
# note :text not null
# user_id :integer default(0), not null
# created_on :datetime not null
#
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
bananas1:
ordergroup: bananas
@ -23,3 +11,16 @@ bananas2:
amount: 100.00
note: Paying in from <%= 1.weeks.ago.strftime("%d.%m.%Y") %>
created_on: <%= 1.weeks.ago.to_s(:db) %>
# == Schema Information
#
# Table name: financial_transactions
#
# id :integer(4) not null, primary key
# ordergroup_id :integer(4) default(0), not null
# amount :decimal(8, 2) default(0.0), not null
# note :text default(""), not null
# user_id :integer(4) default(0), not null
# created_on :datetime not null
#

View file

@ -1,13 +1,14 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
# == Schema Information
#
# Table name: group_order_article_quantities
#
# id :integer not null, primary key
# group_order_article_id :integer default(0), not null
# quantity :integer default(0)
# tolerance :integer default(0)
# id :integer(4) not null, primary key
# group_order_article_id :integer(4) default(0), not null
# quantity :integer(4) default(0)
# tolerance :integer(4) default(0)
# created_on :datetime not null
#
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html

View file

@ -19,32 +19,33 @@ bananas:
# == Schema Information
#
# Table name: groups
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# type :string(255) default(""), not null
# name :string(255) default(""), not null
# description :string(255)
# account_balance :decimal(, ) default(0.0), not null
# account_balance :decimal(8, 2) default(0.0), not null
# account_updated :datetime
# created_on :datetime not null
# role_admin :boolean default(FALSE), not null
# role_suppliers :boolean default(FALSE), not null
# role_article_meta :boolean default(FALSE), not null
# role_finance :boolean default(FALSE), not null
# role_orders :boolean default(FALSE), not null
# weekly_task :boolean default(FALSE)
# weekday :integer
# role_admin :boolean(1) default(FALSE), not null
# role_suppliers :boolean(1) default(FALSE), not null
# role_article_meta :boolean(1) default(FALSE), not null
# role_finance :boolean(1) default(FALSE), not null
# role_orders :boolean(1) default(FALSE), not null
# weekly_task :boolean(1) default(FALSE)
# weekday :integer(4)
# task_name :string(255)
# task_description :string(255)
# task_required_users :integer default(1)
# task_required_users :integer(4) default(1)
# deleted_at :datetime
# contact_person :string(255)
# contact_phone :string(255)
# contact_address :string(255)
# stats :text
# task_duration :integer default(1)
# task_duration :integer(4) default(1)
#

View file

@ -1,12 +1,3 @@
# == Schema Information
#
# Table name: memberships
#
# id :integer not null, primary key
# group_id :integer default(0), not null
# user_id :integer default(0), not null
#
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
first:
group: admins
@ -15,3 +6,13 @@ second:
group: bananas
user: test
# == Schema Information
#
# Table name: memberships
#
# id :integer(4) not null, primary key
# group_id :integer(4) default(0), not null
# user_id :integer(4) default(0), not null
#

View file

@ -1,17 +1,18 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
# == Schema Information
#
# Table name: messages
#
# id :integer not null, primary key
# sender_id :integer
# id :integer(4) not null, primary key
# sender_id :integer(4)
# recipients_ids :text
# subject :string(255) not null
# body :text
# email_state :integer default(0), not null
# private :boolean default(FALSE)
# email_state :integer(4) default(0), not null
# private :boolean(1) default(FALSE)
# created_at :datetime
#

View file

@ -1,12 +1,13 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
# == Schema Information
#
# Table name: order_comments
#
# id :integer not null, primary key
# order_id :integer
# user_id :integer
# id :integer(4) not null, primary key
# order_id :integer(4)
# user_id :integer(4)
# text :text
# created_at :datetime
#
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html

View file

@ -1,16 +1,17 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
# == Schema Information
#
# Table name: orders
#
# id :integer not null, primary key
# supplier_id :integer
# id :integer(4) not null, primary key
# supplier_id :integer(4)
# note :text
# starts :datetime
# ends :datetime
# state :string(255) default("open")
# lock_version :integer default(0), not null
# updated_by_user_id :integer
# lock_version :integer(4) default(0), not null
# updated_by_user_id :integer(4)
# foodcoop_result :decimal(8, 2)
#
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html

View file

@ -10,18 +10,19 @@ two:
body: MyText
permalink: MyString
# == Schema Information
#
# Table name: pages
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# title :string(255)
# body :text
# permalink :string(255)
# lock_version :integer default(0)
# updated_by :integer
# redirect :integer
# parent_id :integer
# lock_version :integer(4) default(0)
# updated_by :integer(4)
# redirect :integer(4)
# parent_id :integer(4)
# created_at :datetime
# updated_at :datetime
#

View file

@ -1,14 +1,15 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
# == Schema Information
#
# Table name: stock_changes
#
# id :integer not null, primary key
# delivery_id :integer
# order_id :integer
# stock_article_id :integer
# quantity :integer default(0)
# id :integer(4) not null, primary key
# delivery_id :integer(4)
# order_id :integer(4)
# stock_article_id :integer(4)
# quantity :integer(4) default(0)
# created_at :datetime
# stock_taking_id :integer
# stock_taking_id :integer(4)
#
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html

View file

@ -1,12 +1,13 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
# == Schema Information
#
# Table name: stock_takings
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# date :date
# note :text
# created_at :datetime
#
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html

View file

@ -45,6 +45,8 @@ terra:
# == Schema Information
#
# Table name: suppliers

View file

@ -1,21 +1,22 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
# == Schema Information
#
# Table name: tasks
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# name :string(255) default(""), not null
# description :string(255)
# due_date :date
# done :boolean default(FALSE)
# workgroup_id :integer
# assigned :boolean default(FALSE)
# done :boolean(1) default(FALSE)
# workgroup_id :integer(4)
# assigned :boolean(1) default(FALSE)
# created_on :datetime not null
# updated_on :datetime not null
# required_users :integer default(1)
# weekly :boolean
# duration :integer default(1)
# required_users :integer(4) default(1)
# weekly :boolean(1)
# duration :integer(4) default(1)
#

View file

@ -1,21 +1,3 @@
# == Schema Information
#
# Table name: users
#
# id :integer not null, primary key
# nick :string(255) default(""), not null
# password_hash :string(255) default(""), not null
# password_salt :string(255) default(""), not null
# first_name :string(255) default(""), not null
# last_name :string(255) default(""), not null
# email :string(255) default(""), not null
# phone :string(255)
# created_on :datetime not null
# reset_password_token :string(255)
# reset_password_expires :datetime
# last_login :datetime
#
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
admin:
nick: admin
@ -33,3 +15,22 @@ test:
password_hash: 5549cd54032a72435037893b02d95ebef13cdc57
password_salt: DxnbIF1h
created_on: <%= Time.now.to_s(:db) %>
# == Schema Information
#
# Table name: users
#
# id :integer(4) not null, primary key
# nick :string(255) default(""), not null
# password_hash :string(255) default(""), not null
# password_salt :string(255) default(""), not null
# first_name :string(255) default(""), not null
# last_name :string(255) default(""), not null
# email :string(255) default(""), not null
# phone :string(255)
# created_on :datetime not null
# reset_password_token :string(255)
# reset_password_expires :datetime
# last_login :datetime
#

View file

@ -1,12 +1,3 @@
# == Schema Information
#
# Table name: article_categories
#
# id :integer not null, primary key
# name :string(255) default(""), not null
# description :string(255)
#
require File.dirname(__FILE__) + '/../test_helper'
class ArticleCategoryTest < Test::Unit::TestCase
@ -17,3 +8,13 @@ class ArticleCategoryTest < Test::Unit::TestCase
assert true
end
end
# == Schema Information
#
# Table name: article_categories
#
# id :integer(4) not null, primary key
# name :string(255) default(""), not null
# description :string(255)
#

View file

@ -1,16 +1,3 @@
# == Schema Information
#
# Table name: article_prices
#
# id :integer not null, primary key
# article_id :integer
# price :decimal(8, 2) default(0.0), not null
# tax :decimal(8, 2) default(0.0), not null
# deposit :decimal(8, 2) default(0.0), not null
# unit_quantity :integer
# created_at :datetime
#
require 'test_helper'
class ArticlePriceTest < ActiveSupport::TestCase
@ -19,3 +6,17 @@ class ArticlePriceTest < ActiveSupport::TestCase
assert true
end
end
# == Schema Information
#
# Table name: article_prices
#
# id :integer(4) not null, primary key
# article_id :integer(4)
# price :decimal(8, 2) default(0.0), not null
# tax :decimal(8, 2) default(0.0), not null
# deposit :decimal(8, 2) default(0.0), not null
# unit_quantity :integer(4)
# created_at :datetime
#

View file

@ -9,13 +9,14 @@ class AssignmentTest < Test::Unit::TestCase
end
end
# == Schema Information
#
# Table name: assignments
#
# id :integer not null, primary key
# user_id :integer default(0), not null
# task_id :integer default(0), not null
# accepted :boolean default(FALSE)
# id :integer(4) not null, primary key
# user_id :integer(4) default(0), not null
# task_id :integer(4) default(0), not null
# accepted :boolean(1) default(FALSE)
#

View file

@ -1,15 +1,3 @@
# == Schema Information
#
# Table name: financial_transactions
#
# id :integer not null, primary key
# ordergroup_id :integer default(0), not null
# amount :decimal(8, 2) default(0.0), not null
# note :text not null
# user_id :integer default(0), not null
# created_on :datetime not null
#
require File.dirname(__FILE__) + '/../test_helper'
class FinancialTransactionTest < Test::Unit::TestCase
@ -20,3 +8,16 @@ class FinancialTransactionTest < Test::Unit::TestCase
assert true
end
end
# == Schema Information
#
# Table name: financial_transactions
#
# id :integer(4) not null, primary key
# ordergroup_id :integer(4) default(0), not null
# amount :decimal(8, 2) default(0.0), not null
# note :text default(""), not null
# user_id :integer(4) default(0), not null
# created_on :datetime not null
#

View file

@ -1,14 +1,3 @@
# == Schema Information
#
# Table name: group_order_article_quantities
#
# id :integer not null, primary key
# group_order_article_id :integer default(0), not null
# quantity :integer default(0)
# tolerance :integer default(0)
# created_on :datetime not null
#
require File.dirname(__FILE__) + '/../test_helper'
class GroupOrderArticleQuantityTest < Test::Unit::TestCase
@ -19,3 +8,15 @@ class GroupOrderArticleQuantityTest < Test::Unit::TestCase
assert true
end
end
# == Schema Information
#
# Table name: group_order_article_quantities
#
# id :integer(4) not null, primary key
# group_order_article_id :integer(4) default(0), not null
# quantity :integer(4) default(0)
# tolerance :integer(4) default(0)
# created_on :datetime not null
#

View file

@ -11,32 +11,33 @@ end
# == Schema Information
#
# Table name: groups
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# type :string(255) default(""), not null
# name :string(255) default(""), not null
# description :string(255)
# account_balance :decimal(, ) default(0.0), not null
# account_balance :decimal(8, 2) default(0.0), not null
# account_updated :datetime
# created_on :datetime not null
# role_admin :boolean default(FALSE), not null
# role_suppliers :boolean default(FALSE), not null
# role_article_meta :boolean default(FALSE), not null
# role_finance :boolean default(FALSE), not null
# role_orders :boolean default(FALSE), not null
# weekly_task :boolean default(FALSE)
# weekday :integer
# role_admin :boolean(1) default(FALSE), not null
# role_suppliers :boolean(1) default(FALSE), not null
# role_article_meta :boolean(1) default(FALSE), not null
# role_finance :boolean(1) default(FALSE), not null
# role_orders :boolean(1) default(FALSE), not null
# weekly_task :boolean(1) default(FALSE)
# weekday :integer(4)
# task_name :string(255)
# task_description :string(255)
# task_required_users :integer default(1)
# task_required_users :integer(4) default(1)
# deleted_at :datetime
# contact_person :string(255)
# contact_phone :string(255)
# contact_address :string(255)
# stats :text
# task_duration :integer default(1)
# task_duration :integer(4) default(1)
#

View file

@ -1,12 +1,3 @@
# == Schema Information
#
# Table name: memberships
#
# id :integer not null, primary key
# group_id :integer default(0), not null
# user_id :integer default(0), not null
#
require File.dirname(__FILE__) + '/../test_helper'
class MembershipTest < Test::Unit::TestCase
@ -17,3 +8,13 @@ class MembershipTest < Test::Unit::TestCase
assert true
end
end
# == Schema Information
#
# Table name: memberships
#
# id :integer(4) not null, primary key
# group_id :integer(4) default(0), not null
# user_id :integer(4) default(0), not null
#

View file

@ -1,14 +1,3 @@
# == Schema Information
#
# Table name: order_comments
#
# id :integer not null, primary key
# order_id :integer
# user_id :integer
# text :text
# created_at :datetime
#
require 'test_helper'
class OrderCommentTest < ActiveSupport::TestCase
@ -17,3 +6,15 @@ class OrderCommentTest < ActiveSupport::TestCase
assert true
end
end
# == Schema Information
#
# Table name: order_comments
#
# id :integer(4) not null, primary key
# order_id :integer(4)
# user_id :integer(4)
# text :text
# created_at :datetime
#

View file

@ -1,18 +1,3 @@
# == Schema Information
#
# Table name: orders
#
# id :integer not null, primary key
# supplier_id :integer
# note :text
# starts :datetime
# ends :datetime
# state :string(255) default("open")
# lock_version :integer default(0), not null
# updated_by_user_id :integer
# foodcoop_result :decimal(8, 2)
#
require File.dirname(__FILE__) + '/../test_helper'
class OrderTest < Test::Unit::TestCase
@ -23,3 +8,19 @@ class OrderTest < Test::Unit::TestCase
assert true
end
end
# == Schema Information
#
# Table name: orders
#
# id :integer(4) not null, primary key
# supplier_id :integer(4)
# note :text
# starts :datetime
# ends :datetime
# state :string(255) default("open")
# lock_version :integer(4) default(0), not null
# updated_by_user_id :integer(4)
# foodcoop_result :decimal(8, 2)
#

View file

@ -7,18 +7,19 @@ class PageTest < ActiveSupport::TestCase
end
end
# == Schema Information
#
# Table name: pages
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# title :string(255)
# body :text
# permalink :string(255)
# lock_version :integer default(0)
# updated_by :integer
# redirect :integer
# parent_id :integer
# lock_version :integer(4) default(0)
# updated_by :integer(4)
# redirect :integer(4)
# parent_id :integer(4)
# created_at :datetime
# updated_at :datetime
#

View file

@ -7,29 +7,30 @@ class StockArticleTest < ActiveSupport::TestCase
end
end
# == Schema Information
#
# Table name: articles
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# name :string(255) default(""), not null
# supplier_id :integer default(0), not null
# article_category_id :integer default(0), not null
# supplier_id :integer(4) default(0), not null
# article_category_id :integer(4) default(0), not null
# unit :string(255) default(""), not null
# note :string(255)
# availability :boolean default(TRUE), not null
# availability :boolean(1) default(TRUE), not null
# manufacturer :string(255)
# origin :string(255)
# shared_updated_on :datetime
# price :decimal(8, 2)
# tax :float
# deposit :decimal(8, 2) default(0.0)
# unit_quantity :integer default(1), not null
# unit_quantity :integer(4) default(1), not null
# order_number :string(255)
# created_at :datetime
# updated_at :datetime
# deleted_at :datetime
# type :string(255)
# quantity :integer default(0)
# quantity :integer(4) default(0)
#

View file

@ -1,16 +1,3 @@
# == Schema Information
#
# Table name: stock_changes
#
# id :integer not null, primary key
# delivery_id :integer
# order_id :integer
# stock_article_id :integer
# quantity :integer default(0)
# created_at :datetime
# stock_taking_id :integer
#
require 'test_helper'
class StockChangeTest < ActiveSupport::TestCase
@ -19,3 +6,17 @@ class StockChangeTest < ActiveSupport::TestCase
assert true
end
end
# == Schema Information
#
# Table name: stock_changes
#
# id :integer(4) not null, primary key
# delivery_id :integer(4)
# order_id :integer(4)
# stock_article_id :integer(4)
# quantity :integer(4) default(0)
# created_at :datetime
# stock_taking_id :integer(4)
#

View file

@ -1,13 +1,3 @@
# == Schema Information
#
# Table name: stock_takings
#
# id :integer not null, primary key
# date :date
# note :text
# created_at :datetime
#
require 'test_helper'
class StockTakingTest < ActiveSupport::TestCase
@ -16,3 +6,14 @@ class StockTakingTest < ActiveSupport::TestCase
assert true
end
end
# == Schema Information
#
# Table name: stock_takings
#
# id :integer(4) not null, primary key
# date :date
# note :text
# created_at :datetime
#

View file

@ -1,25 +1,3 @@
# == Schema Information
#
# Table name: suppliers
#
# id :integer not null, primary key
# name :string(255) default(""), not null
# address :string(255) default(""), not null
# phone :string(255) default(""), not null
# phone2 :string(255)
# fax :string(255)
# email :string(255)
# url :string(255)
# contact_person :string(255)
# customer_number :string(255)
# delivery_days :string(255)
# order_howto :string(255)
# note :string(255)
# shared_supplier_id :integer
# min_order_quantity :string(255)
# deleted_at :datetime
#
require File.dirname(__FILE__) + '/../test_helper'
class SupplierTest < Test::Unit::TestCase
@ -42,3 +20,26 @@ class SupplierTest < Test::Unit::TestCase
assert_equal 'wednesday', @supplier.delivery_days
end
end
# == Schema Information
#
# Table name: suppliers
#
# id :integer(4) not null, primary key
# name :string(255) default(""), not null
# address :string(255) default(""), not null
# phone :string(255) default(""), not null
# phone2 :string(255)
# fax :string(255)
# email :string(255)
# url :string(255)
# contact_person :string(255)
# customer_number :string(255)
# delivery_days :string(255)
# order_howto :string(255)
# note :string(255)
# shared_supplier_id :integer(4)
# min_order_quantity :string(255)
# deleted_at :datetime
#

View file

@ -10,21 +10,22 @@ class TaskTest < Test::Unit::TestCase
end
# == Schema Information
#
# Table name: tasks
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# name :string(255) default(""), not null
# description :string(255)
# due_date :date
# done :boolean default(FALSE)
# workgroup_id :integer
# assigned :boolean default(FALSE)
# done :boolean(1) default(FALSE)
# workgroup_id :integer(4)
# assigned :boolean(1) default(FALSE)
# created_on :datetime not null
# updated_on :datetime not null
# required_users :integer default(1)
# weekly :boolean
# duration :integer default(1)
# required_users :integer(4) default(1)
# weekly :boolean(1)
# duration :integer(4) default(1)
#

View file

@ -1,21 +1,3 @@
# == Schema Information
#
# Table name: users
#
# id :integer not null, primary key
# nick :string(255) default(""), not null
# password_hash :string(255) default(""), not null
# password_salt :string(255) default(""), not null
# first_name :string(255) default(""), not null
# last_name :string(255) default(""), not null
# email :string(255) default(""), not null
# phone :string(255)
# created_on :datetime not null
# reset_password_token :string(255)
# reset_password_expires :datetime
# last_login :datetime
#
require File.dirname(__FILE__) + '/../test_helper'
class UserTest < Test::Unit::TestCase
@ -49,3 +31,22 @@ class UserTest < Test::Unit::TestCase
assert_equal 'Passworteingaben stimmen nicht überein', @admin.errors.on_base
end
end
# == Schema Information
#
# Table name: users
#
# id :integer(4) not null, primary key
# nick :string(255) default(""), not null
# password_hash :string(255) default(""), not null
# password_salt :string(255) default(""), not null
# first_name :string(255) default(""), not null
# last_name :string(255) default(""), not null
# email :string(255) default(""), not null
# phone :string(255)
# created_on :datetime not null
# reset_password_token :string(255)
# reset_password_expires :datetime
# last_login :datetime
#

View file

@ -9,32 +9,33 @@ end
# == Schema Information
#
# Table name: groups
#
# id :integer not null, primary key
# id :integer(4) not null, primary key
# type :string(255) default(""), not null
# name :string(255) default(""), not null
# description :string(255)
# account_balance :decimal(, ) default(0.0), not null
# account_balance :decimal(8, 2) default(0.0), not null
# account_updated :datetime
# created_on :datetime not null
# role_admin :boolean default(FALSE), not null
# role_suppliers :boolean default(FALSE), not null
# role_article_meta :boolean default(FALSE), not null
# role_finance :boolean default(FALSE), not null
# role_orders :boolean default(FALSE), not null
# weekly_task :boolean default(FALSE)
# weekday :integer
# role_admin :boolean(1) default(FALSE), not null
# role_suppliers :boolean(1) default(FALSE), not null
# role_article_meta :boolean(1) default(FALSE), not null
# role_finance :boolean(1) default(FALSE), not null
# role_orders :boolean(1) default(FALSE), not null
# weekly_task :boolean(1) default(FALSE)
# weekday :integer(4)
# task_name :string(255)
# task_description :string(255)
# task_required_users :integer default(1)
# task_required_users :integer(4) default(1)
# deleted_at :datetime
# contact_person :string(255)
# contact_phone :string(255)
# contact_address :string(255)
# stats :text
# task_duration :integer default(1)
# task_duration :integer(4) default(1)
#