Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USER - Shop for Rubies #88

Open
Xety opened this issue Jan 8, 2023 · 0 comments
Open

USER - Shop for Rubies #88

Xety opened this issue Jan 8, 2023 · 0 comments

Comments

@Xety
Copy link
Member

Xety commented Jan 8, 2023

Shop

Can be disabled/enabled in admin setting.

Xeticons

Small icons that can be bought and display acros the website.
Display on the Discuss (limited to 2 choosen in Account setting) and Profile (all Xeticons)

  • Has categories.
  • Can be time limited buyable.
  • Can have limited quantities.
  • Can have discount.
  • Can be display/hidden.
Schema::create('shop_categories', function (Blueprint $table) {
  $table->increments('id')->unsigned();
  $table->string('title');
  $table->string('slug')->unique()->index();
  $table->text('description');
  $table->integer('shop_item_count')->unsigned()->default(0);
  $table->boolean('is_display')->default(true);
  $table->timestamps();
});


Schema::create('shop_items', function (Blueprint $table) {
  $table->increments('id')->unsigned();
  $table->integer('shop_category_id')->unsigned()->index();
  $table->string('title');
  $table->string('slug')->unique()->index();
  $table->longText('content')->nullable();
  $table->smallInteger('price')->default(0);
  $table->smallInteger('discount')->default(0);
  $table->smallInteger('quantity')->default(-1); //-1=Unlimited | 0=Sold out | 1+=Remaining
  $table->boolean('is_display')->default(true);
  $table->timestamp('start_at')->nullable();
  $table->timestamp('end_at')->nullable();
  $table->timestamps();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant