Created
March 27, 2024 07:20
-
-
Save achingachris/f326648bf38d0326423f3217015fa0d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
import uuid | |
class Skill(models.Model): | |
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False, unique=True) | |
title = models.CharField(max_length=200, unique=True) | |
def __str__(self): | |
return self.title | |
class Category(models.Model): | |
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False, unique=True) | |
title = models.CharField(max_length=200, unique=True) | |
def __str__(self): | |
return self.title |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment