Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8670107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:38:11+00:00 2026-06-12T18:38:11+00:00

I am developing a B2B trading application, it has buyers and suppliers for various

  • 0

I am developing a B2B trading application, it has buyers and suppliers for various products.

I am trying to develop a “badge assignment module” that will be used to assign badges through admin panel to the buyers and suppliers according to their verification, buying/selling strength, +ve feedback and so on. A user can earn one or more badge.

The allotted badges should have an expiry date. Please help me in database design – what will be the required tables and the columns?

Please suggest if there is any open source/starter kit application in asp.net that is implementing the same logic.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:38:12+00:00Added an answer on June 12, 2026 at 6:38 pm

    For one, a buyer and seller should be in the same table, and you should use table inheritance to model them.

    A buyer has many badge assignments.

    A badge has many badge assignments too.

    Therefore it is a many-many relationship.

    Can a party get a badge, have it expire, then get the same badge again, later?

    Your schema should look something like this:

    create table party_type(
      id smallint primary key,
      description text not null
    );
    
    insert into party_type values (1, 'Buyer'), (2, 'Seller');    
    
    create table party(
      id bigint identity primary key,
      type smallint not null references party_type (id),
      name text not null
    );
    
    
    create table badge(
      id bigint identity primary key,
      name text not null
    );
    
    
    create table party_badge(
      party_id bigint not null references party (id),
      badge_id bigint not null references badge (id),
      from_date datetime not null default current_timestamp,
      to_date datetime null default null,
    
      check (to_date > from_date),
    
      primary key (party_id, badge_id, from_date)
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently developing an application that will be run on local network in B2B
Iam developing one application.In that iam placing the radio buttons(uiimageview) on table view and
Developing a site that requires monthly subscriptions via PayPal. If a buyer has an
Developing a network application, I have a Connection class that manages sending and receiving
Developing an application for Android, i want to record data that will be usefull
Developing rails has become lots of fun over the year that I've done it,
Developing iPhone Application with Entertainment domain and what to implement that when user download
Developing an HTML 5 application on new iPad's Mobile Safari iOS 5 that displays
Developing a web application that I've registered with Twitter. In this app, I might
iam developing iPhone application that allow user to define stations near to him, so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.