Skip to content
Snippets Groups Projects
Commit fd8c826c authored by 오승훈's avatar 오승훈
Browse files

add univ table

parent c104e5a5
No related branches found
No related tags found
No related merge requests found
from django.shortcuts import render
from rest_framework.views import APIView
from content.models import Feed, Reply, FeedLike, Bookmark
from user.models import User, Follow
from user.models import User, Follow, Univ
class Main(APIView):
......
# Generated by Django 4.0.4 on 2022-06-01 02:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0006_auto_20211014_1134'),
]
operations = [
migrations.CreateModel(
name='Univ',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('univ', models.CharField(max_length=15)),
],
options={
'db_table': 'univ',
},
),
]
......@@ -37,3 +37,9 @@ class Follow(models.Model):
models.Index(fields=['follower']),
models.Index(fields=['following']),
]
class Univ(models.Model):
univ = models.CharField(max_length=15)
class Meta:
db_table = 'univ'
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment