Skip to content

Commit

Permalink
startapp
Browse files Browse the repository at this point in the history
  • Loading branch information
jaewan7599 committed Dec 31, 2019
1 parent 157437b commit 31c363c
Show file tree
Hide file tree
Showing 14 changed files with 401 additions and 0 deletions.
Empty file added startapp/__init__.py
Empty file.
Binary file added startapp/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file added startapp/__pycache__/admin.cpython-36.pyc
Binary file not shown.
Binary file added startapp/__pycache__/apps.cpython-36.pyc
Binary file not shown.
Binary file added startapp/__pycache__/models.cpython-36.pyc
Binary file not shown.
14 changes: 14 additions & 0 deletions startapp/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from django.contrib import admin

from .models import Members
from .models import Cases
from .models import Membercases
from .models import Videos
from .models import Marks
# Register your models here.

admin.site.register(Members)
admin.site.register(Cases)
admin.site.register(Membercases)
admin.site.register(Videos)
admin.site.register(Marks)
5 changes: 5 additions & 0 deletions startapp/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class StartappConfig(AppConfig):
name = 'startapp'
201 changes: 201 additions & 0 deletions startapp/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
# Generated by Django 3.0.1 on 2019-12-31 08:29

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='AuthGroup',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=150, unique=True)),
],
options={
'db_table': 'auth_group',
'managed': False,
},
),
migrations.CreateModel(
name='AuthGroupPermissions',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
],
options={
'db_table': 'auth_group_permissions',
'managed': False,
},
),
migrations.CreateModel(
name='AuthPermission',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('codename', models.CharField(max_length=100)),
],
options={
'db_table': 'auth_permission',
'managed': False,
},
),
migrations.CreateModel(
name='AuthUser',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('password', models.CharField(max_length=128)),
('last_login', models.DateTimeField(blank=True, null=True)),
('is_superuser', models.IntegerField()),
('username', models.CharField(max_length=150, unique=True)),
('first_name', models.CharField(max_length=30)),
('last_name', models.CharField(max_length=150)),
('email', models.CharField(max_length=254)),
('is_staff', models.IntegerField()),
('is_active', models.IntegerField()),
('date_joined', models.DateTimeField()),
],
options={
'db_table': 'auth_user',
'managed': False,
},
),
migrations.CreateModel(
name='AuthUserGroups',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
],
options={
'db_table': 'auth_user_groups',
'managed': False,
},
),
migrations.CreateModel(
name='AuthUserUserPermissions',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
],
options={
'db_table': 'auth_user_user_permissions',
'managed': False,
},
),
migrations.CreateModel(
name='Cases',
fields=[
('caseid', models.AutoField(primary_key=True, serialize=False)),
('doclink', models.CharField(blank=True, max_length=300, null=True)),
('hash', models.CharField(max_length=300)),
('qrlink', models.CharField(max_length=300)),
],
options={
'db_table': 'cases',
'managed': False,
},
),
migrations.CreateModel(
name='DjangoAdminLog',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('action_time', models.DateTimeField()),
('object_id', models.TextField(blank=True, null=True)),
('object_repr', models.CharField(max_length=200)),
('action_flag', models.PositiveSmallIntegerField()),
('change_message', models.TextField()),
],
options={
'db_table': 'django_admin_log',
'managed': False,
},
),
migrations.CreateModel(
name='DjangoContentType',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('app_label', models.CharField(max_length=100)),
('model', models.CharField(max_length=100)),
],
options={
'db_table': 'django_content_type',
'managed': False,
},
),
migrations.CreateModel(
name='DjangoMigrations',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('app', models.CharField(max_length=255)),
('name', models.CharField(max_length=255)),
('applied', models.DateTimeField()),
],
options={
'db_table': 'django_migrations',
'managed': False,
},
),
migrations.CreateModel(
name='DjangoSession',
fields=[
('session_key', models.CharField(max_length=40, primary_key=True, serialize=False)),
('session_data', models.TextField()),
('expire_date', models.DateTimeField()),
],
options={
'db_table': 'django_session',
'managed': False,
},
),
migrations.CreateModel(
name='Members',
fields=[
('memberid', models.AutoField(primary_key=True, serialize=False)),
('id', models.CharField(blank=True, max_length=50, null=True)),
('pw', models.CharField(max_length=100)),
],
options={
'db_table': 'members',
'managed': False,
},
),
migrations.CreateModel(
name='Marks',
fields=[
('memberid', models.OneToOneField(db_column='memberid', on_delete=django.db.models.deletion.DO_NOTHING, primary_key=True, serialize=False, to='startapp.Members')),
],
options={
'db_table': 'marks',
'managed': False,
},
),
migrations.CreateModel(
name='Membercases',
fields=[
('memberid', models.OneToOneField(db_column='memberid', on_delete=django.db.models.deletion.DO_NOTHING, primary_key=True, serialize=False, to='startapp.Members')),
],
options={
'db_table': 'membercases',
'managed': False,
},
),
migrations.CreateModel(
name='Videos',
fields=[
('caseid', models.OneToOneField(db_column='caseid', on_delete=django.db.models.deletion.DO_NOTHING, primary_key=True, serialize=False, to='startapp.Cases')),
('videoid', models.IntegerField()),
('videolink', models.CharField(max_length=300)),
('metadata', models.CharField(blank=True, max_length=300, null=True)),
('thumbnaillink', models.CharField(blank=True, max_length=300, null=True)),
('videolength', models.IntegerField(blank=True, null=True)),
('timestamp', models.DateTimeField()),
],
options={
'db_table': 'videos',
'managed': False,
},
),
]
Empty file added startapp/migrations/__init__.py
Empty file.
Binary file not shown.
Binary file not shown.
175 changes: 175 additions & 0 deletions startapp/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free to rename the models, but don't rename db_table values or field names.
from django.db import models


class AuthGroup(models.Model):
name = models.CharField(unique=True, max_length=150)

class Meta:
managed = False
db_table = 'auth_group'


class AuthGroupPermissions(models.Model):
group = models.ForeignKey(AuthGroup, models.DO_NOTHING)
permission = models.ForeignKey('AuthPermission', models.DO_NOTHING)

class Meta:
managed = False
db_table = 'auth_group_permissions'
unique_together = (('group', 'permission'),)


class AuthPermission(models.Model):
name = models.CharField(max_length=255)
content_type = models.ForeignKey('DjangoContentType', models.DO_NOTHING)
codename = models.CharField(max_length=100)

class Meta:
managed = False
db_table = 'auth_permission'
unique_together = (('content_type', 'codename'),)


class AuthUser(models.Model):
password = models.CharField(max_length=128)
last_login = models.DateTimeField(blank=True, null=True)
is_superuser = models.IntegerField()
username = models.CharField(unique=True, max_length=150)
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=150)
email = models.CharField(max_length=254)
is_staff = models.IntegerField()
is_active = models.IntegerField()
date_joined = models.DateTimeField()

class Meta:
managed = False
db_table = 'auth_user'


class AuthUserGroups(models.Model):
user = models.ForeignKey(AuthUser, models.DO_NOTHING)
group = models.ForeignKey(AuthGroup, models.DO_NOTHING)

class Meta:
managed = False
db_table = 'auth_user_groups'
unique_together = (('user', 'group'),)


class AuthUserUserPermissions(models.Model):
user = models.ForeignKey(AuthUser, models.DO_NOTHING)
permission = models.ForeignKey(AuthPermission, models.DO_NOTHING)

class Meta:
managed = False
db_table = 'auth_user_user_permissions'
unique_together = (('user', 'permission'),)


class Cases(models.Model):
caseid = models.AutoField(primary_key=True)
doclink = models.CharField(max_length=300, blank=True, null=True)
hash = models.CharField(max_length=300)
qrlink = models.CharField(max_length=300)

class Meta:
managed = False
db_table = 'cases'


class DjangoAdminLog(models.Model):
action_time = models.DateTimeField()
object_id = models.TextField(blank=True, null=True)
object_repr = models.CharField(max_length=200)
action_flag = models.PositiveSmallIntegerField()
change_message = models.TextField()
content_type = models.ForeignKey('DjangoContentType', models.DO_NOTHING, blank=True, null=True)
user = models.ForeignKey(AuthUser, models.DO_NOTHING)

class Meta:
managed = False
db_table = 'django_admin_log'


class DjangoContentType(models.Model):
app_label = models.CharField(max_length=100)
model = models.CharField(max_length=100)

class Meta:
managed = False
db_table = 'django_content_type'
unique_together = (('app_label', 'model'),)


class DjangoMigrations(models.Model):
app = models.CharField(max_length=255)
name = models.CharField(max_length=255)
applied = models.DateTimeField()

class Meta:
managed = False
db_table = 'django_migrations'


class DjangoSession(models.Model):
session_key = models.CharField(primary_key=True, max_length=40)
session_data = models.TextField()
expire_date = models.DateTimeField()

class Meta:
managed = False
db_table = 'django_session'


class Marks(models.Model):
memberid = models.OneToOneField('Members', models.DO_NOTHING, db_column='memberid', primary_key=True)
caseid = models.ForeignKey('Videos', models.DO_NOTHING, db_column='caseid', related_name='Marks_caseid')
videoid = models.ForeignKey('Videos', models.DO_NOTHING, db_column='videoid', related_name='Marks_videoid')

class Meta:
managed = False
db_table = 'marks'
unique_together = (('memberid', 'caseid', 'videoid'),)


class Membercases(models.Model):
memberid = models.OneToOneField('Members', models.DO_NOTHING, db_column='memberid', primary_key=True)
caseid = models.ForeignKey(Cases, models.DO_NOTHING, db_column='caseid')

class Meta:
managed = False
db_table = 'membercases'
unique_together = (('memberid', 'caseid'),)


class Members(models.Model):
memberid = models.AutoField(primary_key=True)
id = models.CharField(max_length=50, blank=True, null=True)
pw = models.CharField(max_length=100)

class Meta:
managed = False
db_table = 'members'


class Videos(models.Model):
caseid = models.OneToOneField(Cases, models.DO_NOTHING, db_column='caseid', primary_key=True)
videoid = models.IntegerField()
videolink = models.CharField(max_length=300)
metadata = models.CharField(max_length=300, blank=True, null=True)
thumbnaillink = models.CharField(max_length=300, blank=True, null=True)
videolength = models.IntegerField(blank=True, null=True)
timestamp = models.DateTimeField()

class Meta:
managed = False
db_table = 'videos'
unique_together = (('caseid', 'videoid'),)
Loading

0 comments on commit 31c363c

Please sign in to comment.