from django.db import models
from csvs.models import Csv

# Create your models here.
class Csv(models.Model):
    # id = models.ForeignKey(Csv, on_delete=models.CASCADE)
    id = models.AutoField(primary_key=True)
    file_name = models.FileField(upload_to='csvs')
    uploaded = models.DateTimeField(auto_now_add=True)
    activated = models.BooleanField(default=False)
    
    def __str__(self):
        return f"File id: {self.id}"
7b691fff4323cdb1d8b27f9ef85794e58c0401f0
<mask token>


class Csv(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Csv(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __str__(self):
        return f'File id: {self.id}'

<mask token>


class Csv(models.Model):
    id = models.AutoField(primary_key=True)
    file_name = models.FileField(upload_to='csvs')
    uploaded = models.DateTimeField(auto_now_add=True)
    activated = models.BooleanField(default=False)

    def __str__(self):
        return f'File id: {self.id}'

from django.db import models
from csvs.models import Csv


class Csv(models.Model):
    id = models.AutoField(primary_key=True)
    file_name = models.FileField(upload_to='csvs')
    uploaded = models.DateTimeField(auto_now_add=True)
    activated = models.BooleanField(default=False)

    def __str__(self):
        return f'File id: {self.id}'

from django.db import models
from csvs.models import Csv

# Create your models here.
class Csv(models.Model):
    # id = models.ForeignKey(Csv, on_delete=models.CASCADE)
    id = models.AutoField(primary_key=True)
    file_name = models.FileField(upload_to='csvs')
    uploaded = models.DateTimeField(auto_now_add=True)
    activated = models.BooleanField(default=False)
    
    def __str__(self):
        return f"File id: {self.id}"