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

  • Home
  • SEARCH
  • 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 8608681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:40:45+00:00 2026-06-12T03:40:45+00:00

I am creating one to many relationship using the following data model. How can

  • 0

I am creating one to many relationship using the following data model. How can I make primary key and foreign key?

class Candidate(db.Model):
    name = db.StringProperty()
    lastname = db.StringProperty()
    email = db.StringProperty()
    mobno = db.StringProperty()
    grad = db.StringProperty()
    pg = db.StringProperty()
    cloc = db.StringProperty()
    ploc = db.StringProperty()

class Skills(db.Model)
    skillcode=db.IntegerProperty()
    skillname=StringProperty()

Each candidate have many skills. How can I make primary key and foreign key?

  • 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-12T03:40:46+00:00Added an answer on June 12, 2026 at 3:40 am

    The app engine datastore does not work like relational databases such as mysql or sqlite. It’s a schemaless database. Every model has a key. This key can be defined by an id and/or a key name. You can pass a key_name as a keyword argument when you instantiate a model, whereas in most cases, id’s are automatically assigned.

    A ReferenceProperty could be seen as the equivalent of a foreign key.
    This property can hold another model instance” as a value, and using keyword arguments, you can specify a kind that the model has to be.

    The python runtime on appengine has two datastore modules, one called db, and one called ndb. Take a look at ndb, it’s the newer api, and helps you with caching; I also find it has an easier to use api.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm struggling with creating a simple one-to-many relationship using Code First in EF. I
I'm having some difficulty creating nested objects between a one-to-many relationship. My models are
I am creating a one-to-many relationship. so, i have a parent and a child.
I have the following many-to-many relationship set up in my db. Mapped using Code-First
MySQL - Workbench (PHP): Tables: TUsers (One to many relationship with TCompanies): TUsers_CompanyID (FOREIGN
I'm creating a database in EF4.1 Code First. I've got a one-to-many relationship of
In a database, one may create a many-to-many relationship between tables by creating a
I am creating one form in html using table. Which have one Drop down
I am creating one application in which i am using jsp/servlet.. I want to
I am creating one sample project in android. i am using sample rss feed.

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.