16 lines
506 B
Python
16 lines
506 B
Python
from sqlalchemy import Column, String, Float, Integer
|
|
from ..db.database import Base
|
|
|
|
class RadioStation(Base):
|
|
__tablename__ = "radio_stations"
|
|
|
|
id = Column(String, primary_key=True, index=True)
|
|
name = Column(String, nullable=False)
|
|
frequency = Column(String)
|
|
stream_url = Column(String, nullable=False)
|
|
location_lat = Column(Float)
|
|
location_lon = Column(Float)
|
|
genre = Column(String)
|
|
country = Column(String)
|
|
language = Column(String)
|
|
bitrate = Column(Integer) |