Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shotengai
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
shotengai
Commits
f7b3907e
Commit
f7b3907e
authored
Oct 13, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve annotate in model
parent
6072cd27
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
product.rb
lib/shotengai/product.rb
+3
-2
series.rb
lib/shotengai/series.rb
+4
-2
snapshot.rb
lib/shotengai/snapshot.rb
+3
-1
No files found.
lib/shotengai/product.rb
View file @
f7b3907e
...
...
@@ -6,7 +6,7 @@ module Shotengai
# id :integer not null, primary key
# title :string(255)
# status :string(255)
# spec
:json
# spec
_template
:json
# default_series_id :integer
# need_express :boolean
# need_time_attr :boolean
...
...
@@ -19,7 +19,8 @@ module Shotengai
# manager_type :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# remark :json
# remark_template :json
# info_template :json
#
# Indexes
#
...
...
lib/shotengai/series.rb
View file @
f7b3907e
...
...
@@ -7,13 +7,15 @@ module Shotengai
# original_price :decimal(9, 2)
# price :decimal(9, 2)
# stock :integer default(-1)
# aasm_state :string(255)
# spec :json
# spec_value :json
# type :string(255)
# meta :json
# shotengai_product_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# aasm_state :string(255)
# remark_value :json
# info_value :json
#
# Indexes
#
...
...
lib/shotengai/snapshot.rb
View file @
f7b3907e
...
...
@@ -9,7 +9,7 @@ module Shotengai
# price :decimal(9, 2)
# revised_amount :decimal(9, 2)
# count :integer
# spec
:json
# spec
_value
:json
# banners :json
# cover_image :string(255)
# detail :json
...
...
@@ -21,6 +21,8 @@ module Shotengai
# updated_at :datetime not null
# manager_type :string(255)
# manager_id :integer
# remark_value :json
# info_value :json
#
# Indexes
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment