require "./setup"

Wkbk.destroy_all
Wkbk.setup

tp Wkbk::Book
tp Wkbk::Article
tp Wkbk.info
# >> |----+-----+---------+-----------+-------------+---------------------+---------------+-----------------+---------------------------+---------------------------|
# >> | id | key | user_id | folder_id | sequence_id | title               | description   | bookships_count | created_at                | updated_at                |
# >> |----+-----+---------+-----------+-------------+---------------------+---------------+-----------------+---------------------------+---------------------------|
# >> | 13 |   1 |       1 |        10 |           1 | admin - public - 1  | (description) |               0 | 2021-02-11 13:08:05 +0900 | 2021-02-11 13:08:05 +0900 |
# >> | 14 |   2 |       1 |        12 |           1 | admin - private - 2 | (description) |               0 | 2021-02-11 13:08:05 +0900 | 2021-02-11 13:08:05 +0900 |
# >> | 15 |   3 |       2 |        10 |           1 | bot - public - 3    | (description) |               0 | 2021-02-11 13:08:05 +0900 | 2021-02-11 13:08:05 +0900 |
# >> | 16 |   4 |       2 |        12 |           1 | bot - private - 4   | (description) |               0 | 2021-02-11 13:08:05 +0900 | 2021-02-11 13:08:06 +0900 |
# >> |----+-----+---------+-----------+-------------+---------------------+---------------+-----------------+---------------------------+---------------------------|
# >> |----+-----+---------+-----------+-------------+---------------------+---------------+-----------------+---------------------------+---------------------------|
# >> | id | key | user_id | folder_id | sequence_id | title               | description   | bookships_count | created_at                | updated_at                |
# >> |----+-----+---------+-----------+-------------+---------------------+---------------+-----------------+---------------------------+---------------------------|
# >> | 13 |   1 |       1 |        10 |           1 | admin - public - 1  | (description) |               0 | 2021-02-11 13:08:05 +0900 | 2021-02-11 13:08:05 +0900 |
# >> | 14 |   2 |       1 |        12 |           1 | admin - private - 2 | (description) |               0 | 2021-02-11 13:08:05 +0900 | 2021-02-11 13:08:05 +0900 |
# >> | 15 |   3 |       2 |        10 |           1 | bot - public - 3    | (description) |               0 | 2021-02-11 13:08:05 +0900 | 2021-02-11 13:08:05 +0900 |
# >> | 16 |   4 |       2 |        12 |           1 | bot - private - 4   | (description) |               0 | 2021-02-11 13:08:05 +0900 | 2021-02-11 13:08:06 +0900 |
# >> |----+-----+---------+-----------+-------------+---------------------+---------------+-----------------+---------------------------+---------------------------|
# >> |----+-----+---------+-----------+------------+-------------------------------------------------+-----------+---------------------+-------------+-------------------+----------+-----------+---------------------+------------+---------------------------+---------------------------+----------------------------+---------------+----------------|
# >> | id | key | user_id | folder_id | lineage_id | init_sfen                                       | viewpoint | title               | description | direction_message | turn_max | mate_skip | moves_answers_count | difficulty | created_at                | updated_at                | moves_answer_validate_skip | user_tag_list | owner_tag_list |
# >> |----+-----+---------+-----------+------------+-------------------------------------------------+-----------+---------------------+-------------+-------------------+----------+-----------+---------------------+------------+---------------------------+---------------------------+----------------------------+---------------+----------------|
# >> | 13 |   1 |       1 |        10 |         25 | 7nl/7k1/9/7pp/6N2/9/9/9/9 b GS2r2b3g3s2n3l16p 1 | black     | admin - public - 1  |             |                   |        0 | false     |                   0 |          1 | 2021-02-11 13:08:05 +0900 | 2021-02-11 13:08:05 +0900 |                            |               |                |
# >> | 14 |   2 |       1 |        12 |         25 | 7nl/7k1/9/7pp/6N2/9/9/9/9 b GS2r2b3g3s2n3l16p 1 | black     | admin - private - 2 |             |                   |        0 | false     |                   0 |          1 | 2021-02-11 13:08:05 +0900 | 2021-02-11 13:08:05 +0900 |                            |               |                |
# >> | 15 |   3 |       2 |        10 |         25 | 7nl/7k1/9/7pp/6N2/9/9/9/9 b GS2r2b3g3s2n3l16p 1 | black     | bot - public - 3    |             |                   |        0 | false     |                   0 |          1 | 2021-02-11 13:08:05 +0900 | 2021-02-11 13:08:05 +0900 |                            |               |                |
# >> | 16 |   4 |       2 |        12 |         25 | 7nl/7k1/9/7pp/6N2/9/9/9/9 b GS2r2b3g3s2n3l16p 1 | black     | bot - private - 4   |             |                   |        0 | false     |                   0 |          1 | 2021-02-11 13:08:06 +0900 | 2021-02-11 13:08:06 +0900 |                            |               |                |
# >> |----+-----+---------+-----------+------------+-------------------------------------------------+-----------+---------------------+-------------+-------------------+----------+-----------+---------------------+------------+---------------------------+---------------------------+----------------------------+---------------+----------------|
# >> |-------------------+-------+--------|
# >> | model             | count | 最終ID |
# >> |-------------------+-------+--------|
# >> | User              |     2 |      2 |
# >> | Wkbk::Bookship    |     4 |     16 |
# >> | Wkbk::Article     |     4 |     16 |
# >> | Wkbk::MovesAnswer |     0 |        |
# >> | Wkbk::Book        |     4 |     16 |
# >> | Wkbk::Lineage     |     8 |     32 |
# >> | Wkbk::Folder      |     3 |     12 |
# >> |-------------------+-------+--------|
