forked from team-bibim/Broccoli-BE
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.contrib import admin | ||
|
||
# Register your models here. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class AccountsConfig(AppConfig): | ||
default_auto_field = 'django.db.models.BigAutoField' | ||
name = 'accounts' |
Empty file.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from django.db import models | ||
|
||
# Create your models here. | ||
class User(models.Model): | ||
user_id = models.IntegerField(primary_key=True) | ||
nickname = models.CharField(max_length=10, blank=True, null=True) | ||
password = models.CharField(max_length=20, blank=True, null=True) | ||
email = models.CharField(max_length=100, blank=True, null=True) | ||
|
||
class Meta: | ||
managed = False | ||
db_table = 'user' | ||
db_table_comment = '사용자 데이터' | ||
|
||
class Userinfo(models.Model): | ||
user = models.ForeignKey(User, models.DO_NOTHING, blank=True, null=True) | ||
height = models.IntegerField(blank=True, null=True) | ||
weight = models.FloatField(blank=True, null=True) | ||
bmi = models.FloatField(blank=True, null=True) | ||
info = models.CharField(max_length=100, blank=True, null=True) | ||
accvisibility = models.IntegerField(db_column='accVisibility', blank=True, null=True) # Field name made lowercase. | ||
|
||
class Meta: | ||
managed = False | ||
db_table = 'userinfo' | ||
db_table_comment = '사용자 정보' |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.test import TestCase | ||
|
||
# Create your tests here. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.shortcuts import render | ||
|
||
# Create your views here. |
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 4.2.3 on 2023-08-03 05:58 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Usebody', | ||
fields=[ | ||
('usebody_id', models.IntegerField(primary_key=True, serialize=False)), | ||
('usebody_name', models.CharField(blank=True, max_length=10, null=True)), | ||
], | ||
options={ | ||
'db_table': 'usebody', | ||
'db_table_comment': '부위 데이터', | ||
'managed': False, | ||
}, | ||
), | ||
] |
Binary file not shown.