sano400jp / simple-lottery

0 stars 0 forks source link

テーブル定義 #1

Open sano400jp opened 7 years ago

sano400jp commented 7 years ago

[Lotteries] ・code 文字列 ←管理画面のURLにする ・owner_code 文字列 ・title オーナーが入力するくじのタイトル ・draw_time 日付 抽選実施日時 ・redraw_range 数値 再抽選時間間隔(分) ・nonres_redraw boolean 反応無しチケット再抽選フラグ ・end_time 日付 終了日時

sano400jp commented 7 years ago

[Owners] ・code 文字列 ←これを救済用メニューで入力させる(余力があればつくる) ・password_digest 文字列 管理画面トップで入力させる

sano400jp commented 7 years ago

[Gifts] ・lottery_code 文字列 ・name 景品名 ・start_cnt 開始時景品数 ・delived_cnt 譲渡済数 ・image_l_url ・image_m_url ・image_s_url

□lottery_codeの次にseqを追加したい。  rails g migration add_seq_to_gifts seq:integer □delived_cntいらない。

sano400jp commented 7 years ago

[Tickets] ・lottery_code ・seq  数値 ・token 文字列 必須 ←QRコード読込み時のURLに組み込む ・gift_seq 数値 初期値 0 ・act_flg boolean 抽選時にこれが立ってるもののみを抽選対象にする ※いらない疑惑 ・status 文字列 (0:発券済み、1:エントリー済み、2:抽選済み、3:取り消し)

sano400jp commented 6 years ago

[Messages] ・lottery_code ・text